dozens of robots walked single file across the blacktop dock in a coordinated exercise of loading shipping containers from the rails and delivering them to the waiting cargo ships ; repeating as necessary .