Closed Tacoma closed 6 years ago
Thanks for catching this! Would you like to open a PR for fixing this? We could already return on that line if the cloud is empty: https://github.com/ethz-asl/segmatch/blob/master/segmatch/src/segmenters/region_growing_segmenter.cpp#L48
I'm not sure how to do it correctly, but I created a small fix. But we can only return after creating the indices, because the point-cloud itself might have points but they are all filtered later because of high curvature. At least that's why it crashed in my case. I'm not exactly sure where the crash occurs, as pcl notices twice that the indices are empty, but returning before the extraction solved the problem for me, so I guess it should be fine.
Hi, I noticed that the segmentation crashes if no points are in the pointcloud. The log before the crash is:
I avoided the crash by adding a check to the extraction in https://github.com/ethz-asl/segmatch/blob/master/segmatch/src/segmenters/region_growing_segmenter.cpp#L74