7 #ifndef PROXIMITY_DEFAULT_SENSOR_H
8 #define PROXIMITY_DEFAULT_SENSOR_H
14 class CProximityDefaultSensor;
15 class CProximitySensorEquippedEntity;
18 #include <argos3/plugins/robots/generic/control_interface/ci_proximity_sensor.h>
19 #include <argos3/core/utility/math/range.h>
20 #include <argos3/core/utility/math/rng.h>
21 #include <argos3/core/simulator/space/space.h>
22 #include <argos3/core/simulator/sensor.h>
CControllableEntity * m_pcControllableEntity
Reference to controllable entity associated to this sensor.
An entity that contains a pointer to the user-defined controller.
virtual void Init(TConfigurationNode &t_tree)
Initializes the sensor from the XML configuration tree.
float Real
Collects all ARGoS code.
CProximitySensorEquippedEntity * m_pcProximityEntity
Reference to proximity sensor equipped entity associated to this sensor.
virtual Real CalculateReading(Real f_distance)
Calculates the proximity reading when the closest occluding object is located as the given distance...
virtual ~CProximityDefaultSensor()
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
CRange< Real > m_cNoiseRange
Noise range.
This entity is a link to a body in the physics engine.
virtual void Reset()
Resets the sensor to the state it had just after Init().
bool m_bShowRays
Flag to show rays in the simulator.
The basic interface for a simulated sensor.
CProximityDefaultSensor()
Basic class for an entity that contains other entities.
bool m_bAddNoise
Whether to add noise or not.
CRandom::CRNG * m_pcRNG
Random number generator.
virtual void SetRobot(CComposableEntity &c_entity)
Sets the entity associated to this sensor.
The namespace containing all the ARGoS related code.
virtual void Update()
Updates the state of the entity associated to this sensor.
CSpace & m_cSpace
Reference to the space.
CEmbodiedEntity * m_pcEmbodiedEntity
Reference to embodied entity associated to this sensor.