Common Implementation Errors

PCL Segmentation Fault using KDTree

The KDTree can not correctly handle empty cloud. Therefore, the cloud must be checked before setting it to a KDTree.

PCL Segmentation Fault using mempy

Check whether the input and output have same size. This is snippet that works.

output.data.resize (input_->data.size());                                                                                                                                    
removed_indices_->resize (input_->data.size ());