Skip to content

Commit

Permalink
chore(map_height_fitter): set log level of debug printing to DEBUG (#…
Browse files Browse the repository at this point in the history
…5997)

Signed-off-by: Takayuki Murooka <[email protected]>
  • Loading branch information
takayuki5168 authored Jan 5, 2024
1 parent 764482f commit 67080aa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions map/map_height_fitter/src/map_height_fitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,19 @@ bool MapHeightFitter::Impl::get_partial_point_cloud_map(const Point & point)
req->area.center_y = point.y;
req->area.radius = 50;

RCLCPP_INFO(logger, "Send request to map_loader");
RCLCPP_DEBUG(logger, "Send request to map_loader");
auto future = cli_map_->async_send_request(req);
auto status = future.wait_for(std::chrono::seconds(1));
while (status != std::future_status::ready) {
RCLCPP_INFO(logger, "waiting response");
RCLCPP_DEBUG(logger, "waiting response");
if (!rclcpp::ok()) {
return false;
}
status = future.wait_for(std::chrono::seconds(1));
}

const auto res = future.get();
RCLCPP_INFO(
RCLCPP_DEBUG(
logger, "Loaded partial pcd map from map_loader (grid size: %lu)",
res->new_pointcloud_with_ids.size());

Expand Down Expand Up @@ -168,7 +168,7 @@ std::optional<Point> MapHeightFitter::Impl::fit(const Point & position, const st
const auto logger = node_->get_logger();
tf2::Vector3 point(position.x, position.y, position.z);

RCLCPP_INFO(logger, "original point: %.3f %.3f %.3f", point.getX(), point.getY(), point.getZ());
RCLCPP_DEBUG(logger, "original point: %.3f %.3f %.3f", point.getX(), point.getY(), point.getZ());

if (cli_map_) {
if (!get_partial_point_cloud_map(position)) {
Expand All @@ -193,7 +193,7 @@ std::optional<Point> MapHeightFitter::Impl::fit(const Point & position, const st
return std::nullopt;
}

RCLCPP_INFO(logger, "modified point: %.3f %.3f %.3f", point.getX(), point.getY(), point.getZ());
RCLCPP_DEBUG(logger, "modified point: %.3f %.3f %.3f", point.getX(), point.getY(), point.getZ());

Point result;
result.x = point.getX();
Expand Down

0 comments on commit 67080aa

Please sign in to comment.