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

how to use "rosparam load" to set specified namespace parameter?

asked 2017-02-20 19:59:27 -0600

Tomas yuan gravatar image

updated 2017-02-20 20:01:14 -0600

for example , l creat a node which namespace is robot .Then I try to change some parameters in this node . so l create a xxx.yaml ,and set some parameters' values. And then in the xxx.launch ,I add this line <rosparam command="load " file="$(find xxx)/xxx.yaml"/>, but the parameter doesn't change.

I wonder if there someting should be added in the yaml (ps: I just set values in the yaml ,like "wheel_radius : 0.2" ,and write "using namespace robot " ) ? Or the namespace should be set in some rules ? please help

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-03-31 07:12:19 -0600

James NT gravatar image

updated 2021-03-31 08:48:19 -0600

gvdhoorn gravatar image

Here is an example of a rosparam command from one of my launch files:

<rosparam command="load" file="$(find arm)/cfg/arm_calibration.yaml" ns="/calibration/arm" />

Note the namespace tag "ns"

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-02-20 19:59:27 -0600

Seen: 1,768 times

Last updated: Mar 31 '21