RoboSkillHub
Catalog / Skills
skill

grasping-by-wrist-camera-servoing

Grasps a small part by closed-loop eye-in-hand servoing - from a pregrasp standoff above a coarse target, it segments the part in every wrist RGB-D frame (sam3.segment_text), takes the centre of the mask's top-face points back-projected with the wrist depth, steps the hand sideways (capped, IK-previewed robot.go_to_pose_cartesian steps) to bring that point under the tool centre, descends while it stays centred, and closes once the tool centre reaches the grasp height with the part under it; a lost track, a stalled arm or the step cap fall back to an open-loop grasp at the last point seen. Use when an overhead estimate is a few millimetres off and that is too much - LEGO bricks, dominoes, jigsaw pieces or 20-30 mm parts picked with the jaws pre-shaped close to the part's width - and the arm carries a wrist camera.

Kind
Skill · execute: moves the robot
Robots
any robot
Tasks
pick-place sorting jigsaw
Takes
object_name str
Gives
grasp_point Vec3, coarse_point Vec3, mode str, correction float, final_error float, grip_width float, held_width float
Calls
sam3
Robot tools
robot.close_gripper, robot.describe_gripper, robot.describe_workspace, robot.get_ee_pose, robot.get_gripper, robot.get_observation, robot.go_to_pose, robot.go_to_pose_cartesian, robot.grasp_frame, robot.open_gripper, robot.set_grip, robot.solve_ik
License
Apache-2.0
Source
source on GitHub · SKILL.md · upstream code · v1.0.0

Exits

What the skill reports when it ends; a policy branches on these.

grasped The jaws closed on something (the gap stayed over fully closed + 3 mm) and still held it after a lift of lift_height; `mode` says whether the servo closed (`servo`), the open-loop fallback did (`open_loop_fallback`, `fallback_reason` says why) or the skill ran open-loop (`open_loop`, servo=false). The hand stays lifted with the part.
unverified Closed and lifted, but the gripper reports no jaw gap (no position feedback), so nothing tells a held part from an empty hand; check by another sense before relying on it.
missed The jaws closed on nothing, or the part slipped out in the lift; the jaws are opened and the hand lifted clear.
lost_target There is no wrist camera, the segmenter never found the part near the coarse estimate in MAX_LOST frames from the pregrasp view, or (fallback=false) it lost the part mid-servo; the hand stays where it was, jaws open.
hand_geometry_unknown The fingertip reach (`tip_reach`, else robot.describe_gripper's stated `finger.reach_m`) or the lowest tool centre over the support (`min_tool_height`, else `min_tool_height_m` from robot.describe_gripper or robot.describe_workspace) is not given; `detail` names the missing field. Nothing moved.
unreachable No top-down grasp rotation, no pregrasp view passed the IK preview and the clearance floor or arrived within 15 mm, or a move of the open-loop grasp was refused; `detail` lists each attempt.

Scripts

servo_grasp

Use it

Take this bundle (and the tools it calls) into a registry for your task, then point your policy generator at it:

git clone https://github.com/runtime-si/RoboSkillHub
cd RoboSkillHub && uv sync
uv run --no-sync roboskillhub search "grasps a small part by closed-loop eye-in-hand servoing" --why
uv run --no-sync roboskillhub view --bundles grasping-by-wrist-camera-servoing --out my_registry

See Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.