zang09 / ORB_SLAM3_ROS2

ROS2 wrapping package for orbslam3 library
216 stars 81 forks source link

Segmentation fault when running ros2 humble (mono) #20

Open Nikolaiarn opened 10 months ago

Nikolaiarn commented 10 months ago

I have seen that there is someone else who has had the same error, but I cant find any solution. OrbSlam3 works fine in the euroc demo. Here is the full error:

nikolai@NikUbuntu22:~/colcon_ws$ ros2 run orbslam3 mono /home/nikolai/colcon_ws/src/orbslam3/vocabulary/ORBvoc.txt /home/nikolai/colcon_ws/src/orbslam3/config/monocular/TUM1.yaml

ORB-SLAM3 Copyright (C) 2017-2020 Carlos Campos, Richard Elvira, Juan J. Gómez, José M.M. Montiel and Juan D. Tardós, University of Zaragoza. ORB-SLAM2 Copyright (C) 2014-2016 Raúl Mur-Artal, José M.M. Montiel and Juan D. Tardós, University of Zaragoza. This program comes with ABSOLUTELY NO WARRANTY; This is free software, and you are welcome to redistribute it under certain conditions. See LICENSE.txt.

Input sensor was set to: Monocular

Loading ORB Vocabulary. This could take a while... Vocabulary loaded!

Initialization of Atlas from scratch Creation of new map with id: 0 Creation of new map with last KF id: 0 Seq. Name:

Camera Parameters:

ORB Extractor Parameters:

Nikolaiarn commented 10 months ago

You can solve the problem by unninnsistalling all ORB-SLAM files, then reverting back to opencv 4.2.0 then reinstalling all the files. worked for me

Sn0wl3r0ker commented 10 months ago

You can solve the problem by unninnsistalling all ORB-SLAM files, then reverting back to opencv 4.2.0 then reinstalling all the files. worked for me

worked for me, thank you!

TSoli commented 7 months ago

You can solve the problem by unninnsistalling all ORB-SLAM files, then reverting back to opencv 4.2.0 then reinstalling all the files. worked for me

Amazing! Worked for me too! I had to disable tbb when compiling opencv 4.2.0 with -DWITH_TBB=OFF on Linux Mint 21.3 (based on Ubuntu 22.04).

dyhuachi commented 2 months ago

You can solve the problem by unninnsistalling all ORB-SLAM files, then reverting back to opencv 4.2.0 then reinstalling all the files. worked for me

why the opencv 4.8.1 can not run,this question can be fixed?