3 from smach.state_machine
import StateMachine
5 from .preemptable_state_machine
import PreemptableStateMachine
12 A state machine that runs in background and does not report any transition. 16 super(SilentStateMachine, self).
__init__(*args, **kwargs)
23 def add(label, state, transitions = None, autonomy = None, remapping = None):
25 Add a state to the opened state machine. 28 @param label: The label of the state being added. 30 @param state: An instance of a class implementing the L{State} interface. 32 @param transitions: A dictionary mapping state outcomes to other state 33 labels or container outcomes. 35 @param autonomy: A dictionary mapping state outcomes to their required 36 autonomy level. Not relevant for this class. 38 @param remapping: A dictrionary mapping local userdata keys to userdata 39 keys in the container. 41 self = StateMachine._currently_opened_container()
44 if isinstance(state, LoopbackState):
45 transitions[LoopbackState._loopback_name] = label
47 StateMachine.add(label, state, transitions, remapping)
50 state.transitions = transitions
def __init__(self, args, kwargs)
def add(label, state, transitions=None, autonomy=None, remapping=None)