It is a hard robotics problem. Saying that "it would need a wide scan" is a vast underestimation. Try looking up some papers on obstacle avoidance. Also, consider the costs of sticking the additional sensors on the robot, processing that data in realtime, and still powering the whole thing.