abner-math / PlaneDetection

Implementation of my article "A Robust Statistics Approach for Plane Detection in Unorganized Point Clouds"
GNU General Public License v3.0
226 stars 24 forks source link

When running the code, "core dump!" #9

Closed xuduo18311199384 closed 3 years ago

xuduo18311199384 commented 3 years ago

It's a great honor to read your paper. But when I am running the code with the comman "./command_line ./plane_datasets/pointclouds/box.pcl ./plane_datasets/pointclouds/result.txt", there is "Detecting planes... core dump" in terminal. May I ask where I have a problem?

xuduo18311199384 commented 3 years ago

2021-01-19 15-12-38 的屏幕截图

xuduo18311199384 commented 3 years ago

2021-01-19 15-16-28 的屏幕截图

abner-math commented 3 years ago

@xuduo18311199384 the issue is because the the 'CommandLine' program can only read XYZ point clouds by default (you are trying to pass a .PCL file). If you want to read *.PCL files, modify the line below:

PointCloud3d *pointCloud = pointCloudIO.loadFromXYZ(inputFileName);

to

PointCloud3d *pointCloud = pointCloudIO.loadFromPCL(inputFileName);

xuduo18311199384 commented 3 years ago

Thank you very much for your answer.