RoboSkillHub
Catalog / Skills
skill

checking-dual-arm-clearance

Predicts, before a move is sent, the minimum clearance between the two arms along the planned path - both arms' joints and tool poses are read together, each planned leg (joint waypoints, or tool poses solved with the arm's IK every 2 cm) is sampled every 0.01 rad, and at every sample a capsule model of the YAM's links (plus held-object spheres) gives the closest cross-arm pair - and routes clear / too_close / unknown with the minimum distance, where along the path it falls and the closest link pair. Use when a bimanual station is about to move one arm near the other (a handover, a two-hand lift, a place beside the other hand) and its planner does not see the other arm, with both arms addressable by arm_id.

Kind
Skill · verify: checks that a step did what it should
Robots
any robot, 2 arms
Tasks
bimanual pick-place
Takes
nothing
Gives
min_clearance_m float, closest_link_a string, closest_link_b string, closest_point_a Vec3, closest_point_b Vec3, at_fraction float, start_clearance_m float, end_clearance_m float, samples int, model_error_m float
Robot tools
robot.describe_arm, robot.describe_gripper, robot.forward_kinematics, robot.get_observation, robot.solve_ik
Used by
running-two-arm-tasks-at-once (recipe)
License
Apache-2.0
Source
source on GitHub · SKILL.md · upstream code · v0.1.0

Exits

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

clear The capsule model's smallest cross-arm clearance over every sample of the planned motion is at least too_close_m (default 5 mm); min_clearance_m, closest_link_a / closest_link_b and at_fraction say where it is tightest.
too_close Somewhere along the planned motion (or now, with no plan given) the capsules come within too_close_m or overlap (negative min_clearance_m); at_fraction and closest_link_a / closest_link_b say where and which links.
hand_geometry_unknown Neither `finger_travel` nor robot.describe_gripper (`span_m`, else `max_grasp_width_m`, less the closed width, halved) gives an arm's single-finger travel; `detail` names the arm and the missing field.
unknown The check could not be made - a second arm is not reported or reads as the first, an arm has no joint reading or not 6 joints, the connector's forward kinematics disagrees with the YAM model by more than 5 mm, a pose waypoint has no IK solution within the servo's tolerance or the IK changed branch along a straight leg, or the inputs conflict; `detail` says which.

Scripts

check_clearance

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 "predicts, before a move is sent, the minimum clearance…" --why
uv run --no-sync roboskillhub view --bundles checking-dual-arm-clearance --out my_registry

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