Skip to content

Commit

Permalink
Try to fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
tizianoGuadagnino committed Aug 1, 2024
1 parent 0249200 commit 6220a49
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/kiss_icp/core/VoxelHashMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ void VoxelHashMap::AddPoints(const std::vector<Eigen::Vector3d> &points) {
auto search = map_.find(voxel);
if (search != map_.end()) {
auto &voxel_points = search.value();
if (voxel_points.size() == max_points_per_voxel_ or
std::any_of(voxel_points.cbegin(), voxel_points.cend(),
[&](const auto &voxel_point) {
return (voxel_point - point).norm() < map_resolution;
})) {
if ((voxel_points.size() == max_points_per_voxel_) or
(std::any_of(voxel_points.cbegin(), voxel_points.cend(),
[&](const auto &voxel_point) {
return (voxel_point - point).norm() < map_resolution;
}))) {
return;
}
voxel_points.emplace_back(point);
Expand Down

0 comments on commit 6220a49

Please sign in to comment.