41 #include <pcl/octree/octree_pointcloud.h>
58 typename LeafContainerT = OctreeContainerEmpty,
59 typename BranchContainerT = OctreeContainerEmpty>
64 OctreeBase<LeafContainerT, BranchContainerT>>
92 OctreeBase<LeafContainerT, BranchContainerT>>(resolution_arg)
123 for (
const auto& point : *cloud_arg) {
136 #define PCL_INSTANTIATE_OctreePointCloudOccupancy(T) \
137 template class PCL_EXPORTS pcl::octree::OctreePointCloudOccupancy<T>;
PointCloud represents the base class in PCL for storing collections of 3D points.
LeafContainerT * createLeaf(uindex_t idx_x_arg, uindex_t idx_y_arg, uindex_t idx_z_arg)
Create new leaf node at (idx_x_arg, idx_y_arg, idx_z_arg).
void adoptBoundingBoxToPoint(const PointT &point_idx_arg)
Grow the bounding box/octree until point fits.
void genOctreeKeyforPoint(const PointT &point_arg, OctreeKey &key_arg) const
Generate octree key for voxel at a given point.
Octree pointcloud occupancy class
typename OctreePointCloud< PointT, LeafContainerT, BranchContainerT >::PointCloud PointCloud
void setOccupiedVoxelAtPoint(const PointT &point_arg)
Set occupied voxel at point.
OctreePointCloudOccupancy(const double resolution_arg)
Constructor.
~OctreePointCloudOccupancy() override=default
Empty class constructor.
typename OctreePointCloud< PointT, LeafContainerT, BranchContainerT >::PointCloudConstPtr PointCloudConstPtr
typename OctreePointCloud< PointT, LeafContainerT, BranchContainerT >::PointCloudPtr PointCloudPtr
void setOccupiedVoxelsAtPointsFromCloud(PointCloudPtr cloud_arg)
Set occupied voxels at all points from point cloud.
bool isFinite(const PointT &pt)
Tests if the 3D components of a point are all finite param[in] pt point to be tested return true if f...
A point structure representing Euclidean xyz coordinates, and the RGB color.