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?:)
Can you clarify a bit how this would relate to rqt_reconfigure?