Skip to content

Commit

Permalink
name and type in descriptor(s) is ignored via declare_parameter(s). (#…
Browse files Browse the repository at this point in the history
…957)

Signed-off-by: Tomoya Fujita <[email protected]>
Signed-off-by: Brian Chen <[email protected]>
  • Loading branch information
fujitatomoya authored and ihasdapie committed Jun 17, 2022
1 parent b7556f6 commit b90edf0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rclpy/rclpy/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b90edf0

Please sign in to comment.