Conversation
- GhostHand: extracts gripper collision meshes from MuJoCo model, merges into single trimesh, renders as transparent overlay in the EE frame. Generic — works for any gripper body prefix. - TeleopPanel(PanelBase): Viser TransformControls gizmo + GUI (activate/deactivate, snap to EE, toggle gripper, record, safety mode dropdown). Drives TeleopController.set_target_pose() from gizmo on_update callback. - on_sync steps the controller and updates ghost pose each frame.
- Ghost mesh is now a child of the gizmo scene node — moves automatically when the gizmo is dragged, no manual pose updates - Gizmo scale 0.15 → 0.3 for easier interaction
The gizmo callback runs in Viser's thread and can't safely touch MuJoCo data. Now the callback only buffers the target pose, and a background thread at ~30Hz calls controller.step() + viewer.sync(). The thread starts on activate and stops on deactivate.
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
GhostHand: extracts gripper collision meshes from MuJoCo model, merges into single trimesh, renders as transparent overlay in EE frame. Generic — works for any gripper body prefix.TeleopPanel(PanelBase): Viser TransformControls gizmo + GUI (activate/deactivate, snap to EE, toggle gripper, record, safety mode dropdown)on_update→controller.set_target_pose()(thread-safe)on_syncsteps the controller and updates ghost pose each frameDepends on mj_manipulator#47.
Test plan