We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a323f8d commit 8d3d2d3Copy full SHA for 8d3d2d3
embodichain/lab/sim/utility/keyboard_utils.py
@@ -196,8 +196,11 @@ def run_keyboard_control_for_camera(
196
pose_changed = True
197
log_info("Reset to initial pose")
198
elif key == ord("p"):
199
- translation = new_pose[:3, 3]
200
- rot = R.from_matrix(new_pose[:3, :3])
+ new_pose_print = new_pose.copy()
+ new_pose_print[:3, 1] = -new_pose_print[:3, 1]
201
+ new_pose_print[:3, 2] = -new_pose_print[:3, 2]
202
+ translation = new_pose_print[:3, 3]
203
+ rot = R.from_matrix(new_pose_print[:3, :3])
204
quaternion = rot.as_quat()
205
log_info("Current Camera pose:")
206
log_info(f"Translation: {translation}")
0 commit comments