Corrected robot behaviour on a corner of the wall