Spatial Computing for Robot Training