Enum Class RouteDriver.Result

java.lang.Object
java.lang.Enum<RouteDriver.Result>
com.crossbotics.ftchelper.drive.RouteDriver.Result
All Implemented Interfaces:
Serializable, Comparable<RouteDriver.Result>, Constable
Enclosing class:
RouteDriver

public static enum RouteDriver.Result extends Enum<RouteDriver.Result>
How a route ended.
  • Enum Constant Details

    • DONE

      public static final RouteDriver.Result DONE
      It reached the last point and heading.
    • STALLED

      public static final RouteDriver.Result STALLED
      It made no progress: pushing a wall, a box you did not list, or another robot.
    • TIMED_OUT

      public static final RouteDriver.Result TIMED_OUT
      One line of the route took longer than actionTimeoutSec.
    • NO_ODOMETRY

      public static final RouteDriver.Result NO_ODOMETRY
      The odometry stopped working for more than 0.2 s: it cannot know where it is.
    • CANCELLED

      public static final RouteDriver.Result CANCELLED
  • Method Details

    • values

      public static RouteDriver.Result[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RouteDriver.Result valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null