Repository navigation
Add yaml tags support - #1275
Conversation
|
Pulls: #1275 |
|
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 | ^~~~~~~~~~~~ |
Signed-off-by: Lei Liu <[email protected]>
Signed-off-by: Lei Liu <[email protected]>
Signed-off-by: Lei Liu <[email protected]>
Signed-off-by: Lei Liu <[email protected]>
Signed-off-by: Barry Xu <[email protected]>
Signed-off-by: Barry Xu <[email protected]>
Signed-off-by: Barry Xu <[email protected]>
1a13c6a to
3260817
Compare
|
Rebase was done. I rerun CI. ci_launcher ran: https://ci.ros2.org/job/ci_launcher/17582 |
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_TAGandYAML_FLOAT_TAGare supported.YAML_BINARY_TAG(tag:yaml.org,2002:binary) isn't support, which has been implemented at #1256.YAML_NULL_TAGandYAML_TIMESTAMP_TAGaren'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_TAGandYAML_MAP_TAG.Did you use Generative AI?
No
Additional Information
No