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

Public Member Functions

def __init__ (self, args, kwargs)
- Public Member Functions inherited from flexbe_core.core.lockable_state_machine.LockableStateMachine
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 Member Functions

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

Private Member Functions

def _preempt_cb (self, msg)
def _valid_targets (self)

Private Attributes


Static Private Attributes

string _preempted_name = 'preempted'

Additional Inherited Members

- Static Public Attributes inherited from flexbe_core.core.lockable_state_machine.LockableStateMachine
 path_for_switch = None

Detailed Description

A state machine that can be preempted.
If preempted, the state machine will return the outcome preempted.

Definition at line 10 of file

Constructor & Destructor Documentation

def flexbe_core.core.preemptable_state_machine.PreemptableStateMachine.__init__ (   self,

Definition at line 18 of file

Member Function Documentation

def flexbe_core.core.preemptable_state_machine.PreemptableStateMachine._preempt_cb (   self,

Definition at line 25 of file

def flexbe_core.core.preemptable_state_machine.PreemptableStateMachine._valid_targets (   self)

Definition at line 35 of file

def flexbe_core.core.preemptable_state_machine.PreemptableStateMachine.add (   label,
  transitions = None,
  remapping = None 

Definition at line 30 of file

Member Data Documentation


Definition at line 21 of file

string flexbe_core.core.preemptable_state_machine.PreemptableStateMachine._preempted_name = 'preempted'

Definition at line 16 of file


Definition at line 22 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