Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support visualizing mesh collisions with convex decomposition #2331

Closed
wants to merge 3 commits into from

Conversation

iche033
Copy link
Contributor

@iche033 iche033 commented Mar 13, 2024

🎉 New feature

Depends on:

Summary

Extends VisualizationCapabilities gui plugin to support visualizing mesh collisions with convex decomposition.

if a mesh collision has the new attribute <mesh simplification="convex_decomposition">, the plugin will decompose the meshes on the GUI side before visualizing them.

Test it

I uploaded a Cordless Drill Simplified model on fuel for testing. This model uses convex decomposition on the collision mesh.

Here's the result:

cordless_drill_simplified

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

iche033 added 2 commits March 13, 2024 02:04
Signed-off-by: Ian Chen <ichen@openrobotics.org>
Signed-off-by: Ian Chen <ichen@openrobotics.org>
@iche033 iche033 requested a review from mjcarroll as a code owner March 13, 2024 02:13
@github-actions github-actions bot added the 🎵 harmonic Gazebo Harmonic label Mar 13, 2024
@iche033 iche033 added the needs upstream release Blocked by a release of an upstream library label Mar 13, 2024
Signed-off-by: Ian Chen <ichen@openrobotics.org>
auto decomposed = meshManager->ConvexDecomposition(s.get());
if (!decomposed.empty())
{
for (std::size_t n = 0; n < decomposed.size(); ++n)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include <cstddef>

@iche033
Copy link
Contributor Author

iche033 commented Mar 29, 2024

will retarget to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎵 harmonic Gazebo Harmonic needs upstream release Blocked by a release of an upstream library
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants