diff --git a/rclpy/rclpy/node.py b/rclpy/rclpy/node.py index 004b7a110..5b9c4c634 100644 --- a/rclpy/rclpy/node.py +++ b/rclpy/rclpy/node.py @@ -349,6 +349,9 @@ def declare_parameter( This method, if successful, will result in any callback registered with :func:`add_on_set_parameters_callback` to be called. + The name and type in the given descriptor is ignored, and should be specified using + the name argument to this function and the default value's type instead. + :param name: Fully-qualified name of the parameter, including its namespace. :param value: Value of the parameter to declare. :param descriptor: Descriptor for the parameter to declare. @@ -381,6 +384,8 @@ def declare_parameters( The tuples in the given parameter list shall contain the name for each parameter, optionally providing a value and a descriptor. + The name and type in the given descriptors are ignored, and should be specified using + the name argument to this function and the default value's type instead. For each entry in the list, a parameter with a name of "namespace.name" will be declared. The resulting value for each declared parameter will be returned, considering