Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault when running ros2 humble (mono) #20

Open
Nikolaiarn opened this issue Nov 14, 2023 · 4 comments
Open

Segmentation fault when running ros2 humble (mono) #20

Nikolaiarn opened this issue Nov 14, 2023 · 4 comments

Comments

@Nikolaiarn
Copy link

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:

  • Camera: Pinhole
  • Image scale: 1
  • fx: 517.306
  • fy: 516.469
  • cx: 318.643
  • cy: 255.314
  • k1: 0.262383
  • k2: -0.953104
  • p1: -0.005358
  • p2: 0.002628
  • k3: 1.16331
  • fps: 30
  • color order: RGB (ignored if grayscale)

ORB Extractor Parameters:

  • Number of Features: 1000
  • Scale Levels: 8
  • Scale Factor: 1.2
  • Initial Fast Threshold: 20
  • Minimum Fast Threshold: 7
    There are 1 cameras in the atlas
    Camera 0 is pinhole
    slam changed
    ============================
    Starting the Viewer
    [ros2run]: Segmentation fault
@Nikolaiarn
Copy link
Author

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
Copy link

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
Copy link

TSoli commented Mar 1, 2024

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants