Class RangeReading


  • public class RangeReading
    extends java.lang.Object
    Represent a single range reading
    • Constructor Summary

      Constructors 
      Constructor Description
      RangeReading​(float angle, float range)
      Create the reading
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getAngle()
      Get the angle of the range reading
      float getRange()
      Get the range reading
      boolean invalidReading()
      Test if reading is invalid
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RangeReading

        public RangeReading​(float angle,
                            float range)
        Create the reading
        Parameters:
        angle - the angle relative to the heading
        range - the range reading
    • Method Detail

      • getRange

        public float getRange()
        Get the range reading
        Returns:
        the range reading
      • getAngle

        public float getAngle()
        Get the angle of the range reading
        Returns:
        the angle relative to the robot heading
      • invalidReading

        public boolean invalidReading()
        Test if reading is invalid
        Returns:
        true iff the reading is invalid