Open orzechow opened 6 years ago
Thanks @orzechow for reporting it.
Support special characters in the group name
Supporting special characters may be challenging as this would (maybe there is an alternative I'm not seeing) require stripping or substituting such characters and could en up in different groups in the same .cfg to collide as they would result in the same class name.
Add a description argument to
add_group
This sounds good to me. As this would likely break API we would need to make this feature available in ROS Melodic and later. For the existing ROS distributions (Indigo Kinetic and Lunar) we could check the name string when processing the cfg file to fail earlier with a better error message (such functions are already available and used for parameter names and description strings). https://github.com/ros/dynamic_reconfigure/blob/17e1d4bf6a538d2def097a7f70b139ccd41e9f78/src/dynamic_reconfigure/parameter_generator_catkin.py#L66-L76
See #97 for a a possible implementation of the suggested solution for existing ROS distributions
Special characters like "(" in the parameter group name break the build, but might be desirable to put a short description in brackets.
Example:
generates C++ classes named
FIELD_OF_VIEW_(RELATIVE_TO_VEHICLE_FRAME)
, which are obviously bad syntax.To serve the need for group descriptions (that show up in
rqt_reconfigure
for example), I see two possiblities:add_group