Align window controls with DexSim defaults#291
Merged
Conversation
Remove redundant EmbodiChain default window control registration now that DexSim provides camera, selection, and focus shortcuts natively. Update window interaction docs to document DexSim controls and keep EmbodiChain-specific viewer recording hotkey guidance. Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aligns EmbodiChain’s window interaction behavior and documentation with DexSim’s built-in ORBIT viewer controls by removing EmbodiChain’s redundant default window control registration and updating the interaction docs accordingly.
Changes:
- Removed
SimulationManager._register_default_window_control()and its registration state. - Updated
docs/source/features/interaction/window.mdto describe DexSim’s default ORBIT mouse/keyboard/selection controls and kept EmbodiChain’s viewer recording hotkey documentation. - Updated the PourWater gym config to remove semantic-mask observation entries and disable mask/depth on certain cameras.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
embodichain/lab/sim/sim_manager.py |
Removes EmbodiChain’s redundant default window control registration hook/state. |
docs/source/features/interaction/window.md |
Documents DexSim ORBIT viewer controls and keeps EmbodiChain recording hotkey guidance. |
configs/gym/pour_water/gym_config.json |
Removes semantic mask observation config and disables mask/depth outputs for some cameras. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| This section describes the default window interaction controls available in the simulation. These controls allow users to interact with the simulation environment using keyboard, mouse, and customizable input events. | ||
|
|
||
| ## Default Window Events | ||
| The main visualization window is provided by **DexSim**. When `SimConfig.headless=False` or `SimulationManager.open_window()` is called, DexSim creates the viewer with **ORBIT** camera control by default. |
Comment on lines
215
to
222
| "cup_pose": { | ||
| "func": "get_rigid_object_pose", | ||
| "mode": "add", | ||
| "name": "cup_pose", | ||
| "params": { | ||
| "entity_cfg": {"uid": "cup"} | ||
| } | ||
| }, | ||
| "cam_high_semantic_mask_l": { | ||
| "func": "compute_semantic_mask", | ||
| "mode": "add", | ||
| "name": "sensor/cam_high/semantic_mask_l", | ||
| "params": { | ||
| "entity_cfg": {"uid": "cam_high"}, | ||
| "foreground_uids": ["bottle", "cup"] | ||
| } | ||
| }, | ||
| "cam_high_semantic_mask_r": { | ||
| "func": "compute_semantic_mask", | ||
| "mode": "add", | ||
| "name": "sensor/cam_high/semantic_mask_r", | ||
| "params": { | ||
| "entity_cfg": {"uid": "cam_high"}, | ||
| "foreground_uids": ["bottle", "cup"], | ||
| "is_right": true | ||
| } | ||
| }, | ||
| "cam_left_semantic_mask": { | ||
| "func": "compute_semantic_mask", | ||
| "mode": "add", | ||
| "name": "sensor/cam_left_wrist/semantic_mask_l", | ||
| "params": { | ||
| "entity_cfg": {"uid": "cam_left_wrist"}, | ||
| "foreground_uids": ["bottle", "cup"] | ||
| } | ||
| }, | ||
| "cam_right_semantic_mask": { | ||
| "func": "compute_semantic_mask", | ||
| "mode": "add", | ||
| "name": "sensor/cam_right_wrist/semantic_mask_l", | ||
| "params": { | ||
| "entity_cfg": {"uid": "cam_right_wrist"}, | ||
| "foreground_uids": ["bottle", "cup"] | ||
| } | ||
| } |
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.
Description
This PR removes redundant EmbodiChain default window control registration and updates the window interaction documentation to reflect DexSim's built-in viewer controls.
DexSim now provides the main visualization window with ORBIT camera controls, object selection/focus shortcuts, and selection logging. The previous EmbodiChain
_register_default_window_control()hook only added a customC-key raycast printout, which overlaps with DexSim'sLselection log and is no longer needed.Changes:
_register_default_window_control()and related state fromSimulationManagerwindow.mdr) documentationDependencies: Requires a DexSim build with default ORBIT viewer controls (F focus, L selection log, Ctrl+WASD/QE translate).
Type of change
Screenshots
N/A
Checklist
black .command to format the code base.🤖 Generated with Claude Code
Made with Cursor