I am sure I've seen algorithm about what I want but I can not put my hands on it when I browse the web.
So what I am looking for is an algorithm that makes my robot follow a wall, keeping at all times the same distance (when possible). Only the part about the positionning on the side of the wall.
A bit like this, except here the distance is not constant:
Thank you for the help!
Extra:
Here is a picture of my issue when following the wall step by step with constant distance to it: (blue is the robot position and red is the normal to the wall)