alessandro-gentilini / Efficient-RANSAC-for-Point-Cloud-Shape-Detection

Efficient RANSAC for Point-Cloud Shape Detection
126 stars 30 forks source link

The main program got stuck. #2

Open bing-jian opened 4 years ago

bing-jian commented 4 years ago

Hi, Alessandro, thanks for porting this software to github!

I am able to compile and generate the executable. However the main program got stuck after showing "added 10096 points". Is this something expected as I noticed you have this commit https://github.com/alessandro-gentilini/Efficient-RANSAC-for-Point-Cloud-Shape-Detection/commit/702af125ef22a15d4aa70353de80d7524a2b0b95

Thanks, Bing

bing-jian commented 4 years ago

Well, if I only keep the plane detection, then it is able to proceed and complete. $ ./main added 10096 points remaining unassigned points 8 shape 0 consists of 10000 points, it is a Plane shape 1 consists of 30 points, it is a Plane shape 2 consists of 30 points, it is a Plane shape 3 consists of 14 points, it is a Plane shape 4 consists of 2 points, it is a Plane shape 5 consists of 12 points, it is a Plane

rongduo commented 4 years ago

Thanks for your issue. My program got stuck too. As you said, I removed the cylinder detector and it works. Besides, I tried to add a torus detector, the program still works.

% ./main added 10096 points remaining unassigned points 7 shape 0 consists of 10000 points, it is a Plane shape 1 consists of 89 points, it is a Torus (minor=6.55061 major=8.93026)

Tina1994 commented 4 years ago

Thanks for your issue. My program got stuck too. As you said, I removed the cylinder detector and it works. Besides, I tried to add a torus detector, the program still works.

% ./main added 10096 points remaining unassigned points 7 shape 0 consists of 10000 points, it is a Plane shape 1 consists of 89 points, it is a Torus (minor=6.55061 major=8.93026)

Do you know why the cylinder detector do not work??

zhanghua7099 commented 4 months ago

Hi! I have the similar problem. After I comment out the cylinder detector in: https://github.com/alessandro-gentilini/Efficient-RANSAC-for-Point-Cloud-Shape-Detection/blob/6e8b3633c1cca8ba1cd1d36169e44d1e88dbf75b/main.cpp#L53

Sometimes it works fine, but sometimes it gets stuck. If I run A five times in a row, it will get stuck.

Does anyone know how to fix this?