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
8558780e
Commit
8558780e
authored
7 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetics
parent
d60d32e3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/gtest_IMU.cpp
+12
-10
12 additions, 10 deletions
src/test/gtest_IMU.cpp
with
12 additions
and
10 deletions
src/test/gtest_IMU.cpp
+
12
−
10
View file @
8558780e
...
@@ -433,7 +433,7 @@ TEST_F(Process_Constraint_IMU, Var_B1_B2_Invar_P1_Q1_V1_P2_Q2_V2)
...
@@ -433,7 +433,7 @@ TEST_F(Process_Constraint_IMU, Var_B1_B2_Invar_P1_Q1_V1_P2_Q2_V2)
// print();
// print();
// ===================================== CHECK ALL (SEE
RESULTS SECTION BELOW
FO
T
THE MEANING OF ALL VARIABLES)
// ===================================== CHECK ALL (SEE
CLASS DEFINITION
FO
R
THE MEANING OF ALL VARIABLES)
// check delta and state integrals
// check delta and state integrals
ASSERT_MATRIX_APPROX
(
D_preint
,
D_preint_imu
,
1e-8
);
ASSERT_MATRIX_APPROX
(
D_preint
,
D_preint_imu
,
1e-8
);
...
@@ -503,7 +503,11 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_V1_B1_B2_Invar_P2_Q2_V2)
...
@@ -503,7 +503,11 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_V1_B1_B2_Invar_P2_Q2_V2)
WOLF_TRACE
(
report
);
WOLF_TRACE
(
report
);
// ===================================== CHECK ALL (SEE RESULTS SECTION BELOW FOT THE MEANING OF ALL VARIABLES)
// ===================================== PRINT RESULTS
// print();
// ===================================== CHECK ALL (SEE CLASS DEFINITION FOR THE MEANING OF ALL VARIABLES)
// check delta and state integrals
// check delta and state integrals
ASSERT_MATRIX_APPROX
(
D_preint
,
D_preint_imu
,
1e-8
);
ASSERT_MATRIX_APPROX
(
D_preint
,
D_preint_imu
,
1e-8
);
...
@@ -525,9 +529,6 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_V1_B1_B2_Invar_P2_Q2_V2)
...
@@ -525,9 +529,6 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_V1_B1_B2_Invar_P2_Q2_V2)
ASSERT_NEAR
(
x1_optim
.
segment
(
3
,
4
).
norm
(),
1.0
,
1e-8
);
ASSERT_NEAR
(
x1_optim
.
segment
(
3
,
4
).
norm
(),
1.0
,
1e-8
);
// ===================================== PRINT RESULTS
// print();
}
}
...
@@ -579,7 +580,11 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_B1_V2_B2_Invar_V1_P2_Q2) // PQv_B__pqV_
...
@@ -579,7 +580,11 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_B1_V2_B2_Invar_V1_P2_Q2) // PQv_B__pqV_
WOLF_TRACE
(
report
);
WOLF_TRACE
(
report
);
// ===================================== CHECK ALL (SEE RESULTS SECTION BELOW FOT THE MEANING OF ALL VARIABLES)
// ===================================== PRINT RESULTS
// print();
// ===================================== CHECK ALL (SEE CLASS DEFINITION FOR THE MEANING OF ALL VARIABLES)
// check delta and state integrals
// check delta and state integrals
ASSERT_MATRIX_APPROX
(
D_preint
,
D_preint_imu
,
1e-8
);
ASSERT_MATRIX_APPROX
(
D_preint
,
D_preint_imu
,
1e-8
);
...
@@ -600,13 +605,10 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_B1_V2_B2_Invar_V1_P2_Q2) // PQv_B__pqV_
...
@@ -600,13 +605,10 @@ TEST_F(Process_Constraint_IMU, Var_P1_Q1_B1_V2_B2_Invar_V1_P2_Q2) // PQv_B__pqV_
ASSERT_MATRIX_APPROX
(
x1_optim_imu
,
x1_exact
,
1e-5
);
ASSERT_MATRIX_APPROX
(
x1_optim_imu
,
x1_exact
,
1e-5
);
ASSERT_NEAR
(
x1_optim
.
segment
(
3
,
4
).
norm
(),
1.0
,
1e-8
);
ASSERT_NEAR
(
x1_optim
.
segment
(
3
,
4
).
norm
(),
1.0
,
1e-8
);
// ===================================== PRINT RESULTS
// print();
}
}
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
testing
::
InitGoogleTest
(
&
argc
,
argv
);
...
...
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