grasping-flat-objects
Pick a slab lying flat on a table by pinching its body just above the support, instead of at its box centre.
The motion
- Take the slab's frame from its oriented box: centre, top, and its two
horizontal axes, the shorter first. The support height is
support_zwhen given, else the 5th height percentile ofobject_cloud(RoboRSI), else the box's bottom. - Work out the heights over the support. Level (the default): the fingertips
meet the slab
grasp_fractionof its thickness up, no lower thanmin_tip_clearance; the tool centre may not go under 15 mm (a real YAM station refuses lower) and the fingertips reachtip_reachbelow it (10.2 mm on a YAM linear_4310, so its fingertips are at 4.8 mm at the lowest). If they would end less than 1.5 mm below the slab's top the axis is refused as too thin, rather than closing on air (an 8 mm slab is pinched at 4.8 mm; a 5 mm one is refused level). - Preview the grasp pose with
robot.solve_ikfor both wrist solutions; turn the jaws withrobot.grasp_frame(close heading along the axis). Open the hand fully (RoboRSI), hoverhover_heightabove (straight up first if the hand is lower), read the jaws back and finish a free wrist roll on the last joint. - Come straight down. A descent that stops more than
descent_tolerancehigh is a miss on that axis (a fingertip on the slab's top). - Close and read the gap (
robot.close_gripper'sposition, 1.0 = open, throughrobot.describe_gripper'swidth_fit). Withinempty_marginof the closed stop is empty; more thanfull_marginover the slab's width across the jaws is something else; more thannarrow_marginunder it means a fingertip went over the top or past a corner. Any of these opens the hand, rises, and tries the long axis (RoboRSI's single retry). - Lift
lift_heightand read the gap again; a slab that slipped out reads empty and is a miss.
The optional tilt (not in RoboRSI; did not hold in the twin)
With tilt_deg (or auto_tilt) the hand leans about the normal of the plane
its jaws close in, so one fingertip is lower than the other. The jaws open
only to the slab's width plus 12 mm each side (robot.set_grip), the hand
comes down with the lower open fingertip 1 mm over the support, then narrows
the jaws to the slab's edges in four steps, following each down so that
fingertip slides along the support into the slab's bottom edge, and closes.
auto_tilt takes the tilt whose close line runs from the slab's bottom edge to
1.5 mm under its far top edge, or the steeper tilt the tool-centre floor needs
to bring the lower fingertip to 1 mm (11.3 deg for the 8 mm slab, 17.4 deg for
the 15 mm one, 40 mm across). The tilt lets a thinner slab pass the too-thin
check (a 5 mm slab at 25 deg). But in the station twin every tilted close
pushed the slab 8-41 mm aside and ended narrower than it (below), so leave it
off unless your hand's fingertips are compliant enough to wedge under an edge.
Inputs
object_obb: the slab's oriented box, world frame, half-extents.object_cloud(optional): its points, world frame ({"points": N x 3}or a list of xyz), for the support height.support_z(optional): the support's height, overriding both.tilt_deg(0, at most 35),auto_tilt(false),try_long_axis(true).grasp_fraction(0.45),min_tip_clearance(0.004 m),hover_height(0.06 m),lift_height(0.05 m, 0 skips the lift),empty_margin(0.003 m),full_margin(0.008 m),narrow_margin(0.006 m),yaw_tolerance_deg(5),roll_limits(the last joint's range, default the YAM's +-120 deg),reach_tolerance(0.015 m),descent_tolerance(0.006 m),check_reach(true),arm_id.tip_reach(from the robot): fingertips past the tool centre [m]; unset, it is robot.describe_gripper'sfinger.reach_mwhenfinger.stated, and with neither the skill exitshand_geometry_unknown.
Outputs
axis (short or long, the one tried last), close_heading_deg,
tilt_deg, grasp_position (the tool-centre target at the close),
tip_height (the lower fingertip's planned height over the support where it
meets the slab), object_width (the slab across the jaws), thickness,
jaw_error_deg, wrist_turn_deg, grip_width (gap after the close, m; -1
unread), held_width (after the lift), lifted (m), attempts (axes tried
down to the hover). The exit is what the hand measured, not where the slab is:
re-perceive it before relying on its pose in the hand.
Preconditions
- The hand is empty (it is opened at the start).
- The slab lies flat and is free to be pinched: nothing within half the open span (47 mm on a YAM) of its centre along the jaws.
- One of its sides fits the open hand (94 mm on a YAM, less 2 x the finger
clearance) and it is thicker than about 6.3 mm (the 4.8 mm fingertip floor +
1.5 mm); thinner slabs exit
unreachable(slide them to an edge first).
The constants, and why
GRASP_FRACTION = 0.45,MIN_TIP_CLEARANCE = 0.004m are RoboRSI's_GRASP_FRACand_MIN_ABOVE_TABLE_M.MIN_TOOL_HEIGHT = 0.015m: a real YAM station refuses a tool centre under 14 mm over its table. The fingertip reach comes from the robot (a YAM linear_4310's fingertips reach 10.2 mm below the tool centre). RoboRSI lowered its own descend floor to the table instead, which a YAM station will not do.MIN_BITE = 0.0015m: a choice; less pad than that on the slab's side pinches its top edge, if anything.HOVER_HEIGHT = 0.06m (RoboRSI 0.09) andLIFT_HEIGHT = 0.05m (RoboRSI 0.06): kept inside a YAM's reach.EMPTY_MARGIN = 0.003m,FULL_MARGIN = 0.008m,NARROW_MARGIN = 0.006m: level pinches in the twin read 0.1 mm under to 1.3 mm over the 40 mm side; tilted closes that missed read 5-26 mm.DESCENT_TOLERANCE = 0.006m: over the servo's own 4 mm arrival bound; the twin's servo reportedreached2.5 mm high over the 8 mm slab (a first version that held the stop under 60 % of the bite read that as a fingertip on the slab and missed all three 8 mm grasps). A fingertip on a slab whose top is less than this over the fingertips is therefore not told apart from arrival by the pose; the gap check after the close catches it.TILT_TIP_CLEARANCE = 0.001m,FOLLOW_STEPS = 4,OPEN_CLEARANCE = 0.012m,MAX_TILT_DEG = 35: choices for the tilt.REACH_TOLERANCE = 0.015m,YAW_TOLERANCE_DEG = 5: no tighter than the connectors' own arrival bounds (servo 4 mm / 3 deg; a real YAM station 12 mm / 0.04 rad per move).
Measured in a YAM station twin
RoboSimStudio's YAM station twin, left arm, linear_4310 hand (94 mm span, fingertips 10.5 mm past the tool centre by the hand's own reading), with two 20 g box slabs (friction 0.8) added beside the cube: 60 x 40 x 8 mm turned 15 deg and 60 x 40 x 15 mm turned -10 deg. Before each grasp a script read the slab's oriented box from the simulator (standing in for perception) and passed it in; after it, the slab's own pose was read while the hand still held it, then the hand set it down, opened and rose. An empty close read 0.0 mm. Default inputs (level pinch, 50 mm lift):
| slab | tries | exit | jaw gap at close | after the lift | slab rose | slab tilt in the hand |
|---|---|---|---|---|---|---|
| 8 mm | 3 (+1 recheck) | grasped 4/4 | 41.2-41.3 mm | 39.9 mm | 50.8-50.9 mm | 0.4-0.8 deg |
| 15 mm | 3 | grasped 3/3 | 40.7-41.3 mm | 40.4-40.5 mm | 50.6-51.5 mm | 0.2-0.3 deg |
Every grasp closed across the short side on the first axis, the fingertips planned 4.8 mm (8 mm slab) and 6.75 mm (15 mm slab) over the table, and each slab came back down within 1.6 mm of where it started. The jaws read 1 mm over the 40 mm side at the close and settled 0.1 mm under to 0.5 mm over it in the lift. The twin's IK leaves the wrist roll free; the last-joint turn squared the jaws to within 0.6 deg (up to 32 deg turned).
With auto_tilt the hand did not hold either slab:
| slab | tilt | lift | exit | jaw gap at close | slab pushed |
|---|---|---|---|---|---|
| 15 mm | 17.4 deg | none | missed (25.5 mm, not across it) | 25.5-25.7 mm | 7.8-8.8 mm |
| 8 mm | 11.3 deg | none | missed (4.9 mm) | 4.9-5.1 mm | 17.3-17.5 mm |
| 8 mm, 2 runs | 11.3 / 7.4 deg, both axes | 50 mm | missed (slipped out) | 0.0-12.5 mm | 33-41 mm |
| 15 mm, first run | 17.4 / 11.8 deg, both axes | 50 mm | missed (slipped out) | 0.0-34.0 mm | 27 mm |
The lower fingertip pushed the slab aside along the table rather than
wedging under its edge, and the jaws closed past it. Before narrow_margin
was added the two no-lift runs exited grasped (the gap was neither empty nor
too wide); with it they exit missed (the recheck run above). The first
run also held the descent check under 60 % of the bite, which only changed the
level 8 mm grasps (see DESCENT_TOLERANCE).
Provenance
Adapted from RoboRSI's grasp_flat/robotwin policy (Apache-2.0), which its
authors marked EXPERIMENTAL and unvalidated. Kept: the oriented-box footprint,
the support from the cloud's 5th height percentile, the fingertips at 0.45 of
the thickness (at least 4 mm over the support), the wide-open level pinch across
the short side, one retry across the long side, the lift check. Changed: a
world-frame oriented box in, not a Grounded-SAM mask read inside the simulator;
the grasp height is the tool centre's, floored at 15 mm over the support, and
an axis whose fingertips would stay above the slab is refused (RoboRSI lowered
its descend floor to the table); each axis is IK-previewed and the jaws turned
with robot.grasp_frame, finished on the last joint when the solver leaves the
roll free; RoboRSI's is_holding (simulator contact) and
verify_holding_visual (a VLM) are replaced by the jaw gap against the slab's
width after the close and after the lift; refused moves route instead of
raising. Added: the optional tilt with its stepped close (not in RoboRSI).


