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
f55a5e11
Commit
f55a5e11
authored
Apr 21, 2020
by
Rohan Budhiraja
Browse files
liegroup/cartesian-product: transportinplace
parent
40920203
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/liegroup/cartesian-product.hpp
View file @
f55a5e11
...
...
@@ -202,6 +202,27 @@ namespace pinocchio
lg2_
.
dIntegrateTransport_dv
(
Q2
(
q
),
V2
(
v
),
Jin
.
template
bottomRows
<
LieGroup2
::
NV
>(),
Jout
.
template
bottomRows
<
LieGroup2
::
NV
>());
}
template
<
class
Config_t
,
class
Tangent_t
,
class
Jacobian_t
>
void
dIntegrateTransportInPlace_dq_impl
(
const
Eigen
::
MatrixBase
<
Config_t
>
&
q
,
const
Eigen
::
MatrixBase
<
Tangent_t
>
&
v
,
const
Eigen
::
MatrixBase
<
Jacobian_t
>
&
Jin
)
const
{
Jacobian_t
&
J
=
PINOCCHIO_EIGEN_CONST_CAST
(
Jacobian_t
,
Jin
);
lg1_
.
dIntegrateTransport_dq
(
Q1
(
q
),
V1
(
v
),
J
.
template
topRows
<
LieGroup1
::
NV
>());
lg2_
.
dIntegrateTransport_dq
(
Q2
(
q
),
V2
(
v
),
J
.
template
bottomRows
<
LieGroup2
::
NV
>());
}
template
<
class
Config_t
,
class
Tangent_t
,
class
Jacobian_t
>
void
dIntegrateTransportInPlace_dv_impl
(
const
Eigen
::
MatrixBase
<
Config_t
>
&
q
,
const
Eigen
::
MatrixBase
<
Tangent_t
>
&
v
,
const
Eigen
::
MatrixBase
<
Jacobian_t
>
&
Jin
)
const
{
Jacobian_t
&
J
=
PINOCCHIO_EIGEN_CONST_CAST
(
Jacobian_t
,
Jin
);
lg1_
.
dIntegrateTransport_dv
(
Q1
(
q
),
V1
(
v
),
J
.
template
topRows
<
LieGroup1
::
NV
>());
lg2_
.
dIntegrateTransport_dv
(
Q2
(
q
),
V2
(
v
),
J
.
template
bottomRows
<
LieGroup2
::
NV
>());
}
template
<
class
ConfigL_t
,
class
ConfigR_t
>
Scalar
squaredDistance_impl
(
const
Eigen
::
MatrixBase
<
ConfigL_t
>
&
q0
,
const
Eigen
::
MatrixBase
<
ConfigR_t
>
&
q1
)
const
...
...
Write
Preview
Markdown
is supported
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