Skip to content

Add rigid-object gizmo window control - #420

Closed
yuecideng wants to merge 2 commits into
mainfrom
feat/rigid-object-window-gizmo
Closed

Add rigid-object gizmo window control#420
yuecideng wants to merge 2 commits into
mainfrom
feat/rigid-object-window-gizmo

Conversation

@yuecideng

Copy link
Copy Markdown
Contributor

Description

This PR adds a default viewer interaction for manipulating raycast-selected rigid objects with a gizmo. Left-clicking an eligible rigid object and pressing G enables gizmo control; pressing G again exits.

Dynamic objects are temporarily switched to kinematic while controlled and restored to their original body type on disable, window close, or simulation teardown. The change also removes destroyed gizmos from the DexSim arena so they no longer remain visible after disable.

The hotkey is enabled by default and can be configured through SimulationManagerCfg.window_gizmo.enable_hotkey. Static objects and multi-environment simulations are rejected safely.

Dependencies: None.

Issue: Not linked.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (non-breaking change which improves an existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (existing functionality will not work without user modification)
  • Documentation update

Screenshots

Not included. The behavior is covered by automated lifecycle and cleanup tests.

Validation

  • black .
  • pytest -q tests/sim/objects/test_gizmo.py tests/sim/test_sim_manager.py — 13 passed
  • pytest -q tests/ — 633 passed, 99 skipped
  • make -C docs html — completed successfully with existing repository warnings

Checklist

  • I have run the black . command to format the code base.
  • I have made corresponding changes to the documentation.
  • I have added tests that prove my fix is effective or that my feature works.
  • Dependencies have been updated, if applicable. No dependency changes were required.

Add raycast-selected rigid object gizmo toggling with the G key. Preserve and restore body types across disable, window close, and teardown, and remove destroyed gizmos from the DexSim arena. Include configuration, documentation, and regression coverage.
@yuecideng yuecideng added enhancement New feature or request visualization Features or functions for visualization with the simulation interaction The interaction simulation features object Simulation object assets labels Jul 21, 2026
@yuecideng

Copy link
Copy Markdown
Contributor Author

Close, this feature will be implemented in dexsim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request interaction The interaction simulation features object Simulation object assets visualization Features or functions for visualization with the simulation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant