Enum Class HumanVsMachineState

java.lang.Object
java.lang.Enum<HumanVsMachineState>
xbot.common.logic.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.
  • Enum Constant Details

  • Field Details

    • globalTransitions

      public static final FsmHook<HumanVsMachineState, xbot.common.logic.HumanVsMachinePayload> globalTransitions
      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. Pass this as the FiniteStateMachine's beforeHook.
  • Method Details

    • values

      public static HumanVsMachineState[] 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 HumanVsMachineState 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