Detection and Classification of Obstacles Using a 2D LiDAR Sensor