dynamic_reconfigure Interface

asked 2015-11-05 18:11:25 -0600

Tomsen1410 gravatar image

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?:)

edit retag flag offensive close merge delete

Comments

Can you clarify a bit how this would relate to rqt_reconfigure?

gvdhoorn gravatar image gvdhoorn  ( 2015-11-06 04:06:52 -0600 )edit