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
670685ae
Commit
670685ae
authored
Apr 21, 2021
by
Joseph Mirabel
Browse files
[Minor] Bugfix + API improvement in lie group.
parent
c153dfd7
Pipeline
#14108
passed with stage
in 319 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/liegroup/cartesian-product-variant.hpp
View file @
670685ae
...
...
@@ -86,6 +86,18 @@ namespace pinocchio
///
void
append
(
const
LieGroupGeneric
&
lg
);
///
/// \brief Append a Lie group to the Cartesian product
///
/// \param[in] lg Lie group to insert inside the Cartesian product
///
template
<
typename
LieGroupDerived
>
void
append
(
const
LieGroupBase
<
LieGroupDerived
>&
lg
)
{
LieGroupGeneric
lgGeneric
(
lg
);
append
(
lgGeneric
);
}
///
/// \brief Cartesian product between *this and other.
///
...
...
@@ -112,6 +124,18 @@ namespace pinocchio
append
(
lg
);
return
*
this
;
}
///
/// \brief Append a Lie group to *this.
///
/// \param[in] lg LieGroupGeneric to append to *this.
///
template
<
typename
LieGroupDerived
>
inline
CartesianProductOperationVariantTpl
&
operator
*=
(
const
LieGroupBase
<
LieGroupDerived
>&
lg
)
{
append
<
LieGroupDerived
>
(
lg
);
return
*
this
;
}
int
nq
()
const
{
return
m_nq
;
}
int
nv
()
const
{
return
m_nv
;
}
...
...
src/multibody/liegroup/liegroup-variant-visitors.hpp
View file @
670685ae
...
...
@@ -155,23 +155,21 @@ namespace pinocchio
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
J
,
const
ArgumentPosition
arg
);
template
<
typename
LieGroupCollection
,
class
ConfigL_t
,
class
ConfigR_t
,
class
JacobianIn_t
,
class
JacobianOut_t
>
template
<
ArgumentPosition
arg
,
typename
LieGroupCollection
,
class
ConfigL_t
,
class
ConfigR_t
,
class
JacobianIn_t
,
class
JacobianOut_t
>
void
dDifference
(
const
LieGroupGenericTpl
<
LieGroupCollection
>
&
lg
,
const
Eigen
::
MatrixBase
<
ConfigL_t
>
&
q0
,
const
Eigen
::
MatrixBase
<
ConfigR_t
>
&
q1
,
const
Eigen
::
MatrixBase
<
JacobianIn_t
>
&
Jin
,
int
self
,
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
Jout
,
const
ArgumentPosition
arg
);
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
Jout
);
template
<
typename
LieGroupCollection
,
class
ConfigL_t
,
class
ConfigR_t
,
class
JacobianIn_t
,
class
JacobianOut_t
>
template
<
ArgumentPosition
arg
,
typename
LieGroupCollection
,
class
ConfigL_t
,
class
ConfigR_t
,
class
JacobianIn_t
,
class
JacobianOut_t
>
void
dDifference
(
const
LieGroupGenericTpl
<
LieGroupCollection
>
&
lg
,
const
Eigen
::
MatrixBase
<
ConfigL_t
>
&
q0
,
const
Eigen
::
MatrixBase
<
ConfigR_t
>
&
q1
,
int
self
,
const
Eigen
::
MatrixBase
<
JacobianIn_t
>
&
Jin
,
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
Jout
,
const
ArgumentPosition
arg
);
const
Eigen
::
MatrixBase
<
JacobianOut_t
>
&
Jout
);
template
<
typename
LieGroupCollection
,
class
Config_t
,
class
Tangent_t
,
class
JacobianIn_t
,
class
JacobianOut_t
>
void
dIntegrateTransport
(
const
LieGroupGenericTpl
<
LieGroupCollection
>
&
lg
,
...
...
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