Base class for SMACH states.
A SMACH state interacts with SMACH containers in two ways. The first
is its outcome identifier, and the second is the set of userdata
variables which it reads from and writes to at runtime. Both of these
interactions are declared before the state goes active (when its
execute()
method is called) and are checked during
construction.
|
__init__(self,
outcomes=[],
input_keys=[],
output_keys=[],
io_keys=[])
State constructor |
source code
|
|
|
|
|
register_outcomes(self,
new_outcomes)
Add outcomes to the outcome set. |
source code
|
|
tuple of str
|
|
|
|
|
|
|
get_registered_input_keys(self)
Get a tuple of registered input keys. |
source code
|
|
|
|
|
get_registered_output_keys(self)
Get a tuple of registered output keys. |
source code
|
|
|
request_preempt(self)
Sets preempt_requested to True |
source code
|
|
|
service_preempt(self)
Sets preempt_requested to False |
source code
|
|
|
recall_preempt(self)
Sets preempt_requested to False |
source code
|
|
|
preempt_requested(self)
True if a preempt has been requested. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|