From 52a4bb3091bd8138f60d98b84b76adb93f7e088e Mon Sep 17 00:00:00 2001 From: Knese Karsten Date: Mon, 13 Apr 2020 18:55:36 -0700 Subject: [PATCH] update generic subscription Signed-off-by: Knese Karsten --- iceoryx_ros2_bridge/src/generic_subscription.cpp | 4 ++-- iceoryx_ros2_bridge/src/generic_subscription.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iceoryx_ros2_bridge/src/generic_subscription.cpp b/iceoryx_ros2_bridge/src/generic_subscription.cpp index 27c74ec..3a55162 100644 --- a/iceoryx_ros2_bridge/src/generic_subscription.cpp +++ b/iceoryx_ros2_bridge/src/generic_subscription.cpp @@ -69,7 +69,7 @@ std::shared_ptr GenericSubscription::create_serialized } void GenericSubscription::handle_message( - std::shared_ptr & message, const rmw_message_info_t & message_info) + std::shared_ptr & message, const rclcpp::MessageInfo & message_info) { (void) message_info; auto typed_message = std::static_pointer_cast(message); @@ -90,7 +90,7 @@ void GenericSubscription::return_serialized_message( void GenericSubscription::handle_loaned_message( void * loaned_message, - const rmw_message_info_t & message_info) + const rclcpp::MessageInfo & message_info) { (void) loaned_message; (void) message_info; diff --git a/iceoryx_ros2_bridge/src/generic_subscription.hpp b/iceoryx_ros2_bridge/src/generic_subscription.hpp index 2d2210d..d2eb2ef 100644 --- a/iceoryx_ros2_bridge/src/generic_subscription.hpp +++ b/iceoryx_ros2_bridge/src/generic_subscription.hpp @@ -72,7 +72,7 @@ class GenericSubscription : public rclcpp::SubscriptionBase std::shared_ptr create_serialized_message() override; void handle_message( - std::shared_ptr & message, const rmw_message_info_t & message_info) override; + std::shared_ptr & message, const rclcpp::MessageInfo & message_info) override; // Same as return_serialized_message() as the subscription is to serialized_messages only void return_message(std::shared_ptr & message) override; @@ -80,7 +80,7 @@ class GenericSubscription : public rclcpp::SubscriptionBase void return_serialized_message(std::shared_ptr & message) override; void handle_loaned_message( - void * loaned_message, const rmw_message_info_t & message_info) override; + void * loaned_message, const rclcpp::MessageInfo & message_info) override; private: RCLCPP_DISABLE_COPY(GenericSubscription)