ram-lab / plycal

Extrinsic calibration of the camera and LiDAR via polygon plane
GNU General Public License v3.0
138 stars 25 forks source link

Segmentation fault (core dumped) after "Open Dataset" #9

Open zhongchong7 opened 1 year ago

zhongchong7 commented 1 year ago

Hello, I am using Ubuntu 20.04 to build it. After I choose "Open Dataset" and choose sample data in this repo, the program will be closed and terminal shows "width: 378.553 length: 469.008 angle_width: 103.683 angle_length: 17.9155 Failed to find match for field 'intensity'. Segmentation fault (core dumped)"

Could you please tell me what is the error root and how to fix it? Thanks!

juliangaal commented 1 year ago

This is the exact same behavior as in this fork of plycal. There is some issue with qt5 on ubuntu 20.04 that means you have to use this package with Ubuntu 18.04

wangtuo0820 commented 1 year ago

I faced the same issue and made the following modifications, and then this error was solved for me. I changed line98 in PlyCal/calibrator.h to

return Project(pc, img, T_);

and add

return true;

before line 702 in PlyCal/calibrator.cpp


However, another occurs

E: no enough line segments after merging
   get 3 lines

It seems ImagePolygon doesn't detect enough lines, Anybody knows how to fix it?