Skip to content

Commit

Permalink
Use CFactory to create a controller when ARGOS_DYNAMIC_LIBRARY_LOADIN…
Browse files Browse the repository at this point in the history
…G is set
  • Loading branch information
allsey87 committed Oct 24, 2019
1 parent fba07de commit ff7c55d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/real_robot/real_robot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ void CRealRobot::Init(const std::string& str_conf_fname,
* Initialize the controller
*/
LOG << "[INFO] Controller type '" << strControllerTag << "', id '" << str_controller_id << "' initialization start" << std::endl;
#ifdef ARGOS_DYNAMIC_LIBRARY_LOADING
m_pcController = CFactory<CCI_Controller>::New(strControllerTag);
#else
m_pcController = ControllerMaker(strControllerTag);
#endif
/* Set the controller id using the machine hostname */
char pchHostname[256];
pchHostname[255] = '\0';
Expand Down

0 comments on commit ff7c55d

Please sign in to comment.