Public Member Functions | |
def | __init__ (self, predicate) |
def | execute (self, userdata) |
def | on_enter (self, userdata) |
Private Attributes | |
_outcome | |
_predicate | |
Checks if the given condition is true and returns the corresponding outcome. This state can be used if the further control flow of the behavior depends on a simple condition. -- predicate function The condition whose truth value will be evaluated. Has to expect one parameter which will be set to input_value and return a boolean. ># input_value object Input to the predicate function. <= true Returned if the condition evaluates to True <= false Returned if the condition evaluates to False
Definition at line 12 of file check_condition_state.py.
def flexbe_states.check_condition_state.CheckConditionState.__init__ | ( | self, | |
predicate | |||
) |
Constructor
Definition at line 28 of file check_condition_state.py.
def flexbe_states.check_condition_state.CheckConditionState.execute | ( | self, | |
userdata | |||
) |
Execute this state
Definition at line 37 of file check_condition_state.py.
def flexbe_states.check_condition_state.CheckConditionState.on_enter | ( | self, | |
userdata | |||
) |
Definition at line 43 of file check_condition_state.py.
|
private |
Definition at line 34 of file check_condition_state.py.
|
private |
Definition at line 33 of file check_condition_state.py.