ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
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;
void SetInitOrientation(const CQuaternion c_orientation)
CPositionalEntity(CComposableEntity *pc_parent)
The namespace containing all the ARGoS related code.
const CQuaternion & GetInitOrientation() const
Basic class for an entity that contains other entities.
void SetInitPosition(const CVector3 &c_position)
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
const CVector3 & GetPosition() const
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual void MoveTo(const CVector3 &c_position, const CQuaternion &c_orientation)
void SetPosition(const CVector3 &c_position)
const CQuaternion & GetOrientation() const
const CVector3 & GetInitPosition() const
void SetOrientation(const CQuaternion c_orientation)
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...