Skip to content

Commit 09eb346

Browse files
bi0ha2ardSteveMacenski
authored andcommitted
chore(nav2_behavior_tree): log actual wait period in bt_action_node (#4178)
Signed-off-by: Felix <[email protected]> Co-authored-by: Felix <[email protected]>
1 parent f0aea10 commit 09eb346

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
@@ -95,8 +95,9 @@ class BtActionNode : public BT::ActionNodeBase
9595
RCLCPP_DEBUG(node_->get_logger(), "Waiting for \"%s\" action server", action_name.c_str());
9696
if (!action_client_->wait_for_action_server(1s)) {
9797
RCLCPP_ERROR(
98-
node_->get_logger(), "\"%s\" action server not available after waiting for 1 s",
99-
action_name.c_str());
98+
node_->get_logger(), "\"%s\" action server not available after waiting for %f s",
99+
action_name.c_str(),
100+
wait_for_service_timeout_.count() / 1000.0);
100101
throw std::runtime_error(
101102
std::string("Action server ") + action_name +
102103
std::string(" not available"));

0 commit comments

Comments
 (0)