RoboSkillHub
Catalog / Skills
skill

straightening-a-cable-toward-a-target-curve

Pulls a cable lying flat on a table toward a target curve, one correction at a time - the perceived centreline and the target are resampled at equal arc length in plan, matched in the cable's two directions (and, when their lengths differ, at every placement of the shorter along the longer), the point with the largest discrepancy is picked with grasping-a-cable-lying-flat and put down a little past its target, and the cable is looked at again, until every node is within a tolerance, a cap on corrections is reached, the error stalls or the cable is lost. Use when a cable on the table must lie along a line or curve, e.g. to lay its last 10 cm straight and pointing at a ring before threading, or to undo a bend before routing, with an overhead RGB-D camera (sam3.segment_text and curve.fit_centerline) or a centreline fitted by the caller.

Kind
Skill · execute: moves the robot
Robots
any robot
Tasks
cable-routing
Takes
target Centerline
Gives
max_error float, mean_error float, initial_max_error float, corrections int, misses int, reversed bool, offset_m float, coverage float, pick_point Vec3, place_point Vec3, centerline Centerline
Calls
curve, 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_cartesian_until_contact, robot.move_to_joints, robot.open_gripper, robot.set_grip, robot.solve_ik
License
Apache-2.0
Source
source on GitHub · SKILL.md · upstream code · https://arxiv.org/abs/2012.03385 · v0.1.0

Exits

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

shaped The latest look put every matched node within tolerance (10 mm) of the target in plan; the hand is open and stands retreat (5 cm) over the last place, or has not moved if the cable was already there.
corrected No cable_description was given, so after one pick-and-place the cable was not looked at again; fit its centreline and call again. The hand is open over the place.
not_converged max_iters (12) corrections were made, or the best max error did not improve by 2 mm in 4 corrections, and some node is still further than the tolerance; the cable lies on the table, the hand is open.
grasp_failed Two grasps in a row (one without a camera) closed on nothing; the hand is open over the cable.
lost_cable The cable was not found by the camera, its fit was empty, or the cable seen is shorter than min_coverage (80 %) of the target in plan (part of it hidden or out of view).
unreachable No pick among the PICK_TRIES (3) largest discrepancies was reachable (grasping-a-cable-lying-flat routed unreachable for each), or the carry to the place was refused; after a refused carry the cable was set down where the hand stood and released. `detail` says which.

Scripts

straighten_cable

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 "pulls a cable lying flat on a table toward a target curve…" --why
uv run --no-sync roboskillhub view --bundles straightening-a-cable-toward-a-target-curve --out my_registry

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