# externally set param on dynamic_reconfigure node

I can set a param on a node using rosparam on the command line or using rospy.set_param. However, I want to update my dynamic_reconfigure node with external scripts or nodes. Ideally, I want to set params on my dynamic_reconfigure node and have the change propagate to the rest of my sim. For example, I want to do:

rosparam set /my_dynrec_node/my_bool True


and see my_bool change in rqt_reconfigure and have my node emit /my_dynrec_node/parameter_updates. How can I do this?

I suspect this would involve calling dynamic_reconfigure::Server::updateConfig, but I don't see any mechanism for making this happen.

edit retag close merge delete

Are you talking about doing this programmatically or from the CLI? For dynamic_reconfigureable parameters, there is the dynparam command line utility. Does this already do what you want?
In addition: dynamic_reconfigure exposes a set of services. Those services can be called by any client.