is_reachable ยท RoboTwin
Quick "can the arm reach this?" predicate. Used to filter grasp pose
candidates before committing to a full move_to_pose attempt.
Heuristic (v0.1)
- Aloha-agilex left arm base โ (-0.18, 0, 0.85), right arm base โ (0.18, 0, 0.85).
- Reach radius ~0.55 m. Crossing midline reduces effective reach.
- If distance to base > 0.55, return False.
- If left arm asked to grasp at x > 0.10 (right side of midline), or right arm at x < -0.10, return False (cross-arm reach).
This is rough but catches the obvious failure modes (pen at x=0.6 commanded to right arm whose base is at x=0.18, reach ~0.42m needed but with offset โ unreachable).