#include <argos3/core/utility/configuration/base_configurable_resource.h>
#include <argos3/core/utility/datatypes/datatypes.h>
#include <argos3/core/control_interface/ci_sensor.h>
#include <argos3/core/control_interface/ci_actuator.h>
#include <argos3/core/utility/plugins/factory.h>
#include <map>
#include <string>
#include <cxxabi.h>
#include <typeinfo>
Go to the source code of this file.
|
| argos |
| The namespace containing all the ARGoS related code.
|
|
◆ REGISTER_CONTROLLER
#define REGISTER_CONTROLLER |
( |
|
CLASSNAME, |
|
|
|
LABEL |
|
) |
| |
Value: extern "C" { \
if(str_label != LABEL) { \
THROW_ARGOSEXCEPTION("Controller label \"" << \
str_label << \
"\" does not match the registered one: \"" << \
LABEL << "\""); \
} \
return new CLASSNAME; \
} \
}
argos::CCI_Controller * ControllerMaker(const std::string &str_label)
Registers a new controller inside ARGoS.
Definition at line 248 of file ci_controller.h.
◆ ControllerMaker()
Registers a new controller inside ARGoS.
You must register your controller for ARGoS to be able to recognize it. This statement must be included in a .cpp file. It can't be in a header.