felixendres / rgbdslam_v2

RGB-D SLAM for ROS
GNU General Public License v3.0
935 stars 399 forks source link

"[rgbdslam-1] has died!" upon roslaunch rgbdslam rgbdslam.launch #104

Open joshuayuan opened 5 years ago

joshuayuan commented 5 years ago

When I run roslaunch rgbdslam rgbdslam.launch, I get the following errors after the roslaunch server starts up. Then it dies. The instructions here are too complicated for me and feel unnecessary, and are a bit out dated. Hopefully there's some other fix.

================================================================================REQUIRED process [rgbdslam-1] has died!
process has died [pid 29367, exit code -11, cmd /home/aaron/catkin_ws/devel/lib/rgbdslam/rgbdslam __name:=rgbdslam __log:=/home/aaron/.ros/log/6b13f86a-fc4b-11e8-9960-f0421c1d4ccd/rgbdslam-1.log].
log file: /home/aaron/.ros/log/6b13f86a-fc4b-11e8-9960-f0421c1d4ccd/rgbdslam-1*.log
Initiating shutdown!
================================================================================
[rgbdslam-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete

Any ideas, thanks!

WeidiDeng commented 5 years ago

comment the line “add_compile_options(-std=c++11)” in CMakeLists.txt, this commit breaks rgbdslam, the process segment faults at start because pcl has to be compiled with c++11

renatojmsdh commented 5 years ago

I had the same issue and @WeidiDeng answer solve it for me :-)

dbersan commented 5 years ago

Had same issue.

comment the line “add_compile_options(-std=c++11)” in CMakeLists.txt, this commit breaks rgbdslam, the process segment faults at start because pcl has to be compiled with c++11

Ok, but then it breaks qt_gui.cpp.o and a lot of other stuff that needs C++11...

/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

...

And what you said doesn't make sense to me, if pcl has to be compiled with C++11, how would disabling C++11 compilation help? If you comment that line, it disables C++11 support, as far as I understand CMAKE syntax.

dbersan commented 5 years ago

I was able to compile and run this following this tutorial, written by the author.

I believe using ROS kinetic + Ubuntu 16.04 will invariably yield this error, since it links PCL 1.7 which breaks with C++11. This is weird considering it's the recommended system inside the readme.