TractionSensorController Class Reference

The controller for traction sensor. More...

Inheritance diagram for TractionSensorController:

Public Member Functions

 TractionSensorController (World *world, const PhyJoint &j)
 Constructor.
 
 ~TractionSensorController ()
 Destructor.
 
wVector traction () const
 Returns the force applied on the joint.
 
virtual void update ()
 Updates sensor reading.
 
- Public Member Functions inherited from SensorController
 SensorController (World *world)
 Constructor.
 
virtual ~SensorController ()
 Destructor.
 
bool isEnabled ()
 Returns true if the sensor is enabled.
 
void setEnabled (bool b)
 Enables/Disables this sensor controller.
 
Worldworld ()
 Returns the world.
 
- Public Member Functions inherited from Ownable
 Ownable ()
 Constructor.
 
virtual ~Ownable ()
 Destructor.
 
const QList< Owned > & owned () const
 Returns the list of objects owned by this one.
 
Ownableowner () const
 Returns the owner of this object.
 
void setOwner (Ownable *owner, bool destroy=true)
 Sets the owner of this object.
 

Additional Inherited Members

- Public Types inherited from Ownable
typedef QList< OwnedOwnedList
 The type for the list of owned objects.
 

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 635 of file sensorcontrollers.h.

Constructor & Destructor Documentation

TractionSensorController ( World world,
const PhyJoint j 
)

Constructor.

Parameters
worldthe world in which we live
jthe 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().

void update ( )
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: