grasp_diverse · RoboTwin
Diverse-angle grasp. Thin wrapper: calls the grasp_object engine with
strategy="diverse". The engine sorts GraspGen candidates by approach Z, then
IK-prechecks an evenly-spaced spread across the vertical→side range instead of the
steepest few.
Why: GraspGen often returns a cluster of near-identical straight-DOWN candidates
that the aloha wrist can't reach at a table reach (hover + grasp IK both fail). The
steepest-first strategy would burn the whole 5-slot precheck budget on those and
never try the moderate/side grasps a cylinder actually needs. Spreading the
precheck guarantees the reachable ones are checked.
If this returns ok=False, try grasp_top_down (some flat objects are only
graspable straight-down).