Obstacle detection in urban light rail transportation