Learning to Reorient Objects with Stable Placements Afforded by Extrinsic Supports