Computes a deterministic short-axis-aligned grasp pose using CuRobo for elongated objects like handles, bottles, and utensils. Gripper approaches straight down with jaws closing across the narrow dimension for stable lift and transport.
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.
Deterministic, geometry-locked grasping with CuRobo. The grasp pose is computed directly from the target OBB — the gripper descends along world −Z with its finger-opening axis snapped to the OBB's shorter horizontal axis, so the jaws close across the narrow dimension of the bar. An optional node then slides the grasp outward along the handle, clear of a heavier attached body. The subgraph builds a per-observation collision world (target excluded), plans a CuRobo trajectory, executes it, finalizes the last waypoint, closes the gripper, and outputs the EE pose at grasp.
This skill depends on the curobo and geometry tool bundles:
export CUDA_HOME=/usr/local/cuda
uv sync --extra curobo --extra geometry # (pip: pip install -e "open-robot-skills[curobo,geometry]" --no-build-isolation)
base_obb
for the outward slide.grasping-with-planner.curobo not deployed.grasping-with-planner.10 states, in order:
open → compute_grasp → offset_from_base → approach → observe
→ build_world → plan → execute → finalize → 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: script, file
scripts/<sg>/short_axis_grasp_pose.py (canonical — do NOT re-emit a
```python block; the bundle materializes it). Inputs:
target_obb = Ref("in.target_obb"). Optional z_offset (default
−0.04: descend the fingertip 4 cm into the OBB top). Returns
{grasp_pose: Se3Pose}.offset_from_base — type: script, file
scripts/<sg>/offset_grasp_from_base.py (canonical). Inputs:
handle_obb = Ref("in.target_obb"),
grasp_pose = Ref("compute_grasp.grasp_pose"), and — ONLY when a
body perception was authored and base_obb declared as a subgraph
input — base_obb = Ref("in.base_obb"). Returns
{adjusted_grasp: Se3Pose}. Safe no-op when base_obb is absent.approach — type: script, file
scripts/<sg>/approach_above.py (canonical). Inputs:
target_position = Ref("offset_from_base.adjusted_grasp.position"),
rotation = Ref("offset_from_base.adjusted_grasp.rotation"),
target_obb = Ref("in.target_obb").observe — type: tool, tool: "robot.get_observation".build_world — type: script, file
scripts/<sg>/build_world.py (canonical). Inputs:
observation = Ref("observe"),
target_mask = Ref("in.target_mask"),
target_obb = Ref("in.target_obb"), target_name = "target".plan — type: script, file scripts/<sg>/plan_grasp.py
(canonical). Inputs: world_config = Ref("build_world.config"),
observation = Ref("observe"),
grasp_poses = Ref("offset_from_base.adjusted_grasp"),
target_name = "target". plan_grasp.py auto-wraps the single bare
Se3Pose into a one-element list. All four inputs are required.execute — type: tool,
tool: "robot.execute_trajectory",
inputs: { trajectory: Ref("plan.trajectory"), subsample: 4 }.finalize — type: script, file
scripts/<sg>/finalize_trajectory.py (canonical). Inputs:
trajectory = Ref("plan.trajectory"). MANDATORY — see the
execute → finalize → close hard_rule. Edges:
execute → finalize, finalize → close.close — type: tool, tool: "robot.close_gripper",
inputs: { settle_steps: 60 }. Edge directly from close to the
grasped success marker.The cross-subgraph output binding:
sg.set_outputs(
ee_pose_at_grasp=Ref("observe.arms.0.ee_pose"),
grasp_pose=Ref("offset_from_base.adjusted_grasp"),
)
Wire the exit:
sg.add_edge("close", "grasped")
sg.add_edge("grasped", END)
sg.add_exit("grasped")
sg.set_on_error("failed")
| End state | Meaning |
|---|---|
grasped | Gripper has closed on the object after the descend. Route to the next subgraph (typically transporting-objects). |
failed | Any grasp-attempt failure: collision-aware planning failure or trajectory execution error (a raise to on_error). Lives only in on_error — never declare a failed node. |
Express grasp success as a validate=True postcondition checkpoint
target_held on the close state (the gripper is holding the target
after close). Do not add a re-check-and-raise node.
../grasping-with-planner/SKILL.md — the sampled-candidate OBB
counterpart; this skill mirrors its
approach/build_world/plan/finalize tail (the scripts are
bundled here so the skill is self-contained).references/design_grasp_curobo.md (opens in a new tab)references/gripper_settle_constants.md (opens in a new tab)scripts/approach_above.py (opens in a new tab)scripts/build_world.py (opens in a new tab)scripts/finalize_trajectory.py (opens in a new tab)scripts/offset_grasp_from_base.py (opens in a new tab)scripts/plan_grasp.py (opens in a new tab)scripts/plan_grasp_motion.py (opens in a new tab)scripts/short_axis_grasp_pose.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/open-robot-skills:grasping-short-axisfrom open-robot-skills
npx claudepluginhub graph-robots/open-robot-skills --plugin open-robot-skills40 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.Other plugins' skills for the same job