Class RangeFinderAdapter

    • Constructor Detail

      • RangeFinderAdapter

        public RangeFinderAdapter​(SampleProvider source)
    • Method Detail

      • getRange

        public float getRange()
        Description copied from interface: RangeFinder
        Get the range to the nearest object
        Specified by:
        getRange in interface RangeFinder
        Returns:
        the distance to the nearest object
      • getRanges

        public float[] getRanges()
        Description copied from interface: RangeFinder
        If the sensor is capable, this method returns multiple range values from a single scan. Sensors that can only return a single value should return an array containing a single value.
        Specified by:
        getRanges in interface RangeFinder
        Returns:
        an array of ranges, ordered from closest to farthest.