Giter Club home page Giter Club logo

Comments (16)

lennarthaller avatar lennarthaller commented on July 26, 2024

Hey, this looks like DepthMapFactor is not set correctly, meaning the scale of the points is different from the scale of the tf frame.

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

Thanks for your fast reply!:)
Where does this factor come from? Camera calibration? Its not existing in my .ymal file. And what should it be?

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

DepthMapFactor is a scale factor that multiplies the input depthmap (if needed) if you are using a RGB-D camera. This is used in the TUM RGB-D dataset.
(from raulmur/ORB_SLAM2#89 (comment))

But I am using a stereo, and not RGB-D camera...

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

In Tracking.cc :


    if(sensor==System::STEREO || sensor==System::RGBD)
    {
        mThDepth = mbf*(float)fSettings["ThDepth"]/fx;
        cout << endl << "Depth Threshold (Close/Far Points): " << mThDepth << endl;
    }

    if(sensor==System::RGBD)
    {
        mDepthMapFactor = fSettings["DepthMapFactor"];
        if(fabs(mDepthMapFactor)<1e-5)
            mDepthMapFactor=1;
        else
            mDepthMapFactor = 1.0f/mDepthMapFactor;
    }

mThDepth = mbf*(float)fSettings["ThDepth"]/fx;

from orb_slam_2_ros.

lennarthaller avatar lennarthaller commented on July 26, 2024

I just went through the code, you are right, in Tracker.cc, where the parameters are read, the setting is only used for RGBD cams.
I have to say that I work with mono or RGBD cams most of the time and haven't really used the stereo node.

from orb_slam_2_ros.

lennarthaller avatar lennarthaller commented on July 26, 2024

The algorithm treats the RGBD and Stereo information the same most of the time, if you look in the paper they bring the stereo information in the same format as the RGBD image and use the same pipeline.

from orb_slam_2_ros.

lennarthaller avatar lennarthaller commented on July 26, 2024

So for me it still looks like its some scaling issue. Maybe you can try to apply the DepthMapFactor to the stereo image?

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

I tried changing ThDepth parameter and also adding the DepthMapFactor inside the .ymal file. The only thing changes, the more I decrease ThDepth the less features a extracted.
Adding DepthMapFactor doesnt do anything, but this also visible in the code I posted above (for stereo)

But this seems to be an issue of ORBSLAM2 itself, thus I should ask Raulmur?

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

I'm also thinking of using a RGBD camera instead now... where I wont have this issue right?

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

But the original ORBSLAM2 implementation doesn't hast this issue. At least not in the map viewer...
4

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

And when I publish the map points and pose there, it looks also right:

5

from orb_slam_2_ros.

lennarthaller avatar lennarthaller commented on July 26, 2024

I'm also thinking of using a RGBD camera instead now... where I wont have this issue right?

At least we never encountered the issue there ;)

from orb_slam_2_ros.

lennarthaller avatar lennarthaller commented on July 26, 2024

And when I publish the map points and pose there, it looks also right:

5

Interesting, thanks you for investigating. Probably there is a bug in the stereo code of the node then. Like I said, we usually use the mono or RGBD nodes so the Stereo stuff is much less tested.

If you want to investigate further and fix the bug I am happy to merge your fix!

from orb_slam_2_ros.

flo981 avatar flo981 commented on July 26, 2024

I'll take a look at it but I think this is beyond my skills...
Is it possible you take a look as well? It would be crucial for my masters thesis...

from orb_slam_2_ros.

lennarthaller avatar lennarthaller commented on July 26, 2024

I am pretty busy atm, I wont be able to investigate that in the next couple of weeks.

from orb_slam_2_ros.

raclab avatar raclab commented on July 26, 2024

Is there any detailed description about the usage of the package with ros? For example, what did I should do for watching of the point cloud on rviz?
Thank you

from orb_slam_2_ros.

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.