hpp-pinocchio 6.1.0
Wrapping of the kinematic/dynamic chain Pinocchio for HPP.
 
Loading...
Searching...
No Matches
liegroup.hh
Go to the documentation of this file.
1// Copyright (c) 2017, Joseph Mirabel
2// Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3//
4
5// Redistribution and use in source and binary forms, with or without
6// modification, are permitted provided that the following conditions are
7// met:
8//
9// 1. Redistributions of source code must retain the above copyright
10// notice, this list of conditions and the following disclaimer.
11//
12// 2. Redistributions in binary form must reproduce the above copyright
13// notice, this list of conditions and the following disclaimer in the
14// documentation and/or other materials provided with the distribution.
15//
16// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20// HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
27// DAMAGE.
28
29#ifndef HPP_PINOCCHIO_LIEGROUP_HH
30#define HPP_PINOCCHIO_LIEGROUP_HH
31
37#include <pinocchio/multibody/joint/joints.hpp>
38
39namespace hpp {
40namespace pinocchio {
41
49 template <typename JointModel>
53};
54
62 template <typename JointModel>
66};
67
69//---------------- RnxSOnLieGroupMap -------------------------------//
70// JointModelRevolute, JointModelRevoluteUnbounded, JointModelRevoluteUnaligned,
71// JointModelRevoluteUnboundedUnaligned
72template <typename Scalar, int Options, int Axis>
74 ::pinocchio::JointModelRevoluteTpl<Scalar, Options, Axis>> {
76};
77template <typename Scalar, int Options, int Axis>
78struct RnxSOnLieGroupMap::operation<
79 ::pinocchio::JointModelRevoluteUnboundedTpl<Scalar, Options, Axis>> {
80 typedef liegroup::SpecialOrthogonalOperation<2> type;
81};
82template <typename Scalar, int Options>
83struct RnxSOnLieGroupMap::operation<
84 ::pinocchio::JointModelRevoluteUnalignedTpl<Scalar, Options>> {
85 typedef liegroup::VectorSpaceOperation<1, true> type;
86};
87template <typename Scalar, int Options>
89 ::pinocchio::JointModelRevoluteUnboundedUnalignedTpl<Scalar, Options>> {
90 typedef liegroup::SpecialOrthogonalOperation<2> type;
91};
92
93// JointModelPrismaticTpl, JointModelPrismaticUnaligned, JointModelTranslation
94template <typename Scalar, int Options, int Axis>
96 ::pinocchio::JointModelPrismaticTpl<Scalar, Options, Axis>> {
97 typedef liegroup::VectorSpaceOperation<1, false> type;
98};
99template <typename Scalar, int Options>
101 ::pinocchio::JointModelPrismaticUnalignedTpl<Scalar, Options>> {
102 typedef liegroup::VectorSpaceOperation<1, false> type;
103};
104template <typename Scalar, int Options>
106 ::pinocchio::JointModelTranslationTpl<Scalar, Options>> {
107 typedef liegroup::VectorSpaceOperation<3, false> type;
108};
109
110// JointModelSpherical, JointModelSphericalZYX,
111template <typename Scalar, int Options>
113 ::pinocchio::JointModelSphericalTpl<Scalar, Options>> {
114 typedef liegroup::SpecialOrthogonalOperation<3> type;
115};
116template <typename Scalar, int Options>
118 ::pinocchio::JointModelSphericalZYXTpl<Scalar, Options>> {
119 typedef liegroup::VectorSpaceOperation<3, true> type;
120};
121
122// JointModelFreeFlyer, JointModelPlanar
123template <typename Scalar, int Options>
125 ::pinocchio::JointModelFreeFlyerTpl<Scalar, Options>> {
126 typedef liegroup::CartesianProductOperation<
127 liegroup::VectorSpaceOperation<3, false>,
128 liegroup::SpecialOrthogonalOperation<3>>
129 type;
130};
131template <typename Scalar, int Options>
133 ::pinocchio::JointModelPlanarTpl<Scalar, Options>> {
134 typedef liegroup::CartesianProductOperation<
135 liegroup::VectorSpaceOperation<2, false>,
136 liegroup::SpecialOrthogonalOperation<2>>
137 type;
138};
139
140//---------------- DefaultLieGroupMap ------------------------------------//
141
142// JointModelRevolute, JointModelRevoluteUnbounded, JointModelRevoluteUnaligned,
143// JointModelRevoluteUnboundedUnaligned
144template <typename Scalar, int Options, int Axis>
146 ::pinocchio::JointModelRevoluteTpl<Scalar, Options, Axis>> {
147 typedef liegroup::VectorSpaceOperation<1, true> type;
148};
149template <typename Scalar, int Options, int Axis>
151 ::pinocchio::JointModelRevoluteUnboundedTpl<Scalar, Options, Axis>> {
152 typedef liegroup::SpecialOrthogonalOperation<2> type;
153};
154template <typename Scalar, int Options>
156 ::pinocchio::JointModelRevoluteUnalignedTpl<Scalar, Options>> {
157 typedef liegroup::VectorSpaceOperation<1, true> type;
158};
159template <typename Scalar, int Options>
161 ::pinocchio::JointModelRevoluteUnboundedUnalignedTpl<Scalar, Options>> {
162 typedef liegroup::SpecialOrthogonalOperation<2> type;
163};
164
165// JointModelPrismaticTpl, JointModelPrismaticUnaligned, JointModelTranslation
166template <typename Scalar, int Options, int Axis>
168 ::pinocchio::JointModelPrismaticTpl<Scalar, Options, Axis>> {
169 typedef liegroup::VectorSpaceOperation<1, false> type;
170};
171template <typename Scalar, int Options>
173 ::pinocchio::JointModelPrismaticUnalignedTpl<Scalar, Options>> {
174 typedef liegroup::VectorSpaceOperation<1, false> type;
175};
176template <typename Scalar, int Options>
178 ::pinocchio::JointModelTranslationTpl<Scalar, Options>> {
179 typedef liegroup::VectorSpaceOperation<3, false> type;
180};
181
182// JointModelSpherical, JointModelSphericalZYX,
183template <typename Scalar, int Options>
185 ::pinocchio::JointModelSphericalTpl<Scalar, Options>> {
186 typedef liegroup::SpecialOrthogonalOperation<3> type;
187};
188template <typename Scalar, int Options>
190 ::pinocchio::JointModelSphericalZYXTpl<Scalar, Options>> {
191 typedef liegroup::VectorSpaceOperation<3, true> type;
192};
193
194// JointModelFreeFlyer, JointModelPlanar
195template <typename Scalar, int Options>
197 ::pinocchio::JointModelFreeFlyerTpl<Scalar, Options>> {
198 typedef liegroup::SpecialEuclideanOperation<3> type;
199};
200template <typename Scalar, int Options>
202 ::pinocchio::JointModelPlanarTpl<Scalar, Options>> {
203 typedef liegroup::SpecialEuclideanOperation<2> type;
204};
205
207} // namespace pinocchio
208} // namespace hpp
209
210#endif // HPP_PINOCCHIO_LIEGROUP_HH
Definition body.hh:40
Utility functions.
liegroup::VectorSpaceOperation< Eigen::Dynamic, false > type
Definition liegroup.hh:64
Definition liegroup.hh:61
liegroup::VectorSpaceOperation< Eigen::Dynamic, false > type
Definition liegroup.hh:51
Definition liegroup.hh:48