Comments (5)
Can you add line like
FIX node_id
where node_id is one of the VERTEX_XY ids. Example
FIX 0
from g2o.
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.
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.
oh, i see. thanks for the explanation and the changes!
from g2o.
Then how to solve the display problem?
from g2o.
Related Issues (20)
- Worse results after running PGO HOT 5
- How to use multithreads for g2o optimization HOT 2
- G20 with and without OpenMP producing different result
- How to define a variable size edge in g2o HOT 2
- OptimizableGraph deletes Parameters even when G2O_NO_IMPLICIT_OWNERSHIP_OF_OBJECTS=ON HOT 3
- compile g2o error HOT 4
- g2o file format EDGE_SE3:QUAT information matrix HOT 2
- G2O_SINGLE_PRECISION_MATH error compilation HOT 1
- error: ‘number_t’ does not name a type; did you mean ‘timer_t’? HOT 1
- Geman McClure robust kernel HOT 2
- Pickling using python bindings HOT 1
- how to run the benchmark? HOT 3
- Tests fail to compile on FreeBSD HOT 2
- Fails on Compilation with this error code HOT 4
- How to compile the examples separately?
- g2o::make_unique not recognized HOT 2
- void g2o::HyperGraph::Edge::setVertex(size_t, g2o::HyperGraph::Vertex*): Assertion `i < _vertices.size() && "index out of bounds"' failed. HOT 2
- Linker error: multiple definition of `typeinfo name for g2o::BaseVertex<7, g2o::Sim3>'; HOT 3
- Tests fail on i386 HOT 4
- undefined reference to `vtable for g2o::VertexPointXYZ' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g2o.