Virtual Robot Racing League

Developer Center

VRRL
IGoalSensor Interface Reference

A directional sensor that detects the direction of the next goal More...

Inheritance diagram for IGoalSensor:
IRobotSensor

Public Member Functions

void GetEffectiveRange (out double min, out double max)
 Gets the minimum and maximum effective range of this sensor, outside of which the reading may become unavailable or unreliable More...
 
void GetDetectedOffsetToGoal (out double x, out double y, out double z)
 Gets the detected offset to the next goal point, relative to the robot's orientation 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 directional sensor that detects the direction of the next goal

Member Function Documentation

◆ GetDetectedOffsetToGoal()

void IGoalSensor.GetDetectedOffsetToGoal ( out double  x,
out double  y,
out double  z 
)

Gets the detected offset to the next goal point, relative to the robot's orientation

Parameters
xThe left-right offset to the goal point from the robot
yThe down-up offset to the goal point from the robot
zThe back-forward offset to the goal point from the robot

◆ GetEffectiveRange()

void IGoalSensor.GetEffectiveRange ( out double  min,
out double  max 
)

Gets the minimum and maximum effective range of this sensor, outside of which the reading may become unavailable or unreliable

Parameters
minThe minimum range of the sensor, in meters
maxThe maximum range of the sensor, in meters