GithubHelp home page GithubHelp logo

Comments (6)

mirellameelo avatar mirellameelo commented on June 16, 2024 1

oh no... I just notice I never changed the timestamp path!! But you definitely predicted what would be the next mistake. rsrsrs. Now the SLAM system starts but it only loads the first image... I'm trying to figure it out. Tks for your patience! :)

from orb_slam3.

Halcao avatar Halcao commented on June 16, 2024

The timestamp file in ./euroc_examples.sh is located in ./Examples/Monocular/EuRoC_TimeStamps/MH01.txt. So you need either replace the stamp file argument in ./euroc_examples.sh with your own file path or place your timestamp file in the path above.

from orb_slam3.

mirellameelo avatar mirellameelo commented on June 16, 2024

@Halcao sorry, my mistake, I have changed the ./euroc_examples.sh as well. I just edited my prior comment. :)

from orb_slam3.

Halcao avatar Halcao commented on June 16, 2024

OK. Did you modify the timestamp file? Could you please post the first 10 lines of the file?

from orb_slam3.

mirellameelo avatar mirellameelo commented on June 16, 2024

Sure!

1595976430480 1595976430480.png
1595976430834 1595976430834.png
1595976431288 1595976431288.png
1595976431620 1595976431620.png
1595976431952 1595976431952.png
1595976432438 1595976432438.png
1595976432780 1595976432780.png
1595976433071 1595976433071.png
1595976433530 1595976433530.png
1595976433912 1595976433912.png

from orb_slam3.

Halcao avatar Halcao commented on June 16, 2024

@mirellameelo This file is supposed to contain only the first column which is the file name (without extension .png) of your image. And the timestamp will be divided by 1e9, so you'd better either append nine 0s to the filename like 1595976430480000000000.png or modify the following code in mono_euroc.cc.

    while(!fTimes.eof())
    {
        string s;
        getline(fTimes,s);
        if(!s.empty())
        {
            stringstream ss;
            ss << s;
            vstrImages.push_back(strImagePath + "/" + ss.str() + ".png");
            double t;
            ss >> t;
            // vTimeStamps.push_back(t/1e9);
           vTimeStamps.push_back(t);
        }
    }

If you choose to modify the code, the timestamp in the trajectory file will still be multiplied by 10e9, and you should also modify it.(System.cc:752)

//             f << setprecision(6) << 1e9*pKF->mTimeStamp  << " " <<  setprecision(9) << twb.at<float>(0) << " " << twb.at<float>(1) << " " << twb.at<float>(2) << " " << q[0] << " " << q[1] << " " << q[2] << " " << q[3] << endl;

            f << setprecision(6) << pKF->mTimeStamp  << " " <<  setprecision(9) << twb.at<float>(0) << " " << twb.at<float>(1) << " " << twb.at<float>(2) << " " << q[0] << " " << q[1] << " " << q[2] << " " << q[3] << endl;

from orb_slam3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.