Skip to content

SetParameter, PushNamespace, SetRemap from commandline #500

@emersonknapp

Description

@emersonknapp

Description

A common pattern: SetParameter('use_sim_time'), SetRemap('/some_topic', '/other_topic'), or PushROSNamespace('something') right before including another launchfile.

Motivation

For interactive use and testing, it would be an ergonomic improvement to have launch_ros expose these things to the CLI so that somebody could ros2 launch my_launchfile.yaml --set-param use_sim_time:=True without having to have every single launchfile in existence expose an argument to let us do that.

Design / Implementation Considerations

Provide an entrypoint for ros2launch to allow adding additional arguments from launch extension packages? Maybe this already even exists?

Perhaps the Action itself can add an extra decorator to expose itself to the CLI, like the @expose_action decorator

Additional Information

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions