Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EdgeSE2PointXYOffset error function wrong? #128

Open
redheli opened this issue Sep 25, 2016 · 1 comment
Open

EdgeSE2PointXYOffset error function wrong? #128

redheli opened this issue Sep 25, 2016 · 1 comment
Labels

Comments

@redheli
Copy link

redheli commented Sep 25, 2016

void EdgeSE2PointXYOffset::computeError() {
    // from cam to point (track)
    // VertexSE2 *rob = static_cast<VertexSE2*>(_vertices[0]);
    VertexPointXY *point = static_cast<VertexPointXY*>(_vertices[1]);

    Vector2D perr = cache->w2lMatrix() * point->estimate();

    // error, which is backwards from the normal observed - calculated
    // _measurement is the measured projection
    _error = perr - _measurement;
    //    std::cout << _error << std::endl << std::endl;
  }

@RainerKuemmerle
I notice it use world to local matrix, shall use world to sensor matrix instead?
also I tested g2o_viewer with output file "tutorial_before.g2o" from tutorial_slam2d (I updated register vertex,edge name) tutorial_before.g2o.txt

attached screen shot with two results.

use world to sensor matrix:
w2n

use world to local matrix:
w2l

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant