6namespace RoboidControl {
A Sensor which can measure the distance to the nearest object.
Definition DistanceSensor.h:9
DistanceSensor()
Default constructor.
Definition DistanceSensor.cpp:3
float distance
Distance to the closest object.
Definition DistanceSensor.h:31
float triggerDistance
The distance at which ObjectNearby triggers.
Definition DistanceSensor.h:23
bool IsOn()
Indicate that an object is nearby.
Definition DistanceSensor.cpp:15
virtual float GetDistance()
Determine the distance to the nearest object.
Definition DistanceSensor.cpp:11
A sensor is a thing which can perform measurements in the environment.
Definition Sensor.h:9