24 #ifndef __TORQUESENSOR_H
25 #define __TORQUESENSOR_H
28 #include <ode-dbl/ode.h>
54 virtual std::list<sensor>
getList()
const;
55 virtual int get(
sensor* sensors,
int length)
const;
60 std::vector<sensor> values;
Class for sensing the torque that are applied to the joint by a motor.
Definition: torquesensor.h:37
virtual ~TorqueSensor()
Definition: torquesensor.cpp:39
double sensor
Definition: types.h:29
virtual void init(Primitive *own, Joint *joint=0)
the primitive is not required here, set it to NULL
Definition: torquesensor.cpp:42
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: torquesensor.cpp:55
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
TorqueSensor(double maxtorque=1.0, int avg=1)
Definition: torquesensor.cpp:33
virtual int getSensorNumber() const
returns the number of sensors values produced by this sensor
Definition: torquesensor.cpp:51
virtual std::list< sensor > getList() const
returns a list of sensor values (usually in the range [-1,1] ) This function should be overloaded...
Definition: torquesensor.cpp:98