ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
#include <ground_sensor_equipped_entity.h>
Classes | |
struct | SSensor |
Public Types | |
enum | ESensorType { TYPE_BLACK_WHITE = 0, TYPE_GRAYSCALE } |
typedef std::vector< SSensor * > | TSensors |
Public Member Functions | |
ENABLE_VTABLE () | |
CGroundSensorEquippedEntity (CComposableEntity *pc_parent) | |
CGroundSensorEquippedEntity (CComposableEntity *pc_parent, const std::string &str_id) | |
virtual | ~CGroundSensorEquippedEntity () |
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 CVector2 &c_offset, ESensorType e_type) |
void | AddSensorRing (const CVector2 &c_center, Real f_radius, const CRadians &c_start_angle, ESensorType e_type, UInt32 un_num_sensors) |
Protected Member Functions | |
ESensorType | ParseType (const std::string &str_type) const |
Protected Attributes | |
TSensors | m_tSensors |
The list of sensors. |
Definition at line 20 of file ground_sensor_equipped_entity.h.
typedef std::vector<SSensor*> argos::CGroundSensorEquippedEntity::TSensors |
Definition at line 40 of file ground_sensor_equipped_entity.h.
Definition at line 26 of file ground_sensor_equipped_entity.h.
Definition at line 15 of file ground_sensor_equipped_entity.cpp.
argos::CGroundSensorEquippedEntity::CGroundSensorEquippedEntity | ( | CComposableEntity * | pc_parent, |
const std::string & | str_id | ||
) |
Definition at line 23 of file ground_sensor_equipped_entity.cpp.
Definition at line 32 of file ground_sensor_equipped_entity.cpp.
void argos::CGroundSensorEquippedEntity::AddSensor | ( | const CVector2 & | c_offset, |
ESensorType | e_type | ||
) |
Definition at line 97 of file ground_sensor_equipped_entity.cpp.
void argos::CGroundSensorEquippedEntity::AddSensorRing | ( | const CVector2 & | c_center, |
Real | f_radius, | ||
const CRadians & | c_start_angle, | ||
ESensorType | e_type, | ||
UInt32 | un_num_sensors | ||
) |
Definition at line 105 of file ground_sensor_equipped_entity.cpp.
Reimplemented from argos::CEntity.
size_t argos::CGroundSensorEquippedEntity::GetNumSensors | ( | ) | const [inline] |
Definition at line 57 of file ground_sensor_equipped_entity.h.
SSensor& argos::CGroundSensorEquippedEntity::GetSensor | ( | size_t | un_idx | ) | [inline] |
Definition at line 61 of file ground_sensor_equipped_entity.h.
TSensors& argos::CGroundSensorEquippedEntity::GetSensors | ( | ) | [inline] |
Definition at line 65 of file ground_sensor_equipped_entity.h.
virtual std::string argos::CGroundSensorEquippedEntity::GetTypeDescription | ( | ) | const [inline, virtual] |
Returns a string label for this class.
Reimplemented from argos::CEntity.
Definition at line 53 of file ground_sensor_equipped_entity.h.
void argos::CGroundSensorEquippedEntity::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 ground_sensor_equipped_entity.cpp.
CGroundSensorEquippedEntity::ESensorType argos::CGroundSensorEquippedEntity::ParseType | ( | const std::string & | str_type | ) | const [protected] |
Definition at line 126 of file ground_sensor_equipped_entity.cpp.
The list of sensors.
Definition at line 85 of file ground_sensor_equipped_entity.h.