Skip to content

Commit

Permalink
Fix thread include
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
  • Loading branch information
pablogs9 committed Jan 29, 2024
1 parent 8fdc506 commit 1427fb6
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions micro_ros_agent/src/agent/graph_manager/graph_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <string>
#include <utility>
#include <vector>
#include <thread>

namespace uros {
namespace agent {
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 1427fb6

Please sign in to comment.