approaching-above-a-target
Park the hand above an object: rise in place to the hover height, move across to above the target's centre, and confirm the arrival from the arm's own pose.
Why keep the rotation
A learned policy's proprioception at hand-off should look like the start of
its training episodes. Turning the wrist to a top-down quaternion first (what
the grasp skills' own approach_above scripts do) pushes that state out of
distribution. This skill keeps the hand's current rotation unless rotation
is given.
Inputs
target_obb: the target's oriented box in the world frame (extentholds half-extents, so the top iscenter.z + extent.z).clearance(default 0.12 m): tool-centre height over the box's top.min_z: an optional floor on the hover height, in the world frame.rotation: a quaternion to hover with instead of the current one.arm_id,tolerance,max_steps: passed on only when set (arm_idwhen nonzero).toleranceandmax_stepsare gap's built-in connector's convergence knobs; a real station's motion server may not take them.reach_tolerance(default 10 mm),rot_tolerance_deg(default 4 deg): the arrival bounds.
Required end states
above: a freshrobot.get_ee_poselies withinreach_toleranceofhover_poseand withinrot_tolerance_degof its rotation.position_errorandrotation_error_degreport both.unreachable: arobot.go_to_poseraised, or replied that it did not arrive (RoboSimStudio's servo routes an unreachable pose as{"outcome": "unreachable"}instead of raising), or the hand ended further off. Both errors are -1 when a move failed.
The constants, and why
CLEARANCE = 0.12m: graph-as-policy's steered-policy hand-off value (obb_clearance), clear of open fingers above a tabletop object.REACH_TOLERANCE = 0.01m: inside a real YAM station's 12 mm bound, past which its motion server fails a move.ROT_TOLERANCE_DEG = 4.0: above RoboSimStudio's IK servo arrival ball (3 deg) and a real YAM station's per-move bound (0.04 rad, 2.3 deg), so a move the connector accepted is not failed here. Measured on a YAM station twin in RoboSimStudio: the hover ended 1.4 mm and 2.15 deg off, and passingtolerancedid not change the rotation (that servo applies it to position only).


