With all the emphasis on track stability after some recent major derailments, Norfolk Southern is adding track measurement equipment such as these blue lasers to locomotives to spot trouble sooner. This is part of their autonomous track inspection system.
Article here:https://www.rtands.com/railroad-news/norfolk-southern-debuts-autonomous-track-inspection-technology-mounted-on-locomotive/