Commit ·
9dd9020
1
Parent(s): 477aeb2
调整人脸追踪补偿: pitch=9度(向下), yaw=-7度(向右)
Browse files
reachy_mini_ha_voice/camera_server.py
CHANGED
|
@@ -245,13 +245,13 @@ class MJPEGCameraServer:
|
|
| 245 |
# Apply pitch offset compensation (robot tends to look up)
|
| 246 |
# rotation[1] is pitch in xyz euler order
|
| 247 |
# Positive pitch = look down in robot coordinate system
|
| 248 |
-
pitch_offset_rad = np.radians(
|
| 249 |
rotation[1] += pitch_offset_rad
|
| 250 |
|
| 251 |
# Apply yaw offset compensation (robot tends to look to user's right)
|
| 252 |
# rotation[2] is yaw in xyz euler order
|
| 253 |
# Negative yaw = turn right (towards user's left from robot's perspective)
|
| 254 |
-
yaw_offset_rad = np.radians(-
|
| 255 |
rotation[2] += yaw_offset_rad
|
| 256 |
|
| 257 |
# Update face tracking offsets
|
|
|
|
| 245 |
# Apply pitch offset compensation (robot tends to look up)
|
| 246 |
# rotation[1] is pitch in xyz euler order
|
| 247 |
# Positive pitch = look down in robot coordinate system
|
| 248 |
+
pitch_offset_rad = np.radians(9.0) # Look down 9 degrees
|
| 249 |
rotation[1] += pitch_offset_rad
|
| 250 |
|
| 251 |
# Apply yaw offset compensation (robot tends to look to user's right)
|
| 252 |
# rotation[2] is yaw in xyz euler order
|
| 253 |
# Negative yaw = turn right (towards user's left from robot's perspective)
|
| 254 |
+
yaw_offset_rad = np.radians(-7.0) # Turn right 7 degrees
|
| 255 |
rotation[2] += yaw_offset_rad
|
| 256 |
|
| 257 |
# Update face tracking offsets
|