Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
3d07a294
Commit
3d07a294
authored
Jan 06, 2018
by
jcarpent
Browse files
[Algo] Use overloaded motionAction
parent
5d539a09
Changes
1
Show whitespace changes
Inline
Side-by-side
src/algorithm/kinematics-derivatives.hxx
View file @
3d07a294
//
// Copyright (c) 2017 CNRS
// Copyright (c) 2017
-2018
CNRS
//
// This file is part of Pinocchio
// Pinocchio is free software: you can redistribute it
...
...
@@ -271,7 +271,7 @@ namespace se3
vtmp
=
-
data
.
v
[
jointId
];
motionSet
::
motionAction
(
vtmp
,
a_partial_da_cols
,
a_partial_dv_cols
);
a_partial_dv_cols
+=
oMlast
.
inverse
().
toActionMatrix
()
*
dJcols
;
// TODO: optimize computations
motionSet
::
se3ActionInverse
<
ADDTO
>
(
oMlast
,
dJcols
,
a_partial_dv_cols
);
}
// dacc/dq
...
...
@@ -284,7 +284,7 @@ namespace se3
motionSet
::
motionAction
(
atmp
,
Jcols
,
a_partial_dq_cols
);
if
(
parent
>
0
)
a_partial_dq_cols
+=
vtmp
.
toActionMatrix
()
*
dJ
cols
;
motionSet
::
motionAction
<
ADDTO
>
(
vtmp
,
dJcols
,
a_partial_dq_
cols
)
;
}
else
{
...
...
@@ -294,7 +294,7 @@ namespace se3
motionSet
::
motionAction
(
atmp
,
a_partial_da_cols
,
a_partial_dq_cols
);
}
a_partial_dq_cols
+=
vtmp
.
toActionMatrix
()
*
v_partial_dq_cols
;
// TODO: optimize computations
motionSet
::
motionAction
<
ADDTO
>
(
vtmp
,
v_partial_dq_cols
,
a_partial_dq_cols
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment