#include <PointCloudToVoxelGridSingle.h>
Classes | |
struct | Impl |
struct | indices_t |
struct | IndicesHash |
struct | voxel_t |
Public Member Functions | |
void | clear () |
int32_t | coord2idx (float xyz) const |
PointCloudToVoxelGridSingle () | |
void | processPointCloud (const mrpt::maps::CPointsMap &p) |
void | setResolution (const float voxel_size) |
size_t | size () const |
Returns the number of occupied voxels. More... | |
void | visit_voxels (const std::function< void(const indices_t idx, const voxel_t &vxl)> &userCode) const |
~PointCloudToVoxelGridSingle () | |
Private Attributes | |
mrpt::pimpl< Impl > | impl_ |
float | resolution_ = 0.20f |
Like PointCloudToVoxelGrid, but hardcoded to only store one single point per voxel.
Definition at line 28 of file PointCloudToVoxelGridSingle.h.
PointCloudToVoxelGridSingle::PointCloudToVoxelGridSingle | ( | ) |
Definition at line 24 of file PointCloudToVoxelGridSingle.cpp.
|
inline |
Definition at line 32 of file PointCloudToVoxelGridSingle.h.
void PointCloudToVoxelGridSingle::clear | ( | ) |
Remove all points and internal data.
Definition at line 82 of file PointCloudToVoxelGridSingle.cpp.
|
inline |
Definition at line 101 of file PointCloudToVoxelGridSingle.h.
void PointCloudToVoxelGridSingle::processPointCloud | ( | const mrpt::maps::CPointsMap & | p | ) |
Definition at line 39 of file PointCloudToVoxelGridSingle.cpp.
void PointCloudToVoxelGridSingle::setResolution | ( | const float | voxel_size | ) |
Changes the voxel resolution, clearing past contents
Definition at line 29 of file PointCloudToVoxelGridSingle.cpp.
size_t PointCloudToVoxelGridSingle::size | ( | ) | const |
Returns the number of occupied voxels.
Definition at line 96 of file PointCloudToVoxelGridSingle.cpp.
void PointCloudToVoxelGridSingle::visit_voxels | ( | const std::function< void(const indices_t idx, const voxel_t &vxl)> & | userCode | ) | const |
Definition at line 89 of file PointCloudToVoxelGridSingle.cpp.
|
private |
Definition at line 119 of file PointCloudToVoxelGridSingle.h.
|
private |
Voxel size (meters) or resolution.
Definition at line 115 of file PointCloudToVoxelGridSingle.h.