include
pinocchio
serialization
serialization/model.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2019-2020 INRIA
3
//
4
5
#ifndef __pinocchio_serialization_model_hpp__
6
#define __pinocchio_serialization_model_hpp__
7
8
#include <boost/serialization/string.hpp>
9
#include <boost/serialization/variant.hpp>
10
#include <boost/serialization/vector.hpp>
11
#include <boost/serialization/map.hpp>
12
13
#include "
pinocchio/serialization/fwd.hpp
"
14
#include "
pinocchio/serialization/aligned-vector.hpp
"
15
#include "
pinocchio/serialization/spatial.hpp
"
16
#include "
pinocchio/serialization/eigen.hpp
"
17
#include "
pinocchio/serialization/joints.hpp
"
18
#include "
pinocchio/serialization/frame.hpp
"
19
20
namespace
boost
21
{
22
namespace
serialization
23
{
24
template
<
25
class
Archive,
26
typename
Scalar
,
27
int
Options
,
28
template
<
typename
,
int
>
class
JointCollectionTpl>
29
void
serialize
(
30
Archive & ar,
31
pinocchio::ModelTpl<Scalar, Options, JointCollectionTpl>
&
model
,
32
const
unsigned
int
/*version*/
)
33
{
34
ar &
make_nvp
(
"nq"
,
model
.nq);
35
ar &
make_nvp
(
"nqs"
,
model
.nqs);
36
ar &
make_nvp
(
"idx_qs"
,
model
.idx_qs);
37
ar &
make_nvp
(
"nv"
,
model
.nv);
38
ar &
make_nvp
(
"nvs"
,
model
.nvs);
39
ar &
make_nvp
(
"idx_vs"
,
model
.idx_vs);
40
ar &
make_nvp
(
"njoints"
,
model
.njoints);
41
ar &
make_nvp
(
"nbodies"
,
model
.nbodies);
42
ar &
make_nvp
(
"nframes"
,
model
.nframes);
43
ar &
make_nvp
(
"parents"
,
model
.parents);
44
ar &
make_nvp
(
"children"
,
model
.children);
45
ar &
make_nvp
(
"names"
,
model
.names);
46
ar &
make_nvp
(
"supports"
,
model
.supports);
47
ar &
make_nvp
(
"subtrees"
,
model
.subtrees);
48
ar &
make_nvp
(
"gravity"
,
model
.gravity);
49
ar &
make_nvp
(
"name"
,
model
.name);
50
51
ar &
make_nvp
(
"referenceConfigurations"
,
model
.referenceConfigurations);
52
ar &
make_nvp
(
"armature"
,
model
.armature);
53
ar &
make_nvp
(
"rotorInertia"
,
model
.rotorInertia);
54
ar &
make_nvp
(
"rotorGearRatio"
,
model
.rotorGearRatio);
55
ar &
make_nvp
(
"friction"
,
model
.friction);
56
ar &
make_nvp
(
"damping"
,
model
.damping);
57
ar &
make_nvp
(
"effortLimit"
,
model
.effortLimit);
58
ar &
make_nvp
(
"velocityLimit"
,
model
.velocityLimit);
59
ar &
make_nvp
(
"lowerPositionLimit"
,
model
.lowerPositionLimit);
60
ar &
make_nvp
(
"upperPositionLimit"
,
model
.upperPositionLimit);
61
62
ar &
make_nvp
(
"inertias"
,
model
.inertias);
63
ar &
make_nvp
(
"jointPlacements"
,
model
.jointPlacements);
64
65
ar &
make_nvp
(
"joints"
,
model
.joints);
66
ar &
make_nvp
(
"frames"
,
model
.frames);
67
}
68
69
}
// namespace serialization
70
}
// namespace boost
71
72
#endif // ifndef __pinocchio_serialization_model_hpp__
boost::serialization::serialize
void serialize(Archive &ar, Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int version)
Definition:
serialization/eigen.hpp:222
pinocchio::python::Scalar
context::Scalar Scalar
Definition:
admm-solver.cpp:29
frame.hpp
boost
boost::serialization::make_nvp
const nvp< pinocchio::container::aligned_vector< T > > make_nvp(const char *name, pinocchio::container::aligned_vector< T > &t)
Definition:
serialization/aligned-vector.hpp:37
anymal-simulation.model
model
Definition:
anymal-simulation.py:8
pinocchio::python::Options
@ Options
Definition:
expose-contact-inverse-dynamics.cpp:22
eigen.hpp
aligned-vector.hpp
spatial.hpp
serialization
Definition:
serialization.py:1
pinocchio::ModelTpl
Definition:
context/generic.hpp:20
joints.hpp
fwd.hpp
pinocchio
Author(s):
autogenerated on Thu Dec 19 2024 03:41:32