Spaces:
Running
Running
Merge branch 'phone_use_integration'
Browse files- reachy_phone_home_app.py +5 -3
reachy_phone_home_app.py
CHANGED
|
@@ -299,9 +299,11 @@ def main() -> None:
|
|
| 299 |
if look_down_cycles >= 2 and time.time() - last_prompt >= 10.0:
|
| 300 |
logger.info("Can you please put the phone in front of me?")
|
| 301 |
last_prompt = time.time()
|
| 302 |
-
|
| 303 |
-
|
| 304 |
-
|
|
|
|
|
|
|
| 305 |
|
| 306 |
if phone_seen:
|
| 307 |
track_state = "tracking_phone"
|
|
|
|
| 299 |
if look_down_cycles >= 2 and time.time() - last_prompt >= 10.0:
|
| 300 |
logger.info("Can you please put the phone in front of me?")
|
| 301 |
last_prompt = time.time()
|
| 302 |
+
if time.time() - mode_start >= args.look_down_window_sec:
|
| 303 |
+
mode = "tracking_person"
|
| 304 |
+
mode_start = time.time()
|
| 305 |
+
look_down_active = False
|
| 306 |
+
reachy.goto_target(head=create_head_pose(), duration=args.neutral_duration)
|
| 307 |
|
| 308 |
if phone_seen:
|
| 309 |
track_state = "tracking_phone"
|