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

How to I list a shared parameter to a node

asked 2011-04-06 02:58:39 -0600

Markus Bader gravatar image

updated 2011-04-06 17:33:33 -0600

tfoote gravatar image

I like to list all shared parameter of a node

edit retag flag offensive close merge delete

Comments

A node can have private parameters relative to its own namespace. What do you mean by "shared"? Not private? In some other namespace?
joq gravatar image joq  ( 2011-04-07 02:34:50 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2011-04-06 03:00:00 -0600

Markus Bader gravatar image

updated 2011-04-06 17:33:54 -0600

tfoote gravatar image

replace NODENAME with your note

for i in rosparam list | grep NODENAME; do echo -ne "$i \t"; rosparam get $i; echo -e "";done

edit flag offensive delete link more
0

answered 2011-04-07 02:43:29 -0600

joq gravatar image

If you just want the names or values of private parameters that are currently defined for a node, rosparam can provide them directly:

$ rosparam list /roslaunch
/roslaunch/uris/host_vision_4__34552

$ rosparam get /roslaunch
uris: {host_vision_4__34552: 'http://vision-4:34552/'}

Replace the /roslaunch above with your desired node name.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-04-06 02:58:39 -0600

Seen: 613 times

Last updated: Apr 07 '11