Given the center line and a vector of BasicObstacle's creates a matrix representation of the road. The module assumes that the given obstacles are accurate.
- CENTER_LINE(lms::math::polyLine2f)
- NEW_OBSTACLES(bool)
- OBSTACLES(street_environment::BasicObstacleVector)
- ROADMATRIX(street_environment::RoadMatrix)
- laneWidthMeter(float)
- cellsPerLane(int)
- cellLengthMeter(float)
- maxCellTranslate(int)
The cell width is calculated by dividing the laneWidth by the number of cells per lane. This way there is always an even number of cells on the road.