itsMarco-G commited on
Commit
a4a4800
·
1 Parent(s): 3e090ab

Ensure look-up when exiting look-down

Browse files
Files changed (1) hide show
  1. reachy_phone_home_app.py +5 -3
reachy_phone_home_app.py CHANGED
@@ -294,9 +294,11 @@ def main() -> None:
294
  if look_down_cycles >= 2 and time.time() - last_prompt >= 10.0:
295
  logger.info("Can you please put the phone in front of me?")
296
  last_prompt = time.time()
297
- if time.time() - mode_start >= args.look_down_window_sec:
298
- mode = "tracking_person"
299
- mode_start = time.time()
 
 
300
 
301
  if phone_seen:
302
  track_state = "tracking_phone"
 
294
  if look_down_cycles >= 2 and time.time() - last_prompt >= 10.0:
295
  logger.info("Can you please put the phone in front of me?")
296
  last_prompt = time.time()
297
+ if time.time() - mode_start >= args.look_down_window_sec:
298
+ mode = "tracking_person"
299
+ mode_start = time.time()
300
+ look_down_active = False
301
+ reachy.goto_target(head=create_head_pose(), duration=args.neutral_duration)
302
 
303
  if phone_seen:
304
  track_state = "tracking_phone"