Add mesh_detail attribute to select gripper mesh resolution#15
Open
btshrewsbury-viam wants to merge 1 commit into
Open
Add mesh_detail attribute to select gripper mesh resolution#15btshrewsbury-viam wants to merge 1 commit into
btshrewsbury-viam wants to merge 1 commit into
Conversation
The gripper's Geometries() mesh doubles as the motion-planning collision
geometry, so it was decimated to keep planning responsive. Add a
mesh_detail attribute ("high" / "low", default "low") to both gripper
models so a full-resolution gripper and a decimated one can run on the
same machine for a planning/visual side-by-side.
- meshes/gripper/ now holds high/ and low/ variants of each PLY;
gen_gripper_meshes.py emits both detail levels.
- meshes.go embeds meshes/gripper as an embed.FS; buildGripperMeshes
reads the PLY for the requested detail level.
- mesh_detail added to SO101GripperConfig and SO101SimulatedGripperConfig
(validated; defaults to "low" so existing configs are unchanged).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The gripper's
Geometries()mesh doubles as the motion-planning collision geometry, so it was decimated to keep planning responsive. This adds amesh_detailattribute (high/low, defaultlow) to both gripper models, so a full-resolution gripper and a decimated one can run on the same machine for a planning/visual side-by-side.Changes
meshes/gripper/now holdshigh/andlow/variants of each PLY;gen_gripper_meshes.pyemits both detail levels.meshes.goembedsmeshes/gripperas anembed.FS;buildGripperMeshesreads the PLY for the requested detail level.mesh_detailadded toSO101GripperConfigandSO101SimulatedGripperConfig— validated; defaults tolow, so existing configs are unchanged.Testing
go testcovers both detail levels inbuildGripperMeshes(high denser than low) and the end-to-end attribute wiring on the simulated gripper;make bin/armconfirms the Makefile glob and theembed.FS.🤖 Generated with Claude Code