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

Ok, found an even easier way: directly changing the config_description attribute of the dynamic reconfigurable type before creating the server. The server then reads the changed enum description and correctly advertises the desired set of possible values.

I'm not sure about how it works with C++ clients, but both rqt_reconfigure and dynparam CLI work without problems for getting and setting parameter values. And since dynparam is a Python script, I assume the Python client has also no problems.

Here's a simple implementation (not considering parameter groups): https://gist.github.com/peci1/912549b79fd6e8801023