5 from std_msgs.msg
import Empty
12 A state machine that can be preempted. 13 If preempted, the state machine will return the outcome preempted. 16 _preempted_name =
'preempted' 19 super(PreemptableStateMachine, self).
__init__(*args, **kwargs)
27 PreemptableState.preempt =
True 30 def add(label, state, transitions=None, remapping=None):
31 transitions[PreemptableState._preempted_name] = PreemptableStateMachine._preempted_name
32 LockableStateMachine.add(label, state, transitions, remapping)
36 return super(PreemptableStateMachine, self)._valid_targets + [PreemptableStateMachine._preempted_name]
def add(label, state, transitions=None, remapping=None)
def _preempt_cb(self, msg)
def __init__(self, args, kwargs)