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 +}