Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Stack Of Tasks
pinocchio
Commits
b4cadf49
Commit
b4cadf49
authored
7 years ago
by
jcarpent
Browse files
Options
Downloads
Patches
Plain Diff
[Constraint] Use inertiaAction to perform sparse computations
parent
cee7a8fb
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
src/multibody/constraint.hpp
+12
-3
12 additions, 3 deletions
src/multibody/constraint.hpp
with
12 additions
and
3 deletions
src/multibody/constraint.hpp
+
12
−
3
View file @
b4cadf49
...
...
@@ -193,14 +193,23 @@ namespace se3
}
template
<
typename
S2
,
int
O2
>
friend
Eigen
::
Matrix
<
_Scalar
,
6
,
_Dim
>
friend
typename
ConstraintTpl
<
_Dim
,
_Scalar
,
_Options
>::
DenseBase
operator
*
(
const
InertiaTpl
<
S2
,
O2
>
&
Y
,
const
ConstraintTpl
<
_Dim
,
_Scalar
,
_Options
>
&
S
)
{
return
(
Y
.
matrix
()
*
S
.
S
).
eval
();
}
{
typedef
typename
ConstraintTpl
<
_Dim
,
_Scalar
,
_Options
>::
DenseBase
ReturnType
;
ReturnType
res
(
6
,
S
.
nv
());
motionSet
::
inertiaAction
(
Y
,
S
.
S
,
res
);
return
res
;
}
template
<
typename
S2
,
int
O2
>
friend
Eigen
::
Matrix
<
_Scalar
,
6
,
_Dim
>
operator
*
(
const
Eigen
::
Matrix
<
S2
,
6
,
6
,
O2
>
&
Ymatrix
,
const
ConstraintTpl
<
_Dim
,
_Scalar
,
_Options
>
&
S
)
{
return
(
Ymatrix
*
S
.
S
).
eval
();
}
{
typedef
Eigen
::
Matrix
<
_Scalar
,
6
,
_Dim
>
ReturnType
;
return
ReturnType
(
Ymatrix
*
S
.
matrix
());
}
DenseBase
se3Action
(
const
SE3
&
m
)
const
...
...
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