apirrone commited on
Commit
3dc9996
·
1 Parent(s): df3ad34

enabling head tracking for non wireless, and tuning head trackign a little bit

Browse files
src/reachy_mini_conversation_app/camera_worker.py CHANGED
@@ -156,8 +156,9 @@ class CameraWorker:
156
  translation = target_pose[:3, 3]
157
  rotation = R.from_matrix(target_pose[:3, :3]).as_euler("xyz", degrees=False)
158
 
159
- translation *= 0.5 # Scale down translation effect
160
- rotation *= 0.5 # Scale down rotation effect
 
161
 
162
  # Thread-safe update of face tracking offsets (use pose as-is)
163
  with self.face_tracking_lock:
 
156
  translation = target_pose[:3, 3]
157
  rotation = R.from_matrix(target_pose[:3, :3]).as_euler("xyz", degrees=False)
158
 
159
+ # Scale down translation and rotation because smaller FOV
160
+ translation *= 0.6
161
+ rotation *= 0.6
162
 
163
  # Thread-safe update of face tracking offsets (use pose as-is)
164
  with self.face_tracking_lock:
src/reachy_mini_conversation_app/main.py CHANGED
@@ -208,7 +208,10 @@ class ReachyMiniConversationApp(ReachyMiniApp): # type: ignore[misc]
208
  asyncio.set_event_loop(loop)
209
 
210
  args, _ = parse_args()
211
- # args.head_tracker = "mediapipe"
 
 
 
212
  instance_path = self._get_instance_path().parent
213
  run(
214
  args,
 
208
  asyncio.set_event_loop(loop)
209
 
210
  args, _ = parse_args()
211
+
212
+ is_wireless = reachy_mini.client.get_status()["wireless_version"]
213
+ args.head_tracker = None if is_wireless else "mediapipe"
214
+
215
  instance_path = self._get_instance_path().parent
216
  run(
217
  args,