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
c5eee39f
Verified
Commit
c5eee39f
authored
Jul 12, 2018
by
jcarpent
Committed by
Justin Carpentier
Oct 29, 2018
Browse files
[Joint] Add JointDataVariant inside JointCollection
parent
e76b7a3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/multibody/joint/joint-collection.hpp
View file @
c5eee39f
...
...
@@ -89,15 +89,60 @@ namespace se3
JointModelRUBX
,
JointModelRUBY
,
JointModelRUBZ
,
boost
::
recursive_wrapper
<
JointModelComposite
>
>
JointModelVariant
;
// Joint Revolute
typedef
JointDataRevoluteTpl
<
Scalar
,
Options
,
0
>
JointDataRX
;
typedef
JointDataRevoluteTpl
<
Scalar
,
Options
,
1
>
JointDataRY
;
typedef
JointDataRevoluteTpl
<
Scalar
,
Options
,
2
>
JointDataRZ
;
// Joint Revolute Unaligned
typedef
JointDataRevoluteUnalignedTpl
<
Scalar
,
Options
>
JointDataRevoluteUnaligned
;
// Joint Revolute UBounded
typedef
JointDataRevoluteUnboundedTpl
<
Scalar
,
Options
,
0
>
JointDataRUBX
;
typedef
JointDataRevoluteUnboundedTpl
<
Scalar
,
Options
,
1
>
JointDataRUBY
;
typedef
JointDataRevoluteUnboundedTpl
<
Scalar
,
Options
,
2
>
JointDataRUBZ
;
// Joint Prismatic
typedef
JointDataPrismaticTpl
<
Scalar
,
Options
,
0
>
JointDataPX
;
typedef
JointDataPrismaticTpl
<
Scalar
,
Options
,
1
>
JointDataPY
;
typedef
JointDataPrismaticTpl
<
Scalar
,
Options
,
2
>
JointDataPZ
;
// Joint Prismatic Unaligned
typedef
JointDataPrismaticUnalignedTpl
<
Scalar
,
Options
>
JointDataPrismaticUnaligned
;
// Joint Spherical
typedef
JointDataSphericalTpl
<
Scalar
,
Options
>
JointDataSpherical
;
// Joint Spherical ZYX
typedef
JointDataSphericalZYXTpl
<
Scalar
,
Options
>
JointDataSphericalZYX
;
// Joint Translation
typedef
JointDataTranslationTpl
<
Scalar
,
Options
>
JointDataTranslation
;
// Joint FreeFlyer
typedef
JointDataFreeFlyerTpl
<
Scalar
,
Options
>
JointDataFreeFlyer
;
// Joint Planar
typedef
JointDataPlanarTpl
<
Scalar
,
Options
>
JointDataPlanar
;
// Joint Composite
typedef
JointDataCompositeTpl
<
JointCollectionDefaultTpl
>
JointDataComposite
;
typedef
boost
::
variant
<
JointDataRX
,
JointDataRY
,
JointDataRZ
,
JointDataRevoluteUnaligned
,
JointDataSpherical
,
JointDataSphericalZYX
,
JointDataPX
,
JointDataPY
,
JointDataPZ
,
JointDataPrismaticUnaligned
,
JointDataFreeFlyer
,
JointDataPlanar
,
JointDataTranslation
,
JointDataRUBX
,
JointDataRUBY
,
JointDataRUBZ
,
boost
::
recursive_wrapper
<
JointDataComposite
>
>
JointDataVariant
;
};
typedef
JointCollectionDefault
::
JointModelVariant
JointModelVariant
;
typedef
boost
::
variant
<
JointDataRX
,
JointDataRY
,
JointDataRZ
,
JointDataRevoluteUnaligned
,
JointDataSpherical
,
JointDataSphericalZYX
,
JointDataPX
,
JointDataPY
,
JointDataPZ
,
JointDataPrismaticUnaligned
,
JointDataFreeFlyer
,
JointDataPlanar
,
JointDataTranslation
,
JointDataRUBX
,
JointDataRUBY
,
JointDataRUBZ
,
boost
::
recursive_wrapper
<
JointDataComposite
>
>
JointDataVariant
;
typedef
JointCollectionDefault
::
JointDataVariant
JointDataVariant
;
}
// namespace se3
...
...
src/multibody/joint/joint-composite.hpp
View file @
c5eee39f
...
...
@@ -72,7 +72,7 @@ namespace se3
{
EIGEN_MAKE_ALIGNED_OPERATOR_NEW
//
typedef typename JointCollection::JointDataVariant JointDataVariant;
typedef
typename
JointCollection
::
JointDataVariant
JointDataVariant
;
typedef
JointDataBase
<
JointDataCompositeTpl
<
JointCollection
>
>
Base
;
typedef
container
::
aligned_vector
<
JointDataVariant
>
JointDataVector
;
...
...
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