The recognition and acquisition of parts by a robot with visual feedback