-
Notifications
You must be signed in to change notification settings - Fork 522
Closed
Description
Bug report
When setting a parameter in the command line, which is outside of the limits, I get an error message that is not correctly formatted:
terminate called after throwing an instance of 'rclcpp::exceptions::InvalidParameterValueException'
what(): parameter 'ExposureTime' could not be set: Parameter {} doesn't comply with integer range.
I assume that {} is supposed to be something else, e.g. contain the value.
Required Info:
- Operating System: Ubuntu 20.04
- Installation type: binary
- Version or commit hash: galactic
- Client library (if applicable): rclcpp
Steps to reproduce issue
- declare a parameter with bounds:
declare_parameter("ExposureTime", default_value, param_descr);whereparam_descris aParameterDescriptorwith integer bounds, e.g. (400 ... 20000). - initialise the parameter outside of the bounds, e.g.
--ros-args -p ExposureTime:=300
Expected behavior
The exception should contain a useful error message.
Actual behavior
Parameter {} doesn't comply with integer range. does not make sense to me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels