Learning to grasp and extract affordances: the Integrated Learning of Grasps and Affordances (ILGA) model