23 #ifndef MARXBOTSENSORS_H
24 #define MARXBOTSENSORS_H
27 #include "neuroninterfaces.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();
1408 const real m_maxDistance;
1418 const bool m_drawSensors;
1423 const bool m_drawRays;
1428 const bool m_drawRaysRange;
1482 static void describe(QString type);
1488 virtual void update();
1550 const real m_maxDistance;
1555 const bool m_drawSensors;
1560 const bool m_drawRays;
1565 const bool m_drawRaysRange;
1570 const bool m_avgSensors;
The linear camera sensor of the MarXbot.
Mode
The enum of different modalities for this sensor.
The infrared ground around sensors of the MarXbot.
An helper class to load sampled data from file.
QString m_marxbotResource
The name of the resource associated with the MarXbot robot.
The infrared ground bottom sensors of the MarXbot.
An Omnidirectional distance sensor for long distances.
The class modelling an arena.
The infrared proximity sensors of the MarXbot.
The base abstract class for iterating over neurons of a neural network.
The sampled proximity infrared sensors of the MarXbot.
The graphical representation of the MarXbot traction sensor.
const LinearCamera * getLinearCamera() const
Returns a const pointer to the inner Linear camera object.
This file contains the common type defitions used on the whole framework.
The base abstract class for the Sensor hierarchy.
The traction sensors of the MarXbot.
A frontal distance sensor for long distances.
The base abstract class for MarXbot sensors.
An helper class for linear camera sensors of various robots.
The sensor providing the attachment device proprioception.
QString m_neuronsIteratorResource
The name of th resource associated with the neural network iterator.
The class modelling the marXbot robot.
The linear camera sensor of the MarXbot (new implementation)
An helper class for linear camera sensors of various robots.
The sensor reporting the actual velocity of the wheels of the MarXbot.
const LinearCameraNew::LinearCamera * getLinearCamera() const
Returns a const pointer to the inner Linear camera object.