get_grasp_pose · RoboTwin
Calls GraspNet-baseline (open-source, GraspGen family) on depth + RGB at
the named object. Returns top-K 6-DoF gripper poses ranked by a learned
grasp-quality score.
Why this exists
move_to_pixel(grasp) is heuristic top-down: descends straight down with
fixed gripper orientation. Fails for many common objects (long thin pens,
curved handles, narrow tall items). A learned grasp generator picks
orientations that actually grip the object — no heuristics required.
Failure mode signal
If backend == 'heuristic_topdown', the GraspNet inference path fell
back. Either the checkpoint is missing or inference errored. The returned
pose is no better than move_to_pixel(grasp). Don't keep calling
get_grasp_pose if it's stuck on heuristic — switch tactic.