Ask Your Question
0

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

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

Tomas yuan gravatar image

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

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 -0500

James NT gravatar image

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

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

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

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

Seen: 712 times

Last updated: Mar 31