Dynamic reconfigure and parameter namespaces in octomap_server
Hi, I'm improving the reconfigure server of the octomap_server
package. However, I am facing the problem that some of the parameters have a name space: sensor_model/max_range
for instance. In the reconfigure callback, this is not a huge problem as I added the following line to the .cfg
file:
gen.add("max_range", double_t, 0, "Sensor maximum range", -1.0, -1.0, 100)
And in the reconfigure callback:
m_maxRange = config.max_range;
Therefore I can work with the reconfigure server as usual. However, if I load any parameter with rosparam or through a launch file, the loaded value will not match with the dynamic reconfigure value. Is there any way to properly _link_ the max_range
parameter of the .cfg
to the corresponding name in the parameter server, sensor_model/max_range
?
Thank you.