| Directory: | ./ |
|---|---|
| File: | include/pinocchio/multibody/geometry-object.hxx |
| Date: | 2025-02-12 21:03:38 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 15 | 15 | 100.0% |
| Branches: | 6 | 12 | 50.0% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // | ||
| 2 | // Copyright (c) 2015-2022 CNRS INRIA | ||
| 3 | // | ||
| 4 | |||
| 5 | #ifndef __pinocchio_multibody_geometry_object_hxx__ | ||
| 6 | #define __pinocchio_multibody_geometry_object_hxx__ | ||
| 7 | |||
| 8 | #include <limits> | ||
| 9 | |||
| 10 | namespace pinocchio | ||
| 11 | { | ||
| 12 | |||
| 13 | 3 | inline std::ostream & operator<<(std::ostream & os, const GeometryObject & geom_object) | |
| 14 | { | ||
| 15 | os << "Name: \t \n" | ||
| 16 | 3 | << geom_object.name << "\n" | |
| 17 | 3 | << "Parent frame ID: \t \n" | |
| 18 | 3 | << geom_object.parentFrame << "\n" | |
| 19 | 3 | << "Parent joint ID: \t \n" | |
| 20 | 3 | << geom_object.parentJoint << "\n" | |
| 21 | 3 | << "Position in parent frame: \t \n" | |
| 22 | 3 | << geom_object.placement << "\n" | |
| 23 | << "Absolute path to mesh file: \t \n" | ||
| 24 | 3 | << geom_object.meshPath << "\n" | |
| 25 | 3 | << "Scale for transformation of the mesh: \t \n" | |
| 26 |
1/2✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
|
3 | << geom_object.meshScale.transpose() << "\n" |
| 27 |
2/4✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
|
3 | << "Disable collision: \t \n" |
| 28 |
2/4✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
|
3 | << geom_object.disableCollision << "\n" |
| 29 |
1/2✓ Branch 1 taken 3 times.
✗ Branch 2 not taken.
|
3 | << std::endl; |
| 30 | 3 | return os; | |
| 31 | } | ||
| 32 | |||
| 33 | } // namespace pinocchio | ||
| 34 | |||
| 35 | #endif // ifndef __pinocchio_multibody_geometry_object_hxx__ | ||
| 36 |