#include <Sensor.h>
Typical examples are sonars and bumpers.
Public Methods | |
| virtual SensorLocation | getLocation ()=0 |
| Get the location of a sensor. | |
| virtual void | setLocation (SensorLocation)=0 |
| Set the location of a sensor. | |
| virtual double | getMeasurement ()=0 |
| Get the current measurement from a sensor. | |
|
|
Get the current measurement from a sensor. This value may be a distance measurement from a sonar, a boolean value or a pressure measurement from a bumber or just about anything else. The only restriction is that the value must be scalar. |
|
|
Set the location of a sensor. For statically mounted sensors, this method typically does nothing. But in cases like a scanning sonar, it might have a purpose. |