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

I did not find a satisfying answer in other threads. So i am writing one here if somebody still requires it.

So the "level" parameter is a int variable, where each bit can be representing a reconfigurable parameter. For example if i have 3 parameters, level value can be set to "0,1,2" for the 3 parameters in the cfg file.so the 0,1,2 bits of variable "level" will be set depending on what parameter has been changed in rqt reconfigure. If parameter1 has been changed, the corresponding bit in the "level" will be set to 1.

This variable "level" is passed in the reconfigure callback. So we know which variable is changed, and update accordingly, instead of updating all of them. Hope this explains it. If any improvements to be made please comment.