Enum Class HumanVsMachineState
- All Implemented Interfaces:
Serializable, Comparable<HumanVsMachineState>, Constable, FsmState<HumanVsMachineState, xbot.common.logic.HumanVsMachinePayload>
public enum HumanVsMachineState
extends Enum<HumanVsMachineState>
implements FsmState<HumanVsMachineState, xbot.common.logic.HumanVsMachinePayload>
The states of
HumanVsMachineDecider's internal state machine, in the order control moves through them:
RobotDisabled while the robot is disabled, InitializeMachineControl for exactly one cycle after
control returns to automatic (before anything else has a chance to run), MachineControl while running
automatically, HumanControl while a human is actively providing input above the deadband, and Coast
for a brief grace period after human input stops, before handing back to InitializeMachineControl.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final FsmHook<HumanVsMachineState, xbot.common.logic.HumanVsMachinePayload> The machine-wide preemption conditions that can redirect out of any state, regardless of which one is currently active: the robot being disabled, and active human input. -
Method Summary
Modifier and TypeMethodDescriptionstatic HumanVsMachineStateReturns the enum constant of this class with the specified name.static HumanVsMachineState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RobotDisabled
-
InitializeMachineControl
-
MachineControl
-
HumanControl
-
Coast
-
-
Field Details
-
globalTransitions
public static final FsmHook<HumanVsMachineState, xbot.common.logic.HumanVsMachinePayload> globalTransitionsThe machine-wide preemption conditions that can redirect out of any state, regardless of which one is currently active: the robot being disabled, and active human input. Pass this as theFiniteStateMachine'sbeforeHook.
-
-
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
-