maslab.orc
Class UltrasoundRangeSensor
java.lang.Object
maslab.orc.UltrasoundRangeSensor
- All Implemented Interfaces:
- RangeSensor
public class UltrasoundRangeSensor
- extends java.lang.Object
- implements RangeSensor
Orc wrapper for ultrasound range sensors.
Method Summary |
double |
getArcAngle()
The rough interior angle of the arc upon which an object might
lie, in radians. |
double |
getRange()
Distance that the sensor currently is measuring, in meters. |
double |
getRangeUncertainty()
Variance of the sensor's current measurement. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rangeVariance
public double rangeVariance
arcAngle
public double arcAngle
UltrasoundRangeSensor
public UltrasoundRangeSensor(Orc orc,
int port)
getRange
public double getRange()
- Description copied from interface:
RangeSensor
- Distance that the sensor currently is measuring, in meters.
- Specified by:
getRange
in interface RangeSensor
getRangeUncertainty
public double getRangeUncertainty()
- Description copied from interface:
RangeSensor
- Variance of the sensor's current measurement. Compute square
root for standard deviation.
- Specified by:
getRangeUncertainty
in interface RangeSensor
getArcAngle
public double getArcAngle()
- Description copied from interface:
RangeSensor
- The rough interior angle of the arc upon which an object might
lie, in radians. In general, can be a function of the sensor's
current measurement.
- Specified by:
getArcAngle
in interface RangeSensor