Skip to content

Commit

Permalink
renaming, should be one neighbor only
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer committed Mar 4, 2024
1 parent ea7b313 commit 5c8fc25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/kiss_icp/core/Registration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ Vector3dVectorTuple GetCorrespondences(const std::vector<Eigen::Vector3d> &point
src.reserve(r.size());
tgt.reserve(r.size());
for (const auto &point : r) {
Eigen::Vector3d closest_neighbors = voxel_map.GetClosestNeighbor(point);
if ((closest_neighbors - point).norm() < max_correspondance_distance) {
Eigen::Vector3d closest_neighbor = voxel_map.GetClosestNeighbor(point);
if ((closest_neighbor - point).norm() < max_correspondance_distance) {
src.emplace_back(point);
tgt.emplace_back(closest_neighbors);
tgt.emplace_back(closest_neighbor);
}
}
return res;
Expand Down

0 comments on commit 5c8fc25

Please sign in to comment.