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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user