1 |
|
|
// |
2 |
|
|
// Copyright (c) 2019 INRIA |
3 |
|
|
// |
4 |
|
|
|
5 |
|
|
#ifndef __pinocchio_serialization_joints_constraint_hpp__ |
6 |
|
|
#define __pinocchio_serialization_joints_constraint_hpp__ |
7 |
|
|
|
8 |
|
|
#include "pinocchio/serialization/fwd.hpp" |
9 |
|
|
|
10 |
|
|
#include <boost/serialization/split_free.hpp> |
11 |
|
|
#include <boost/serialization/vector.hpp> |
12 |
|
|
|
13 |
|
|
namespace boost |
14 |
|
|
{ |
15 |
|
|
namespace serialization |
16 |
|
|
{ |
17 |
|
|
|
18 |
|
|
template <class Archive, typename Scalar, int Options, int axis> |
19 |
|
1400 |
void serialize(Archive & /*ar*/, |
20 |
|
|
pinocchio::ConstraintRevoluteTpl<Scalar,Options,axis> & /*S*/, |
21 |
|
|
const unsigned int /*version*/) |
22 |
|
1400 |
{} |
23 |
|
|
|
24 |
|
|
template <class Archive, typename Scalar, int Options, int axis> |
25 |
|
168 |
void serialize(Archive & /*ar*/, |
26 |
|
|
pinocchio::ConstraintPrismaticTpl<Scalar,Options,axis> & /*S*/, |
27 |
|
|
const unsigned int /*version*/) |
28 |
|
168 |
{} |
29 |
|
|
|
30 |
|
|
template <class Archive, typename Scalar, int Options> |
31 |
|
56 |
void serialize(Archive & /*ar*/, |
32 |
|
|
pinocchio::ConstraintSphericalTpl<Scalar,Options> & /*S*/, |
33 |
|
|
const unsigned int /*version*/) |
34 |
|
56 |
{} |
35 |
|
|
|
36 |
|
|
template <class Archive, typename Scalar, int Options> |
37 |
|
56 |
void serialize(Archive & /*ar*/, |
38 |
|
|
pinocchio::ConstraintTranslationTpl<Scalar,Options> & /*S*/, |
39 |
|
|
const unsigned int /*version*/) |
40 |
|
56 |
{} |
41 |
|
|
|
42 |
|
|
template <class Archive, typename Scalar, int Options> |
43 |
|
84 |
void serialize(Archive & /*ar*/, |
44 |
|
|
pinocchio::ConstraintIdentityTpl<Scalar,Options> & /*S*/, |
45 |
|
|
const unsigned int /*version*/) |
46 |
|
84 |
{} |
47 |
|
|
|
48 |
|
|
template <class Archive, typename Scalar, int Options> |
49 |
|
112 |
void serialize(Archive & ar, |
50 |
|
|
pinocchio::ConstraintRevoluteUnalignedTpl<Scalar,Options> & S, |
51 |
|
|
const unsigned int /*version*/) |
52 |
|
|
{ |
53 |
✓✗ |
112 |
ar & make_nvp("axis",S.axis()); |
54 |
|
112 |
} |
55 |
|
|
|
56 |
|
|
template <class Archive, typename Scalar, int Options> |
57 |
|
56 |
void serialize(Archive & ar, |
58 |
|
|
pinocchio::ConstraintPrismaticUnalignedTpl<Scalar,Options> & S, |
59 |
|
|
const unsigned int /*version*/) |
60 |
|
|
{ |
61 |
✓✗ |
56 |
ar & make_nvp("axis",S.axis()); |
62 |
|
56 |
} |
63 |
|
|
|
64 |
|
|
template <class Archive, int Dim, typename Scalar, int Options> |
65 |
|
56 |
void serialize(Archive & ar, |
66 |
|
|
pinocchio::ConstraintTpl<Dim,Scalar,Options> & S, |
67 |
|
|
const unsigned int /*version*/) |
68 |
|
|
{ |
69 |
✓✗ |
56 |
ar & make_nvp("matrix",S.matrix()); |
70 |
|
56 |
} |
71 |
|
|
|
72 |
|
|
template <class Archive, class Constraint> |
73 |
|
168 |
void serialize(Archive & ar, |
74 |
|
|
pinocchio::ScaledConstraint<Constraint> & S, |
75 |
|
|
const unsigned int /*version*/) |
76 |
|
|
{ |
77 |
✓✗ |
168 |
ar & make_nvp("scaling",S.scaling()); |
78 |
✓✗ |
168 |
ar & make_nvp("constraint",S.constraint()); |
79 |
|
168 |
} |
80 |
|
|
|
81 |
|
|
template <class Archive, typename Scalar, int Options> |
82 |
|
56 |
void serialize(Archive & /*ar*/, |
83 |
|
|
pinocchio::ConstraintPlanarTpl<Scalar,Options> & /*S*/, |
84 |
|
|
const unsigned int /*version*/) |
85 |
|
56 |
{} |
86 |
|
|
|
87 |
|
|
template <class Archive, typename Scalar, int Options> |
88 |
|
56 |
void serialize(Archive & ar, |
89 |
|
|
pinocchio::ConstraintSphericalZYXTpl<Scalar,Options> & S, |
90 |
|
|
const unsigned int /*version*/) |
91 |
|
|
{ |
92 |
✓✗ |
56 |
ar & make_nvp("angularSubspace",S.angularSubspace()); |
93 |
|
56 |
} |
94 |
|
|
|
95 |
|
|
} |
96 |
|
|
} |
97 |
|
|
|
98 |
|
|
#endif // ifndef __pinocchio_serialization_joints_constraint_hpp__ |
99 |
|
|
|