ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
The basic interface for a simulated sensor. More...
#include <sensor.h>
Public Member Functions | |
virtual | ~CSimulatedSensor () |
Class destructor. | |
virtual void | SetRobot (CComposableEntity &c_entity)=0 |
Sets the entity associated to this sensor. | |
virtual void | Update ()=0 |
Updates the state of the entity associated to this sensor. |
The basic interface for a simulated sensor.
To implement the simulated model of an sensor, you must define a class that inherits from both the control interface and this class.
virtual argos::CSimulatedSensor::~CSimulatedSensor | ( | ) | [inline, virtual] |
virtual void argos::CSimulatedSensor::SetRobot | ( | CComposableEntity & | c_entity | ) | [pure virtual] |
Sets the entity associated to this sensor.
When a controller is created, all the sensors and actuators are created, too. This function is called right before the Init()
method of the sensor is called.
c_entity | The entity to associate to this sensor. |
Implemented in argos::CFootBotDistanceScannerRotZOnlySensor, argos::CFootBotBaseGroundRotZOnlySensor, argos::CFootBotMotorGroundRotZOnlySensor, argos::CGroundRotZOnlySensor, argos::CFootBotLightRotZOnlySensor, argos::CDifferentialSteeringDefaultSensor, argos::CLightDefaultSensor, argos::CPositioningDefaultSensor, argos::CProximityDefaultSensor, argos::CRangeAndBearingMediumSensor, argos::CFootBotTurretEncoderDefaultSensor, argos::CFootBotProximityDefaultSensor, and argos::CColoredBlobOmnidirectionalCameraRotZOnlySensor.
virtual void argos::CSimulatedSensor::Update | ( | ) | [pure virtual] |
Updates the state of the entity associated to this sensor.
Implemented in argos::CFootBotDistanceScannerRotZOnlySensor, argos::CFootBotBaseGroundRotZOnlySensor, argos::CFootBotMotorGroundRotZOnlySensor, argos::CGroundRotZOnlySensor, argos::CFootBotLightRotZOnlySensor, argos::CDifferentialSteeringDefaultSensor, argos::CLightDefaultSensor, argos::CPositioningDefaultSensor, argos::CProximityDefaultSensor, argos::CRangeAndBearingMediumSensor, argos::CFootBotProximityDefaultSensor, argos::CFootBotTurretEncoderDefaultSensor, and argos::CColoredBlobOmnidirectionalCameraRotZOnlySensor.