ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <light_sensor_equipped_entity.h>
Classes | |
struct | SSensor |
Public Types | |
typedef std::vector< SSensor * > | TSensors |
Public Member Functions | |
ENABLE_VTABLE () | |
CLightSensorEquippedEntity (CComposableEntity *pc_parent) | |
CLightSensorEquippedEntity (CComposableEntity *pc_parent, const std::string &str_id) | |
virtual | ~CLightSensorEquippedEntity () |
virtual void | Init (TConfigurationNode &t_tree) |
Initializes the state of the entity from the XML configuration tree. | |
virtual std::string | GetTypeDescription () const |
Returns a string label for this class. | |
size_t | GetNumSensors () const |
SSensor & | GetSensor (size_t un_idx) |
TSensors & | GetSensors () |
void | AddSensor (const CVector3 &c_position, const CVector3 &c_direction, Real f_range) |
void | AddSensorRing (const CVector3 &c_center, Real f_radius, const CRadians &c_start_angle, Real f_range, UInt32 un_num_sensors) |
Protected Attributes | |
TSensors | m_tSensors |
The list of sensors. |
Definition at line 20 of file light_sensor_equipped_entity.h.
typedef std::vector<SSensor*> argos::CLightSensorEquippedEntity::TSensors |
Definition at line 39 of file light_sensor_equipped_entity.h.
Definition at line 15 of file light_sensor_equipped_entity.cpp.
argos::CLightSensorEquippedEntity::CLightSensorEquippedEntity | ( | CComposableEntity * | pc_parent, |
const std::string & | str_id | ||
) |
Definition at line 23 of file light_sensor_equipped_entity.cpp.
Definition at line 32 of file light_sensor_equipped_entity.cpp.
void argos::CLightSensorEquippedEntity::AddSensor | ( | const CVector3 & | c_position, |
const CVector3 & | c_direction, | ||
Real | f_range | ||
) |
Definition at line 97 of file light_sensor_equipped_entity.cpp.
void argos::CLightSensorEquippedEntity::AddSensorRing | ( | const CVector3 & | c_center, |
Real | f_radius, | ||
const CRadians & | c_start_angle, | ||
Real | f_range, | ||
UInt32 | un_num_sensors | ||
) |
Definition at line 106 of file light_sensor_equipped_entity.cpp.
Reimplemented from argos::CEntity.
size_t argos::CLightSensorEquippedEntity::GetNumSensors | ( | ) | const [inline] |
Definition at line 56 of file light_sensor_equipped_entity.h.
SSensor& argos::CLightSensorEquippedEntity::GetSensor | ( | size_t | un_idx | ) | [inline] |
Definition at line 60 of file light_sensor_equipped_entity.h.
TSensors& argos::CLightSensorEquippedEntity::GetSensors | ( | ) | [inline] |
Definition at line 64 of file light_sensor_equipped_entity.h.
virtual std::string argos::CLightSensorEquippedEntity::GetTypeDescription | ( | ) | const [inline, virtual] |
Returns a string label for this class.
Reimplemented from argos::CEntity.
Definition at line 52 of file light_sensor_equipped_entity.h.
void argos::CLightSensorEquippedEntity::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 42 of file light_sensor_equipped_entity.cpp.
The list of sensors.
Definition at line 81 of file light_sensor_equipped_entity.h.