Line |
Branch |
Exec |
Source |
1 |
|
|
// |
2 |
|
|
// Copyright (c) 2019-2021 INRIA |
3 |
|
|
// |
4 |
|
|
|
5 |
|
|
#ifndef __pinocchio_serialization_frame_hpp__ |
6 |
|
|
#define __pinocchio_serialization_frame_hpp__ |
7 |
|
|
|
8 |
|
|
#include "pinocchio/multibody/frame.hpp" |
9 |
|
|
|
10 |
|
|
#include "pinocchio/serialization/fwd.hpp" |
11 |
|
|
#include "pinocchio/serialization/se3.hpp" |
12 |
|
|
#include "pinocchio/serialization/inertia.hpp" |
13 |
|
|
|
14 |
|
|
namespace boost |
15 |
|
|
{ |
16 |
|
|
namespace serialization |
17 |
|
|
{ |
18 |
|
|
|
19 |
|
|
template<class Archive, typename Scalar, int Options> |
20 |
|
|
void |
21 |
|
✗ |
serialize(Archive & ar, pinocchio::FrameTpl<Scalar, Options> & f, const unsigned int version) |
22 |
|
|
{ |
23 |
|
✗ |
ar & make_nvp("name", f.name); |
24 |
|
✗ |
ar & make_nvp("parent", f.parentJoint); |
25 |
|
✗ |
ar & make_nvp("parentFrame", f.parentFrame); |
26 |
|
✗ |
ar & make_nvp("placement", f.placement); |
27 |
|
✗ |
ar & make_nvp("type", f.type); |
28 |
|
|
|
29 |
|
✗ |
if (version > 0) |
30 |
|
✗ |
ar & make_nvp("inertia", f.inertia); |
31 |
|
|
} |
32 |
|
|
|
33 |
|
|
template<typename Scalar, int Options> |
34 |
|
|
struct version<pinocchio::FrameTpl<Scalar, Options>> |
35 |
|
|
{ |
36 |
|
|
enum |
37 |
|
|
{ |
38 |
|
|
value = 1 |
39 |
|
|
}; |
40 |
|
|
}; |
41 |
|
|
|
42 |
|
|
} // namespace serialization |
43 |
|
|
} // namespace boost |
44 |
|
|
|
45 |
|
|
#endif // ifndef __pinocchio_serialization_frame_hpp__ |
46 |
|
|
|