diff --git a/src/core/real_robot/real_robot.cpp b/src/core/real_robot/real_robot.cpp index f0ed8091..15791584 100644 --- a/src/core/real_robot/real_robot.cpp +++ b/src/core/real_robot/real_robot.cpp @@ -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::New(strControllerTag); +#else m_pcController = ControllerMaker(strControllerTag); +#endif /* Set the controller id using the machine hostname */ char pchHostname[256]; pchHostname[255] = '\0';