24 #ifndef __AXISORIENTATIONSENSOR_H
25 #define __AXISORIENTATIONSENSOR_H
56 virtual std::list<sensor>
getList()
const;
57 virtual int get(
sensor* sensors,
int length)
const;
virtual bool sense(const GlobalData &globaldata)
performs sense action
Definition: axisorientationsensor.cpp:58
Mode
Sensor mode.
Definition: axisorientationsensor.h:36
virtual void init(Primitive *own, Joint *joint=0)
initialises sensor with a body of robot and optionally with a joint.
Definition: axisorientationsensor.cpp:39
Class for sensing the axis orienation of a primitive (robot)
Definition: axisorientationsensor.h:33
AxisOrientationSensor(Mode mode, short dimensions=X|Y|Z)
Definition: axisorientationsensor.cpp:33
double sensor
Definition: types.h:29
virtual int getSensorNumber() const
returns the number of sensors values produced by this sensor
Definition: axisorientationsensor.cpp:43
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
Data structure holding all essential global information.
Definition: globaldata.h:57
Z axis (of robot) in word coordinates (relative to body center) (Dimensions select components of this...
Definition: axisorientationsensor.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: axisorientationsensor.cpp:60
virtual ~AxisOrientationSensor()
Definition: axisorientationsensor.h:50
z-component of each axis (Dimension select components of this vector)
Definition: axisorientationsensor.h:39