Ask Your Question

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

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

postal gravatar image

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

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

1 Answer

Sort by ยป oldest newest most voted

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

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

Your Answer

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

Add Answer

Question Tools



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

Seen: 614 times

Last updated: Jan 18 '16