flexbe_states.operator_decision_state module

OperatorDecisionState.

class flexbe_states.operator_decision_state.OperatorDecisionState(*args: Any, **kwargs: Any)

Bases: EventState

Implements a state where the operator has to manually choose an outcome.

Autonomy Level of all outcomes should be set to Full, because this state is not able to choose an outcome on its own. Only exception is the suggested outcome, which will be returned immediately by default. This state can be used to create alternative execution paths by setting the suggestion to High autonomy instead of Full.

– outcomes string[] A list of all possible outcomes of this state. – hint string Text displayed to the operator to give instructions how to decide. – suggestion string The outcome which is suggested.

Will be returned if the level of autonomy is high enough.

execute(userdata)

Execute until operator defines outcome.

on_enter(userdata)

Call on entering state, and published suggested hint.