They are diesel powered trucks which navigate by following the wall profile - slightly confusingly they are often called 'trams' because moving muck underground is called 'tramming' from the original medieval mine railways!
Another laser scanner checks the tunnel ahead (and behind) for obstacles, other trucks, people, rockfalls etc.
On some systems a spinning laser on the top hits fixed prism reflectors with known position on the roof and walls, it constantly resects it's position from this.