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

run Mono_Inertial Segmentation fault (core dumped) #333

Open
liangchen97 opened this issue Jun 4, 2021 · 4 comments
Open

run Mono_Inertial Segmentation fault (core dumped) #333

liangchen97 opened this issue Jun 4, 2021 · 4 comments

Comments

@liangchen97
Copy link

nvidia@nvidia-desktop:~/catkin_ws/src/ORB_SLAM3$ rosrun ORB_SLAM3 Mono_Inertial /Vocabulary/ORBvoc.txt /Examples/Monocular-Inertial/EuRoC.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-Inertial

Loading ORB Vocabulary. This could take a while...
Segmentation fault (core dumped)

@yuguanfeng
Copy link

I have met the same problem when I try to rosrun Mono node. Did you solve it?

@yuguanfeng
Copy link

It may be resulted from the different versions of OpenCV used in ./build.sh and ./build_ros.sh. In ORB_SLAM3/Thirdparty/DBoW2/CMakeLists.txt and ORB_SLAM3/CMakeLists.txt, it requires opencv 4. But in ORB_SLAM3/Examples/ROS/ORB_SLAM3/CMakeLists.txt, it requires opencv 3. I have installed opencv4.1.0 outside and opencv3.3.1 in ros. Finally it leads to the segmentation fault. To solve it, modify CMakeLists.txt to require opencv 3.

@liangchen97
Copy link
Author

谢谢老哥,可以使用了,不过我用realsense d455跑Mono_Inertial节点效果很差,不知道你试过没

@Cheny5863
Copy link

It may be resulted from the different versions of OpenCV used in ./build.sh and ./build_ros.sh. In ORB_SLAM3/Thirdparty/DBoW2/CMakeLists.txt and ORB_SLAM3/CMakeLists.txt, it requires opencv 4. But in ORB_SLAM3/Examples/ROS/ORB_SLAM3/CMakeLists.txt, it requires opencv 3. I have installed opencv4.1.0 outside and opencv3.3.1 in ros. Finally it leads to the segmentation fault. To solve it, modify CMakeLists.txt to require opencv 3.

老哥稳

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

3 participants