Robotsystem of the Robot Group Leipzig: PositionSensor Class Reference

- Main Page
- Namespaces
- Classes
- Files
- Directories
- Examples

- Search for |

- Alphabetical List
- Class List
- Class Hierarchy
- Class Members

# PositionSensor Class Reference

Abstract class for Position-sensors. More...

`#include <positionsensor.h>`

List of all members.

## 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] )

## Detailed Description

Abstract class for Position-sensors.

The sensor value is usually some kind of distance to some fixed object in space

## Constructor & Destructor Documentation

PositionSensor | ( |  | ) | `[inline]`

virtual ~PositionSensor | ( |  | ) | `[inline, virtual]`

## Member Function Documentation

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

Returns:
  number of sensor values returned by get

virtual bool sense | ( | const GlobalData & | globaldata | ) | `[pure virtual]`

performs sense action

The documentation for this class was generated from the following file:

- positionsensor.h