joints-motion.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2019 INRIA
3 //
4 
5 #ifndef __pinocchio_serialization_joints_motion_hpp__
6 #define __pinocchio_serialization_joints_motion_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  void serialize(Archive & ar,
21  const unsigned int /*version*/)
22  {
23  ar & make_nvp("w",m.angularRate());
24  }
25 
26  template <class Archive, typename Scalar, int Options, int axis>
27  void serialize(Archive & ar,
29  const unsigned int /*version*/)
30  {
31  ar & make_nvp("v",m.linearRate());
32  }
33 
34  template <class Archive, typename Scalar, int Options>
35  void serialize(Archive & ar,
37  const unsigned int /*version*/)
38  {
39  ar & make_nvp("angular",m.angular());
40  }
41 
42  template <class Archive, typename Scalar, int Options>
43  void serialize(Archive & ar,
45  const unsigned int /*version*/)
46  {
47  ar & make_nvp("linear",m.linear());
48  }
49 
50  template <class Archive, typename Scalar, int Options>
51  void serialize(Archive & ar,
53  const unsigned int /*version*/)
54  {
55  ar & make_nvp("data",m.data());
56  }
57 
58  template <class Archive, typename Scalar, int Options>
59  void serialize(Archive & ar,
61  const unsigned int /*version*/)
62  {
63  ar & make_nvp("axis",m.axis());
64  ar & make_nvp("w",m.angularRate());
65  }
66 
67  template <class Archive, typename Scalar, int Options>
68  void serialize(Archive & ar,
70  const unsigned int /*version*/)
71  {
72  ar & make_nvp("axis",m.axis());
73  ar & make_nvp("v",m.linearRate());
74  }
75 
76  }
77 }
78 
79 #endif // ifndef __pinocchio_serialization_joints_motion_hpp__
const Vector3 & angular() const
const nvp< typename pinocchio::container::aligned_vector< T >::vector_base > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
void serialize(Archive &ar, pinocchio::container::aligned_vector< T > &v, const unsigned int version)
const Vector3 & data() const
const Vector3 & linear() const


pinocchio
Author(s):
autogenerated on Tue Jun 1 2021 02:45:04