Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
8898cea0
Commit
8898cea0
authored
7 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
fixed test and coherence on tolerance used by avoidSingularCovariance
parent
9042ff0e
No related branches found
No related tags found
1 merge request
!207
FeatureBase: covariance, information, square root information upper matrices
Pipeline
#1766
failed
7 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/feature_base.cpp
+2
-2
2 additions, 2 deletions
src/feature_base.cpp
src/test/gtest_processor_frame_nearest_neighbor_filter_2D.cpp
+1
-1
1 addition, 1 deletion
...test/gtest_processor_frame_nearest_neighbor_filter_2D.cpp
with
3 additions
and
3 deletions
src/feature_base.cpp
+
2
−
2
View file @
8898cea0
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/test/gtest_processor_frame_nearest_neighbor_filter_2D.cpp
+
1
−
1
View file @
8898cea0
...
@@ -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.0
1
;
Eigen
::
Vector2s
tt_covariance_matrix
;
Eigen
::
Vector2s
tt_covariance_matrix
;
tt_covariance_matrix
<<
0.0
,
0.0
;
tt_covariance_matrix
<<
0.0
,
0.0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment