SimulatedIRGroundSensorController Class Reference

A collection of SingleIR modelling ground sensors. More...

Inheritance diagram for SimulatedIRGroundSensorController:

List of all members.

Public Member Functions

 SimulatedIRGroundSensorController (World *world, const QVector< SingleIR > &sensors)
 Constructor.
 ~SimulatedIRGroundSensorController ()
 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 modelling ground sensors.

This class implements IRSensorController by using a collection of SingleIR. This models ground sensors by assuming IR sensors are at a fixed distance from the ground and returning activation depending on the luminance component of the color of the object below the sensor. The SingleIR should have a single ray (zero aperture).

Definition at line 509 of file sensorcontrollers.h.


Constructor & Destructor Documentation

SimulatedIRGroundSensorController ( World world,
const QVector< SingleIR > &  sensors 
)

Constructor.

Parameters:
worldthe world in which we live
sensorsthe list of single proximity IR sensors

Definition at line 521 of file sensorcontrollers.cpp.

Destructor.

Definition at line 527 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:
drawSensorif true the sensor is drawn
drawRayif true sensor rays are drawn
drawRealRayif true the actual ray range is drawn, otherwise only the direction of the rays is given

Definition at line 547 of file sensorcontrollers.cpp.

Referenced by PhyMarXbot::setGroundAroundIRSensorsGraphicalProperties(), and PhyMarXbot::setGroundBottomIRSensorsGraphicalProperties().

void update ( ) [virtual]

Updates sensor reading.

Implements SensorController.

Definition at line 532 of file sensorcontrollers.cpp.

References IRSensorController::m_activations.

Referenced by PhyMarXbot::postUpdate().


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