Using Synthetic Data and Deep Networks to Recognize Primitive Shapes for Object Grasping