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

How to use <rosparam> to change values from dwa_local_planner_params.yaml?

asked 2016-03-29 10:52:37 -0600

pgigioli gravatar image

I'm using a launch file that includes turtlebot_navigation gmapping_demo.launch and I want to set the values of certain move_base parameters. gmapping_demo.launch traces to move_base.launch.xml which traces to turtlebot_navigation/dwa_local_planner_params.yaml.

If I can "rosparam get" the parameter that I want to change, how can I set that parameter inside of my launch file that I created?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-29 11:04:53 -0600

pgigioli gravatar image

Figured it out. Since these parameters are global parameters, you can just use "rosparam list" to find the parameter you want to change, (in my case it was /move_base/DWAPlannerROS/max_vel_x), and then add:

<param name="/move_base/DWAPlannerROS/max_vel_x"  value="0.1"/>

to your launch file.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-03-29 10:52:37 -0600

Seen: 700 times

Last updated: Mar 29 '16