Giter Club home page Giter Club logo

Comments (6)

ProfFan avatar ProfFan commented on July 17, 2024

Hi, thank you for the bug report! This can be added fairly easily, by adding one line in the .i file

from gtsam.

Dead-Hand avatar Dead-Hand commented on July 17, 2024

Hi, thank you for the bug report! This can be added fairly easily, by adding one line in the .i file

Thanks for the response! I'll preface the following by saying I do not have much experience with pybind11...

TL;DR: It looks like I would add something like so (at line 156): TriangulationResult point() const; Does this look right or were you thinking of something else? I plan on testing this out once I'm back at my computer later today.

Longer version is (writing this out for my own understanding and maybe help some others - please correct if I misunderstand though):

It appears the slam.i file is the one I'd be interested in, and I would want to add a member function to the virtual class SmartProjectionPoseFactor class.

However, reviewing the API documentation again, I noticed the exact return of point() is actually a more complex class TriangulationResult. TriangulationResult is already defined in geometry.i (and I can confirm I am able to see it available in the Python API), I can see that #include <gtsam/geometry/triangulation.h> is present in SmartProjectionFactor.h, which is already imported into slam.i.

Will give it a try and report back.

from gtsam.

Dead-Hand avatar Dead-Hand commented on July 17, 2024

Following up to say this worked! I have a slightly older version of the develop branch so I hesitate to link it here, but following the method I wrote up in my previous message worked to give me access to the point() method. Will try to work this into a PR when I can.

from gtsam.

varunagrawal avatar varunagrawal commented on July 17, 2024

@Dead-Hand glad to see you figured it out. I made a PR to fix this issue (sorry for the delay).

from gtsam.

varunagrawal avatar varunagrawal commented on July 17, 2024

Also wanted to mention that your analysis and understanding was exactly on point! If you see my PR, you'll notice I made the exact same change. If you have other methods you'd like to wrap, we welcome a PR for that.

from gtsam.

Dead-Hand avatar Dead-Hand commented on July 17, 2024

Confirmed that #1654 fixed this. Closing my issue. Thanks!

from gtsam.

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.