src/serialization/frame.hpp
Go to the documentation of this file.
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 serialize(Archive & ar,
22  const unsigned int version)
23  {
24  ar & make_nvp("name",f.name);
25  ar & make_nvp("parent",f.parent);
26  ar & make_nvp("previousFrame",f.previousFrame);
27  ar & make_nvp("placement",f.placement);
28  ar & make_nvp("type",f.type);
29 
30  if(version > 0)
31  ar & make_nvp("inertia",f.inertia);
32  }
33 
34  template<typename Scalar, int Options>
35  struct version< pinocchio::FrameTpl<Scalar,Options> >
36  {
37  enum { value = 1 };
38  };
39 
40  }
41 }
42 
43 #endif // ifndef __pinocchio_serialization_frame_hpp__
A Plucker coordinate frame attached to a parent joint inside a kinematic tree.
JointIndex parent
Index of the parent joint.
FrameType type
Type of the frame.
const nvp< typename pinocchio::container::aligned_vector< T >::vector_base > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
SE3 placement
Placement of the frame wrt the parent joint.
Main pinocchio namespace.
Definition: timings.cpp:30
Inertia inertia
Inertia information attached to the frame. This inertia will be appended to the inertia supported by ...
std::string name
Name of the frame.
void serialize(Archive &ar, pinocchio::container::aligned_vector< T > &v, const unsigned int version)
int value
FrameIndex previousFrame
Index of the previous frame.


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