Skip to content

Commit

Permalink
Use const
Browse files Browse the repository at this point in the history
  • Loading branch information
nachovizzo committed Aug 23, 2024
1 parent 95f6dfd commit 36c2655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/kiss_icp/core/VoxelHashMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void VoxelHashMap::Update(const std::vector<Eigen::Vector3d> &points, const Soph
void VoxelHashMap::AddPoints(const std::vector<Eigen::Vector3d> &points) {
const double map_resolution = std::sqrt(voxel_size_ * voxel_size_ / max_points_per_voxel_);
std::for_each(points.cbegin(), points.cend(), [&](const auto &point) {
auto voxel = PointToVoxel(point, voxel_size_);
const auto voxel = PointToVoxel(point, voxel_size_);
auto search = map_.find(voxel);
if (search != map_.end()) {
auto &voxel_points = search.value();
Expand Down

0 comments on commit 36c2655

Please sign in to comment.