Selecting workpieces from one or more containers by robot with vision