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
6ad1afa4
Commit
6ad1afa4
authored
17 years ago
by
Oliver Sander
Committed by
sander@PCPOOL.MI.FU-BERLIN.DE
17 years ago
Browse files
Options
Downloads
Patches
Plain Diff
remove the fd check for the interpolated derivative
[[Imported from SVN: r1696]]
parent
8b46ce6e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/quaternion.hh
+1
-20
1 addition, 20 deletions
src/quaternion.hh
with
1 addition
and
20 deletions
src/quaternion.hh
+
1
−
20
View file @
6ad1afa4
...
...
@@ -344,7 +344,6 @@ public:
}
/** \brief Interpolate between two rotations */
/** \todo Use method 'difference' here */
static
Quaternion
<
T
>
interpolate
(
const
Quaternion
<
T
>&
a
,
const
Quaternion
<
T
>&
b
,
double
omega
)
{
// Compute difference on T_a SO(3)
...
...
@@ -356,7 +355,6 @@ public:
}
/** \brief Interpolate between two rotations */
/** \todo Use method 'difference' here */
static
Quaternion
<
T
>
interpolateDerivative
(
const
Quaternion
<
T
>&
a
,
const
Quaternion
<
T
>&
b
,
double
omega
,
double
intervallLength
)
{
Quaternion
<
T
>
result
;
...
...
@@ -379,24 +377,7 @@ public:
result
[
0
]
=
result
[
1
]
=
result
[
2
]
=
result
[
3
]
=
0
;
diffExp
.
umv
(
der
,
result
);
result
=
a
.
mult
(
result
);
// ////////////////////////////////////////////////////////////////////////////
// Check correctness by comparing with a finite difference approximation
// ////////////////////////////////////////////////////////////////////////////
double
eps
=
1e-6
;
Quaternion
<
T
>
fdResult
=
interpolate
(
a
,
b
,
omega
+
eps
);
fdResult
-=
interpolate
(
a
,
b
,
omega
-
eps
);
fdResult
/=
2
*
eps
;
fdResult
/=
intervallLength
;
if
((
result
-
fdResult
).
two_norm
()
>
1e-4
)
{
std
::
cout
<<
"Wrong interpolation:
\n
"
;
std
::
cout
<<
"Analytical: "
<<
result
<<
" fd: "
<<
fdResult
<<
std
::
endl
;
abort
();
}
return
result
;
return
a
.
mult
(
result
);
}
/** \brief Return the corresponding orthogonal matrix */
...
...
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