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
bd708beb
Commit
bd708beb
authored
13 years ago
by
Oliver Sander
Committed by
sander@FU-BERLIN.DE
13 years ago
Browse files
Options
Downloads
Patches
Plain Diff
added empty methods to be able to at least compile the gfe assembler for a RigidBodyMotion class
[[Imported from SVN: r7342]]
parent
5fced277
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
dune/gfe/rigidbodymotion.hh
+59
-0
59 additions, 0 deletions
dune/gfe/rigidbodymotion.hh
with
59 additions
and
0 deletions
dune/gfe/rigidbodymotion.hh
+
59
−
0
View file @
bd708beb
...
@@ -101,6 +101,65 @@ struct RigidBodyMotion
...
@@ -101,6 +101,65 @@ struct RigidBodyMotion
return
concat
(
linearDerivative
,
rotationDerivative
);
return
concat
(
linearDerivative
,
rotationDerivative
);
}
}
/** \brief Compute the Hessian of the squared distance function keeping the first argument fixed */
static
Dune
::
FieldMatrix
<
double
,
7
,
7
>
secondDerivativeOfDistanceSquaredWRTSecondArgument
(
const
RigidBodyMotion
<
dim
,
ctype
>
&
p
,
const
RigidBodyMotion
<
dim
,
ctype
>
&
q
)
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"!"
);
}
/** \brief Compute the mixed second derivate \partial d^2 / \partial da db
Unlike the distance itself the squared distance is differentiable at zero
*/
static
Dune
::
FieldMatrix
<
double
,
7
,
7
>
secondDerivativeOfDistanceSquaredWRTFirstAndSecondArgument
(
const
RigidBodyMotion
<
dim
,
ctype
>
&
p
,
const
RigidBodyMotion
<
dim
,
ctype
>
&
q
)
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"!"
);
}
/** \brief Compute the third derivative \partial d^3 / \partial dq^3
Unlike the distance itself the squared distance is differentiable at zero
*/
static
Tensor3
<
double
,
7
,
7
,
7
>
thirdDerivativeOfDistanceSquaredWRTSecondArgument
(
const
RigidBodyMotion
<
dim
,
ctype
>
&
p
,
const
RigidBodyMotion
<
dim
,
ctype
>
&
q
)
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"!"
);
}
/** \brief Compute the mixed third derivative \partial d^3 / \partial da db^2
Unlike the distance itself the squared distance is differentiable at zero
*/
static
Tensor3
<
double
,
7
,
7
,
7
>
thirdDerivativeOfDistanceSquaredWRTFirst1AndSecond2Argument
(
const
RigidBodyMotion
<
dim
,
ctype
>
&
p
,
const
RigidBodyMotion
<
dim
,
ctype
>
&
q
)
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"!"
);
}
/** \brief Project tangent vector of R^n onto the tangent space */
EmbeddedTangentVector
projectOntoTangentSpace
(
const
EmbeddedTangentVector
&
v
)
const
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"!"
);
}
/** \brief Compute an orthonormal basis of the tangent space of SE(3).
This basis is of course not globally continuous.
*/
Dune
::
FieldMatrix
<
double
,
6
,
7
>
orthonormalFrame
()
const
{
Dune
::
FieldMatrix
<
double
,
6
,
7
>
result
(
0
);
// Get the R^d part
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
result
[
i
][
i
]
=
1
;
Dune
::
FieldMatrix
<
double
,
3
,
4
>
SO3Part
=
q
.
orthonormalFrame
();
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
for
(
int
j
=
0
;
j
<
4
;
j
++
)
result
[
3
+
i
][
3
+
j
]
=
SO3Part
[
i
][
j
];
return
result
;
}
// Translational part
// Translational part
Dune
::
FieldVector
<
ctype
,
dim
>
r
;
Dune
::
FieldVector
<
ctype
,
dim
>
r
;
...
...
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