From b2f8e48316206d6f97d8b14c424847dc5e3c56bc Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Wed, 3 Nov 2021 09:10:55 -0400 Subject: [PATCH] Use the message_introspection header to get MessageMember. There is no reason to forward-declare it ourselves; just use the header file that is provided. Signed-off-by: Chris Lalancette --- .../include/rosbag2_cpp/types/introspection_message.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/rosbag2_cpp/include/rosbag2_cpp/types/introspection_message.hpp b/rosbag2_cpp/include/rosbag2_cpp/types/introspection_message.hpp index 019fc376f3..de6cc2e1cf 100644 --- a/rosbag2_cpp/include/rosbag2_cpp/types/introspection_message.hpp +++ b/rosbag2_cpp/include/rosbag2_cpp/types/introspection_message.hpp @@ -20,15 +20,12 @@ #include "rcutils/allocator.h" #include "rcutils/time.h" +#include "rosidl_typesupport_introspection_cpp/message_introspection.hpp" + #include "rosbag2_cpp/visibility_control.hpp" struct rosidl_message_type_support_t; -namespace rosidl_typesupport_introspection_cpp -{ -struct MessageMembers; -} - namespace rosbag2_cpp {