23 #ifndef SENSORCONTROLLERS_H
24 #define SENSORCONTROLLERS_H
28 #include "phyobject.h"
64 virtual void update() = 0;
83 void setEnabled(
bool b)
153 return m_activations.size();
163 double activation(
int i)
const
165 return m_activations[i];
175 namespace __SingleIR_internal {
216 SingleIR(
WObject* obj,
wMatrix mtr,
double minDist,
double maxDist,
double aperture,
unsigned int numRays);
276 void set(
WObject* obj,
wMatrix mtr,
double minDist,
double maxDist,
double aperture,
unsigned int numRays);
288 void setGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
309 return m_transformation;
317 double getMinDistance()
const
327 double getMaxDistance()
const
337 double getAperture()
const
347 unsigned int getNumRays()
const
359 return ((m_object != NULL) && (m_numRays != 0));
369 void computeRayPoints();
375 void updateGraphicalRepresentation();
406 unsigned int m_numRays;
430 QVector<wVector> m_startingRayPoints;
438 QVector<wVector> m_endingRayPoints;
481 virtual void update();
492 void setGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
498 QVector<SingleIR> m_sensors;
529 virtual void update();
540 void setGraphicalProperties(
bool drawSensor,
bool drawRay =
false,
bool drawRealRay =
false);
546 QVector<SingleIR> m_sensors;
574 virtual void update();