Lane Detection, Calibration, And Attitude Determination With A Multi-Layer Lidar For Vehicle Safety Systems