Skip to content

Add mesh_detail attribute to select gripper mesh resolution#15

Open
btshrewsbury-viam wants to merge 1 commit into
mainfrom
gripper-mesh-detail
Open

Add mesh_detail attribute to select gripper mesh resolution#15
btshrewsbury-viam wants to merge 1 commit into
mainfrom
gripper-mesh-detail

Conversation

@btshrewsbury-viam

Copy link
Copy Markdown
Collaborator

Summary

The gripper's Geometries() mesh doubles as the motion-planning collision geometry, so it was decimated to keep planning responsive. This adds 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.

Changes

  • 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.

Testing

go test covers both detail levels in buildGripperMeshes (high denser than low) and the end-to-end attribute wiring on the simulated gripper; make bin/arm confirms the Makefile glob and the embed.FS.

🤖 Generated with Claude Code

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant