obstacle avoiding robot

This is a very frequent request.
And one without a clear answer.