ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <epuck_entity.h>
Public Member Functions | |
ENABLE_VTABLE () | |
CEPuckEntity () | |
virtual void | Init (TConfigurationNode &t_tree) |
Initializes the state of the entity from the XML configuration tree. | |
virtual void | Reset () |
Resets the state of the entity to whatever it was after Init() or the standalone constructor was called. | |
virtual void | Destroy () |
Destroys the entity, undoing whatever was done by Init() or by the standalone constructor. | |
virtual void | UpdateComponents () |
Calls the Update() method on all the components. | |
CControllableEntity & | GetControllableEntity () |
CEmbodiedEntity & | GetEmbodiedEntity () |
CGroundSensorEquippedEntity & | GetGroundSensorEquippedEntity () |
CLEDEquippedEntity & | GetLEDEquippedEntity () |
CLightSensorEquippedEntity & | GetLightSensorEquippedEntity () |
CProximitySensorEquippedEntity & | GetProximitySensorEquippedEntity () |
CRABEquippedEntity & | GetRABEquippedEntity () |
CWheeledEntity & | GetWheeledEntity () |
virtual std::string | GetTypeDescription () const |
Returns a string label for this class. |
Definition at line 26 of file epuck_entity.h.
Definition at line 44 of file epuck_entity.cpp.
void argos::CEPuckEntity::Destroy | ( | ) | [virtual] |
Destroys the entity, undoing whatever was done by Init() or by the standalone constructor.
The default implementation of this method does nothing.
Reimplemented from argos::CEntity.
Definition at line 156 of file epuck_entity.cpp.
Reimplemented from argos::CComposableEntity.
Definition at line 42 of file epuck_entity.h.
CEmbodiedEntity& argos::CEPuckEntity::GetEmbodiedEntity | ( | ) | [inline] |
Definition at line 46 of file epuck_entity.h.
Definition at line 50 of file epuck_entity.h.
CLEDEquippedEntity& argos::CEPuckEntity::GetLEDEquippedEntity | ( | ) | [inline] |
Definition at line 54 of file epuck_entity.h.
Definition at line 58 of file epuck_entity.h.
Definition at line 62 of file epuck_entity.h.
CRABEquippedEntity& argos::CEPuckEntity::GetRABEquippedEntity | ( | ) | [inline] |
Definition at line 66 of file epuck_entity.h.
virtual std::string argos::CEPuckEntity::GetTypeDescription | ( | ) | const [inline, virtual] |
Returns a string label for this class.
Reimplemented from argos::CComposableEntity.
Definition at line 74 of file epuck_entity.h.
CWheeledEntity& argos::CEPuckEntity::GetWheeledEntity | ( | ) | [inline] |
Definition at line 70 of file epuck_entity.h.
void argos::CEPuckEntity::Init | ( | TConfigurationNode & | t_tree | ) | [virtual] |
Initializes the state of the entity from the XML configuration tree.
If the id of the entity has not been set yet, this method sets an id for the entity. If the entity has no parent, this method parses the passed XML tree and looks for the id
attribute, setting its value as id. If, instead, this entity has a parent, the id is set as GetParent().GetId() + "." + GetTypeDescription()
.
CARGoSException | if a parse error occurred |
Reimplemented from argos::CEntity.
Definition at line 59 of file epuck_entity.cpp.
void argos::CEPuckEntity::Reset | ( | ) | [virtual] |
Resets the state of the entity to whatever it was after Init() or the standalone constructor was called.
Internally calls Reset() for all the component entities.
Reimplemented from argos::CComposableEntity.
Definition at line 146 of file epuck_entity.cpp.
void argos::CEPuckEntity::UpdateComponents | ( | ) | [virtual] |
Calls the Update() method on all the components.
Reimplemented from argos::CComposableEntity.
Definition at line 165 of file epuck_entity.cpp.