Keep head moves from hanging, check a shut hand with the camera and follow round tight spots

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-30 20:55:05 +09:00
co-authored by Claude Opus 5.5
parent 9b239c8b89
commit 8ec328f9da
18 changed files with 458 additions and 79 deletions
+7
View File
@@ -102,6 +102,13 @@ L.reached_at, folds[:] = time.time(), []
assert not L.reach_done() and not folds # nothing said yet: the hand stays out
L.reached_at = time.time() - lumi.REACH_HOLD_S - 1 # nobody said anything: the timeout folds
assert L.reach_done() and folds == ["fold"]
status["now"] = "running" # still on its way after REACH_HOLD_S: no timeout
L.reached_at, folds[:] = time.time() - lumi.REACH_HOLD_S - 1, []
assert not L.reach_done() and not folds
status["now"] = "done" # the hand got there only now: the hold counts
fetch.state = lambda: {"step": "", "since": time.time()} # from then, not from the order
assert not L.reach_done() and not folds
fetch.state = lambda: {"step": "reaching out"}
status["now"] = "running" # still going toward their hand: stopped, folded
L.reached_at, folds[:] = time.time(), []
assert L.reach_done("okay thanks") and folds == ["fold"] and stops, (folds, stops)