raulmur / ORB_SLAM2

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

stop without saving the trajectory #546

Open ll884856 opened 6 years ago

ll884856 commented 6 years ago

Hi everyone, I have built the ORB-SLAM2 and run the dataset successfully. But after running the dataset, the program just stops and the video turns grey like this screenshot. It doesn't save the "KeyFrameTrajectory.txt" as well. How can I solve this problem? Thanks!

default

ll884856 commented 6 years ago

Problem has solved. It is because I didn't install g2o and DBoW2.

BoomFan commented 6 years ago

HI, I have the same problem. Are you sure about this? I already run ./build.sh, shouldn't it install g2o and DBoW2 automatically?

ll884856 commented 6 years ago

You can try to run these commands and run ./build.sh

sudo apt-get install libboost-dev sudo apt-get install cmake libeigen3-dev libsuitesparse-dev qtdeclarative5-dev qt5-qmake libqglviewer-dev

They are dependencies of g2o and DBoW2.

BoomFan commented 6 years ago

Thanks, but it doesn't work for me. I installed all the dependencies you listed and I'm sure no error pops out when I ./build.sh. Unfortunately, after I run the demo code, the window still remain grey and it seems that the program has stuck there and cannot move on. Just like your situation, it doesn't save the "KeyFrameTrajectory.txt" as well.

BoomFan commented 6 years ago

Actually, I followed issues547 and tried his solution. It fixes my problem. https://github.com/raulmur/ORB_SLAM2/issues/547

Now have new problems, I'll guess I'll just comment on issues 547 for my new problem. Thanks for your help again.

yuqiag commented 6 years ago

just delete the code"if(mpViewer) pangolin::BindToContext("ORB-SLAM2: Map Viewer");"

SouthEastleo commented 5 years ago

just delete the code"if(mpViewer) pangolin::BindToContext("ORB-SLAM2: Map Viewer");"

thanks,I have solved this problem throng your answer.