Skip to content

Commit

Permalink
fix: change to RCLCPP_ERROR
Browse files Browse the repository at this point in the history
Signed-off-by: badai-nguyen <dai.nguyen@tier4.jp>
  • Loading branch information
badai-nguyen committed Oct 3, 2024
1 parent b5dbabf commit 1416bfb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,11 @@ class VoxelGridDynamicMapLoader : public VoxelGridMapLoader
map_grid_size_x_ = map_cell_to_add.metadata.max_x - map_cell_to_add.metadata.min_x;
map_grid_size_y_ = map_cell_to_add.metadata.max_y - map_cell_to_add.metadata.min_y;
if (map_grid_size_x_ > max_map_grid_size_ || map_grid_size_y_ > max_map_grid_size_) {
throw std::runtime_error(
"Map was not split or split map grid size is too large. Split map with smaller grid.");
RCLCPP_ERROR(
logger_,
"Map was not split or split map grid size is too large. Split map with grid size smaller "
"than %f",
max_map_grid_size_);
}

origin_x_remainder_ = std::remainder(map_cell_to_add.metadata.min_x, map_grid_size_x_);
Expand Down

0 comments on commit 1416bfb

Please sign in to comment.