Finding paths for a robot