launch_ros.actions.push_ros_namespace module

Module for the PushROSNamespace action.

class launch_ros.actions.push_ros_namespace.PushROSNamespace(*args: Any, **kwargs: Any)

Bases: Action

Action that pushes the ros namespace.

It’s automatically popped when used inside a scoped GroupAction. There’s no other way of popping it.

execute(context: launch.launch_context.LaunchContext)

Execute the action.

property namespace: List[launch.Substitution]

Getter for self.__namespace.

classmethod parse(entity: launch.frontend.Entity, parser: launch.frontend.Parser)

Return PushROSNamespace action and kwargs for constructing it.

launch_ros.actions.push_ros_namespace.expose_action(_)