Speed up arm gestures and route the hand-over through give_pre

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 19:10:09 +09:00
co-authored by Claude Opus 5.5
parent e8d651da49
commit 799e210f4b
10 changed files with 67 additions and 32 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ fetch._thread.join(10)
st = fetch.state()
assert st["status"] == "done", st
w0, arm0, arm1, w1 = when("waist start")[0], when("arm start")[0], when("arm end")[0], when("waist end")[-1]
assert w0 <= arm0 < arm1, events # the waist command went out first, before the arm route ended
assert abs(w0 - arm0) < 0.1 and w0 < arm1, events # both start together (threads: either first), the waist before the arm ends
assert arm0 < w1, events # the arm started before the waist got there
assert len(when("waist start")) == math.ceil(30.0 / fetch.WAIST_STEP_DEG), events
assert abs(body["pos"][1] - 30.0) < 1e-6 and abs(body["pos"][2]) < 1e-6, body # waist 30, head yaw 30 - 30 = 0