9 #ifndef LOOP_FUNCTIONS_H
10 #define LOOP_FUNCTIONS_H
15 class CPositionalEntity;
16 class CEmbodiedEntity;
19 #include <argos3/core/utility/configuration/base_configurable_resource.h>
20 #include <argos3/core/simulator/simulator.h>
21 #include <argos3/core/simulator/space/space.h>
22 #include <argos3/core/utility/datatypes/color.h>
23 #include <argos3/core/utility/math/vector2.h>
24 #include <argos3/core/utility/math/vector3.h>
25 #include <argos3/core/utility/math/quaternion.h>
26 #include <argos3/core/simulator/physics_engine/physics_engine.h>
206 bool b_check_only =
false);
223 virtual void RemoveEntity(
const std::string& str_entity_id);
247 #define REGISTER_LOOP_FUNCTIONS(CLASSNAME, LABEL) \
248 REGISTER_SYMBOL(CLoopFunctions, \
A set of hook functions to customize an experimental run.
virtual void MoveEntity(CPositionalEntity &c_entity, const CVector3 &c_position, const CQuaternion &c_orientation)
Moves the entity to the wanted position and orientation.
virtual void RemoveEntity(const std::string &str_entity_id)
Removes an entity from the simulation.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
This entity is a link to a body in the physics engine.
virtual void AddEntity(CEntity &c_entity)
Adds the passed entity to the simulation.
virtual void PostStep()
Executes user-defined logic right after a control step is executed.
CSimulator & GetSimulator()
Returns the simulator instance.
virtual void Init(TConfigurationNode &t_tree)
Executes user-defined initialization logic.
virtual void Reset()
Executes user-defined reset logic.
virtual bool IsExperimentFinished()
Returns true if the experiment is finished.
CLoopFunctions()
Class constructor.
virtual ~CLoopFunctions()
Class destructor.
virtual void PreStep()
Executes user-defined logic right before a control step is executed.
virtual void PostExperiment()
Executes user-defined logic when the experiment finishes.
virtual void Destroy()
Executes user-defined destruction logic.
The namespace containing all the ARGoS related code.
This class is the base of all XML-configurable ARGoS interface.
virtual CColor GetFloorColor(const CVector2 &c_pos_on_floor)
Returns the color of the floor in the specified point.
CSpace & GetSpace()
Returns a reference to the space state.