ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
All dynamically reconfigurable parameters through rqt can also be listed and updated through python API of dynamic_reconfigure package a simple tutorial can be found in the link below
http://wiki.ros.org/hokuyo_node/Tutorials/UsingDynparamToChangeHokuyoLaserParameters#PythonAPI
You simply get and set desired parameters as follows.
import dynamic_reconfigure.client
client = dynamic_reconfigure.client.Client(<node_to_reconfigure>, timeout = 10)
parameters = client.get_configuration()
params = { 'my_string_parameter' : 'value', 'my_int_parameter' : 5 }
config = client.update_configuration(params)