#include <positionsensor.h>
Public Member Functions | |
| PositionSensor () | |
| virtual | ~PositionSensor () |
| virtual int | init (dBodyID body)=0 |
| initialises sensor with body of robot | |
| virtual bool | sense (const GlobalData &globaldata)=0 |
| performs sense action | |
| virtual list< double > | get ()=0 |
| returns a list of sensor values (usually in the range [0,1] ) | |
The sensor value is usually some kind of distance to some fixed object in space
| PositionSensor | ( | ) | [inline] |
| virtual ~PositionSensor | ( | ) | [inline, virtual] |
| virtual list<double> get | ( | ) | [pure virtual] |
returns a list of sensor values (usually in the range [0,1] )
| virtual int init | ( | dBodyID | body | ) | [pure virtual] |
initialises sensor with body of robot
| virtual bool sense | ( | const GlobalData & | globaldata | ) | [pure virtual] |
performs sense action
1.4.7