get_grasp_pose_segmented · RoboTwin
Color-segmented variant of get_grasp_pose. Pre-filters the input point
cloud by HSV color mask + optional bbox crop so GraspGen only "sees" the
target object. Backend = same GraspGen ZMQ server (port 5556). Filtering
happens client-side before the request.
How it works
- Capture head_camera RGB + depth.
- Run
find_pixel(object)to get a coarse pixel center. - Crop a
2*bbox_pad_pxwindow around the center. - Convert the crop to HSV; mask pixels matching the named color.
- Build a world-frame point cloud from ONLY the masked pixels' depths.
- Send the segmented cloud to GraspGen ZMQ server.
- Return top-K grasps (with TCP→flange offset already applied).