Skip to content

Commit ff73f8e

Browse files
Merge pull request #40 from umdlife/hotfix/add-timeout-on-spin
Add timeout on spin to avoid infinite loop
2 parents d701cc8 + dacf3a9 commit ff73f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

behaviortree_ros2/include/behaviortree_ros2/bt_action_node.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ template<class T> inline
439439
prev_action_name_.c_str());
440440
}
441441

442-
if (callback_group_executor_.spin_until_future_complete(future_result) !=
442+
if (callback_group_executor_.spin_until_future_complete(future_result, server_timeout_) !=
443443
rclcpp::FutureReturnCode::SUCCESS)
444444
{
445445
RCLCPP_ERROR( node_->get_logger(), "Failed to get result call failed :( for [%s]",

0 commit comments

Comments
 (0)