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