pcl_utils
pcl-utils

Utility functions for PCL Library.

Using C++ PCL library introduces a lot of boilerplate code. Most of the operations requires redundant parameters. This utility functions helps to write easy and clean code to use PCL.

Usage

Basic usage is shown below. There are a lot more utility functions inside pcl-utils.

1 {c++}
2 
3 #include "pcl_utils.h"
4 
5 int main() {
6  pcl::PointCloud<pcl::PointXYZ>::Ptr cloud;
7 
8  // Show point cloud in PCLViewer
9  utils::PclUtils<pcl::PointXYZ>::showCloud(cloud);
10 
11  // If same point type is being used, it is good to have an alias
12  typedef utils::PclUtils<pcl::PointXYZ> PclUtils;
13 
14  // Downsample pointcloud using VoxelGrid
15  PclUtils::downsample(cloud, cloud, 0.007f);
16 
17  return 0;
18 }