Skip to content
Snippets Groups Projects
Commit 8898cea0 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

fixed test and coherence on tolerance used by avoidSingularCovariance

parent 9042ff0e
No related branches found
No related tags found
1 merge request!207FeatureBase: covariance, information, square root information upper matrices
Pipeline #1766 failed
...@@ -144,8 +144,8 @@ void FeatureBase::avoidSingularCovariance() ...@@ -144,8 +144,8 @@ void FeatureBase::avoidSingularCovariance()
if (eigensolver.info() == Eigen::Success) if (eigensolver.info() == Eigen::Success)
{ {
// All eigenvalues must be >= 0: // All eigenvalues must be >= 0:
Scalar epsilon = Constants::EPS; Scalar epsilon = Constants::EPS_SMALL;
while ((eigensolver.eigenvalues().array() < Constants::EPS).any()) while ((eigensolver.eigenvalues().array() < Constants::EPS_SMALL).any())
{ {
std::cout << "----- any negative eigenvalue or too close to zero\n"; std::cout << "----- any negative eigenvalue or too close to zero\n";
std::cout << "previous eigenvalues: " << eigensolver.eigenvalues().transpose() << std::endl; std::cout << "previous eigenvalues: " << eigensolver.eigenvalues().transpose() << std::endl;
......
...@@ -111,7 +111,7 @@ TEST(ProcessorFrameNearestNeighborFilter, PointInEllipseRotated) ...@@ -111,7 +111,7 @@ TEST(ProcessorFrameNearestNeighborFilter, PointInEllipseRotated)
0.0, 5.0; 0.0, 5.0;
Eigen::Matrix1s orientation_covariance_matrix; Eigen::Matrix1s orientation_covariance_matrix;
orientation_covariance_matrix << 0.0; orientation_covariance_matrix << 0.01;
Eigen::Vector2s tt_covariance_matrix; Eigen::Vector2s tt_covariance_matrix;
tt_covariance_matrix << 0.0, 0.0; tt_covariance_matrix << 0.0, 0.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment