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

Revision history [back]

click to hide/show revision 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)