robotology / gz-sim-yarp-plugins

YARP plugins for Modern Gazebo (gz-sim).
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

add test for IMU plugin #37

Closed lucapa17 closed 1 year ago

lucapa17 commented 1 year ago

Fix #34

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +3.42% :tada:

Comparison is base (0049b03) 78.78% compared to head (e50d05d) 82.21%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #37 +/- ## ========================================== + Coverage 78.78% 82.21% +3.42% ========================================== Files 5 8 +3 Lines 231 416 +185 ========================================== + Hits 182 342 +160 - Misses 49 74 +25 ``` | [Files Changed](https://app.codecov.io/gh/robotology/gz-yarp-plugins/pull/37?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=robotology) | Coverage Δ | | |---|---|---| | [plugins/imu/IMUDriver.cpp](https://app.codecov.io/gh/robotology/gz-yarp-plugins/pull/37?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=robotology#diff-cGx1Z2lucy9pbXUvSU1VRHJpdmVyLmNwcA==) | `85.33% <ø> (ø)` | | | [tests/imu/ImuTest.cc](https://app.codecov.io/gh/robotology/gz-yarp-plugins/pull/37?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=robotology#diff-dGVzdHMvaW11L0ltdVRlc3QuY2M=) | `100.00% <100.00%> (ø)` | | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/robotology/gz-yarp-plugins/pull/37/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=robotology)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

traversaro commented 1 year ago

Ubuntu still fails with:

Error while loading the library [/home/runner/micromamba/envs/gzyarppluginsdev/lib/gz-rendering-7/engine-plugins/libgz-rendering-ogre2.so]: libOpenGL.so.0: cannot open shared object file: No such file or directory
[Err] [RenderEngineManager.cc:534] Failed to load plugin [gz-rendering-ogre2] : couldn't load library on path [/home/runner/micromamba/envs/gzyarppluginsdev/lib/gz-rendering-7/engine-plugins/libgz-rendering-ogre2.so].
[Err] [RenderUtil.cc:2665] Engine [ogre2] is not supported. Loading OGRE2 instead.

Searching which package contains the libOpenGL.so.0 file: https://packages.ubuntu.com/search?searchon=contents&keywords=libOpenGL.so.0&mode=exactfilename&suite=kinetic&arch=any . So I think we can just apt install libopengl0.