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
54fd8154
Commit
54fd8154
authored
8 years ago
by
Dinesh Atchuthan
Browse files
Options
Downloads
Patches
Plain Diff
comments bias_tests
parent
7cf005e3
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_processorIMU_jacobians.cpp
+32
-0
32 additions, 0 deletions
src/test/gtest_processorIMU_jacobians.cpp
with
32 additions
and
0 deletions
src/test/gtest_processorIMU_jacobians.cpp
+
32
−
0
View file @
54fd8154
...
@@ -110,6 +110,38 @@ class ProcessorIMU_jacobians_noise : public testing::Test
...
@@ -110,6 +110,38 @@ class ProcessorIMU_jacobians_noise : public testing::Test
Eigen
::
Vector6s
data_
;
Eigen
::
Vector6s
data_
;
};
};
///BIAS TESTS
/* IMU_jac_deltas struct form :
contains vectors of size 7 :
Elements at place 0 are those not affected by the bias noise that we add (da_bx,..., dw_bx,... ).
place 1 : added da_bx in data place 2 : added da_by in data place 3 : added da_bz in data
place 4 : added dw_bx in data place 5 : added dw_by in data place 6 : added dw_bz in data
*/
/* Mathematics
dDp_dab = [dDp_dab_x, dDp_dab_y, dDp_dab_z]
dDp_dab_x = (dDp(ab_x + dab_x, ab_y, ab_z) - dDp(ab_x,ab_y,ab_z)) / dab_x
dDp_dab_x = (dDp(ab_x, ab_y + dab_y, ab_z) - dDp(ab_x,ab_y,ab_z)) / dab_y
dDp_dab_x = (dDp(ab_x, ab_y, ab_z + dab_z) - dDp(ab_x,ab_y,ab_z)) / dab_z
similar for dDv_dab
note dDp_dab_x, dDp_dab_y, dDp_dab_z, dDv_dab_x, dDv_dab_y, dDv_dab_z are 3x1 vectors !
dDq_dab = 0_{3x3}
dDq_dwb = [dDq_dwb_x, dDq_dwb_y, dDq_dwb_z]
dDq_dwb_x = log( dR(wb).transpose() * dR(wb - dwb_x))/dwb_x
= log( dR(wb).transpose() * exp((wx - wbx - dwb_x)dt, (wy - wby)dt, (wy - wby)dt))/dwb_x
dDq_dwb_y = log( dR(wb).transpose() * dR(wb - dwb_y))/dwb_y
dDq_dwb_z = log( dR(wb).transpose() * dR(wb + dwb_z))/dwb_z
Note : dDq_dwb must be computed recursively ! So comparing the one returned by processor_imu and the numerical
one will have no sense if we aredoing this from a random Delta. The Delta here should be the origin.
dDq_dwb_ = dR.tr()*dDq_dwb - Jr(wdt)*dt
Then at first step, dR.tr() = Id, dDq_dwb = 0_{3x3}, which boils down to dDq_dwb_ = Jr(wdt)*dt
*/
TEST_F
(
ProcessorIMU_jacobians_bias
,
dDp_dab
)
TEST_F
(
ProcessorIMU_jacobians_bias
,
dDp_dab
)
{
{
using
namespace
wolf
;
using
namespace
wolf
;
...
...
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