Skip to content

Commit

Permalink
fix: build on jazzy
Browse files Browse the repository at this point in the history
  • Loading branch information
russkel committed Aug 12, 2024
1 parent 4ef0f32 commit bea72d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ros2/src/MetaPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,16 @@ class MetaSubscriber

_subscription = node.create_generic_subscription(
_topic_name, _message_type.name(), qos_profile,
[=](const std::shared_ptr<rclcpp::SerializedMessage>& msg) {
this->subscription_callback(msg);
[=](const std::shared_ptr<rclcpp::SerializedMessage> msg, const rclcpp::MessageInfo& message_info) {
this->subscription_callback(msg, message_info);
},
subscription_options);
}

private:

void subscription_callback(
const std::shared_ptr<rclcpp::SerializedMessage>& msg)
const std::shared_ptr<rclcpp::SerializedMessage> msg, [[maybe_unused]] const rclcpp::MessageInfo & message_info)
{
logger_ << utils::Logger::Level::DEBUG
<< "Receiving message from ROS 2 for topic '"
Expand Down

0 comments on commit bea72d1

Please sign in to comment.