Grasping by parallel shape matching