Skip to content

Commit

Permalink
Update cpp/kinematic_icp/local_map/SparseVoxelGrid.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Benedikt Mersch <mersch@igg.uni-bonn.de>
  • Loading branch information
tizianoGuadagnino and benemer authored Jan 9, 2025
1 parent 9859082 commit 9b84286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/kinematic_icp/local_map/SparseVoxelGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void SparseVoxelGrid::Update(const std::vector<Eigen::Vector3d> &points, const S
std::vector<Eigen::Vector3d> SparseVoxelGrid::Pointcloud() const {
std::vector<Eigen::Vector3d> point_cloud;
point_cloud.reserve(map_.activeCellsCount() * max_points_per_voxel_);
map_.forEachCell([&point_cloud, this](VoxelBlock &block, const auto &) {
map_.forEachCell([&point_cloud, this](const VoxelBlock &block, const auto &) {
point_cloud.insert(point_cloud.end(), block.cbegin(), block.cend());
});
return point_cloud;
Expand Down

0 comments on commit 9b84286

Please sign in to comment.