Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imu
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
plugins
imu
Commits
9fdc71d1
Commit
9fdc71d1
authored
3 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
hotfixes
parent
5e9eb26c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/gtest_imu_mocap_fusion.cpp
+4
-4
4 additions, 4 deletions
test/gtest_imu_mocap_fusion.cpp
test/processor_imu_UnitTester.h
+0
-11
0 additions, 11 deletions
test/processor_imu_UnitTester.h
with
4 additions
and
15 deletions
test/gtest_imu_mocap_fusion.cpp
+
4
−
4
View file @
9fdc71d1
...
@@ -33,7 +33,7 @@ using namespace wolf;
...
@@ -33,7 +33,7 @@ using namespace wolf;
const
Vector3d
zero3
=
Vector3d
::
Zero
();
const
Vector3d
zero3
=
Vector3d
::
Zero
();
const
double
dt
=
0.001
;
const
double
dt
=
0.001
;
const
bool
WRITE_CSV
=
false
;
#define
WRITE_CSV false
void
printingFactorErrors
(
ProblemPtr
pbe
){
void
printingFactorErrors
(
ProblemPtr
pbe
){
...
@@ -232,8 +232,8 @@ class ImuMocapFusion_Test : public testing::Test
...
@@ -232,8 +232,8 @@ class ImuMocapFusion_Test : public testing::Test
std
::
string
report
=
solver_
->
solve
(
SolverManager
::
ReportVerbosity
::
BRIEF
);
std
::
string
report
=
solver_
->
solve
(
SolverManager
::
ReportVerbosity
::
BRIEF
);
nb_kf
=
problem_
->
getTrajectory
()
->
getFrameMap
().
size
();
nb_kf
=
problem_
->
getTrajectory
()
->
getFrameMap
().
size
();
Vector6d
imu_bias
=
sensor_imu_
->
getIntrinsic
()
->
getState
();
#ifdef WRITE_CSV
#ifdef WRITE_CSV
Vector6d
imu_bias
=
sensor_imu_
->
getIntrinsic
()
->
getState
();
file_bias
<<
std
::
setprecision
(
std
::
numeric_limits
<
long
double
>::
digits10
+
1
)
file_bias
<<
std
::
setprecision
(
std
::
numeric_limits
<
long
double
>::
digits10
+
1
)
<<
t
<<
","
<<
t
<<
","
<<
imu_bias
(
0
)
<<
","
<<
imu_bias
(
0
)
<<
","
...
@@ -252,7 +252,7 @@ class ImuMocapFusion_Test : public testing::Test
...
@@ -252,7 +252,7 @@ class ImuMocapFusion_Test : public testing::Test
#ifdef WRITE_CSV
#ifdef WRITE_CSV
file_gtr
.
close
();
file_gtr
.
close
();
file_bias
.
close
();
file_bias
.
close
();
#endif
WRITE_CSV
#endif
}
}
...
@@ -338,4 +338,4 @@ int main(int argc, char **argv)
...
@@ -338,4 +338,4 @@ int main(int argc, char **argv)
{
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
return
RUN_ALL_TESTS
();
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
test/processor_imu_UnitTester.h
+
0
−
11
View file @
9fdc71d1
...
@@ -108,17 +108,6 @@ namespace wolf {
...
@@ -108,17 +108,6 @@ namespace wolf {
jacobian_delta_
=
Eigen
::
MatrixXd
::
Zero
(
9
,
9
);
jacobian_delta_
=
Eigen
::
MatrixXd
::
Zero
(
9
,
9
);
}
}
Imu_jac_deltas
(
Imu_jac_deltas
const
&
toCopy
){
Delta_noisy_vect_
=
toCopy
.
Delta_noisy_vect_
;
delta_noisy_vect_
=
toCopy
.
delta_noisy_vect_
;
Delta0_
=
toCopy
.
Delta0_
;
delta0_
=
toCopy
.
delta0_
;
jacobian_delta_preint_
=
toCopy
.
jacobian_delta_preint_
;
jacobian_delta_
=
toCopy
.
jacobian_delta_
;
}
public
:
public
:
/*The following vectors will contain all the matrices and deltas needed to compute the finite differences.
/*The following vectors will contain all the matrices and deltas needed to compute the finite differences.
Elements at place 0 are those not affected by the bias noise that we add (Delta_noise, delta_noise -> dPx, dpx, dVx, dvx,..., dOz,doz).
Elements at place 0 are those not affected by the bias noise that we add (Delta_noise, delta_noise -> dPx, dpx, dVx, dvx,..., dOz,doz).
...
...
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