Description:
We would like to request a new feature in rqt_reconfigure to support integer parameters that have additional constraints defined in their parameter descriptor. Specifically, we propose adding support for defining constraints as a CSV-formatted string containing key-value pairs, where:
- Values (strings) are user-friendly labels displayed in the drop-down list.
- Keys (integers) are the actual values passed in parameter update calls.
Proposed Format in Parameter Descriptor:
The additional constraints can be provided as a CSV-formatted string:
0,value0
1,value1
2,value2
For example, a parameter could have constraints like:
"additional_constraints": "\n0,Low\n1,Medium\n2,High"
Expected Behavior in rqt_reconfigure:
- When an integer parameter has an
additional_constraints field formatted as a CSV string, rqt_reconfigure should render it as a drop-down list instead of a numeric input field.
- The drop-down list should display the Values (e.g., "Low", "Medium", "High").
- When the user selects an option,
rqt_reconfigure should send the corresponding integer value (e.g., 1, 2, or 3) in the parameter update request.
Use Case:
This feature would be particularly useful for defining categorical integer parameters, making them more user-friendly in rqt_reconfigure. Currently, users need to manually enter integer values without seeing their corresponding labels.
Description:
We would like to request a new feature in
rqt_reconfigureto support integer parameters that have additional constraints defined in their parameter descriptor. Specifically, we propose adding support for defining constraints as a CSV-formatted string containing key-value pairs, where:Proposed Format in Parameter Descriptor:
The additional constraints can be provided as a CSV-formatted string:
For example, a parameter could have constraints like:
Expected Behavior in
rqt_reconfigure:additional_constraintsfield formatted as a CSV string,rqt_reconfigureshould render it as a drop-down list instead of a numeric input field.rqt_reconfigureshould send the corresponding integer value (e.g.,1,2, or3) in the parameter update request.Use Case:
This feature would be particularly useful for defining categorical integer parameters, making them more user-friendly in
rqt_reconfigure. Currently, users need to manually enter integer values without seeing their corresponding labels.