| Directory: | ./ |
|---|---|
| File: | bindings/python/algorithm/constraints/expose-cones.cpp |
| Date: | 2025-02-12 21:03:38 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 6 | 6 | 100.0% |
| Branches: | 6 | 12 | 50.0% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // | ||
| 2 | // Copyright (c) 2022 INRIA | ||
| 3 | // | ||
| 4 | |||
| 5 | #include "pinocchio/serialization/aligned-vector.hpp" | ||
| 6 | |||
| 7 | #include "pinocchio/bindings/python/fwd.hpp" | ||
| 8 | #include "pinocchio/bindings/python/algorithm/constraints/coulomb-friction-cone.hpp" | ||
| 9 | // #include "pinocchio/bindings/python/serialization/serialization.hpp" | ||
| 10 | #include "pinocchio/bindings/python/utils/std-aligned-vector.hpp" | ||
| 11 | |||
| 12 | namespace pinocchio | ||
| 13 | { | ||
| 14 | namespace python | ||
| 15 | { | ||
| 16 | |||
| 17 | 69 | void exposeCones() | |
| 18 | { | ||
| 19 | #ifndef PINOCCHIO_PYTHON_SKIP_COMPARISON_OPERATIONS | ||
| 20 | 65 | CoulombFrictionConePythonVisitor<context::CoulombFrictionCone>::expose(); | |
| 21 |
3/6✓ Branch 2 taken 65 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 65 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 65 times.
✗ Branch 10 not taken.
|
65 | StdVectorPythonVisitor<context::CoulombFrictionConeVector>::expose( |
| 22 | "StdVec_CoulombFrictionCone"); | ||
| 23 | // #ifndef PINOCCHIO_PYTHON_NO_SERIALIZATION | ||
| 24 | // serialize<StdAlignedVectorPythonVisitor<context::CoulombFrictionCone>::vector_type>(); | ||
| 25 | // #endif | ||
| 26 | |||
| 27 | 65 | DualCoulombFrictionConePythonVisitor<context::DualCoulombFrictionCone>::expose(); | |
| 28 |
3/6✓ Branch 2 taken 65 times.
✗ Branch 3 not taken.
✓ Branch 6 taken 65 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 65 times.
✗ Branch 10 not taken.
|
65 | StdVectorPythonVisitor<context::DualCoulombFrictionConeVector>::expose( |
| 29 | "StdVec_DualCoulombFrictionCone"); | ||
| 30 | // #ifndef PINOCCHIO_PYTHON_NO_SERIALIZATION | ||
| 31 | // serialize<StdAlignedVectorPythonVisitor<context::DualCoulombFrictionCone>::vector_type>(); | ||
| 32 | // #endif | ||
| 33 | #endif | ||
| 34 | 69 | } | |
| 35 | |||
| 36 | } // namespace python | ||
| 37 | } // namespace pinocchio | ||
| 38 |