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
6228a098
Commit
6228a098
authored
6 years ago
by
Mederic Fourmy
Browse files
Options
Downloads
Patches
Plain Diff
Fixed gtest_problem
parent
9addeae4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!269
Feature/covariances
Pipeline
#2849
passed
6 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/gtest_problem.cpp
+5
-7
5 additions, 7 deletions
test/gtest_problem.cpp
with
5 additions
and
7 deletions
test/gtest_problem.cpp
+
5
−
7
View file @
6228a098
...
...
@@ -264,18 +264,16 @@ TEST(Problem, Covariances)
// set covariance (they are not computed without a solver)
P
->
addCovarianceBlock
(
F
->
getP
(),
Eigen
::
Matrix3s
::
Identity
());
P
->
addCovarianceBlock
(
F
->
getO
(),
Eigen
::
Matrix
4
s
::
Identity
());
P
->
addCovarianceBlock
(
F
->
getP
(),
F
->
getO
(),
Eigen
::
Matrix
<
Scalar
,
3
,
4
>
::
Zero
());
P
->
addCovarianceBlock
(
F
->
getO
(),
Eigen
::
Matrix
3
s
::
Identity
());
P
->
addCovarianceBlock
(
F
->
getP
(),
F
->
getO
(),
Eigen
::
Matrix
3s
::
Zero
());
// get covariance
Eigen
::
MatrixXs
Cov
;
ASSERT_TRUE
(
P
->
getFrameCovariance
(
F
,
Cov
));
// FIXME Frame covariance should be 6x6, but it is actually 7x7 (the state of the state blocks, not of the local parametrizations)
// JV: The local parameterization projects the covariance to the state size.
ASSERT_EQ
(
Cov
.
cols
()
,
7
);
ASSERT_EQ
(
Cov
.
rows
()
,
7
);
ASSERT_MATRIX_APPROX
(
Cov
,
Eigen
::
Matrix7s
::
Identity
(),
1e-12
);
ASSERT_EQ
(
Cov
.
cols
()
,
6
);
ASSERT_EQ
(
Cov
.
rows
()
,
6
);
ASSERT_MATRIX_APPROX
(
Cov
,
Eigen
::
Matrix6s
::
Identity
(),
1e-12
);
}
...
...
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