ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

Use of RewrittenYaml in launch of nav2 stack and providing controller plugin params from a separate yaml file

asked 2020-11-24 23:43:08 -0500

Divyanshu gravatar image

I am creating a controller plugin for the nav2 stack. I have added the params of my controller plugin by replacing those of the DWB controller in the nav2_params.yaml file as per the tutorials. My plugin is working as expected. I want to now separate the params of my controller plugin from the rest of the nav2 params by providing them from a separate yaml file. When I traced the way in which the nav2 stack is launched from the nav2_bringup package, I noticed that RewrittenYaml is used in both the localization_launch.py and navigation_launch.py files.

I have two questions.
1) How can I provide the params of my controller plugin from a separate yaml file and the remaining params from another yaml file?

2) What is the use of RewrittenYaml and why is it used in the launch system?

I am using Ubuntu 20.04 with ROS2 Foxy

Thanks for the help in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-12-18 13:06:39 -0500

Michael Jeronimo gravatar image

Regarding the second question... Carl Delsey (from the Intel team; now at Amazon) originally wrote the parameter rewrite code. If I recall correctly, we needed to perform a global replacement on selective parameters, such as use_sim_time, and ended up having to write our own function to do that.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-11-24 23:27:03 -0500

Seen: 892 times

Last updated: Nov 24 '20