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
a22ab41f
Commit
a22ab41f
authored
Apr 21, 2020
by
Rohan Budhiraja
Browse files
multibody/liegroup/cartesian-prod: dintegratetransport
parent
9669a0c6
Changes
1
Show whitespace changes
Inline
Side-by-side
src/multibody/liegroup/cartesian-product.hpp
View file @
a22ab41f
...
...
@@ -181,17 +181,25 @@ namespace pinocchio
template
<
class
Config_t
,
class
Tangent_t
,
class
JacobianIn_t
,
class
JacobianOut_t
>
void
dIntegrateTransport_dq_impl
(
const
Eigen
::
MatrixBase
<
Config_t
>
&
q
,
const
Eigen
::
MatrixBase
<
Tangent_t
>
&
v
,
const
Eigen
::
MatrixBase
<
JacobianIn_t
>
&
Jin
,
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
Jout
)
const
const
Eigen
::
MatrixBase
<
JacobianIn_t
>
&
J
_
in
,
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
J
_
out
)
const
{
JacobianOut_t
&
Jout
=
PINOCCHIO_EIGEN_CONST_CAST
(
JacobianOut_t
,
J_out
);
JacobianOut_t
&
Jin
=
PINOCCHIO_EIGEN_CONST_CAST
(
JacobianIn_t
,
J_in
);
lg1_
.
dIntegrateTransport_dq
(
Q1
(
q
),
V1
(
v
),
Jin
.
template
topRows
<
LieGroup1
::
NV
>(),
Jout
.
template
topRows
<
LieGroup1
::
NV
>());
lg2_
.
dIntegrateTransport_dq
(
Q2
(
q
),
V2
(
v
),
Jin
.
template
bottomRows
<
LieGroup2
::
NV
>(),
Jout
.
template
bottomRows
<
LieGroup2
::
NV
>());
}
template
<
class
Config_t
,
class
Tangent_t
,
class
JacobianIn_t
,
class
JacobianOut_t
>
void
dIntegrateTransport_dv_impl
(
const
Eigen
::
MatrixBase
<
Config_t
>
&
q
,
const
Eigen
::
MatrixBase
<
Tangent_t
>
&
v
,
const
Eigen
::
MatrixBase
<
JacobianIn_t
>
&
Jin
,
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
Jout
)
const
const
Eigen
::
MatrixBase
<
JacobianIn_t
>
&
J
_
in
,
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
J
_
out
)
const
{
JacobianOut_t
&
Jout
=
PINOCCHIO_EIGEN_CONST_CAST
(
JacobianOut_t
,
J_out
);
JacobianOut_t
&
Jin
=
PINOCCHIO_EIGEN_CONST_CAST
(
JacobianIn_t
,
J_in
);
lg1_
.
dIntegrateTransport_dv
(
Q1
(
q
),
V1
(
v
),
Jin
.
template
topRows
<
LieGroup1
::
NV
>(),
Jout
.
template
topRows
<
LieGroup1
::
NV
>());
lg2_
.
dIntegrateTransport_dv
(
Q2
(
q
),
V2
(
v
),
Jin
.
template
bottomRows
<
LieGroup2
::
NV
>(),
Jout
.
template
bottomRows
<
LieGroup2
::
NV
>());
}
template
<
class
ConfigL_t
,
class
ConfigR_t
>
...
...
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