RoboSkillHub
Catalog / Skills
skill

grasping-a-cable-by-its-plug

Grasps a cable by the rigid plug at its end rather than by its thin jacket - finds the plug body behind the cable's tip (curve.endpoints, optionally refined by gemini-er.point on the plug and the depth under it), comes down top-down with the jaws closing across the plug's short axis and the fingertips just over the plug's bottom (never over its mid-height, never under the station's tool-centre floor), closes, lifts 4 cm and checks the jaw gap still matches the plug's width (and, given a description, the plug seen to rise in the hand). Use when a charging, USB or audio cable must be picked up to be plugged in or routed and its end has a moulded plug lying flat on the table.

Kind
Skill · execute: moves the robot
Robots
any robot
Tasks
cable-routing
Takes
nothing
Gives
located_by string, grasp_point Vec3, close_heading_deg float, plug_height float, plug_width float, planned_tool_z float, fingertips_over_table float, jaw_width float, jaw_width_lifted float, plug_rise float, lift_checked bool
Calls
gemini-er, geometry, 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.move_to_joints, robot.open_gripper, robot.set_grip, robot.solve_ik
License
MIT
Source
source on GitHub · SKILL.md · upstream code · v0.1.0

Exits

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

grasped The jaws closed on the plug (the gap no more than width_slack, 4 mm, under the plug's width) and still read so after the 4 cm test lift; with a plug_description the plug was also seen at least min_rise (2 cm) up in the hand (lift_checked true). The hand is left lifted, closed on the plug.
missed The descent stopped on the plug or the cable, the jaws closed to their stop or under the plug's width (the jacket or the plug's edge taken), closed further with the lift (the plug slipped out), or the camera saw the plug stay down; the hand opened and stands over the plug. Re-perceive before another try.
unreachable The plug is not resting flat on the table, the fingertips at the tool-centre floor would stand over the plug's mid-height, the plug is wider than the hand opens, no wrist solution reaches it (IK preview), or a rise, the approach, the wrist turn or the descent was refused; `detail` says which.
hand_geometry_unknown A hand or station value the grasp needs is unknown - neither the `hand` input nor robot.describe_gripper states the closed fingertips' reach under the tool centre (`finger.reach_m`), or neither `table_z` nor robot.describe_workspace gives the table (`surface_z`); `detail` names the missing field and nothing moved.

Scripts

grasp_plug

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 cable by the rigid plug at its end rather than by…" --why
uv run --no-sync roboskillhub view --bundles grasping-a-cable-by-its-plug --out my_registry

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