ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <cylinder_entity.h>
Public Member Functions | |
ENABLE_VTABLE () | |
CCylinderEntity () | |
CCylinderEntity (const std::string &str_id, const CVector3 &c_position, const CQuaternion &c_orientation, bool b_movable, Real f_radius, Real f_height, Real f_mass=1.0f) | |
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 called. | |
CEmbodiedEntity & | GetEmbodiedEntity () |
CLEDEquippedEntity & | GetLEDEquippedEntity () |
Real | GetRadius () const |
void | SetRadius (Real c_radius) |
Real | GetHeight () const |
void | SetHeight (Real c_height) |
Real | GetMass () const |
void | SetMass (Real f_mass) |
virtual std::string | GetTypeDescription () const |
Returns a string label for this class. |
Definition at line 23 of file cylinder_entity.h.
Definition at line 18 of file cylinder_entity.cpp.
argos::CCylinderEntity::CCylinderEntity | ( | const std::string & | str_id, |
const CVector3 & | c_position, | ||
const CQuaternion & | c_orientation, | ||
bool | b_movable, | ||
Real | f_radius, | ||
Real | f_height, | ||
Real | f_mass = 1.0f |
||
) |
Definition at line 29 of file cylinder_entity.cpp.
Reimplemented from argos::CComposableEntity.
CEmbodiedEntity& argos::CCylinderEntity::GetEmbodiedEntity | ( | ) | [inline] |
Definition at line 42 of file cylinder_entity.h.
Real argos::CCylinderEntity::GetHeight | ( | ) | const [inline] |
Definition at line 58 of file cylinder_entity.h.
Definition at line 46 of file cylinder_entity.h.
Real argos::CCylinderEntity::GetMass | ( | ) | const [inline] |
Definition at line 66 of file cylinder_entity.h.
Real argos::CCylinderEntity::GetRadius | ( | ) | const [inline] |
Definition at line 50 of file cylinder_entity.h.
virtual std::string argos::CCylinderEntity::GetTypeDescription | ( | ) | const [inline, virtual] |
Returns a string label for this class.
Reimplemented from argos::CComposableEntity.
Definition at line 74 of file cylinder_entity.h.
void argos::CCylinderEntity::Init | ( | TConfigurationNode & | t_tree | ) | [virtual] |
Initializes the state of the entity from the XML configuration tree.
If the id of the entity has not been set yet, this method sets an id for the entity. If the entity has no parent, this method parses the passed XML tree and looks for the id
attribute, setting its value as id. If, instead, this entity has a parent, the id is set as GetParent().GetId() + "." + GetTypeDescription()
.
CARGoSException | if a parse error occurred |
Reimplemented from argos::CEntity.
Definition at line 57 of file cylinder_entity.cpp.
void argos::CCylinderEntity::Reset | ( | ) | [virtual] |
Resets the state of the entity to whatever it was after Init() or the standalone constructor was called.
Internally calls Reset() for all the component entities.
Reimplemented from argos::CComposableEntity.
Definition at line 110 of file cylinder_entity.cpp.
void argos::CCylinderEntity::SetHeight | ( | Real | c_height | ) | [inline] |
Definition at line 62 of file cylinder_entity.h.
void argos::CCylinderEntity::SetMass | ( | Real | f_mass | ) | [inline] |
Definition at line 70 of file cylinder_entity.h.
void argos::CCylinderEntity::SetRadius | ( | Real | c_radius | ) | [inline] |
Definition at line 54 of file cylinder_entity.h.