34 #ifndef __ENKI_GROUND_SENSOR_H 35 #define __ENKI_GROUND_SENSOR_H 100 #endif // __ENKI_GROUND_SENSOR_H A vector in a 2D space.
Definition: Geometry.h:68
const double aFactor
Additive factor to compute finalValue.
Definition: GroundSensor.h:66
double finalValue
Final sensor value.
Definition: GroundSensor.h:75
double filter[9][9]
Pre-computed coefficient to filter ground image on a 2x2 cm square, with a 0.25 cm resolution...
Definition: GroundSensor.h:72
double getValue(void) const
Reset intensity value Return the final sensor value.
Definition: GroundSensor.h:93
Enki is the namespace of the Enki simulator. All Enki functions and classes excepted the math one are...
Definition: BluetoothBase.cpp:44
Robot * owner
The physical object that owns the interaction.
Definition: Interaction.h:62
const double noiseSd
Standard deviation of Gaussian noise in the response space.
Definition: GroundSensor.h:69
The interfaces for the interactions.
GroundSensor(Robot *owner, Vector pos, double mFactor, double aFactor, double spatialSd=0.4, double noiseSd=0.)
Constructor.
Definition: GroundSensor.cpp:44
Vector absPos
Absolute position in the world, updated on init()
Definition: GroundSensor.h:60
The world is the container of all objects and robots.
Definition: PhysicalEngine.h:411
const Vector pos
Relative position on the robot.
Definition: GroundSensor.h:62
const double mFactor
Multiplicative factor to compute finalValue.
Definition: GroundSensor.h:64
void init(double dt, World *w)
Compute absolute position.
Definition: GroundSensor.cpp:75
Interacts with another object or wall only up to a certain distance.
Definition: Interaction.h:53
A robot is a PhysicalObject that has additional interactions and a controller.
Definition: PhysicalEngine.h:379
Point getAbsolutePosition(void) const
Return the absolute position of the ground sensor, updated at each time step on init() ...
Definition: GroundSensor.h:96
A ground infrared sensor.
Definition: GroundSensor.h:56