-
Notifications
You must be signed in to change notification settings - Fork 10
Add keyborad control to adjust camera sensor pose in simulation #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Adds a simulation utility for interactively adjusting a camera sensor’s local pose via keyboard input (with a live OpenCV preview), and exposes it through the sim utility package.
Changes:
- Added
run_keyboard_control_for_camera()helper to visualize camera output and apply incremental pose adjustments from key presses. - Exported the new helper via
embodichain.lab.sim.utilitypackage__init__. - Tweaked
run_env.pypreview-mode logging to uselog_info(..., color="green").
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 8 comments.
| File | Description |
|---|---|
embodichain/lab/sim/utility/keyboard_utils.py |
New interactive keyboard-driven camera pose control loop with OpenCV display. |
embodichain/lab/sim/utility/__init__.py |
Re-exports the new keyboard utility. |
embodichain/lab/scripts/run_env.py |
Changes preview-mode message from warning to green info log. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| from .sim_utils import * | ||
| from .mesh_utils import * | ||
| from .gizmo_utils import * | ||
| from .keyboard_utils import * |
Copilot
AI
Feb 10, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import pollutes the enclosing namespace, as the imported module embodichain.lab.sim.utility.keyboard_utils does not define 'all'.
| from .keyboard_utils import * | |
| from . import keyboard_utils |
Description
This PR add helper function to control camera sensor pose in simulation. This feature would be useful for configuring the camera setup for simulation or for gym.
Type of change
Checklist
black .command to format the code base.