launch_ros.actions.set_remap module

Module for the SetRemap action.

class launch_ros.actions.set_remap.SetRemap(*args: Any, **kwargs: Any)

Bases: Action

Action that sets a remapping rule in the current context.

This remapping rule will be passed to all the nodes launched in the same scope, overriding the ones specified in the Node action constructor. e.g.: ```python3

LaunchDescription([

…, GroupAction(

actions = [

…, SetRemap(src=’asd’, dst=’bsd’), …, Node(…), // the remap rule will be passed to this node …,

]

), Node(…), // here it won’t be passed, as it’s not in the same scope …

])

```

property dst: List[launch.Substitution]

Getter for dst.

execute(context: launch.launch_context.LaunchContext)

Execute the action.

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

Return SetRemap action and kwargs for constructing it.

property src: List[launch.Substitution]

Getter for src.

launch_ros.actions.set_remap.expose_action(_)