1 #ifndef __DERIVATIVESENSOR_H
2 #define __DERIVATIVESENSOR_H
28 virtual std::list<sensor>
getList()
const;
Class for measuring (time) derivatives of a given sensor.
Definition: derivativesensor.h:11
virtual bool sense(const GlobalData &globaldata)
performs sense action
Definition: derivativesensor.cpp:20
virtual void init(Primitive *own, Joint *joint=0)
initialises sensor with a body of robot and optionally with a joint.
Definition: derivativesensor.cpp:11
virtual std::list< sensor > getList() const
returns a list of sensor values (usually in the range [-1,1] ) This function should be overloaded...
Definition: derivativesensor.cpp:26
virtual ~DerivativeSensor()
Definition: derivativesensor.h:20
Sensor * attachedSensor
Definition: derivativesensor.h:36
Abstract class for sensors that can be plugged into a robot.
Definition: sensor.h:43
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
virtual int getSensorNumber() const
returns the number of sensors values produced by this sensor
Definition: derivativesensor.cpp:16
Data structure holding all essential global information.
Definition: globaldata.h:57
std::list< sensor > oldValues
Definition: derivativesensor.h:34
DerivativeSensor(Sensor *attachedSensor, double factor=1)
Definition: derivativesensor.cpp:5
double factor
Definition: derivativesensor.h:38
double timeStepSize
Definition: derivativesensor.h:32