Skip to content

Conversation

@yuecideng
Copy link
Contributor

@yuecideng yuecideng commented Feb 10, 2026

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

  • New feature (non-breaking change which adds functionality)

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.

Copilot AI review requested due to automatic review settings February 10, 2026 10:26
@yuecideng yuecideng added the sensor Virtual sensor for computing observation from simulation label Feb 10, 2026
@yuecideng yuecideng requested a review from yhnsu February 10, 2026 10:27
Copy link

Copilot AI left a 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.utility package __init__.
  • Tweaked run_env.py preview-mode logging to use log_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 *
Copy link

Copilot AI Feb 10, 2026

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

Suggested change
from .keyboard_utils import *
from . import keyboard_utils

Copilot uses AI. Check for mistakes.
@yuecideng yuecideng merged commit dbf8553 into main Feb 11, 2026
5 checks passed
@yuecideng yuecideng deleted the yueci/add-cam-adjust branch February 11, 2026 03:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sensor Virtual sensor for computing observation from simulation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant