Excessive compile time
Solution:
Please read Compiling PCL.
Using PCL with Eigen
When using PCL with Eigen library, some care has to be taken:
Remember to add the EIGEN_MAKE_ALIGNED_OPERATOR_NEW macro to the definition.
For Eigen types (as PointCloud<T>), do not use boost::make_shared<...>(...), instead use cloud.makeShared(). However, if you do not want to copy the data over (which is what makeShared or make_shared do), you can simply create the shared pointer before and just pass it around. See this for more information. Example: