Recalibrate the grasp point and camera for reliable top grasps

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-29 19:10:11 +09:00
co-authored by Claude Opus 5.5
parent 4665f3cfeb
commit b0e9ce39ab
8 changed files with 141 additions and 11 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ head_cam.head_centre = lambda: np.array([-92.97, -19.87, 356.12]) # the head's
cup = {"name": "cup", "colour": "white", "x": -126.5, "y": 613.0, "top_mm": -261.0, "width_mm": 72.0}
R = calib.rpy_matrix(*skills.GRASP_RPY)
g = np.array([cup["x"], cup["y"], cup["top_mm"] - 40])
g = np.array([cup["x"], cup["y"], cup["top_mm"] - skills.BELOW_RIM_MM])
(n1, above), (n2, grasp), (n3, lift) = skills.plan_pick(cup)
assert np.allclose(grasp[:3], g - R @ skills.GRASP_OFFSET) and grasp[3:] == list(skills.GRASP_RPY)