We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b89dc19 + 68ea52e commit 5ce4e96Copy full SHA for 5ce4e96
btcpp_ros2_samples/src/subscriber_test.cpp
@@ -17,11 +17,11 @@ class ReceiveString: public RosTopicSubNode<std_msgs::msg::String>
17
return {};
18
}
19
20
- NodeStatus onTick(const std::shared_ptr<std_msgs::msg::String>& last_msg) override
+ NodeStatus onTick(const std::shared_ptr<std_msgs::msg::String> last_msg) override
21
{
22
if(last_msg) // empty if no new message received, since the last tick
23
24
- RCLCPP_INFO(logger(), "New message: %s", last_msg->data.c_str());
+ RCLCPP_INFO(logger(), "New message: %s", last_msg->data.c_str());
25
26
return NodeStatus::SUCCESS;
27
@@ -60,4 +60,4 @@ int main(int argc, char **argv)
60
61
62
return 0;
63
-}
+}
0 commit comments