
| Public Member Functions | |
| def | __init__ | 
| def | execute | 
| def | on_enter | 
| Private Attributes | |
| _calculation | |
| _calculation_result | |
| _input_keys | |
Implements a state that can perform a calculation based on multiple userdata inputs provided as a list to the calculation function.
        
-- calculation  function    The function that performs the desired calculation.
                                                        It could be a private function (self.foo) manually defined in a behavior's source code
                                                        or a lambda function (e.g., lambda x: x[0]^2 + x[1]^2).
-- input_keys   string[]    List of available input keys.
># input_keys   object[]    Input(s) to the calculation function as a list of userdata.
                                                        The individual inputs can be accessed as list elements (see lambda expression example).
#> output_value object      The result of the calculation.
<= done                     Indicates completion of the calculation.
Definition at line 12 of file flexible_calculation_state.py.
| def flexbe_states.flexible_calculation_state.FlexibleCalculationState.__init__ | ( | self, | |
| calculation, | |||
| input_keys | |||
| ) | 
Constructor
Definition at line 31 of file flexible_calculation_state.py.
| def flexbe_states.flexible_calculation_state.FlexibleCalculationState.execute | ( | self, | |
| userdata | |||
| ) | 
Execute this state
Definition at line 42 of file flexible_calculation_state.py.
| def flexbe_states.flexible_calculation_state.FlexibleCalculationState.on_enter | ( | self, | |
| userdata | |||
| ) | 
Definition at line 51 of file flexible_calculation_state.py.
Definition at line 31 of file flexible_calculation_state.py.
Definition at line 31 of file flexible_calculation_state.py.
Definition at line 31 of file flexible_calculation_state.py.