Skip to content

Comments

Fix camera pose output from keyboard control tool#137

Merged
yuecideng merged 1 commit intomainfrom
yueci/fix-cam-output-pose
Feb 13, 2026
Merged

Fix camera pose output from keyboard control tool#137
yuecideng merged 1 commit intomainfrom
yueci/fix-cam-output-pose

Conversation

@yuecideng
Copy link
Contributor

@yuecideng yuecideng commented Feb 13, 2026

Description

Same as title

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Screenshots

Please attach before and after screenshots of the change if applicable.

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 13, 2026 10:27
@yuecideng yuecideng added the bug Something isn't working label Feb 13, 2026
@yuecideng yuecideng merged commit 8d3d2d3 into main Feb 13, 2026
6 checks passed
@yuecideng yuecideng deleted the yueci/fix-cam-output-pose branch February 13, 2026 10:28
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

Fixes the camera pose values printed by the keyboard-control utility so the reported rotation matches the expected coordinate convention used elsewhere in the simulator/tooling.

Changes:

  • Adjust pose printing on P key to apply a Y/Z axis flip before computing quaternion/Euler output.
Comments suppressed due to low confidence (1)

embodichain/lab/sim/utility/keyboard_utils.py:19

  • Import of 'np' is not used.
import numpy as np

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +199 to +201
new_pose_print = new_pose.copy()
new_pose_print[:3, 1] = -new_pose_print[:3, 1]
new_pose_print[:3, 2] = -new_pose_print[:3, 2]
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Y/Z axis sign flip here is doing an implicit OpenGL↔OpenCV coordinate-system conversion, but that intent isn’t documented and the same conversion appears elsewhere in the codebase. Consider adding a short comment clarifying which frame new_pose is in and which frame is being printed, and/or factoring this into a small shared helper (to avoid future mismatches).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant