Package com.crossbotics.ftchelper.drive
Enum Class RouteDriver.Result
- All Implemented Interfaces:
Serializable,Comparable<RouteDriver.Result>,Constable
- Enclosing class:
RouteDriver
How a route ended.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRouteDriver.cancel()was called.It reached the last point and heading.The odometry stopped working for more than 0.2 s: it cannot know where it is.It made no progress: pushing a wall, a box you did not list, or another robot.One line of the route took longer thanactionTimeoutSec. -
Method Summary
Modifier and TypeMethodDescriptionstatic RouteDriver.ResultReturns the enum constant of this class with the specified name.static RouteDriver.Result[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DONE
It reached the last point and heading. -
STALLED
It made no progress: pushing a wall, a box you did not list, or another robot. -
TIMED_OUT
One line of the route took longer thanactionTimeoutSec. -
NO_ODOMETRY
The odometry stopped working for more than 0.2 s: it cannot know where it is. -
CANCELLED
RouteDriver.cancel()was called.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-