Skip to content

Commit

Permalink
Use const (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
nachovizzo authored Aug 26, 2024
1 parent 4e6a8db commit 01ff60d
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 01ff60d

Please sign in to comment.