Public Member Functions | Private Attributes | List of all members
flexbe_states.operator_decision_state.OperatorDecisionState Class Reference
Inheritance diagram for flexbe_states.operator_decision_state.OperatorDecisionState:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, outcomes, hint=None, suggestion=None)
 
def execute (self, userdata)
 
def on_enter (self, userdata)
 

Private Attributes

 _hint
 
 _my_outcomes
 
 _suggestion
 

Detailed Description

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.

Definition at line 11 of file operator_decision_state.py.

Constructor & Destructor Documentation

def flexbe_states.operator_decision_state.OperatorDecisionState.__init__ (   self,
  outcomes,
  hint = None,
  suggestion = None 
)
Constructor

Definition at line 25 of file operator_decision_state.py.

Member Function Documentation

def flexbe_states.operator_decision_state.OperatorDecisionState.execute (   self,
  userdata 
)
Execute this state

Definition at line 36 of file operator_decision_state.py.

def flexbe_states.operator_decision_state.OperatorDecisionState.on_enter (   self,
  userdata 
)

Definition at line 44 of file operator_decision_state.py.

Member Data Documentation

flexbe_states.operator_decision_state.OperatorDecisionState._hint
private

Definition at line 31 of file operator_decision_state.py.

flexbe_states.operator_decision_state.OperatorDecisionState._my_outcomes
private

Definition at line 33 of file operator_decision_state.py.

flexbe_states.operator_decision_state.OperatorDecisionState._suggestion
private

Definition at line 32 of file operator_decision_state.py.


The documentation for this class was generated from the following file:


flexbe_states
Author(s): Philipp Schillinger
autogenerated on Wed Jun 5 2019 21:52:08