ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
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;
const std::string & GetId() const
Returns the id of this entity.
CPositionalEntity(CComposableEntity *pc_parent)
The namespace containing all the ARGoS related code.
Basic class for an entity that contains other entities.
The exception that wraps all errors in ARGoS.
REGISTER_STANDARD_SPACE_OPERATIONS_ON_ENTITY(CEntity)
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.
virtual void MoveTo(const CVector3 &c_position, const CQuaternion &c_orientation)
void SetPosition(const CVector3 &c_position)
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.
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 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...