Skip to content

Commit

Permalink
logger fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Dec 8, 2023
1 parent 28e56bd commit 2abfb45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions healthcheck_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class HealthCheckNode : public rclcpp::Node {
if (saveMapPeriod != 0s) {
if (elapsed_time > saveMapPeriod) {
if (save_map_client_->wait_for_service(SAVE_MAP_CONNECTION_TIMEOUT)) {
RCLCPP_DEBUG(get_logger(), "Service available");
RCLCPP_DEBUG(get_logger(), "/map_saver/save_map service available");
auto request = std::make_shared<nav2_msgs::srv::SaveMap::Request>();
request->free_thresh = 0.25;
request->occupied_thresh = 0.65;
Expand All @@ -89,7 +89,7 @@ class HealthCheckNode : public rclcpp::Node {
RCLCPP_WARN(get_logger(), "/map_saver/save_map service response didn't arrived");
}
} else {
RCLCPP_WARN(get_logger(), "/map_saver/save_map service unavailable");
RCLCPP_DEBUG(get_logger(), "/map_saver/save_map service unavailable");
}
}
}
Expand Down

0 comments on commit 2abfb45

Please sign in to comment.