From eac2daadd61737d85507b44dc13ad271d0868c31 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Mar 2024 18:09:44 +0000 Subject: [PATCH] style(pre-commit): autofix --- .../compare_map_segmentation/src/voxel_grid_map_loader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp b/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp index 0cf75d5aa4664..913cabe5a15af 100644 --- a/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp +++ b/perception/compare_map_segmentation/src/voxel_grid_map_loader.cpp @@ -242,7 +242,9 @@ bool VoxelGridMapLoader::is_in_voxel( const double dist_y = map->points.at(voxel_index).y - target_point.y; const double dist_z = map->points.at(voxel_index).z - target_point.z - 0.1; // check if the point is inside the distance threshold voxel - if(std::abs(dist_x) < distance_threshold && std::abs(dist_y) < distance_threshold && std::abs(dist_z) < distance_threshold * downsize_ratio_z_axis_){ + if ( + std::abs(dist_x) < distance_threshold && std::abs(dist_y) < distance_threshold && + std::abs(dist_z) < distance_threshold * downsize_ratio_z_axis_) { return true; } }