Virtual Robot Racing League

Developer Center

VRRL
IDistanceSensor Interface Reference

A sensor to detect the distance to the nearest object more solid than air More...

Inheritance diagram for IDistanceSensor:
IRobotSensor IOrientedSensor IRobotSensor

Public Member Functions

double GetDistance ()
 Gets the distance from the source of the sensor, along the beam line More...
 
- Public Member Functions inherited from IOrientedSensor
SensorOrientations GetOrientation ()
 Gets the orientation of this sensor More...
 
void GetCustomOrientation (out double x, out double y, out double z)
 Gets a unit vector representing the custom orientation (if GetOrientation() returns SensorOrientations.Custom) The vector will be relative to the orientation of the robot More...
 

Additional Inherited Members

- Properties inherited from IRobotSensor
IRobotExplorer Robot [get]
 The robot this sensor is attached to More...
 
int SensorIndex [get]
 The index of this sensor in the robot's list of sensors More...
 

Detailed Description

A sensor to detect the distance to the nearest object more solid than air

Member Function Documentation

◆ GetDistance()

double IDistanceSensor.GetDistance ( )

Gets the distance from the source of the sensor, along the beam line

Returns
The detected distance in meters