9 #include <argos3/core/simulator/space/space.h>
10 #include <argos3/core/simulator/simulator.h>
11 #include <argos3/core/utility/string_utilities.h>
25 const std::string& str_id,
29 m_cPosition(c_position),
30 m_cInitPosition(c_position),
31 m_cOrientation(c_orientation),
32 m_cInitOrientation(c_orientation) {}
45 m_cInitPosition = m_cPosition;
46 m_cInitOrientation = m_cOrientation;
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
virtual void MoveTo(const CVector3 &c_position, const CQuaternion &c_orientation)
void GetNodeAttributeOrDefault(TConfigurationNode &t_node, const std::string &str_attribute, T &t_buffer, const T &t_default)
Returns the value of a node's attribute, or the passed default value.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception...
CPositionalEntity(CComposableEntity *pc_parent)
Basic class for an entity that contains other entities.
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
The exception that wraps all errors in ARGoS.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
void SetOrientation(const CQuaternion c_orientation)
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
const std::string & GetId() const
Returns the id of this entity.
The namespace containing all the ARGoS related code.
void SetPosition(const CVector3 &c_position)