You should check this wiki that explains how to use the dynamic reconfigure python API. To detail what you need here :
Import the client :
import dynamic_reconfigure.client
Create a client instance of the node to reconfigure :
node_name=<node_to_reconfigure>
client = dynamic_reconfigure.client.Client(node_name)
Make sure to give the full name of the node if you have prefixes, the client will look for the service node_name/set_parameters
, you can check with rosservice list
the propper node name instead of using rosnode list
(if the dynamic reconfigure server has been created under another nodehandle for example).
And calling update_configuration
with a dictionary of changes to make :
#params = { 'my_string_parameter' : 'value', 'my_int_parameter' : 5 }
params = { 'max_vel_x' : 5.0 }
config = client.update_configuration(params)