SimulatedIRProximitySensorController Class Reference
A collection of SingleIR. More...

Public Member Functions | |
SimulatedIRProximitySensorController (World *world, const QVector< SingleIR > &sensors) | |
Constructor. | |
~SimulatedIRProximitySensorController () | |
Destructor. | |
void | setGraphicalProperties (bool drawSensor, bool drawRay=false, bool drawRealRay=false) |
Sets graphical properties of all sensors. | |
virtual void | update () |
Updates sensor reading. |
Detailed Description
A collection of SingleIR.
This class implements IRSensorController by using a collection of SingleIR. This takes the list of SingleIR in the constructor and uses them to obtain activations.
Definition at line 461 of file sensorcontrollers.h.
Constructor & Destructor Documentation
SimulatedIRProximitySensorController | ( | World * | world, |
const QVector< SingleIR > & | sensors | ||
) |
Constructor.
- Parameters:
-
world the world in which we live sensors the list of single proximity IR sensors
Definition at line 493 of file sensorcontrollers.cpp.
Destructor.
Definition at line 500 of file sensorcontrollers.cpp.
Member Function Documentation
void setGraphicalProperties | ( | bool | drawSensor, |
bool | drawRay = false , |
||
bool | drawRealRay = false |
||
) |
Sets graphical properties of all sensors.
By default the sensor is not drawn
- Parameters:
-
drawSensor if true the sensor is drawn drawRay if true sensor rays are drawn drawRealRay if true the actual ray range is drawn, otherwise only the direction of the rays is given
Definition at line 514 of file sensorcontrollers.cpp.
Referenced by PhyMarXbot::setProximityIRSensorsGraphicalProperties().
void update | ( | ) | [virtual] |
Updates sensor reading.
Implements SensorController.
Definition at line 505 of file sensorcontrollers.cpp.
References IRSensorController::m_activations.
Referenced by PhyMarXbot::postUpdate().
The documentation for this class was generated from the following files:
- worldsim/include/sensorcontrollers.h
- worldsim/src/sensorcontrollers.cpp