Skip to content

Commit

Permalink
Some whitespace modifications to make the code pass release_test
Browse files Browse the repository at this point in the history
  • Loading branch information
janx8r committed Jan 25, 2022
1 parent 26c7d21 commit 570bf02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nav2_voxel_grid/include/nav2_voxel_grid/voxel_grid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,16 +233,16 @@ class VoxelGrid
return;
}
double scale, min_x0, min_y0, min_z0;
if(dist > 0.0){
if (dist > 0.0) {
scale = std::min(1.0, max_length / dist);

// Updating starting point to the point at distance min_length from the initial point
min_x0 = x0 + (x1 - x0) / dist * min_length;
min_y0 = y0 + (y1 - y0) / dist * min_length;
min_z0 = z0 + (z1 - z0) / dist * min_length;
}
// dist can be 0 if [x0, y0, z0]==[x1, y1, z1]. In this case only this voxel should be processed.
else{
} else {
// dist can be 0 if [x0, y0, z0]==[x1, y1, z1].
// In this case only this voxel should be processed.
scale = 1.0;
min_x0 = x0;
min_y0 = y0;
Expand Down

0 comments on commit 570bf02

Please sign in to comment.