ARGoS  3
A parallel, multi-engine simulator for swarm robotics
argos::CCylinderEntity Class Reference

#include <cylinder_entity.h>

+ Inheritance diagram for argos::CCylinderEntity:

List of all members.

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.
CEmbodiedEntityGetEmbodiedEntity ()
CLEDEquippedEntityGetLEDEquippedEntity ()
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.

Detailed Description

Definition at line 23 of file cylinder_entity.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

Definition at line 58 of file cylinder_entity.h.

Definition at line 66 of file cylinder_entity.h.

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.

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().

Exceptions:
CARGoSExceptionif 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.


The documentation for this class was generated from the following files: