ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
7 #ifndef PROXIMITY_SENSOR_EQUIPPED_ENTITY_H
8 #define PROXIMITY_SENSOR_EQUIPPED_ENTITY_H
11 class CProximitySensorEquippedEntity;
14 #include <argos3/core/utility/math/vector3.h>
15 #include <argos3/core/simulator/entity/entity.h>
16 #include <argos3/core/simulator/entity/embodied_entity.h>
28 typedef std::vector<SSensor*>
TList;
45 const std::string& str_id);
52 return "proximity_sensors";
SSensor::TList m_tSensors
The list of sensors.
SSensor & GetSensor(size_t un_idx)
virtual std::string GetTypeDescription() const
Returns a string label for this class.
virtual ~CProximitySensorEquippedEntity()
The namespace containing all the ARGoS related code.
It defines the basic type CRadians, used to store an angle value in radians.
Basic class for an entity that contains other entities.
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
virtual void Init(TConfigurationNode &t_tree)
Initializes the state of the entity from the XML configuration tree.
void AddSensorFan(const CVector3 &c_center, Real f_radius, const CRadians &c_start_angle, const CRadians &c_end_angle, Real f_range, UInt32 un_num_sensors, SAnchor &s_anchor)
void AddSensor(const CVector3 &c_offset, const CVector3 &c_direction, Real f_range, SAnchor &s_anchor)
An anchor related to the body of an entity.
void AddSensorRing(const CVector3 &c_center, Real f_radius, const CRadians &c_start_angle, Real f_range, UInt32 un_num_sensors, SAnchor &s_anchor)
SSensor::TList & GetSensors()
unsigned int UInt32
32-bit unsigned integer.
size_t GetNumSensors() const
SSensor(const CVector3 &c_offset, const CVector3 &c_direction, Real f_range, SAnchor &s_anchor)
float Real
Collects all ARGoS code.
std::vector< SSensor * > TList
CProximitySensorEquippedEntity(CComposableEntity *pc_parent)