CP built three of these Maintence of Way MPM's (Multi Purpose Machine) consisting of a converted GP38AC locomotive for power, connected well cars for the work platform, and a Control Cab made from an 89 foot flatcar that also stores the excavator attachments. The excavator runs back and forth along the length of the attached well cars doing its thing with the various attachments. The locomotive can also be run by belt pack for remote operations. See this
to learn more.