tesseract-robotics / tesseract

Motion Planning Environment
http://tesseract-docs.rtfd.io
Other
278 stars 89 forks source link

Add geometry type CompoundMesh #1046

Closed Levi-Armstrong closed 2 months ago

Levi-Armstrong commented 2 months ago

It is possible that a single resource can contain multiple meshes and currently these are added as separate geometries to a link and the association is lost for the most part. It is possible to loop over all geometries for a given link and check the if the resource are the same but this is not ideal. This simplifies things so all meshes for a single resource will be stored in a CompoundMesh if more than one mesh exists.

This was issue because in rviz and tesseract_qt_studio if a visual mesh was a dae file with multiple meshes it would load the full mesh file for every submesh stored resulting in multiple copies of the same mesh. This was causing performance issues during rendering. Having the compound mesh solves issue because all meshes for a given resource are stored together.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 89.43%. Comparing base (75cfd93) to head (ce20f46). Report is 2 commits behind head on master.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/tesseract-robotics/tesseract/pull/1046/graphs/tree.svg?width=650&height=150&src=pr&token=nh4aHZzgpR&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tesseract-robotics)](https://app.codecov.io/gh/tesseract-robotics/tesseract/pull/1046?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tesseract-robotics) ```diff @@ Coverage Diff @@ ## master #1046 +/- ## ========================================== - Coverage 89.53% 89.43% -0.10% ========================================== Files 285 288 +3 Lines 16003 16231 +228 ========================================== + Hits 14328 14517 +189 - Misses 1675 1714 +39 ``` [see 13 files with indirect coverage changes](https://app.codecov.io/gh/tesseract-robotics/tesseract/pull/1046/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tesseract-robotics)
Levi-Armstrong commented 2 months ago

@johnwason Do you have any ideas why the conda builds cannot locate resources in tesseract_support?

johnwason commented 1 month ago

Sorry I missed this question. Did you get it working?

Levi-Armstrong commented 1 month ago

Yea, I think I figured out the issue.