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

check last parameter (rosparam)

asked 2022-05-09 12:50:29 -0500

naihart gravatar image

Im now working at rosparam. I have an exercise here where I have a node which prints the number and I can change the number with rosparam. The node can also run multiple times, the node will not run if the number given to that node is same as the previous node. Is there any API for rosparam in which I can check the value of the previous param?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-05-10 02:47:24 -0500

ljaniec gravatar image

I am not familiar with this type of function in ROS parameters, can this be solved by using a YAML file with a /list_of_used_nums and a dynamic_reconfigure if the node has to automatically pick up changes in the yaml file? dynamic_reconfigure can also be used to load a new configuration file for each new node.

Relevant sources:

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-05-09 12:50:29 -0500

Seen: 69 times

Last updated: May 10 '22