2 from flexbe_core
import EventState, Logger
7 Implements a state where the operator has to manually choose an outcome. 8 Autonomy Level of all outcomes should be set to Full, 9 because this state is not able to choose an outcome on its own. 10 Only exception is the suggested outcome, which will be returned immediately by default. 11 This state can be used to create alternative execution paths 12 by setting the suggestion to High autonomy instead of Full. 14 -- outcomes string[] A list of all possible outcomes of this state. 15 -- hint string Text displayed to the operator to give instructions how to decide. 16 -- suggestion string The outcome which is suggested. 17 Will be returned if the level of autonomy is high enough. 20 def __init__(self, outcomes, hint=None, suggestion=None):
21 super(OperatorDecisionState, self).
__init__(outcomes=outcomes)
30 if self.
_hint is not None:
31 Logger.loghint(self.
_hint)
def __init__(self, outcomes, hint=None, suggestion=None)
def on_enter(self, userdata)
def execute(self, userdata)