Overview
Pairwise sphere-distance check between two arms. Uses kinematic-only
FK (no physics step), so safe to call mid-execution without disturbing
sim state.
Phases
- Resolve mode (current vs candidate).
- If candidate_pose: call
<arm>_plan_path→ take final qpos. - Snapshot both arms' qpos.
- For candidate modes: set
armto candidate qpos. - Walk both arm articulations' links → load sphere data → transform
centers to world frame.
- Optionally add attached-object spheres to each side.
- Pairwise distance check across holding-arm spheres × container-arm
spheres.
- Restore qpos.
Success criteria
ok=True: the check ran.collidesis the real answer.
Failure modes
ok=False: candidate_pose plan_path failed; candidate_qpos shape
mismatch; entity missing.