Skip to content

Commit

Permalink
put back whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
nachovizzo committed Jul 20, 2024
1 parent 86abc76 commit 86aafd4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cpp/kiss_icp/core/VoxelUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
#include <vector>

namespace kiss_icp {

using Voxel = Eigen::Vector3i;
inline Voxel PointToVoxel(const Eigen::Vector3d &point, const double voxel_size) {
return Voxel(static_cast<int>(std::floor(point.x() / voxel_size)),
static_cast<int>(std::floor(point.y() / voxel_size)),
static_cast<int>(std::floor(point.z() / voxel_size)));
}

/// Voxelize a point cloud keeping the original coordinates
std::vector<Eigen::Vector3d> VoxelDownsample(const std::vector<Eigen::Vector3d> &frame,
const double voxel_size);
Expand Down

0 comments on commit 86aafd4

Please sign in to comment.