Skip to content

Commit 5ce4e96

Browse files
Merge pull request BehaviorTree#36 from RIF-Robotics/humble
fix onTick signature
2 parents b89dc19 + 68ea52e commit 5ce4e96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

btcpp_ros2_samples/src/subscriber_test.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ class ReceiveString: public RosTopicSubNode<std_msgs::msg::String>
1717
return {};
1818
}
1919

20-
NodeStatus onTick(const std::shared_ptr<std_msgs::msg::String>& last_msg) override
20+
NodeStatus onTick(const std::shared_ptr<std_msgs::msg::String> last_msg) override
2121
{
2222
if(last_msg) // empty if no new message received, since the last tick
2323
{
24-
RCLCPP_INFO(logger(), "New message: %s", last_msg->data.c_str());
24+
RCLCPP_INFO(logger(), "New message: %s", last_msg->data.c_str());
2525
}
2626
return NodeStatus::SUCCESS;
2727
}
@@ -60,4 +60,4 @@ int main(int argc, char **argv)
6060
}
6161

6262
return 0;
63-
}
63+
}

0 commit comments

Comments
 (0)