Give the robot an invisible landscape with a valley at the goal and a hill around every obstacle. Then let it roll downhill by following the negative gradient.