ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
2021-12-27 05:38:46 -0500 | received badge | ● Famous Question (source) |
2021-12-27 05:38:46 -0500 | received badge | ● Notable Question (source) |
2016-01-16 07:51:48 -0500 | received badge | ● Popular Question (source) |
2015-11-05 18:32:30 -0500 | asked a question | dynamic_reconfigure Interface Hi, First of all, Im new to ROS and to this forum so please dont be too harsh on me:D To my problem: I want to create a dynamic_reconfigure interface. I thought about an IReconfigurable interface from which other classes can inherit. In such a class all the user should do is calling a function like linkParam(string paramName, int* memberVariable) so that the class member "memberVariable" changes automatically whenever the parameter with the name "paramName" changes. (...or a IReconfigurable class has a params struct, which is always up to date or whatever...) Lets say the user has set parameters in the cfg file and wants a new one. He should be able to add a parameter to the cfg file(of course creating the config header, too) and the system should do the rest. All I get from the callback function, however, is a config variable( and a useless levels variable) from which I can access the parameters. But when the user adds a new parameter I need to adjust the callback function, too, because I need to hardcode these accesses. The user shouldnt be concerned about what happens in the background, though. Is there any way to do this?:) |