flexbe_states.check_condition_state module

class flexbe_states.check_condition_state.CheckConditionState(*args: Any, **kwargs: Any)

Bases: EventState

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

execute(userdata)
on_enter(userdata)