Lumi robot software on the Jetson Thor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-21 15:19:07 +09:00
co-authored by Claude Opus 5.5
commit 96b01fa12e
177 changed files with 39901 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
"""Self-check of robot/gripper.py's finger gap from AI_1 (no robot): python tests/test_gripper.py"""
from robot import gripper as g
assert g.gap_mm(g.AI_OPEN) == 96.0 and g.gap_mm(g.AI_SHUT) == 70.0 # belly, open / closed (tape)
assert g.gap_mm(50) == 96.0 and g.gap_mm(5000) == 70.0 # readings past the ends are clamped
assert abs(g.gap_mm(2250) - 82.0) < 1.5 # the 82 mm metal cup, 2026-10-13
assert g.gap_mm(g.AI_SHUT, "tips") == 59.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")