24 #ifndef __RELATIVEPOSITIONSENSOR_H
25 #define __RELATIVEPOSITIONSENSOR_H
43 RelativePositionSensor(
double maxDistance,
double exponent,
short dimensions =
X |
Y |
Z ,
bool local_coordinates =
false);
50 virtual std::list<sensor>
getList()
const;
RelativePositionSensor(double maxDistance, double exponent, short dimensions=X|Y|Z, bool local_coordinates=false)
Definition: relativepositionsensor.cpp:33
virtual std::list< sensor > getList() const
returns a list of sensor values (usually in the range [-1,1] ) This function should be overloaded...
Definition: relativepositionsensor.cpp:56
Abstract class for sensors that can be plugged into a robot.
Definition: sensor.h:43
virtual bool sense(const GlobalData &globaldata)
performs sense action
Definition: relativepositionsensor.cpp:82
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: relativepositionsensor.cpp:52
Data structure holding all essential global information.
Definition: globaldata.h:57
virtual void setReference(Primitive *ref)
Sets the reference object we use for relative position measureing.
Definition: relativepositionsensor.cpp:48
virtual void init(Primitive *own, Joint *joint=0)
initialises sensor with a body of robot and optionally with a joint.
Definition: relativepositionsensor.cpp:45
Class for relative (or absolute) position sensing.
Definition: relativepositionsensor.h:34
virtual ~RelativePositionSensor()
Definition: relativepositionsensor.h:44