ros_sugar.launch._lifecycle_transition
#
Module Contents#
Classes#
An action that simplifies execution of lifecycle transitions. |
API#
- class ros_sugar.launch._lifecycle_transition.LifecycleTransition(*, lifecycle_node_names: Iterable[launch.SomeSubstitutionsType], transition_ids: Iterable[Union[int, launch.SomeSubstitutionsType]], **kwargs)#
Bases:
launch.action.Action
An action that simplifies execution of lifecycle transitions.
- execute(context: launch.LaunchContext) Optional[List[launch.action.Action]] #
Execute the LifecycleTransition action.
:return Returns a list of actions to be executed to achieve specified transitions. These are EventHandlers and EventEmitters for ChangeState and StateTransition events of the nodes indicated.