xdspacelab / openvslam

OpenVSLAM: A Versatile Visual SLAM Framework
https://openvslam.readthedocs.io/
2.97k stars 869 forks source link

docker run error run_video_slam #444

Open flydragon2018 opened 4 years ago

flydragon2018 commented 4 years ago

root@c7759471b5c4:/openvslam/build# ./run_video_slam -v orb_vocab/orb_vocab.dbow2 -c aist_livint_lab_1/config.yaml -m aist_living_lab_1/video.mp4 --frame-skip 3 --map-db aist_living_lab_1_map.msg yaml-cpp: error at line 0, column 0: bad file

Except that It took many times to successfully build the docker, every step seems ok until running example.

Ubuntu 18.04

ymd-stella commented 4 years ago

The file (aist_livint_lab_1/config.yaml) does not appear to exist.

flydragon2018 commented 4 years ago

my bad for the typo. however, after I fixed it, I got the new error:

[2020-09-18 10:54:58.665] [I] config file loaded: aist_living_lab_1/config.yaml


/ \ _ \ \ / / | | /\ | \/ | | () | ' \/ -) ' \ V /__ \ |_ / | |\/| | _/| ./_||||_/ |_/__// __| || |_|

Copyright (C) 2019, National Institute of Advanced Industrial Science and Technology (AIST) All rights reserved.

This is free software, and you are welcome to redistribute it under certain conditions. See the LICENSE file.

Camera Configuration:

[2020-09-18 10:54:58.666] [I] loading ORB vocabulary: orb_vocab/orb_vocab.dbow2 terminate called after throwing an instance of 'std::cxx11::basic_string<char, std::char_traits, std::allocator >' Aborted at 1600426498 (unix time) try "date -d @1600426498" if you are using GNU date PC: @ 0x7fa3ae8ecf47 gsignal SIGABRT (@0x14) received by PID 20 (TID 0x7fa3b27acc00) from PID 20; stack trace: @ 0x7fa3b1b188a0 (unknown) @ 0x7fa3ae8ecf47 gsignal @ 0x7fa3ae8ee8b1 abort @ 0x7fa3af16d957 (unknown) @ 0x7fa3af173ae6 (unknown) @ 0x7fa3af173b21 std::terminate() @ 0x7fa3af173d54 cxa_throw @ 0x7fa3b1dc7528 DBoW2::TemplatedVocabulary<>::loadFromBinaryFile() @ 0x7fa3b1dc4bcc openvslam::system::system() @ 0x555cdcc89c61 (unknown) @ 0x555cdcc88965 (unknown) @ 0x7fa3ae8cfb97 __libc_start_main @ 0x555cdcc88e2a (unknown) Aborted (core dumped)

jawadSajid commented 4 years ago

@flydragon2018 Any luck solving this issue?

flydragon2018 commented 4 years ago

not yet. don't know the reason

flydragon2018 commented 4 years ago

Could some one who had run successfully, post manually installation in detail?

thanks.

ymd-stella commented 4 years ago

orb_vocab/orb_vocab.dbow2 does not appear to exist. Please read Simple Tutorial.

ymd-stella commented 4 years ago

These questions should first be submitted to https://spectrum.chat/openvslam. (Please use Issue if it is a bug or if you can suggest a feature request.)

flydragon2018 commented 4 years ago

The file is there, I am sure, I have checked. why It complains about date issue?

ymd-stella commented 4 years ago

why It complains about date issue?

This is a message from google-glog and has nothing to do with this issue.

ymd-stella commented 4 years ago

Are you sure /openvslam/build/orb_vocab/orb_vocab.dbow2 exists? Are the permissions correct?

jawadSajid commented 4 years ago

Docker container seems to delete the orb_vocab.dbow2 and the yaml file, this is why I downloaded them on my local system. And used the -v flag to make a data folder in my docker container containing the files, this was done as follows: "sudo docker run --rm -it --name openvslam-socket --net=host -v //openvslam/data:/data/ openvslam-socket" and "./run_video_slam -v /data/orb_vocab/orb_vocab.dbow2 -m /data/mytest.mp4 -c /data/mytest.yaml" This solved all the problems for me. @ymd-stella @flydragon2018