hku-mars / FAST-LIVO

A Fast and Tightly-coupled Sparse-Direct LiDAR-Inertial-Visual Odometry (LIVO).
GNU General Public License v2.0
1.26k stars 202 forks source link

[laserMapping-2] process has died #143

Open Cureser opened 2 weeks ago

Cureser commented 2 weeks ago

Linux version:Ubuntu20.04 Opencv4.10.0

commond:roslaunch fast_livo mapping_avia_old.launch

download

I don't want to install opencv3, how can i fix this problem?

Cureser commented 2 weeks ago

download (1) Here are my gdb information

xuankuzcr commented 2 weeks ago

The error you encountered looks quite strange, as the function cv::initUndistortRectifyMap is not actually used in the code, and OpenCV 3 is not required; OpenCV 4 can be used instead. With the limited information available, I can't determine the exact issue.

Cureser commented 2 weeks ago

_cgi-bin_mmwebwx-bin_webwxgetmsgimg__ MsgID=6542660401183095065 skey=@crypt_dd39521_99e976b00fd1423926f3437b9d3e425f mmweb_appid=wx_webfilehelper

This funcion appears when constructing the PinholeCamera object.

It seem that it can be found on line 1196 in the file laserMapping.cpp

xuankuzcr commented 2 weeks ago

You can directly comment out this part.

Cureser commented 2 weeks ago

Thanks!

image

I've commented out that part, but another process died come up.

xuankuzcr commented 2 weeks ago

Could you pull the latest code? If it's already up-to-date, could you provide some GDB information?

Cureser commented 2 weeks ago

image I‘ve commented out this part. image Here are the gdb information. It seems that the process died during initialization.

Cureser commented 2 weeks ago

fast-livo

Thanks, I successfully ran the test program by linking opencv4.2.0, but the first problem still exists, I only commented out the cv::initUndistortRectifyMap function so that the program would not crash.

haoming-Yu commented 23 hours ago

Yes, I've encountered the same problem several times. Strange as it is, using opencv >= 4.0 would probably trigger this problem. I think it might have something to do with rpg_vikit's compilation and problematic dependency. Just comment out the line and then catkin_make the project again will make the program runnable and git rid of this error. If you would like to debug this problem, just add launch-prefix="xterm -e gdb -ex run --args" to launch file's node definition, and you can find the problem of initUndistortRectifyMap function. Anyway, thanks for author's contribution and the solution for this problem. It really saved me a lot of time! :)