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

Dynamic_reconfigure's .cfg file synchronization with parameter's changes

asked 2016-01-16 08:09:19 -0600

postal gravatar image

updated 2016-01-16 08:09:53 -0600

Hello folks!

I'm wondering is there a simple way to update your .cfg file (used by dynamic_reconfigure tool) with the changes you make during program run? So that each time you restart roscore, the parameter's server uploads the latest changes you put via rqt_reconfigure, without manually updating your .cfg file.

I found similar question regarding Rosparam package without certain solutions. So maybe somebody came up with it for Dynamic_reconfigure pack?

I would appreciate if you can provide your solution with roscpp.

Thank you in advance!

edit retag flag offensive close merge delete


I would really like to have that: a dynamic dynamic reconfigure, but the cfg has be compiled so it doesn't seem possible. I'm working on a system for dynamically creating a bunch of topics with types and mins, maxes, types and having an rqt gui get created for

lucasw gravatar image lucasw  ( 2016-01-18 11:28:51 -0600 )edit

Maybe it could save the parameters to a ~/.ros temp file, or be configured to load and save initial value params from a defined location.

lucasw gravatar image lucasw  ( 2016-01-18 11:30:38 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2016-01-18 11:33:50 -0600

lucasw gravatar image

I've loaded ros params that were in turn saved to disk by an earlier instance of the same node that upon init override the cfg provided defaults. There were some complications with exactly when the parameters ought to be set to prevent the cfg defaults from overriding. TBD put some more details in here later.

edit flag offensive delete link more


Thank you for your reply! Looking forward for your updates

postal gravatar image postal  ( 2016-02-23 02:54:55 -0600 )edit

I think I misunderstood dynamic reconfigure before, the params in the node namespace ought to override cfg defaults, so rosparam dump to yaml, followed by a load from the same yaml ought to work.

lucasw gravatar image lucasw  ( 2016-05-09 23:12:54 -0600 )edit

Question Tools



Asked: 2016-01-16 08:09:19 -0600

Seen: 746 times

Last updated: Jan 18 '16