From 68ea52eb486a33f0689631f693ffd8b1c1c8c3c7 Mon Sep 17 00:00:00 2001 From: Kevin DeMarco Date: Thu, 16 Nov 2023 23:05:06 -0500 Subject: [PATCH] fix onTick signature --- btcpp_ros2_samples/src/subscriber_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/btcpp_ros2_samples/src/subscriber_test.cpp b/btcpp_ros2_samples/src/subscriber_test.cpp index 648fcce..fc9112f 100644 --- a/btcpp_ros2_samples/src/subscriber_test.cpp +++ b/btcpp_ros2_samples/src/subscriber_test.cpp @@ -17,11 +17,11 @@ class ReceiveString: public RosTopicSubNode return {}; } - NodeStatus onTick(const std::shared_ptr& last_msg) override + NodeStatus onTick(const std::shared_ptr last_msg) override { if(last_msg) // empty if no new message received, since the last tick { - RCLCPP_INFO(logger(), "New message: %s", last_msg->data.c_str()); + RCLCPP_INFO(logger(), "New message: %s", last_msg->data.c_str()); } return NodeStatus::SUCCESS; } @@ -60,4 +60,4 @@ int main(int argc, char **argv) } return 0; -} \ No newline at end of file +}