-
Notifications
You must be signed in to change notification settings - Fork 278
Closed
Labels
Description
Bug report
- Installation type:
- Galactic Binaries
- Client library (if applicable):
rclpy
Steps to reproduce issue
self.declare_parameters(namespace="", parameters=[("param_name", "HelloWorld", ParameterDescriptor(type=ParameterType.PARAMETER_BOOL, description="a parameter"))])
Expected behavior
Exception or Warning that the given type in the ParameterDescriptor does not fit to the type of the value.
Actual behavior
ParameterDescription.type is ignored, parameter-type is deduced from value (-> string-parameter)
Feature request
Feature description
Raise an InvalidParameterValueException
Implementation considerations
Could break existing code but fixing the value-type mismatch is easy
Reactions are currently unavailable