Improve attention, voice direction, reach, pick and follow from live feedback

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-27 20:22:32 +09:00
co-authored by Claude Opus 5.5
parent 2e8dc226ff
commit e3fa2d95b3
92 changed files with 2183 additions and 307 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
"""Self-check of objects.measure on a synthetic cup: python tests/test_objects.py"""
import numpy as np
import no_robot # noqa: F401 any connection to the robot fails the test
from vision import objects
# camera looking along base +y, base z up (like the real torso camera), 600 mm from a cup of r 40 mm, h 100 mm
@@ -27,7 +28,7 @@ box = (us.min() - 5, vs.min() - 5, us.max() + 5, vs.max() + 5)
m = objects.measure(color, depth, box, INTR, T, round_=True)
print(m)
assert m["colour"] == "red"
cx, cy, cz = m["position_mm"]
cx, cy, cz = np.subtract(m["position_mm"], [*objects.ROUND_FIX_MM, 0]) # the measured camera error added
assert abs(cx) < 5 and abs(cy - D) < 10 and abs(cz) < 5, m
assert abs(m["width_mm"] - 2 * R) < 8, m
assert abs(m["height_mm"] - H) < 12, m