Home | Trees | Indices | Help |
|
---|
|
Smach container interface.
This provides an interface for hooking into smach containers. This includes methods to get and set state, as well as provide start / transition / termination callback storage and registration utilities.
Note that it is up to the implementation of the containers both when the callbacks are called as well as what arguments are given to them.
Callback semantics:
Instance Methods | |||
|
|||
smach.State |
|
||
dict of string: State |
|
||
|
|||
list of string |
|
||
list of string |
|
||
list of 3-tuple |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
|
|||
Inherited from |
|||
Inherited from state.State | |||
---|---|---|---|
|
|||
|
|||
tuple of string |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Instance Variables | |
userdata Userdata to be passed to child states. |
Properties | |
Inherited from |
Method Details |
Constructor. Initializes callback lists (empty).
|
Access child state by key.
|
Get the children of this container. This is empty for leaf states.
|
Set initial active state of a container.
|
Get a description of the current state. Note that this is specific to container implementation.
|
Get the internal outcome edges of this container. Get a list of 3-tuples (OUTCOME, LABEL_FROM, LABEL_TO) which coresspond to transitions inside this container.
|
Adds a start callback to this container. Start callbacks receive arguments:
|
Adds a transition callback to this container. Transition callbacks receive arguments:
|
Adds a termination callback to this state machine. Termination callbacks receive arguments:
|
Calls the registered start callbacks. Callback functions are called with two arguments in addition to any user-supplied arguments:
|
Calls the registered transition callbacks. Callback functions are called with two arguments in addition to any user-supplied arguments:
|
Calls the registered termination callbacks. Callback functions are called with three arguments in addition to any user-supplied arguments:
|
Context manager method for opening a smach container.
|
Opens this container for modification. This appends the container to the construction stack and locks the reentrant lock if it is a valid container to open. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 11 10:11:57 2013 | http://epydoc.sourceforge.net |