Skip to content

Commit e897e66

Browse files
committed
chore(nav2_behavior_tree): log actual wait period in bt_action_node
Signed-off-by: Felix <[email protected]>
1 parent 0897da9 commit e897e66

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nav2_behavior_tree/include/nav2_behavior_tree/bt_action_node.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ class BtActionNode : public BT::ActionNodeBase
9797
RCLCPP_DEBUG(node_->get_logger(), "Waiting for \"%s\" action server", action_name.c_str());
9898
if (!action_client_->wait_for_action_server(wait_for_service_timeout_)) {
9999
RCLCPP_ERROR(
100-
node_->get_logger(), "\"%s\" action server not available after waiting for 1 s",
101-
action_name.c_str());
100+
node_->get_logger(), "\"%s\" action server not available after waiting for %f s",
101+
action_name.c_str(),
102+
wait_for_service_timeout_.count() / 1000.0);
102103
throw std::runtime_error(
103104
std::string("Action server ") + action_name +
104105
std::string(" not available"));

0 commit comments

Comments
 (0)