Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-gfe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Sander, Oliver
dune-gfe
Commits
82593c05
Commit
82593c05
authored
14 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
implement exp for a quaternion tangent vector
[[Imported from SVN: r6741]]
parent
f6744282
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/gfe/rotation.hh
+22
-2
22 additions, 2 deletions
dune/gfe/rotation.hh
with
22 additions
and
2 deletions
dune/gfe/rotation.hh
+
22
−
2
View file @
82593c05
...
...
@@ -230,9 +230,29 @@ public:
return
p
.
mult
(
corr
);
}
/** \brief The exponential map from a given point $p \in SO(3)$. */
/** \brief The exponential map from a given point $p \in SO(3)$.
There may be a more direct way to implement this
\param v A tangent vector in quaternion coordinates
*/
static
Rotation
<
3
,
T
>
exp
(
const
Rotation
<
3
,
T
>&
p
,
const
EmbeddedTangentVector
&
v
)
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"exp... EmbeddedTangentVector"
);
// The vector v as a quaternion
Quaternion
<
T
>
vQuat
(
v
);
// left multiplication by the inverse base point yields a tangent vector at the identity
Quaternion
<
T
>
vAtIdentity
=
p
.
inverse
().
mult
(
vQuat
);
assert
(
std
::
fabs
(
vAtIdentity
[
3
]
<
1e-8
)
);
// vAtIdentity as a skew matrix
TangentVector
vMatrix
;
vMatrix
[
0
]
=
2
*
vAtIdentity
[
0
];
vMatrix
[
1
]
=
2
*
vAtIdentity
[
1
];
vMatrix
[
2
]
=
2
*
vAtIdentity
[
2
];
// The actual exponential map
return
exp
(
p
,
vMatrix
);
}
static
Dune
::
FieldMatrix
<
T
,
4
,
3
>
Dexp
(
const
Dune
::
FieldVector
<
T
,
3
>&
v
)
{
...
...
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