Skip to content

Commit

Permalink
update generic subscription
Browse files Browse the repository at this point in the history
Signed-off-by: Knese Karsten <karsten.knese@us.bosch.com>
  • Loading branch information
Karsten1987 committed Apr 14, 2020
1 parent 94288a3 commit 52a4bb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions iceoryx_ros2_bridge/src/generic_subscription.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ std::shared_ptr<rmw_serialized_message_t> GenericSubscription::create_serialized
}

void GenericSubscription::handle_message(
std::shared_ptr<void> & message, const rmw_message_info_t & message_info)
std::shared_ptr<void> & message, const rclcpp::MessageInfo & message_info)
{
(void) message_info;
auto typed_message = std::static_pointer_cast<rmw_serialized_message_t>(message);
Expand All @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions iceoryx_ros2_bridge/src/generic_subscription.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ class GenericSubscription : public rclcpp::SubscriptionBase
std::shared_ptr<rmw_serialized_message_t> create_serialized_message() override;

void handle_message(
std::shared_ptr<void> & message, const rmw_message_info_t & message_info) override;
std::shared_ptr<void> & 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<void> & message) override;

void return_serialized_message(std::shared_ptr<rmw_serialized_message_t> & 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)
Expand Down

0 comments on commit 52a4bb3

Please sign in to comment.