introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
974 stars 557 forks source link

libg2o.so: cannot open shared object file: No such file or directory #612

Closed wrmichaelmak closed 3 years ago

wrmichaelmak commented 3 years ago

I have tried to install RTABMAP with ORB-SLAM 3 and ROS. I did not have any errors while building RTABMAP or ORB-SLAM 3. Neither do I have any errors when I run catkin build in my catkin workspace (with rtabmap_ros in it). But however when I try to run RTABMAP-ROS with D435i, I got this error and I don't see any output for RTABMAP:

Screenshot from 2021-07-16 14-49-30

Screenshot 2021-07-16 at 15 28 44

Ignore imu_filter_madgwick as it was caused by me building with -DCMAKE_BUILD_TYPE=Debug

wrmichaelmak commented 3 years ago

SOLVED!

Found out that you have to define your g2o path used by ORB SLAM3 in your .bashrc. Solution mentioned here:

https://github.com/introlab/rtabmap/issues/287#issuecomment-398181036