diff --git a/nav2_behavior_tree/include/nav2_behavior_tree/bt_action_server_impl.hpp b/nav2_behavior_tree/include/nav2_behavior_tree/bt_action_server_impl.hpp index 0944e7a3db..d89fa990f5 100644 --- a/nav2_behavior_tree/include/nav2_behavior_tree/bt_action_server_impl.hpp +++ b/nav2_behavior_tree/include/nav2_behavior_tree/bt_action_server_impl.hpp @@ -312,18 +312,18 @@ void BtActionServer::executeCallback() switch (rc) { case nav2_behavior_tree::BtStatus::SUCCEEDED: - RCLCPP_INFO(logger_, "Goal succeeded"); action_server_->succeeded_current(result); + RCLCPP_INFO(logger_, "Goal succeeded"); break; case nav2_behavior_tree::BtStatus::FAILED: - RCLCPP_ERROR(logger_, "Goal failed"); action_server_->terminate_current(result); + RCLCPP_ERROR(logger_, "Goal failed"); break; case nav2_behavior_tree::BtStatus::CANCELED: - RCLCPP_INFO(logger_, "Goal canceled"); action_server_->terminate_all(result); + RCLCPP_INFO(logger_, "Goal canceled"); break; }