raulmur / ORB_SLAM2

Real-Time SLAM for Monocular, Stereo and RGB-D Cameras, with Loop Detection and Relocalization Capabilities
Other
9.42k stars 4.69k forks source link

Core dumped running TUM dataset #34

Closed orsivia closed 8 years ago

orsivia commented 8 years ago

The camera was run for around 5 sec(everything seemed normal), and segmentation fault terminated the program.

I am currently using opencv v2.4.11. I encountered a lot of problems installing opencv library. I manually added #include and #include<opencv2/opencv.hpp> in several files to get the dataset run.

This is the information I got when running TUM dataset:

zixuan@zixuan-MacBookPro:~/ORB_SLAM2$ ./Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt Examples/Monocular/TUM1.yaml /home/zixuan/Documents/dataset/rgbd_dataset_freiburg1_xyz

ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, 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!

Camera Parameters:

ORB Extractor Parameters:


Start processing sequence ... Images in the sequence: 798

init done opengl support available New Map created with 90 points Segmentation fault (core dumped)

There is no other information provided. Thank you for help! P.S. I am using ubuntu14.04 (dual boot) on Macbook pro.

ghost commented 8 years ago

Does the error happen for other cases? Could you also try other cases (such as stereo, other dataset, or ROS version)?

orsivia commented 8 years ago

OK, now I am sure it has something to do with the OpenCV library. I just uninstalled opencv 2.4.11 and installed 2.4.9(including editing the bashrc file) and the code works fine! There is no need to change any segment of the code!