Open Cureser opened 2 weeks ago
Here are my gdb information
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.
This funcion appears when constructing the PinholeCamera object.
It seem that it can be found on line 1196 in the file laserMapping.cpp
You can directly comment out this part.
Thanks!
I've commented out that part, but another process died come up.
Could you pull the latest code? If it's already up-to-date, could you provide some GDB information?
I‘ve commented out this part. Here are the gdb information. It seems that the process died during initialization.
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.
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! :)
Linux version:Ubuntu20.04 Opencv4.10.0
commond:roslaunch fast_livo mapping_avia_old.launch
I don't want to install opencv3, how can i fix this problem?