From 1427fb6246c46a0b5851a017ddc886abd80d895b Mon Sep 17 00:00:00 2001 From: Pablo Garrido Date: Mon, 29 Jan 2024 11:43:20 +0100 Subject: [PATCH] Fix thread include Signed-off-by: Pablo Garrido --- .../src/agent/graph_manager/graph_manager.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/micro_ros_agent/src/agent/graph_manager/graph_manager.cpp b/micro_ros_agent/src/agent/graph_manager/graph_manager.cpp index 8314955..b459264 100644 --- a/micro_ros_agent/src/agent/graph_manager/graph_manager.cpp +++ b/micro_ros_agent/src/agent/graph_manager/graph_manager.cpp @@ -21,6 +21,7 @@ #include #include #include +#include namespace uros { namespace agent { @@ -374,8 +375,8 @@ void GraphManager::add_datawriter( "rmw_fastrtps_cpp", participant_guid); const rmw_qos_profile_t qos_profile = fastdds_qos_to_rmw_qos(writer_qos); - graphCache_.add_entity(datawriter_gid, topic_name, type_name, - rosidl_get_zero_initialized_type_hash(), participant_gid, qos_profile, false); + graphCache_.add_entity(datawriter_gid, topic_name, + type_name, participant_gid, qos_profile, false); } void GraphManager::remove_datawriter( @@ -411,13 +412,8 @@ void GraphManager::add_datareader( "rmw_fastrtps_cpp", participant_guid); const rmw_qos_profile_t qos_profile = fastdds_qos_to_rmw_qos(reader_qos); - // TODO(acuadros95): Use typesupport to calculate type hash on micro-ROS and save and get it from reader_qos.user_data. - // Related PRs: - // https://github.com/ros2/rmw_dds_common/pull/70 - // https://github.com/ros2/rmw_fastrtps/pull/671 - // https://github.com/ros2/rmw_fastrtps/pull/680 - graphCache_.add_entity(datareader_gid, topic_name, type_name, - rosidl_get_zero_initialized_type_hash(), participant_gid, qos_profile, true); + graphCache_.add_entity(datareader_gid, topic_name, + type_name, participant_gid, qos_profile, true); } void GraphManager::remove_datareader(