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

EdgeSE3Expmap was modified #505

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions g2o/types/sba/edge_se3_expmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,15 @@
}

void EdgeSE3Expmap::linearizeOplus() {
VertexSE3Expmap* vi = static_cast<VertexSE3Expmap*>(_vertices[0]);
SE3Quat Ti(vi->estimate());

VertexSE3Expmap* vj = static_cast<VertexSE3Expmap*>(_vertices[1]);
SE3Quat Tj(vj->estimate());

const SE3Quat& Tij = _measurement;
SE3Quat invTij = Tij.inverse();

SE3Quat invTj_Tij = Tj.inverse() * Tij;
SE3Quat infTi_invTij = Ti.inverse() * invTij;

_jacobianOplusXi = invTj_Tij.adj();
_jacobianOplusXj = -infTi_invTij.adj();
_jacobianOplusXj = -Tj.inverse().adj();

Check warning on line 63 in g2o/types/sba/edge_se3_expmap.cpp

View check run for this annotation

Codecov / codecov/patch

g2o/types/sba/edge_se3_expmap.cpp#L63

Added line #L63 was not covered by tests
}

} // namespace g2o