raulmur / ORB_SLAM2

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

mono_tum issue #1049

Closed robertolisandro closed 2 years ago

robertolisandro commented 2 years ago

Hi there! I'm trying to make ORB_SLAM2 work but I got this problem while launching the command for TUM datasets examples.

I downloaded a dataset from the given link and then executed the following command:

./Examples/Monocular/mono_tum Vocabulary/ORBvoc.txt Examples/Monocular/TUMX.yaml PATH_TO_SEQUENCE_FOLDER

where I changed TUMX with the correct TUM file (in my case it's TUM1.yaml) and also changed PATH_TO_SEQUENCE_FOLDER with the correct path.

First I had the following problem:

mono_tum: command not found

then I changed ./Examples/Monocular/mono_tum into ./Examples/Monocular/mono_tum.cc

but I got this error:


./Examples/Monocular/mono_tum.cc: line 1: /SuiteSparse-5.10.0: Is a directory
./Examples/Monocular/mono_tum.cc: line 2: CMakeLists.txt: command not found
./Examples/Monocular/mono_tum.cc: line 3: CMakeLists.txt: command not found
./Examples/Monocular/mono_tum.cc: line 4: syntax error near unexpected token `('
./Examples/Monocular/mono_tum.cc: line 4: `* Copyright (C) 2014-2016 Raúl Mur-Artal <raulmur at unizar dot es> (University of Zaragoza)'

Did anyone meet this error too?

robertolisandro commented 2 years ago

I found 2 Errors while executing the previous command in section 3. Building ORB-SLAM2 library and examples, which are:

chmod +x build.sh
./build.sh

With this result (at the end):

make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:89: CMakeFiles/ORB_SLAM2.dir/src/LocalMapping.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:63: CMakeFiles/ORB_SLAM2.dir/src/System.cc.o] Error 1
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:297: CMakeFiles/ORB_SLAM2.dir/src/Viewer.cc.o] Error 1
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:76: CMakeFiles/ORB_SLAM2.dir/src/Tracking.cc.o] Error 1
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:102: CMakeFiles/ORB_SLAM2.dir/src/LoopClosing.cc.o] Error 1
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:219: CMakeFiles/ORB_SLAM2.dir/src/Optimizer.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:250: CMakeFiles/ORB_SLAM2.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

How can I deal with it?