Ask Your Question
0

[ROS2] CLI Parameter remapping for launch file

asked 2020-10-23 03:19:19 -0600

Myzhar gravatar image

Hi all, I'm using ROS2 Eloquent. Is there a way to remap a parameter by command line using the $ ros2 launch command?

I explain it better: my launch file loads the parameters for my node from some YAML files, but sometimes I want to test other parameters without modifying the YAML file using some kind of CLI overload. I'd like to use something like we do in ROS1:

$ ros2 launch <my_package> <my_launch> param_name:=overloaded_value

I guess I can use Python arguments, but I do not know if there is a better way.

Thank you Walter

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-10-23 16:04:37 -0600

You can take an inspiration from Navigation2:
https://github.com/ros-planning/navig...

edit flag offensive delete link more

Comments

Interesting. Thank you

Myzhar gravatar image Myzhar  ( 2020-10-23 16:29:43 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-10-23 03:19:19 -0600

Seen: 448 times

Last updated: Oct 23 '20