TractionSensorController Class Reference
The controller for traction sensor. More...
Inheritance diagram for TractionSensorController:

Public Member Functions | |
| TractionSensorController (World *world, const PhyJoint &j) | |
| Constructor. More... | |
| ~TractionSensorController () | |
| Destructor. More... | |
| wVector | traction () const |
| Returns the force applied on the joint. More... | |
| virtual void | update () |
| Updates sensor reading. More... | |
Public Member Functions inherited from SensorController | |
| SensorController (World *world) | |
| Constructor. More... | |
| virtual | ~SensorController () |
| Destructor. More... | |
| bool | isEnabled () |
| Returns true if the sensor is enabled. More... | |
| void | setEnabled (bool b) |
| Enables/Disables this sensor controller. More... | |
| World * | world () |
| Returns the world. More... | |
Public Member Functions inherited from Ownable | |
| Ownable () | |
| Constructor. More... | |
| virtual | ~Ownable () |
| Destructor. More... | |
| const QList< Owned > & | owned () const |
| Returns the list of objects owned by this one. More... | |
| Ownable * | owner () const |
| Returns the owner of this object. More... | |
| void | setOwner (Ownable *owner, bool destroy=true) |
| Sets the owner of this object. More... | |
Additional Inherited Members | |
Public Types inherited from Ownable | |
| typedef QList< Owned > | OwnedList |
| The type for the list of owned objects. More... | |
Detailed Description
The controller for traction sensor.
This class implements the controller for the traction sensor found e.g. on the MarXbot robot
Definition at line 667 of file sensorcontrollers.h.
Constructor & Destructor Documentation
| TractionSensorController | ( | World * | world, |
| const PhyJoint & | j | ||
| ) |
Constructor.
- Parameters
-
world the world in which we live j the joint where the traction sensor is attached
Definition at line 610 of file sensorcontrollers.cpp.
Destructor.
Definition at line 616 of file sensorcontrollers.cpp.
Member Function Documentation
| wVector traction | ( | ) | const |
Returns the force applied on the joint.
- Returns
- the force applied on the joint
Definition at line 625 of file sensorcontrollers.cpp.
References PhyJoint::getForceOnJoint().
|
virtual |
Updates sensor reading.
Implements SensorController.
Definition at line 620 of file sensorcontrollers.cpp.
The documentation for this class was generated from the following files:
- worldsim/include/sensorcontrollers.h
- worldsim/src/sensorcontrollers.cpp
Public Member Functions inherited from