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;
#define THROW_ARGOSEXCEPTION_NESTED(message, nested)
This macro throws an ARGoS exception with the passed message and nesting the passed exception.
The namespace containing all the ARGoS related code.
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.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
Basic class for an entity that contains other entities.
const std::string & GetId() const
Returns the id of this entity.
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 call...
virtual void MoveTo(const CVector3 &c_position, const CQuaternion &c_orientation)
void SetOrientation(const CQuaternion c_orientation)
void SetPosition(const CVector3 &c_position)
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
CPositionalEntity(CComposableEntity *pc_parent)
The exception that wraps all errors in ARGoS.