Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
flexbe_core.core.lockable_state_machine.LockableStateMachine Class Reference
Inheritance diagram for flexbe_core.core.lockable_state_machine.LockableStateMachine:
Inheritance graph

Public Member Functions

def __init__ (self, args, kwargs)
def execute (self, userdata)
def get_deep_state (self)
def get_locked_state (self)
def is_locked (self)
def is_locked_inside (self)
def lock (self, path)
def remove_state (self, state)
def replace_state (self, state)
def replace_userdata (self, userdata)
def transition_allowed (self, state, outcome)
def unlock (self, path)
- Public Member Functions inherited from flexbe_core.core.ros_state_machine.RosStateMachine
def __init__ (self, args, kwargs)
def wait (self, seconds=None, condition=None)
- Public Member Functions inherited from flexbe_core.core.state_machine.StateMachine
def __contains__ (self, label)
def __enter__ (self)
def __exit__ (self, args)
def __getitem__ (self, label)
def __init__ (self, args, kwargs)
def __iter__ (self)
def assert_consistent_transitions (self)
def current_state (self)
def current_state_label (self)
def execute (self, userdata)
def initial_state (self)
def initial_state_label (self)
def sleep (self)
def sleep_duration (self)
def spin (self, userdata=None)
def userdata (self)
- Public Member Functions inherited from flexbe_core.core.state.State
def __init__ (self, args, kwargs)
def execute (self, userdata)
def input_keys (self)
def name (self)
def outcomes (self)
def output_keys (self)
def parent (self)
def path (self)
def set_name (self, value)
def set_parent (self, value)
def sleep (self)
def sleep_duration (self)

Static Public Attributes

 path_for_switch = None

Private Member Functions

def _is_internal_transition (self, transition_target)

Private Attributes


Additional Inherited Members

- Static Public Member Functions inherited from flexbe_core.core.state_machine.StateMachine
def add (label, state, transitions, remapping=None)
def get_opened_container ()

Detailed Description

A state machine that can be locked.
When locked, no transition can be done regardless of the resulting outcome.
However, if any outcome would be triggered, the outcome will be stored
and the state won't be executed anymore until it is unlocked and the stored outcome is set.

Definition at line 5 of file

Constructor & Destructor Documentation

def flexbe_core.core.lockable_state_machine.LockableStateMachine.__init__ (   self,

Definition at line 14 of file

Member Function Documentation

def flexbe_core.core.lockable_state_machine.LockableStateMachine._is_internal_transition (   self,

Definition at line 29 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.execute (   self,

Definition at line 42 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.get_deep_state (   self)
Looks for the current state (traversing all state machines down to the real state).

@return: The current state (not state machine)

Definition at line 18 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.get_locked_state (   self)

Definition at line 101 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.is_locked (   self)

Definition at line 85 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.is_locked_inside (   self)

Definition at line 88 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.lock (   self,

Definition at line 67 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.remove_state (   self,

Definition at line 61 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.replace_state (   self,

Definition at line 55 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.replace_userdata (   self,

Definition at line 52 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.transition_allowed (   self,

Definition at line 32 of file

def flexbe_core.core.lockable_state_machine.LockableStateMachine.unlock (   self,

Definition at line 76 of file

Member Data Documentation


Definition at line 47 of file


Definition at line 16 of file


Definition at line 53 of file

flexbe_core.core.lockable_state_machine.LockableStateMachine.path_for_switch = None

Definition at line 12 of file

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

Author(s): Philipp Schillinger
autogenerated on Sun Dec 13 2020 04:01:39