A robot train script with automated reversal capability is shown in this video. Automated turnouts, signals and occupancy sensors are used. Train runs from a yard and returns after turning around using a WYE track topology. Stop spots are calculated to avoid fouling turnout points. Video by Tom Stack.