Obstacle avoidance using a line laser