Turn the waist with the arm on a hand-over, recover stopped picks and improve follow tracking

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 15:55:03 +09:00
co-authored by Claude Opus 5.5
parent 390ec9db99
commit e8d651da49
24 changed files with 728 additions and 200 deletions
+4 -4
View File
@@ -2,9 +2,9 @@
import no_robot # noqa: F401 any connection to the robot fails the test
from robot import gripper as g
assert g.gap_mm(g.AI_OPEN) == 94.0 and g.gap_mm(g.AI_SHUT) == 68.0 # belly, open / closed (tape)
assert g.gap_mm(50) == 94.0 and g.gap_mm(5000) == 68.0 # readings past the ends are clamped
assert abs(g.gap_mm((g.AI_OPEN + g.AI_SHUT) / 2) - 81.0) < 0.01 # linear between
assert g.gap_mm(g.AI_SHUT, "tips") == 63.0 and g.gap_mm(g.AI_OPEN, "shank") == 66.0
assert g.gap_mm(g.AI_OPEN) == 102.0 and g.gap_mm(g.AI_SHUT) == 77.0 # belly, open / closed (owner)
assert g.gap_mm(50) == 102.0 and g.gap_mm(5000) == 77.0 # readings past the ends are clamped
assert abs(g.gap_mm((g.AI_OPEN + g.AI_SHUT) / 2) - 89.5) < 0.01 # linear between
assert g.gap_mm(g.AI_SHUT, "tips") == 73.0 and g.gap_mm(g.AI_OPEN, "shank") == 66.0
assert all(hasattr(g, n) for n in ("MOVE_S", "SENSOR_DI", "READ_TRIES", "READ_GAP_S", "CLOSED_AI", "EMPTY_AI"))
print("gripper ok")