sensorcontrollers.h
246 SingleIR(WObject* obj, wMatrix mtr, double minDist, double maxDist, double aperture, unsigned int numRays);
306 void set(WObject* obj, wMatrix mtr, double minDist, double maxDist, double aperture, unsigned int numRays);
The graphical representation of the single IR sensor.
Definition: sensorcontrollers.cpp:74
const RayCastHit & getRayCastHit() const
Returns information about the last ray cast hit.
Definition: sensorcontrollers.h:288
const wMatrix & getTransformation() const
Returns the transformation matrix relative to the object to which the sensor is attached.
Definition: sensorcontrollers.h:337
const WObject * getObject() const
Returns the object to which the sensor is attached.
Definition: sensorcontrollers.h:325
const QVector< SingleIR > & sensors() const
Returns a const reference to the list of SingleIR sensors.
Definition: sensorcontrollers.h:633
QVector< bool > m_activeSensor
The vector storing whether the i-th sensor should be active or not.
Definition: sensorcontrollers.h:202
double getAperture() const
Returns the aperture of the sensor in degrees.
Definition: sensorcontrollers.h:379
The base abstract class for sensor controllers.
Definition: sensorcontrollers.h:43
double getMinDistance() const
Returns the distance below which collisions are not reported.
Definition: sensorcontrollers.h:359
The base abstract class of sensor controllers for infrared sensors.
Definition: sensorcontrollers.h:132
unsigned int getNumRays() const
Returns the number of rays used to simulate the sensor.
Definition: sensorcontrollers.h:389
A collection of SingleIR modelling ground sensors.
Definition: sensorcontrollers.h:587
bool sensorIsActive(int i) const
Returns whether the i-th sensor is active or not.
Definition: sensorcontrollers.h:174
The controller for traction sensor.
Definition: sensorcontrollers.h:667
double getMaxDistance() const
Returns the distance above which collision are not reported.
Definition: sensorcontrollers.h:369
const wVectorT< true > & getPosition() const
Returns the position relative to the object to which the sensor is attached.
Definition: sensorcontrollers.h:349
double activation(int i) const
Returns the activation of the i-th sensors.
Definition: sensorcontrollers.h:163
const QVector< SingleIR > & sensors() const
Returns a const reference to the list of SingleIR sensors.
Definition: sensorcontrollers.h:550
QVector< double > m_activations
The vector with sensors activations.
Definition: sensorcontrollers.h:193
A collection of SingleIR.
Definition: sensorcontrollers.h:504