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

#include <light_sensor_equipped_entity.h>

+ Inheritance diagram for argos::CLightSensorEquippedEntity:

List of all members.

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
SSensorGetSensor (size_t un_idx)
TSensorsGetSensors ()
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.

Detailed Description

Definition at line 20 of file light_sensor_equipped_entity.h.


Member Typedef Documentation

Definition at line 39 of file light_sensor_equipped_entity.h.


Constructor & Destructor Documentation

argos::CLightSensorEquippedEntity::CLightSensorEquippedEntity ( CComposableEntity pc_parent,
const std::string &  str_id 
)

Definition at line 23 of file light_sensor_equipped_entity.cpp.


Member Function Documentation

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.

Definition at line 56 of file light_sensor_equipped_entity.h.

Definition at line 60 of file light_sensor_equipped_entity.h.

virtual std::string argos::CLightSensorEquippedEntity::GetTypeDescription ( ) const [inline, virtual]

Returns a string label for this class.

Returns:
A string label for this class.

Reimplemented from argos::CEntity.

Definition at line 52 of file light_sensor_equipped_entity.h.

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 42 of file light_sensor_equipped_entity.cpp.


Member Data Documentation

The list of sensors.

Definition at line 81 of file light_sensor_equipped_entity.h.


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