23 #ifndef MARXBOTSENSORS_H
24 #define MARXBOTSENSORS_H
27 #include "neuroninterfaces.h"
31 #include "phycylinder.h"
33 #include "sensorcontrollers.h"
96 static void describe(QString type);
171 static void describe(QString type);
177 virtual void update();
209 const QVector<bool> m_activeSensors;
216 const int m_numActiveSensors;
267 static void describe(QString type);
273 virtual void update();
282 bool invertActivation()
const
284 return m_invertActivation;
315 const bool m_invertActivation;
364 static void describe(QString type);
370 virtual void update();
473 static void describe(QString type);
479 virtual void update();
506 virtual void resourceChanged(QString resourceName, ResourceChangeType changeType);
525 const int m_numReceptors;
531 const bool m_useRedChannel;
537 const bool m_useGreenChannel;
543 const bool m_useBlueChannel;
548 const int m_usedColorChannels;
556 const real m_aperture;
562 const real m_maxDistance;
572 const bool m_drawCamera;
657 static void describe(QString type);
663 virtual void update();
690 virtual void resourceChanged(QString resourceName, ResourceChangeType changeType);
717 const bool m_useRedChannel;
723 const bool m_useGreenChannel;
729 const bool m_useBlueChannel;
734 const int m_usedColorChannels;
742 const real m_aperture;
748 const real m_maxDistance;
753 QVector<SimpleInterval> m_receptorsRanges;
763 const bool m_drawCamera;
766 namespace __MarXbotTractionSensor_internal {
767 class TractionSensorGraphic;
823 static void describe(QString type);
829 virtual void update();
862 const real m_maxForce;
868 const real m_minForce;
874 const bool m_drawSensor;
945 static void describe(QString type);
951 virtual void update();
962 return m_roundSamples;
967 return m_smallSamples;
970 const QVector<bool>& getActiveSensors()
const
972 return m_activeSensors;
975 int getNumActiveSensors()
const
977 return m_numActiveSensors;
980 int getAverageNum()
const
1013 const QVector<bool> m_activeSensors;
1020 const int m_averageNum;
1027 const int m_numActiveSensors;
1115 static void describe(QString type);
1121 virtual void update();
1154 const bool m_enablePosition;
1160 const bool m_enableStatus;
1166 const bool m_enableAttached;
1172 const bool m_enableOtherAttached;
1179 const int m_numInputs;
1221 static QString modeToString(Mode mode);
1230 static Mode stringToMode(QString mode);
1262 static void describe(QString type);
1268 virtual void update();
1285 virtual void resourceChanged(QString resourceName, ResourceChangeType changeType);
1354 static void describe(QString type);
1360 virtual void update();
1407 const real m_maxDistance;
1412 const real m_aperture;
1417 const bool m_drawSensors;
1422 const bool m_drawRays;
1427 const bool m_drawRaysRange;