File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
include/nav2_behavior_tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ class BtServiceNode : public BT::SyncActionNode
8383 // The main override required by a BT service
8484 BT::NodeStatus tick () override
8585 {
86+ request_ = std::make_shared<typename ServiceT::Request>();
8687 on_tick ();
8788 auto future_result = service_client_->async_send_request (request_);
8889 return check_future (future_result);
@@ -91,7 +92,6 @@ class BtServiceNode : public BT::SyncActionNode
9192 // Fill in service request with information if necessary
9293 virtual void on_tick ()
9394 {
94- request_ = std::make_shared<typename ServiceT::Request>();
9595 }
9696
9797 // Check the future and decide the status of Behaviortree
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ class ClearEntireCostmapService : public BtServiceNode<nav2_msgs::srv::ClearEnti
3737
3838 void on_tick () override
3939 {
40- BtServiceNode::on_tick ();
4140 increment_recovery_count ();
4241 }
4342};
You can’t perform that action at this time.
0 commit comments