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
c0548159
Commit
c0548159
authored
8 years ago
by
Dinesh Atchuthan
Browse files
Options
Downloads
Patches
Plain Diff
getter jacobian matrix 9x6
parent
f61b36b2
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/processor_imu.h
+16
-9
16 additions, 9 deletions
src/processor_imu.h
with
16 additions
and
9 deletions
src/processor_imu.h
+
16
−
9
View file @
c0548159
...
@@ -80,8 +80,7 @@ class ProcessorIMU : public ProcessorMotion{
...
@@ -80,8 +80,7 @@ class ProcessorIMU : public ProcessorMotion{
virtual
void
remapDelta
(
Eigen
::
VectorXs
&
_delta_out
);
virtual
void
remapDelta
(
Eigen
::
VectorXs
&
_delta_out
);
virtual
void
remapData
(
const
Eigen
::
VectorXs
&
_data
);
virtual
void
remapData
(
const
Eigen
::
VectorXs
&
_data
);
void
getJacobians
(
Eigen
::
Matrix3s
&
_dDp_dab
,
Eigen
::
Matrix3s
&
_dDv_dab
,
Eigen
::
Matrix3s
&
_dDp_dwb
,
Eigen
::
Matrix3s
&
_dDv_dwb
,
Eigen
::
Matrix3s
&
_dDq_dwb
);
void
getJacobians
(
Eigen
::
Matrix3s
&
_dDp_dab
,
Eigen
::
Matrix3s
&
_dDv_dab
,
Eigen
::
Matrix3s
&
_dDp_dwb
,
Eigen
::
Matrix3s
&
_dDv_dwb
,
Eigen
::
Matrix3s
&
_dDq_dwb
);
void
getJacobians
(
Eigen
::
Matrix
<
wolf
::
Scalar
,
9
,
6
>&
_dD_db
);
public:
public:
static
ProcessorBasePtr
create
(
const
std
::
string
&
_unique_name
,
const
ProcessorParamsBasePtr
_params
,
const
SensorBasePtr
sensor_ptr
=
nullptr
);
static
ProcessorBasePtr
create
(
const
std
::
string
&
_unique_name
,
const
ProcessorParamsBasePtr
_params
,
const
SensorBasePtr
sensor_ptr
=
nullptr
);
...
@@ -416,14 +415,22 @@ inline void ProcessorIMU::getJacobians(Eigen::Matrix3s& _dDp_dab, Eigen::Matrix3
...
@@ -416,14 +415,22 @@ inline void ProcessorIMU::getJacobians(Eigen::Matrix3s& _dDp_dab, Eigen::Matrix3
_dDq_dwb
=
dDq_dwb_
;
_dDq_dwb
=
dDq_dwb_
;
}
}
/*
inline void ProcessorIMU::getJacobians(Eigen::Matrix
9s
& _dD_db)
inline
void
ProcessorIMU
::
getJacobians
(
Eigen
::
Matrix
<
wolf
::
Scalar
,
9
,
6
>
&
_dD_db
)
{
{
_dDp_dab = dDp_dab_;
/* structure of dD_db :
_dDv_dab = dDv_dab_;
ab wb
_dDp_dwb = dDp_dwb_;
[ dDp_dab dDp_dwb ] Each block is 3x3 !! Even dDq_db --> minimal form
_dDv_dwb = dDv_dwb_;
[ dDq_dab dDq_dwb ]
_dDq_dwb = dDq_dwb_;
[ dDv_dab dDv_dwb ]
}*/
*/
_dD_db
.
block
(
3
,
3
,
0
,
0
)
=
dDp_dab_
;
_dD_db
.
block
(
3
,
3
,
3
,
0
)
=
Eigen
::
Matrix3s
::
Zero
();
_dD_db
.
block
(
3
,
3
,
6
,
0
)
=
dDv_dab_
;
_dD_db
.
block
(
3
,
3
,
0
,
3
)
=
dDp_dwb_
;
_dD_db
.
block
(
3
,
3
,
3
,
3
)
=
dDq_dwb_
;
_dD_db
.
block
(
3
,
3
,
6
,
3
)
=
dDv_dwb_
;
}
}
// namespace wolf
}
// 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