running-two-skills-concurrently-on-two-arms
Runs two hub skills at the same time, one per arm (threaded on a connector that moves both arms at once; on a server that moves one arm at a time, their moves cut into server steps and interleaved A1, B1, A2, B2 from one dispatcher; or one after the other on request), with each skill's robot.* calls bound to its arm (arm_id injected), and every move of either arm passed through a shared arbiter that predicts the arms' capsule clearance for it (checking-dual-arm-clearance, against the other arm standing or on its move in flight) and makes the arm wait while the move would come under min_clearance_m; a failure of one skill pauses the other at its start pose. Arms are given or assigned by IK reach. Use when two independent one-arm steps (two picks, a pick and a wipe) should overlap in time on a bimanual station whose arms share workspace, and both skills are in the hub.
skill_a string, skill_b stringarm_a int, arm_b int, route_a string, route_b string, mode string, outputs_a string, outputs_b string, paused_arms string, sequential_fallback bool, waits int, min_predicted_clearance_m floatrobot.close_gripper, robot.describe_arm, robot.describe_robot, robot.execute_trajectory, robot.forward_kinematics, 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.solve_ikExits
What the skill reports when it ends; a policy branches on these.
both_succeeded Both skills returned one of their success exits (any exit when the skill's canonical subgraph lists none), every move (interleaved - every segment) having been predicted at least min_clearance_m clear of the other arm; route_a / route_b are the skills' exits and outputs_a / outputs_b their outputs (JSON text).one_failed One skill raised or ended on a non-success exit; the other was stopped at its next move and its arm moved back to the joints it started from when that was predicted clear (paused_arms names it), otherwise left where it stood; in sequential mode a second skill not yet started is not run (route not_run).both_failed Both skills raised or ended on non-success exits.deadlock_timeout An arm waited wait_timeout_s for clearance and no sequential fallback was possible (on_deadlock pause, the other skill already finished in its way, the fallback itself deadlocked, or backing the yielding arm off its whole path does not clear the other); the arm was paused at its start pose if clear, the other stopped at its next move; detail names the move and the predicted clearance.refused The clearance could not be predicted (a move the model cannot follow, an unreadable or non-YAM arm), the arms already stood under min_clearance_m or min_tcp_separation_m, no arm assignment reaches both targets, or the skills cannot be loaded; when this happens mid-run neither arm is moved further.Scripts
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 "runs two hub skills at the same time, one per arm…" --why
uv run --no-sync roboskillhub view --bundles running-two-skills-concurrently-on-two-arms --out my_registrySee Get started for searching by task and robot, locking what a policy uses, and fetching it on the robot.