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

Fix 4DoF PointToPlane error minimizer crash #492

Merged
merged 1 commit into from
Apr 8, 2022
Merged
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
4 changes: 2 additions & 2 deletions pointmatcher/ErrorMinimizers/PointToPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ typename PointMatcher<T>::TransformationParameters PointToPlaneErrorMinimizer<T>
matrixGamma << 0,-1, 0,
1, 0, 0,
0, 0, 0;
cross = ((matrixGamma*mPts.reading.features).transpose()*normalRef).diagonal().transpose();
cross = ((matrixGamma*mPts.reading.features.block(0, 0, 3, nbPts)).transpose()*normalRef).diagonal().transpose();
}


Expand Down Expand Up @@ -441,7 +441,7 @@ T PointToPlaneErrorMinimizer<T>::getOverlap() const
{
// NOTE: we tried with the projected distance over the normal vector before:
// projectionDist = delta dotProduct n.normalized()
// but this doesn't make sense
// but this doesn't make sense


if(PointMatcherSupport::anyabs(dists(i, 0)) < (uncertainties(0,i)))
Expand Down