Automatic robot path integration using three-dimensional vision and offline programming