gazebosim / gz-sim

Open source robotics simulator. The latest version of Gazebo.
https://gazebosim.org
Apache License 2.0
618 stars 251 forks source link

Parse voxel resolution SDF param when decomposing meshes #2445

Closed iche033 closed 2 weeks ago

iche033 commented 2 weeks ago

πŸŽ‰ New feature

Summary

Similar to https://github.com/gazebosim/gz-physics/pull/655 but applies the changes here for dartsim.

Test it

The same changes are also available in https://github.com/gazebosim/gz-sim/pull/2352. With that PR, you can visualize the decomposed mesh. Here's an example with the cordless drill model

Left: voxel resolution 80000 Right: voxel resolution 800000 (10x)

voxel_resolution

This mesh is relatively simple so the difference is small but on right drill with higher voxel resolution, the collision wraps more tightly to the actual mesh.

Checklist

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.