24 #ifndef __SPEEDSENSOR_H
25 #define __SPEEDSENSOR_H
56 virtual std::list<sensor>
getList()
const;
57 virtual int get(
sensor* sensors,
int length)
const;
Matrix type.
Definition: matrix.h:65
double maxSpeed
Definition: speedsensor.h:62
virtual ~SpeedSensor()
Definition: speedsensor.h:50
Mode mode
Definition: speedsensor.h:63
double sensor
Definition: types.h:29
Abstract class for sensors that can be plugged into a robot.
Definition: sensor.h:43
measures roational velocity around the world axis
Definition: speedsensor.h:40
virtual int getSensorNumber() const
returns the number of sensors values produced by this sensor
Definition: speedsensor.cpp:58
virtual bool sense(const GlobalData &globaldata)
performs sense action
Definition: speedsensor.cpp:62
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
matrix::Matrix getSenseMatrix() const
Definition: speedsensor.cpp:78
measures translational speed in world coordinates (Linear velocity)
Definition: speedsensor.h:38
virtual std::list< sensor > getList() const
returns a list of sensor values (usually in the range [-1,1] ) This function should be overloaded...
Definition: speedsensor.cpp:64
Data structure holding all essential global information.
Definition: globaldata.h:57
Class for speed sensing of robots.
Definition: speedsensor.h:34
virtual void init(Primitive *own, Joint *joint=0)
initialises sensor with a body of robot and optionally with a joint.
Definition: speedsensor.cpp:54
measures roational velocity around the body axis
Definition: speedsensor.h:41
Primitive * own
Definition: speedsensor.h:65
measures translational speed in body coordinates (Linear velocity)
Definition: speedsensor.h:39
short dimensions
Definition: speedsensor.h:64
SpeedSensor(double maxSpeed, Mode mode=Translational, short dimensions=X|Y|Z)
Definition: speedsensor.cpp:37
Mode
Sensor mode.
Definition: speedsensor.h:38