4 #include <argos3/core/utility/configuration/argos_configuration.h>
5 #include <argos3/core/control_interface/ci_controller.h>
27 virtual void Init(
const std::string& str_conf_fname,
28 const std::string& str_controller_id);
65 virtual void Act(
Real f_elapsed_time) = 0;
float Real
Collects all ARGoS code.
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
The basic interface for all actuators.
The basic interface for a robot controller.
The basic interface for all sensors.
virtual void Init(const std::string &str_conf_fname, const std::string &str_controller_id)
Initializes the robot and the controller.
virtual void Control()
Execute the robot controller.
virtual ~CRealRobot()
Class destructor.
virtual void Destroy()=0
Put your robot cleanup code here.
CCI_Controller * m_pcController
ticpp::Document m_tConfiguration
TConfigurationNode * m_ptControllerConfRoot
virtual void Act(Real f_elapsed_time)=0
Send data to the actuators.
CRealRobot()
Class constructor.
TConfigurationNode m_tConfRoot
virtual void Execute()
Performs the main loop.
virtual CCI_Actuator * MakeActuator(const std::string &str_name)=0
Creates an actuator given its name.
virtual void Sense(Real f_elapsed_time)=0
Collect data from the sensors.
static void Cleanup(int)
Cleanup function called when the controller is stopped.
virtual CCI_Sensor * MakeSensor(const std::string &str_name)=0
Creates a sensor given its name.
virtual void InitRobot()=0
Put your robot initialization code here.
static CRealRobot * m_pcInstance