Implements align-then-descend grasping where the gripper pre-rotates above the target before descending straight down, avoiding twist-while-closing failures. Use when no trajectory planner is deployed or the scene is uncluttered.
Ships in open-robot-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Direct-IK grasp: rotate the gripper to grasp orientation at a safe height above the target, then descend straight down, then close. No trajectory planner — works on platforms where CuRobo is not deployed, or in uncluttered scenes where planning is overkill.
Nothing here is written for one hand. The grasp rotation is composed by the
connector's robot.grasp_frame from the hand's measured approach and closing
axes, the fingertip floor and the hover clearance come from
robot.describe_gripper / robot.describe_workspace, so the same subgraph
grasps the same way on a hand that closes along tool-local x and on one that
closes along tool-local y.
curobo tool bundle is not deployed (no collision-aware planner
available).grasping-with-planner if available.The subgraph state machine the agent generates should look like (7 states):
open → compute_grasp → refine_grasp → compute_align → rotate_align → descend → close → grasped
(grasped is the success-marker noop from sg.add_exit("grasped"),
with an edge to END.)
State details:
open — type: tool, tool: "robot.open_gripper", inputs: { settle_steps: 40 }.
compute_grasp — type: tool, tool: "geometry.top_down_grasp_candidates",
inputs: { obb: Ref("in.target_obb") }.
refine_grasp — type: script, file
scripts/<sg>/refine_top_down_grasp.py (from this bundle's
canonical_scripts). Inputs:
grasp_pose = Ref("compute_grasp.candidates.poses.0"),
target_obb = Ref("in.target_obb"). Returns grasp_pose: the candidate
with its rotation rebuilt so this hand's closing axis lies across the
OBB's short horizontal axis (robot.describe_gripper +
robot.grasp_frame(approach=-z, close_heading_deg)), and its Z raised to
the fingertip floor (support_z + finger.reach_m + finger.clearance_m)
when the hand states its finger envelope. Keep this state: the candidate
fan is world-aligned and a thin object's centred grasp jams the jaws on
the table without the floor.
compute_align — type: script, file
scripts/<sg>/compute_align_pose.py. Inputs:
grasp_pose = Ref("refine_grasp.grasp_pose"),
target_obb = Ref("in.target_obb"), optionally clearance (a literal in
metres). Returns align_pose at the grasp XY and rotation, with
z = max(obb_top, grasp_z) + clearance. Omit clearance (or pass 0)
and the script asks robot.describe_workspace for align_clearance_m —
the hand's own envelope above the fingertips. Pin it (e.g. 0.12) when
the held object is what needs the room, such as a long tool that will
hang below the fingertips on the way up.
rotate_align — type: tool, tool: "robot.go_to_pose",
inputs: { pose: Ref("compute_align.align_pose") }.
descend — type: tool, tool: "robot.go_to_pose",
inputs: { pose: Ref("refine_grasp.grasp_pose") } — the same pose
compute_align was given, so hover and grasp share one rotation.
close — type: tool, tool: "robot.close_gripper", inputs: { settle_steps: 60 }.
Edge directly from close to the grasped success marker; the
subgraph's on_error: "failed" catches any raise from earlier steps.
Whether the gripper actually closed on the object is checked by the
target_held postcondition checkpoint (see ## Checkpoints), NOT by
a re-check-and-raise node (none such exists).
"edges": [ ..., ["close", "grasped"], ["grasped", "END"] ],
"conditional_edges": {},
"exit": { "router_field": null, "success_values": ["grasped"] },
"on_error": "failed"
The lift onto a safe carry height is handled by the next
transporting-objects subgraph (its waypoint_move script lifts before
lateral motion); do NOT add a lift step here.
scripts/<sg>/plan_to_pose.py is the optional planned variant of a single
leg: it calls curobo.plan_to_pose from the observation's joint state to a
target pose and returns the trajectory (raising PlanningFailed when the
planner refuses) for a platform that deploys CuRobo as a fast single-pose IK
fallback without the goalset grasp planner.
geometry.top_down_grasp_candidates (returns
candidates: {poses: list[Se3Pose]}), not
geometry.top_down_grasp_from_obb (single bare pose). The refine and
align-pose constructions assume compute_grasp.candidates.poses.0 exists.align_pose descends straight down with the gripper pre-rotated.
Do NOT skip the compute_align + rotate_align states — a direct
robot.go_to_pose to the grasp pose blends rotation and descent and
twists the gripper against the object.descend uses the pose compute_align was given (refine_grasp.grasp_pose).
Never descend to the raw candidate after hovering at the refined rotation.| End state | Meaning |
|---|---|
grasped | Gripper has closed on the object after the descend. Route to next subgraph (typically transporting-objects). |
failed | Any grasp-attempt failure: planning failure or trajectory execution error (a raise to on_error). Coordinator routes to abort. Lives only in on_error — never declare a failed node. |
references/design_align_then_descend.md — why pre-rotate-then-descend
beats blended rotate+descend.scripts/refine_top_down_grasp.py — the close-axis rotation and fingertip
floor, read off the live hand.scripts/compute_align_pose.py — the canonical align-pose construction.scripts/plan_to_pose.py — the optional CuRobo single-pose leg.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
40 skills in this plugin
/anchoring-a-free-endPins one end of a cable with the support hand before any crossing is attempted — asks the support-hand planner for the anchor grasp as joint-space legs, refuses it when its worst IK error is past the limit, streams the legs, closes the jaws to the plan's own width and dwells for the fingers' travel, and carries the solved chain and grasp orientation out on the exit so later pay-outs seed from them. Use when a deformable linear object must be held at one end so a sideways pull bends it instead of dragging the whole thing./computing-feature-mating-posesComputes approach, engaged, and mate TCP poses from a held feature in the hand and a fixture feature, resolving free mate symmetries from the current robot pose without executing motion. Use when a held loop must go over a shaft or hook, or a held shaft or tip must enter an aperture, and explicit approach, engaged, and mate poses are needed for planning./curoboNVIDIA cuRobo motion planning — collision-free trajectories to grasp goalsets, transport with an attached object, constrained linear moves, single-pose planning, geometric IK, batch grasp feasibility, and joint-trajectory collision validation. Use when a workflow needs GPU-accelerated, collision-aware arm motion plans./curveOrdered centrelines of deformable linear objects — skeletonises a cable, rope or hose mask, recovers one traversal order through occlusion breaks and self-crossings (TrackDLO's chain merge), back-projects the ordered pixels through depth onto the object's axis as an arc-length-parameterised polyline, and carries a known centreline onto the next frame with motion imputed for hidden stretches. Use when a workflow needs an ordered centreline of a cable, rope or hose from a mask and a depth frame, or must carry one through occlusion between frames./executing-feature-matingExecutes a supplied feature-mating plan for an already-held rigid object - collision-aware planner legs tracked to millimetre precision, Cartesian servo for short corrections and fixture crossings, contact-controlled seating - then releases and retreats along the fixture axis or straight up. Use when the goal is a constrained mate such as a loop over a shaft, a shaft into an aperture, or a handle seated on a support; use transporting-objects for ordinary container drops./executing-held-object-motionExecutes an ordered, collision-aware pose sequence for an already-grasped rigid object without releasing it - the escape from support, clear-space rotation, fixture transit and orientation-locked local legs of a carry plan, or only the free-space approach waypoint of a placement plan. Use when a held object must be carried or reoriented before insertion, mating, packing, or sorting, and use executing-feature-mating afterwards for the engagement and release./open-robot-skills:grasping-direct-ikfrom open-robot-skills
npx claudepluginhub graph-robots/open-robot-skills --plugin open-robot-skillsOther plugins' skills for the same job