Class for sensing the torque that are applied the joint by a motor. More...
#include <torquesensor.h>
Inherits lpzrobots::Sensor.

Public Member Functions | |
| TorqueSensor (Joint *joint, double maxtorque=1.0) | |
| virtual | ~TorqueSensor () |
| virtual void | init (Primitive *own) |
| the primitive is not required here, set it to NULL | |
| virtual int | getSensorNumber () const |
| returns the number of sensors values produced by this sensor | |
| virtual bool | sense (const GlobalData &globaldata) |
| performs sense action | |
| virtual std::list< sensor > | get () const |
| returns a list of sensor values (usually in the range [0,1] ) This function should be overloaded. | |
Class for sensing the torque that are applied the joint by a motor.
The sensor value can be interpretedas a motor current.
| TorqueSensor | ( | Joint * | joint, | |
| double | maxtorque = 1.0 | |||
| ) |
| joint | the joint on which to measure the torques. | |
| maxtorque | at this torque the sensor value is 1. |
| ~TorqueSensor | ( | ) | [virtual] |
| std::list< sensor > get | ( | ) | const [virtual] |
returns a list of sensor values (usually in the range [0,1] ) This function should be overloaded.
Implements Sensor.
| int getSensorNumber | ( | ) | const [virtual] |
returns the number of sensors values produced by this sensor
Implements Sensor.
| void init | ( | Primitive * | own | ) | [virtual] |
the primitive is not required here, set it to NULL
Implements Sensor.
| bool sense | ( | const GlobalData & | globaldata | ) | [virtual] |
performs sense action
Implements Sensor.
1.6.3