Cybathlon: perception pipeline
Cybathlon: 6D pose estimation and grasping automation
Overview
During my semester thesis at the Robotic Systems Lab at ETHZ I developed a perception pipeline for the quadrapedal anymal robot. Parts of my pipeline were deplyed at the 2024 Cybathlon, which is a competition where people with different impairments compete in physical challenges with the help of technological aids. I contributed to the "Spice-Up challenge", in which the robot needs to localize a shelf, navigate to it, grab a spice bottle from within the shelf and place the bottle on top of the shelf, as depicted below. Specifically, the robot needs to localize and grasp the target spice bottle indicated by a sign.
Shelf localization
The task of localizing the shelf means computing the 6D pose (position and rotation) of the shelf in 3D space, given: the RGB camera frames from an Intel Realsense L500 camera mounted at the robot and a 3D model of the shelf. It was decided not to use the depth information, since it was too noisy.
Spice bottle localization
There are four spice bottles; salt, pepper, vinegar and oil. It is known at which four positions the bottles can stand but not which bottle is at which position. The name of the target spice will be shown on a sign. Thus the task is to find out which of the four known positions contains the target spice. Based on this knowledge a grasp pose and drop off pose for the gripper can be computed. The figure below shows on the left the approximate distance of the robot to the shelf, a typical image which the robot would see and an example grasp + drop off pose.
Challenges
Since the shelf is uniform black it is hard to use pose estimation methods which rely on patch matching such as SIFT. Also, the shiny wood finish causes reflections which are hard to predict and severly change the visual appearence. Third, the bad quality of the depth information is annoying since it makes deprojection from 2D to 3D a lot harder.Initial approach
My initial perception pipeline contained the following steps:
Quadrant separation
1. Use Meta's Segment Anything Model (SAM) to get segmentation masks of all objects in the target image. 2. Use heuristics such as mask size, number of holes, to find the shelf mask (top-left). 3. Do XOR of hole-less mask and inverted mask to get masks of bottles (top-right). 4. Do blob detection on bottles mask, compute the "center of mass" (COM) of each blob and compute the centroid of the COM's (bottom-left). 5. Associate each blob with a quadrant (bottom-right).