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

Revision history [back]

This is the solution. First it is needed to create a clean configuration structure. It has a method to fetch de data from the parameter server explicitly.

ros::NodeHandle nh("/url/configureserver");
dynamic_reconfigure::Server<myconfig> configure_server(nh);

//some manual modifications of the configure server...

//then we want to fetch the data and call our update callback..

MyConfig current_parameter_server_config;
current_parameter_server_config.__fromServer__(nh);
configure_server.updateConfig(newconfig);

This is the solution. First it is needed to create a clean configuration structure. It has a method to fetch de data from the parameter server explicitly.

ros::NodeHandle nh("/url/configureserver");
dynamic_reconfigure::Server<myconfig> configure_server(nh);

//some manual modifications of the configure server...

//then we want to fetch the data and call our update callback..

MyConfig current_parameter_server_config;
current_parameter_server_config.__fromServer__(nh);
configure_server.updateConfig(newconfig);
configure_server.updateConfig(current_parameter_server_config);
click to hide/show revision 3
highlighting

This is the solution. First it is needed to create a clean configuration structure. It has a method to fetch de data from the parameter server explicitly.

ros::NodeHandle nh("/url/configureserver");
dynamic_reconfigure::Server<myconfig> dynamic_reconfigure::Server<MyConfig> configure_server(nh);

//some manual modifications of the configure server...

//then we want to fetch the data and call our update callback..

MyConfig current_parameter_server_config;
current_parameter_server_config.__fromServer__(nh);
configure_server.updateConfig(current_parameter_server_config);