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
598808df
Commit
598808df
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add smalladj()
parent
935de1db
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
include/IMU/math/IMU_tools_Lie.h
+37
-7
37 additions, 7 deletions
include/IMU/math/IMU_tools_Lie.h
with
37 additions
and
7 deletions
include/IMU/math/IMU_tools_Lie.h
+
37
−
7
View file @
598808df
...
@@ -215,14 +215,44 @@ inline Matrix<typename D::Scalar, 10, 10> adjoint(const MatrixBase<D>& delta){
...
@@ -215,14 +215,44 @@ inline Matrix<typename D::Scalar, 10, 10> adjoint(const MatrixBase<D>& delta){
}
}
// template<typename D1, typename D2>
template
<
typename
D1
,
typename
D2
>
// inline Matrix<T, 11, 1> smalladjoint(const MatrixBase<D1> d, MatrixBase<D1> sadjd)
inline
Matrix
<
T
,
10
,
10
>
smalladjoint
(
const
MatrixBase
<
D1
>
tau
)
// {
{
// // Adjoint matrix associated to the adjoint operator
MatrixSizeCheck
<
10
,
1
>::
check
(
tau
);
// TODO
typedef
typename
D1
::
Scalar
T
;
Map
<
const
Matrix
<
T
,
3
,
1
>
>
p
(
&
tau
(
0
)
);
Map
<
const
Matrix
<
T
,
3
,
1
>
>
th
(
&
tau
(
3
)
);
Map
<
const
Matrix
<
T
,
3
,
1
>
>
v
(
&
tau
(
6
)
);
const
T
&
t
=
tau
(
9
);
// Adjoint matrix associated to the adjoint operator
Matrix
<
T
,
3
,
3
>
px
=
skew
(
p
);
Matrix
<
T
,
3
,
3
>
thx
=
skew
(
th
);
Matrix
<
T
,
3
,
3
>
vx
=
skew
(
v
);
Matrix
<
T
,
10
,
10
>
adj
;
adj
.
setZero
();
// return ret;
/* Attention to variable order in the adjoint!
// }
*
* Paper: PVOT = 0639
* WOLF: POVT = 0369
*
*/
adj
.
block
<
3
,
3
>
(
0
,
0
)
=
thx
;
// 0,0 in paper
adj
.
block
<
3
,
3
>
(
0
,
3
)
=
px
;
// 0,6 in paper
adj
.
block
<
3
,
3
>
(
0
,
6
)
=
-
Matrix
<
T
,
3
,
3
>::
Identity
()
*
t
;
// 0,3 in paper
adj
.
block
<
3
,
1
>
(
0
,
9
)
=
v
;
// 0,9 in paper
adj
.
block
<
3
,
3
>
(
3
,
3
)
=
thx
;
// 6,6 in paper
adj
.
block
<
3
,
3
>
(
6
,
3
)
=
vx
;
// 3,6 in paper
adj
.
block
<
3
,
3
>
(
6
,
6
)
=
thx
;
// 3,3 in paper
return
adj
;
}
template
<
typename
D1
,
typename
D2
,
typename
D3
,
typename
D4
,
typename
D5
>
template
<
typename
D1
,
typename
D2
,
typename
D3
,
typename
D4
,
typename
D5
>
inline
void
compose
(
const
MatrixBase
<
D1
>&
delta1
,
inline
void
compose
(
const
MatrixBase
<
D1
>&
delta1
,
...
...
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