adjusting u-turn handling in lane matching to fully fix 2706

This commit is contained in:
Moritz Kobitzsch
2016-08-08 15:44:58 +02:00
committed by Patrick Niklaus
parent 11aed6c93e
commit 9485c97738
5 changed files with 91 additions and 21 deletions
@@ -277,7 +277,7 @@ Intersection IntersectionGenerator::mergeSegregatedRoads(Intersection intersecti
{
const double correction_factor = (intersection[1].turn.angle) / 2;
for (std::size_t i = 2; i < intersection.size(); ++i)
intersection[i].turn.angle += correction_factor;
intersection[i].turn.angle -= correction_factor;
intersection[0] = merge(intersection[0], intersection[1]);
intersection[0].turn.angle = 0;
intersection.erase(intersection.begin() + 1);