29#ifndef HPP_PINOCCHIO_LIEGROUP_HH
30#define HPP_PINOCCHIO_LIEGROUP_HH
37#include <pinocchio/multibody/joint/joints.hpp>
49 template <
typename Jo
intModel>
60 template <
typename Jo
intModel>
68template <
typename Scalar,
int Options,
int Axis>
70 ::pinocchio::JointModelRevoluteTpl<Scalar, Options, Axis>> {
73template <
typename Scalar,
int Options,
int Axis>
74struct RnxSOnLieGroupMap::operation<
75 ::pinocchio::JointModelRevoluteUnboundedTpl<Scalar, Options, Axis>> {
76 typedef liegroup::SpecialOrthogonalOperation<2> type;
78template <
typename Scalar,
int Options>
79struct RnxSOnLieGroupMap::operation<
80 ::pinocchio::JointModelRevoluteUnalignedTpl<Scalar, Options>> {
81 typedef liegroup::VectorSpaceOperation<1, true> type;
83template <
typename Scalar,
int Options>
84struct RnxSOnLieGroupMap::operation<
85 ::pinocchio::JointModelRevoluteUnboundedUnalignedTpl<Scalar, Options>> {
86 typedef liegroup::SpecialOrthogonalOperation<2> type;
90template <
typename Scalar,
int Options,
int Axis>
91struct RnxSOnLieGroupMap::operation<
92 ::pinocchio::JointModelPrismaticTpl<Scalar, Options, Axis>> {
93 typedef liegroup::VectorSpaceOperation<1, false> type;
95template <
typename Scalar,
int Options>
96struct RnxSOnLieGroupMap::operation<
97 ::pinocchio::JointModelPrismaticUnalignedTpl<Scalar, Options>> {
98 typedef liegroup::VectorSpaceOperation<1, false> type;
100template <
typename Scalar,
int Options>
101struct RnxSOnLieGroupMap::operation<
102 ::pinocchio::JointModelTranslationTpl<Scalar, Options>> {
103 typedef liegroup::VectorSpaceOperation<3, false> type;
107template <
typename Scalar,
int Options>
108struct RnxSOnLieGroupMap::operation<
109 ::pinocchio::JointModelSphericalTpl<Scalar, Options>> {
110 typedef liegroup::SpecialOrthogonalOperation<3> type;
112template <
typename Scalar,
int Options>
113struct RnxSOnLieGroupMap::operation<
114 ::pinocchio::JointModelSphericalZYXTpl<Scalar, Options>> {
115 typedef liegroup::VectorSpaceOperation<3, true> type;
119template <
typename Scalar,
int Options>
120struct RnxSOnLieGroupMap::operation<
121 ::pinocchio::JointModelFreeFlyerTpl<Scalar, Options>> {
122 typedef liegroup::CartesianProductOperation<
123 liegroup::VectorSpaceOperation<3, false>,
124 liegroup::SpecialOrthogonalOperation<3>>
127template <
typename Scalar,
int Options>
128struct RnxSOnLieGroupMap::operation<
129 ::pinocchio::JointModelPlanarTpl<Scalar, Options>> {
130 typedef liegroup::CartesianProductOperation<
131 liegroup::VectorSpaceOperation<2, false>,
132 liegroup::SpecialOrthogonalOperation<2>>
137#if PINOCCHIO_VERSION_AT_LEAST(3, 4, 1)
140template <
typename Scalar,
int Options>
141struct RnxSOnLieGroupMap::operation<
142 ::pinocchio::JointModelMimicTpl<Scalar, Options>> {
143 typedef liegroup::VectorSpaceOperation<1, true> type;
148template <
typename OtherJo
intType>
149struct RnxSOnLieGroupMap::operation<
150 ::pinocchio::JointModelMimic<OtherJointType>> {
151 typedef typename RnxSOnLieGroupMap::operation<OtherJointType>::type type;
156template <
typename Scalar,
int Options,
int _axis>
157struct RnxSOnLieGroupMap::operation<
158 ::pinocchio::JointModelHelicalTpl<Scalar, Options, _axis>> {
159 typedef liegroup::VectorSpaceOperation<1, true> type;
163template <
typename Scalar,
int Options>
164struct RnxSOnLieGroupMap::operation<
165 ::pinocchio::JointModelHelicalUnalignedTpl<Scalar, Options>> {
166 typedef liegroup::VectorSpaceOperation<1, true> type;
170template <
typename Scalar,
int Options>
171struct RnxSOnLieGroupMap::operation<
172 ::pinocchio::JointModelUniversalTpl<Scalar, Options>> {
173 typedef liegroup::VectorSpaceOperation<
174 ::pinocchio::JointModelUniversalTpl<Scalar, Options>::NQ,
false>
180template <
typename Scalar,
int Options,
181 template <
typename S,
int O>
class JointCollectionTpl>
182struct RnxSOnLieGroupMap::operation<
183 ::pinocchio::JointModelCompositeTpl<Scalar, Options, JointCollectionTpl>> {
184 typedef liegroup::VectorSpaceOperation<Eigen::Dynamic, false> type;
191template <
typename Scalar,
int Options,
int Axis>
192struct DefaultLieGroupMap::operation<
193 ::pinocchio::JointModelRevoluteTpl<Scalar, Options, Axis>> {
194 typedef liegroup::VectorSpaceOperation<1, true> type;
196template <
typename Scalar,
int Options,
int Axis>
197struct DefaultLieGroupMap::operation<
198 ::pinocchio::JointModelRevoluteUnboundedTpl<Scalar, Options, Axis>> {
199 typedef liegroup::SpecialOrthogonalOperation<2> type;
201template <
typename Scalar,
int Options>
202struct DefaultLieGroupMap::operation<
203 ::pinocchio::JointModelRevoluteUnalignedTpl<Scalar, Options>> {
204 typedef liegroup::VectorSpaceOperation<1, true> type;
206template <
typename Scalar,
int Options>
207struct DefaultLieGroupMap::operation<
208 ::pinocchio::JointModelRevoluteUnboundedUnalignedTpl<Scalar, Options>> {
209 typedef liegroup::SpecialOrthogonalOperation<2> type;
213template <
typename Scalar,
int Options,
int Axis>
214struct DefaultLieGroupMap::operation<
215 ::pinocchio::JointModelPrismaticTpl<Scalar, Options, Axis>> {
216 typedef liegroup::VectorSpaceOperation<1, false> type;
218template <
typename Scalar,
int Options>
219struct DefaultLieGroupMap::operation<
220 ::pinocchio::JointModelPrismaticUnalignedTpl<Scalar, Options>> {
221 typedef liegroup::VectorSpaceOperation<1, false> type;
223template <
typename Scalar,
int Options>
224struct DefaultLieGroupMap::operation<
225 ::pinocchio::JointModelTranslationTpl<Scalar, Options>> {
226 typedef liegroup::VectorSpaceOperation<3, false> type;
230template <
typename Scalar,
int Options>
231struct DefaultLieGroupMap::operation<
232 ::pinocchio::JointModelSphericalTpl<Scalar, Options>> {
233 typedef liegroup::SpecialOrthogonalOperation<3> type;
235template <
typename Scalar,
int Options>
236struct DefaultLieGroupMap::operation<
237 ::pinocchio::JointModelSphericalZYXTpl<Scalar, Options>> {
238 typedef liegroup::VectorSpaceOperation<3, true> type;
242template <
typename Scalar,
int Options>
243struct DefaultLieGroupMap::operation<
244 ::pinocchio::JointModelFreeFlyerTpl<Scalar, Options>> {
245 typedef liegroup::SpecialEuclideanOperation<3> type;
247template <
typename Scalar,
int Options>
248struct DefaultLieGroupMap::operation<
249 ::pinocchio::JointModelPlanarTpl<Scalar, Options>> {
250 typedef liegroup::SpecialEuclideanOperation<2> type;
254#if PINOCCHIO_VERSION_AT_LEAST(3, 4, 1)
256template <
typename Scalar,
int Options>
257struct DefaultLieGroupMap::operation<
258 ::pinocchio::JointModelMimicTpl<Scalar, Options>> {
259 typedef liegroup::VectorSpaceOperation<1, true> type;
263template <
typename OtherJo
intType>
264struct DefaultLieGroupMap::operation<
265 ::pinocchio::JointModelMimic<OtherJointType>> {
266 typedef typename DefaultLieGroupMap::operation<OtherJointType>::type type;
270template <
typename Scalar,
int Options,
int _axis>
271struct DefaultLieGroupMap::operation<
272 ::pinocchio::JointModelHelicalTpl<Scalar, Options, _axis>> {
273 typedef liegroup::VectorSpaceOperation<1, true> type;
277template <
typename Scalar,
int Options>
278struct DefaultLieGroupMap::operation<
279 ::pinocchio::JointModelHelicalUnalignedTpl<Scalar, Options>> {
280 typedef liegroup::VectorSpaceOperation<1, true> type;
284template <
typename Scalar,
int Options>
285struct DefaultLieGroupMap::operation<
286 ::pinocchio::JointModelUniversalTpl<Scalar, Options>> {
287 typedef liegroup::VectorSpaceOperation<
288 ::pinocchio::JointModelUniversalTpl<Scalar, Options>::NQ,
false>
294template <
typename Scalar,
int Options,
295 template <
typename S,
int O>
class JointCollectionTpl>
296struct DefaultLieGroupMap::operation<
297 ::pinocchio::JointModelCompositeTpl<Scalar, Options, JointCollectionTpl>> {
298 typedef liegroup::VectorSpaceOperation<Eigen::Dynamic, false> type;
Utility functions.
Definition body.hh:39
Definition collision-object.hh:40
Definition liegroup.hh:61
Definition liegroup.hh:59
Definition liegroup.hh:50
Definition liegroup.hh:48
Definition vector-space.hh:60