Inspecting a held object with the other wrist camera
RoboTwin's scan_object task, with the hand-held scanner replaced by the second arm's wrist camera.
- Check both arms: different
arm_ids, and the second arm's pose must read differently from the first (a connector that ignoresarm_idreports the same arm twice). Check the holding hand's jaws are not at the stop. - Holding arm: move its tool centre so the object's box centre (held rigidly, at its current offset
from the hand) lands on
inspection_position, keeping the hand's rotation. - Plan the camera: optical centre
standoff(5 cm) out alongview_axisfrom the object, tool +z (the optical axis) along-view_axis, tool x kept level. Refuse witharms_too_closewhen that tool centre would be withinmin_tcp_distanceof the holding hand's tool centre. - Camera arm: move there, read its pose back.
- Framing (
scan_object.check_success): project the object's centre onto the camera's optical ray;inspectedwhen it lies0 < d < 7 cmahead and every axis of the offset is< 2.5 cm.
Changes from the source
- In the source the scanner is a grasped tool with a functional point. Here the camera is the second arm's
wrist camera, and its pose comes from that arm's reading (
camera_offset: optical centre in the tool frame; optical axis = tool +z). - In the source the object and scanner poses are simulator actor poses. Here the object's position comes from its world box (a perception skill, e.g. registering-held-objects) carried with the holding hand. Nothing reads simulator truth.
- One arm moves at a time, through
robot.*calls with an explicitarm_id. - There is a minimum tool-centre distance check between the arms. For mesh-level clearance, run checking-dual-arm-clearance before this skill.
- A refused or short move is routed as
unreachable, not raised.
Notes
- To see several faces, call this skill again with different
view_axisvalues (or roll the holding wrist between calls). camera_offsetmust be the station's wrist-camera extrinsic for the framing test to mean the camera rather than the tool centre. The default (the tool centre) suits stations whose wrist camera looks along the jaws, as the YAM D405 does.
Simulation check (YAM bimanual twin, 35 mm cube held top-down by arm 0, camera arm 1, standoff 5 cm)
There are 16 runs: 4 viewing axes x 4 inspection points from the handover harness, 15 of them finished. "Framed" is the framing test recomputed from simulator truth (true cube centre against arm 1's reading).
| view_axis | inspected | truth framed | other exits |
|---|---|---|---|
| side (-y, toward the camera arm) | 2/4 | 3/4 | 1x holding arm timed out at point 1; 1x camera move timed out (true framing still in band) |
| back (-x, camera looking away from the bases) | 1/2 | 1/2 | 1x holding arm timed out at point 1 |
| under (-z, camera looking up) | 0/4 | 0/4 | 4x unreachable; in 3/4 runs the arms came 0.2-0.4 mm apart and the cube dropped |
| front (+x, camera looking back at the bases) | 0/4 | 0/4 | 4x unreachable (IK; the arms came 0.1-0.2 mm apart in 2/4) |
- Every
inspectedexit agreed with truth: range 48.2-48.3 mm, lateral 1.2-2.6 mm. The holding arm put the cube within 2.0-2.7 mm of the inspection point. - The tool-centre distance check (
min_tcp_distance) does not catch link contact. The measured mesh clearance reached 0.1-0.4 mm on under / front / back runs while the tool centres stayed over 40 mm apart. Run checking-dual-arm-clearance on the camera arm's path first. Prefer side or back views; a YAM wrist cannot point straight up at an underside held 15-30 cm over the bench.


