54 virtual int get(
sensor* sensors,
int length)
const override;
55 virtual std::list<sensor>
getList()
const override;
double len
Definition: raysensor.h:104
virtual double getValue()
Definition: irsensor.cpp:42
IRSensor(double exponent=1, double size=0.05, double range=2, rayDrawMode drawMode=drawSensor)
Definition: irsensor.cpp:28
rayDrawMode
Definition: raysensor.h:56
double sensor
Definition: types.h:29
Class for IR sensors.
Definition: irsensor.h:39
double value
Definition: irsensor.h:75
virtual double characteritic(double len)
describes the sensor characteritic An exponential curve is used.
Definition: irsensor.cpp:56
Data structure holding all essential global information.
Definition: globaldata.h:57
rayDrawMode drawMode
Definition: raysensor.h:102
virtual void setExponent(double exp)
sets the exponent of the sensor characteritic (default: 1 (linear))
Definition: irsensor.h:64
double size
Definition: raysensor.h:100
double range
Definition: raysensor.h:101
virtual bool sense(const GlobalData &globaldata) override
performs sense action
Definition: irsensor.cpp:36
virtual double getExponent() const
returns the exponent of the sensor characteritic (default: 1 (linear))
Definition: irsensor.h:61
virtual std::list< sensor > getList() const override
returns a list of sensor values (usually in the range [-1,1] ) This function should be overloaded...
Definition: irsensor.cpp:52
double exponent
Definition: irsensor.h:73
Class for Ray-based sensors.
Definition: raysensor.h:54
Definition: raysensor.h:56