Make sure we only count turns as UTurns for the turn_function

This commit is contained in:
Patrick Niklaus
2017-12-22 23:39:49 +00:00
committed by Patrick Niklaus
parent 84b6ef4340
commit e45d44cb8e
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -580,7 +580,7 @@ void EdgeBasedGraphFactory::GenerateEdgeExpandedEdges(
ExtractionTurn extracted_turn(
turn.angle,
m_node_based_graph.GetOutDegree(node_at_center_of_intersection),
turn.instruction.direction_modifier == guidance::DirectionModifier::UTurn,
turn.instruction.IsUTurn(),
is_traffic_light,
edge_data1.flags.restricted,
edge_data2.flags.restricted,