public class RangeFinderAdapter extends AbstractFilter implements RangeFinder
Modifier and Type | Field and Description |
---|---|
private float[] |
buf |
sampleSize, source
Constructor and Description |
---|
RangeFinderAdapter(SampleProvider source) |
Modifier and Type | Method and Description |
---|---|
float |
getRange()
Get the range to the nearest object
|
float[] |
getRanges()
If the sensor is capable, this method returns multiple range values from a single scan.
|
fetchSample, sampleSize
public RangeFinderAdapter(SampleProvider source)
public float getRange()
RangeFinder
getRange
in interface RangeFinder
public float[] getRanges()
RangeFinder
getRanges
in interface RangeFinder