7 #ifndef POSITIONAL_ENTITY_H
8 #define POSITIONAL_ENTITY_H
11 class CPositionalEntity;
14 #include <argos3/core/simulator/entity/entity.h>
15 #include <argos3/core/utility/math/vector3.h>
16 #include <argos3/core/utility/math/quaternion.h>
29 const std::string& str_id,
41 return m_cInitPosition;
45 m_cPosition = c_position;
49 m_cInitPosition = c_position;
53 return m_cOrientation;
57 return m_cInitOrientation;
61 m_cOrientation = c_orientation;
65 m_cInitOrientation = c_orientation;
The namespace containing all the ARGoS related code.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
Basic class for an entity that contains other entities.
const CQuaternion & GetOrientation() const
virtual void Reset()
Resets the state of the entity to whatever it was after Init() or the standalone constructor was call...
const CVector3 & GetInitPosition() const
virtual void MoveTo(const CVector3 &c_position, const CQuaternion &c_orientation)
const CVector3 & GetPosition() const
void SetOrientation(const CQuaternion c_orientation)
virtual std::string GetTypeDescription() const
Returns a string label for this class.
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)
void SetInitPosition(const CVector3 &c_position)
const CQuaternion & GetInitOrientation() const
void SetInitOrientation(const CQuaternion c_orientation)