Skip to content

Commit

Permalink
Relax unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerKuemmerle committed Jul 20, 2024
1 parent f51c609 commit 6cbf21d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unit_test/slam2d/jacobians_slam2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ TEST(Slam2D, EdgeSE2PointXYBearingJacobian) {
v1->setEstimate(randomSE2());
v2->setEstimate(Eigen::Vector2d::Random());
e.setMeasurement(g2o::Sampler::uniformRand(-1., 1.) * M_PI);
} while ((v1->estimate().inverse() * v2->estimate()).norm() < 1e-6);
} while ((v1->estimate().inverse() * v2->estimate()).norm() < 1e-3);

/* Note a larger tolerance versus the default of 1e-6 must be used due to
* poor behaviour of the numerical difference function that is used to
* provide golden data. */
evaluateJacobian(e, jacobianWorkspace, numericJacobianWorkspace,
[](const double, const double) { return 1e-5; });
[](const double, const double) { return 1e-3; });
}
}

0 comments on commit 6cbf21d

Please sign in to comment.