Giter Club home page Giter Club logo

Comments (5)

agpratik avatar agpratik commented on August 16, 2024

Can you add line like
FIX node_id
where node_id is one of the VERTEX_XY ids. Example
FIX 0

from g2o.

etrabes avatar etrabes commented on August 16, 2024

i just add the line as you said. the first "VERTEX_XY" in the tutorial has node_id 1, so i added "FIX 1". g2o_viewer still fails to optimize. Actually, g2o_viewer also outputs that "graph is fixed by node 1131", witch is the last node in the tutorial, as if the "FIX 1" wouldn't work for "VERTEX_XY". If i use it with the EDGE_SE2 with node_id 0 the output says "graph is fixed by priors or nodes are already fixed".But it still fails to optimize. I think that the "Optimization failed, result might be invalid" thing has something to do with the tutorial, because if i use the .g2o generated by the g2o_simulator2d it works fine. Actually, the "tutorial_after.g2o" viewed with "g2o_viewer" (after i apply the changes) seems to be correct, so there is no problem with the tutorial itself. In other words, i don't know whats wrong.

from g2o.

RainerKuemmerle avatar RainerKuemmerle commented on August 16, 2024

You cannot fix a graph using a single landmark. Fixing the first pose should be fine.
The tutorial is using parameters. So you would need to map
TUTORIAL_EDGE_SE2_POINT_XY -> EDGE_SE2_POINTXY_OFFSET

But there still seems to be some issue with the pure mapping. I pushed 7549292 which enables the type registration for the types in the tutorial. Based on this you may use g2o to re-run on the original file.

$ bin/tutorial_slam2d

followed by

$ bin/g2o -i 10 -v -typeslib lib/libg2o_tutorial_slam2d.so tutorial_before.g2o

should give similar results (the second call will automatically fix a different pose).

The purpose of the tutorial is to show how to implement types and parameters. There are no viewer actions implemented for those types. Loading them in the viewer will not result in any visualization but optimization should also work.

from g2o.

etrabes avatar etrabes commented on August 16, 2024

oh, i see. thanks for the explanation and the changes!

from g2o.

HouBiaoLiu avatar HouBiaoLiu commented on August 16, 2024

Then how to solve the display problem?

from g2o.

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.