Skip to content

Add yaml tags support - #1275

Merged
ahcorde merged 7 commits into
ros2:rollingfrom
Barry-Xu-2018:develop/topic-yaml_tag_full_support
Nov 24, 2025
Merged

ahcorde merged 7 commits into
ros2:rollingfrom
Barry-Xu-2018:develop/topic-yaml_tag_full_support

Conversation

@Barry-Xu-2018

Copy link
Copy Markdown
Contributor

Description

Address #1026

This PR is based on #1032 and modify some code.
To make Git operations more convenient, I am submitting this PR.

Is this user-facing behavior change?

Yes. New yaml tags are supported.
Now YAML_BOOL_TAG, YAML_STR_TAG, YAML_INT_TAG and YAML_FLOAT_TAG are supported.
YAML_BINARY_TAG (tag:yaml.org,2002:binary) isn't support, which has been implemented at #1256.

YAML_NULL_TAG and YAML_TIMESTAMP_TAG aren't supported. ROS parameter doesn't support these 2 types.
Sequences and maps in YAML files can be recognized by libyaml and are identified using event types, so they can be properly recognized even without explicitly writing these two tags --- YAML_SEQ_TAG and YAML_MAP_TAG.

Did you use Generative AI?

No

Additional Information

No

Comment thread rcl_yaml_param_parser/src/parse.c Resolved
@ahcorde
ahcorde requested a review from fujitatomoya November 19, 2025 17:27
@ahcorde

ahcorde commented Nov 21, 2025

Copy link
Copy Markdown
Contributor

Pulls: #1275
Gist: https://gist.githubusercontent.com/ahcorde/fcd58dce6ca5ff6185bf56e47c73dbb7/raw/b8439124f69290fcb7185ce0022b3a33bf74271b/ros2.repos
BUILD args: --packages-above-and-dependencies rcl_yaml_param_parser
TEST args: --packages-above rcl_yaml_param_parser
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17569

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@Barry-Xu-2018

Copy link
Copy Markdown
Contributor Author

The reason for the failure on Linux and Linux-aarch64 is a build failure. It is unrelated to this PR and is likely caused by the rcl package not including the new code. I think I should do rebase.

22:47:59 [  6%] Building CXX object CMakeFiles/rclcpp.dir/src/rclcpp/any_executable.cpp.o
22:47:59 In file included from /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/client.hpp:45,
22:47:59                  from /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/callback_group.hpp:24,
22:47:59                  from /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/any_executable.hpp:20,
22:47:59                  from /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/src/rclcpp/any_executable.cpp:15:
22:47:59 /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/node_interfaces/node_graph_interface.hpp:159:38: error: ‘rcl_service_endpoint_info_t’ does not name a type; did you mean ‘rcl_topic_endpoint_info_t’?
22:47:59   159 |   explicit ServiceEndpointInfo(const rcl_service_endpoint_info_t & info)
22:47:59       |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
22:47:59       |                                      rcl_topic_endpoint_info_t
22:47:59 /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/node_interfaces/node_graph_interface.hpp: In constructor ‘rclcpp::ServiceEndpointInfo::ServiceEndpointInfo(const int&)’:
22:47:59 /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/node_interfaces/node_graph_interface.hpp:160:21: error: request for member ‘node_name’ in ‘info’, which is of non-class type ‘const int’
22:47:59   160 |   : node_name_(info.node_name),
22:47:59       |                     ^~~~~~~~~
22:47:59 /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/node_interfaces/node_graph_interface.hpp:161:26: error: request for member ‘node_namespace’ in ‘info’, which is of non-class type ‘const int’
22:47:59   161 |     node_namespace_(info.node_namespace),
22:47:59       |                          ^~~~~~~~~~~~~~
22:47:59 /home/jenkins-agent/workspace/ci_linux/ws/src/ros2/rclcpp/rclcpp/include/rclcpp/node_interfaces/node_graph_interface.hpp:162:24: error: request for member ‘service_type’ in ‘info’, which is of non-class type ‘const int’
22:47:59   162 |     service_type_(info.service_type),
22:47:59       |                        ^~~~~~~~~~~~

@Barry-Xu-2018
Barry-Xu-2018 force-pushed the develop/topic-yaml_tag_full_support branch from 1a13c6a to 3260817 Compare November 24, 2025 02:17
@Barry-Xu-2018

Copy link
Copy Markdown
Contributor Author

Rebase was done. I rerun CI.

ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17582

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde
ahcorde merged commit b7d6d69 into ros2:rolling Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants