Skip to content

Commit

Permalink
Clean-up unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyMerzlyakov committed Jul 20, 2021
1 parent d97bf55 commit dfbf4ba
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions nav2_voxel_grid/include/nav2_voxel_grid/voxel_grid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,9 @@ class VoxelGrid
double scale = std::min(1.0, max_length / dist);

// Updating starting point to the point at distance min_length from the initial point
double min_shift_x = dx / dist * min_length;
double min_shift_y = dy / dist * min_length;
double min_shift_z = dz / dist * min_length;
double min_x0 = x0 + min_shift_x;
double min_y0 = y0 + min_shift_y;
double min_z0 = z0 + min_shift_z;
double min_x0 = x0 + dx / dist * min_length;
double min_y0 = y0 + dy / dist * min_length;
double min_z0 = z0 + dz / dist * min_length;


unsigned int z_mask = ((1 << 16) | 1) << (unsigned int)min_z0;
Expand Down

0 comments on commit dfbf4ba

Please sign in to comment.