Skip to content

Commit 77825f4

Browse files
committed
Add a release note about the new ros2 param YAML syntax.
Signed-off-by: Chris Lalancette <[email protected]>
1 parent aff20ed commit 77825f4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/Releases/Release-Humble-Hawksbill.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,13 @@ See https://github.com/ros2/ros2cli/pull/642 for more details.
284284
285285
ros2 param dump /my_node_name > my_node_name.yaml
286286
287+
``ros2 param set`` now accepts more YAML syntax
288+
"""""""""""""""""""""""""""""""""""""""""""""""
289+
290+
Previously, attempting to set a string like "off" to a parameter that was of string type did not work.
291+
That's because ``ros2 param set`` interprets the command-line arguments as YAML, and YAML considers "off" to be a boolean type.
292+
As of https://github.com/ros2/ros2cli/pull/684 , ``ros2 param set`` now accepts the YAML escape sequence of "!!str off" to ensure that the value is considered a string.
293+
287294
robot_state_publisher
288295
^^^^^^^^^^^^^^^^^^^^^
289296

0 commit comments

Comments
 (0)