Using the infra red and ultrasonic sensors, my Rover “Lunokhod 4” hugs the wall to navigate around a course.
At the beginning, you see it wants to start at 6 or 7 cms from the wall. Once you place it at that distance and press the “Start button”, it will attempt to maintain that distance throughout the run.