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
06ddd9b5
Commit
06ddd9b5
authored
13 years ago
by
Youett, Jonathan
Committed by
akbib@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
revert last patch. I still had the hack on the repaired the interpolation bug in my test problem
[[Imported from SVN: r8104]]
parent
8028a812
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
+2
-16
2 additions, 16 deletions
dune/gfe/rotation.hh
with
2 additions
and
16 deletions
dune/gfe/rotation.hh
+
2
−
16
View file @
06ddd9b5
...
...
@@ -454,7 +454,7 @@ public:
return
APseudoInv
;
}
/** \brief The cayley mapping from \f$ \mathfrak{so}(3) \f$ to \f$ SO(3) \f$.
/** \brief The cayley mapping from \f$ \mathfrak{so}(3) \f$ to \f$ SO(3) \f$.
*
* The formula is taken from 'J.C.Simo, N.Tarnom, M.Doblare - Non-linear dynamics of
* three-dimensional rods:Exact energy and momentum conserving algorithms'
...
...
@@ -480,7 +480,7 @@ public:
return
q
;
}
/** \brief The inverse of the Cayley mapping.
/** \brief The inverse of the Cayley mapping.
*
* The formula is taken from J.M.Selig - Cayley Maps for SE(3).
*/
...
...
@@ -529,13 +529,6 @@ public:
diff
.
invert
();
diff
=
diff
.
mult
(
b
);
T
dist
=
2
*
std
::
acos
(
std
::
min
(
diff
[
3
],
1.0
)
);
// Make sure we do the right thing if a and b are not in the same sheet
// of the double covering of the unit quaternions over SO(3)
if
(
dist
>=
M_PI
)
diff
*=
-
1
;
// Compute the geodesical distance between a and b on SO(3)
// Due to numerical dirt, diff[3] may be larger than 1.
// In that case, use 1 instead of diff[3].
...
...
@@ -565,13 +558,6 @@ public:
T
dist
=
2
*
std
::
acos
(
std
::
min
(
diff
[
3
],
1.0
)
);
// Make sure we do the right thing if a and b are not in the same sheet
// of the double covering of the unit quaternions over SO(3)
if
(
dist
>=
M_PI
)
{
dist
-=
M_PI
;
diff
*=
-
1
;
}
T
invSinc
=
1
/
sincHalf
(
dist
);
// Compute difference on T_a SO(3)
...
...
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