From 0a1b093b865f06e9812c56d3fab4fe307beebede Mon Sep 17 00:00:00 2001 From: CihatAltiparmak Date: Sun, 19 Nov 2023 20:01:39 +0300 Subject: [PATCH] Add timeout to wait getting result --- behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp b/behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp index e12f62a..cdfb256 100644 --- a/behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp +++ b/behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp @@ -439,7 +439,7 @@ template inline prev_action_name_.c_str()); } - if (callback_group_executor_.spin_until_future_complete(future_result) != + if (callback_group_executor_.spin_until_future_complete(future_result, server_timeout_) != rclcpp::FutureReturnCode::SUCCESS) { RCLCPP_ERROR( node_->get_logger(), "Failed to get result call failed :( for [%s]",