Directory: | ./ |
---|---|
File: | bindings/python/spatial/expose-motion.cpp |
Date: | 2024-08-27 18:20:05 |
Exec | Total | Coverage | |
---|---|---|---|
Lines: | 6 | 6 | 100.0% |
Branches: | 3 | 6 | 50.0% |
Line | Branch | Exec | Source |
---|---|---|---|
1 | // | ||
2 | // Copyright (c) 2015-2021 CNRS INRIA | ||
3 | // | ||
4 | |||
5 | #include "pinocchio/serialization/aligned-vector.hpp" | ||
6 | #include "pinocchio/serialization/motion.hpp" | ||
7 | |||
8 | #include "pinocchio/bindings/python/fwd.hpp" | ||
9 | #include "pinocchio/bindings/python/spatial/motion.hpp" | ||
10 | #include "pinocchio/bindings/python/spatial/classic-acceleration.hpp" | ||
11 | #include "pinocchio/bindings/python/serialization/serialization.hpp" | ||
12 | #include "pinocchio/bindings/python/utils/std-aligned-vector.hpp" | ||
13 | |||
14 | namespace pinocchio | ||
15 | { | ||
16 | namespace python | ||
17 | { | ||
18 | |||
19 | 20 | void exposeMotion() | |
20 | { | ||
21 | 20 | exposeClassicAcceleration(); | |
22 | 20 | MotionPythonVisitor<context::Motion>::expose(); | |
23 |
3/6✓ Branch 2 taken 20 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 20 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 20 times.
✗ Branch 10 not taken.
|
20 | StdAlignedVectorPythonVisitor<context::Motion>::expose("StdVec_Motion"); |
24 | #ifndef PINOCCHIO_PYTHON_NO_SERIALIZATION | ||
25 | 20 | serialize<StdAlignedVectorPythonVisitor<context::Motion>::vector_type>(); | |
26 | #endif | ||
27 | 20 | } | |
28 | |||
29 | } // namespace python | ||
30 | } // namespace pinocchio | ||
31 |