Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
x
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
f
g
i
j
l
m
n
p
q
r
s
t
u
v
x
y
z
Enumerations
Enumerator
a
b
c
e
f
g
j
l
m
o
p
r
s
u
v
w
Classes
Class List
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
p
q
r
s
t
u
v
z
Enumerations
Enumerator
a
b
c
d
f
i
l
m
n
o
r
s
u
v
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
i
j
l
m
n
o
p
q
r
s
t
u
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
Typedefs
a
c
d
g
j
m
p
r
s
t
v
Enumerator
Macros
_
a
b
d
e
f
h
i
j
k
m
o
p
q
r
s
v
Examples
include
pinocchio
serialization
serialization/inertia.hpp
Go to the documentation of this file.
1
//
2
// Copyright (c) 2019 INRIA
3
//
4
5
#ifndef __pinocchio_serialization_inertia_hpp__
6
#define __pinocchio_serialization_inertia_hpp__
7
8
#include "
pinocchio/spatial/inertia.hpp
"
9
#include "
pinocchio/serialization/fwd.hpp
"
10
#include "
pinocchio/serialization/symmetric3.hpp
"
11
12
#include <boost/serialization/split_free.hpp>
13
#include <boost/serialization/vector.hpp>
14
15
namespace
boost
16
{
17
namespace
serialization
18
{
19
20
template
<
class
Archive,
typename
Scalar,
int
Options>
21
void
save
(
22
Archive & ar,
23
const
pinocchio::InertiaTpl<Scalar, Options>
& I,
24
const
unsigned
int
/*version*/
)
25
{
26
const
Scalar
mass
= I.
mass
();
27
ar &
make_nvp
(
"mass"
,
mass
);
28
ar &
make_nvp
(
"lever"
, make_array(I.
lever
().data(), 3));
29
ar &
make_nvp
(
"inertia"
, I.
inertia
());
30
}
31
32
template
<
class
Archive,
typename
Scalar,
int
Options>
33
void
34
load
(Archive & ar,
pinocchio::InertiaTpl<Scalar, Options>
& I,
const
unsigned
int
/*version*/
)
35
{
36
ar >>
make_nvp
(
"mass"
, I.
mass
());
37
ar >>
make_nvp
(
"lever"
, make_array(I.
lever
().data(), 3));
38
ar >>
make_nvp
(
"inertia"
, I.
inertia
());
39
}
40
41
template
<
class
Archive,
typename
Scalar,
int
Options>
42
void
43
serialize
(Archive & ar,
pinocchio::InertiaTpl<Scalar, Options>
& I,
const
unsigned
int
version
)
44
{
45
split_free(ar, I,
version
);
46
}
47
48
}
// namespace serialization
49
}
// namespace boost
50
51
#endif // ifndef __pinocchio_serialization_inertia_hpp__
pinocchio::InertiaTpl< Scalar, Options >
pinocchio::InertiaTpl::lever
const Vector3 & lever() const
Definition:
spatial/inertia.hpp:849
boost::serialization::serialize
void serialize(Archive &ar, Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int version)
Definition:
serialization/eigen.hpp:222
boost::serialization::save
void save(Archive &ar, const Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int)
Definition:
serialization/eigen.hpp:192
inertia.hpp
version
Definition:
version.py:1
boost
boost::serialization::load
void load(Archive &ar, Eigen::Map< PlainObjectBase, MapOptions, StrideType > &m, const unsigned int)
Definition:
serialization/eigen.hpp:206
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
symmetric3.hpp
pinocchio::InertiaTpl::inertia
const Symmetric3 & inertia() const
Definition:
spatial/inertia.hpp:853
pinocchio::InertiaTpl::mass
Scalar mass() const
Definition:
spatial/inertia.hpp:845
anymal-simulation.mass
mass
Definition:
anymal-simulation.py:62
serialization
Definition:
serialization.py:1
Scalar
double Scalar
Definition:
timings-cppad-jit.cpp:37
fwd.hpp
pinocchio
Author(s):
autogenerated on Thu Apr 10 2025 02:42:18