RoboSkillHub
Catalog / Tools
tool

curve

Ordered 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, and reads off its two ends (tip position, outward direction, pixel). Use when a workflow needs an ordered centreline of a cable, rope or hose from a mask and a depth frame, must carry one through occlusion between frames, or needs where a cable's tip is and which way it points.

Kind
Tool · perceive: finds and measures things in the scene
Robots
any robot
Tasks
cable-routing
Runs
in its own environment over stdio-msgpack
Used by
perceiving-deformable-linear-objects, perceiving-routing-fixtures, seating-a-cable-crossing, straightening-a-cable-toward-a-target-curve, verifying-a-cable-route
License
Apache-2.0
Source
source on GitHub · SKILL.md · upstream code · v0.2.0

Functions

curve.fit_centerline Fit an ordered, arc-length-parameterised 3D centreline to a deformable linear object from its mask and a depth frame.
curve.track_centerline Advance a known centreline onto a new frame, imputing motion for occluded stretches from their visible neighbours.
curve.endpoints Both ends of a centreline -- each end's position, outward direction and pixel -- and which end a pixel or point hint names.

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 "ordered centrelines of deformable linear objects" --why
uv run --no-sync roboskillhub view --bundles curve --out my_registry

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