Update judgy_reachy_no_phone/main.py
Browse files
judgy_reachy_no_phone/main.py
CHANGED
|
@@ -242,7 +242,9 @@ class JudgyReachyNoPhone(ReachyMiniApp):
|
|
| 242 |
self.detector.initialize()
|
| 243 |
|
| 244 |
# Auto-detect: Use laptop webcam in simulation, robot camera otherwise
|
| 245 |
-
|
|
|
|
|
|
|
| 246 |
webcam = None
|
| 247 |
|
| 248 |
if is_simulation:
|
|
|
|
| 242 |
self.detector.initialize()
|
| 243 |
|
| 244 |
# Auto-detect: Use laptop webcam in simulation, robot camera otherwise
|
| 245 |
+
# OLD BEFORE SDK v1.7.X
|
| 246 |
+
# is_simulation = reachy_mini.client.get_status()["simulation_enabled"]
|
| 247 |
+
is_simulation = reachy_mini.client.get_status().simulation_enabled
|
| 248 |
webcam = None
|
| 249 |
|
| 250 |
if is_simulation:
|