From 4caee0339e06e49c0dd87ce22e435f3e39de4fb1 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 6 May 2024 08:12:55 +0200 Subject: [PATCH] Apply formatting --- .../guidance/collapse_scenario_detection.hpp | 14 +++++++------- .../intersection/intersection_analysis.cpp | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/engine/guidance/collapse_scenario_detection.hpp b/include/engine/guidance/collapse_scenario_detection.hpp index b072627c7..47ab9fbf9 100644 --- a/include/engine/guidance/collapse_scenario_detection.hpp +++ b/include/engine/guidance/collapse_scenario_detection.hpp @@ -16,7 +16,7 @@ bool basicCollapsePreconditions(const RouteStepIterator first, // Staggered intersection are very short zig-zags of a few meters. // We do not want to announce these short left-rights or right-lefts: -//  +//   // * -> b a -> * // | or | becomes a -> b // a -> * * -> b @@ -26,7 +26,7 @@ bool isStaggeredIntersection(const RouteStepIterator step_prior_to_intersection, // Two two turns following close after another, we can announce them as a U-Turn if both end up // involving the same (segregated) road. -//  +//   // b < - y // | will be represented by at x, turn around instead of turn left at x, turn left at y // a - > x @@ -42,11 +42,11 @@ bool isNameOszillation(const RouteStepIterator step_prior_to_intersection, // Sometimes, segments names don't match the perceived turns. We try to detect these additional // name changes and issue a combined turn. -//  +//   // | e | // a - b - c // d -//  +//   // can have `a-b` as one name, `b-c-d` as a second. At `b` we would issue a new name, even though // the road turns right after. The offset would only be there due to the broad road at `e` bool maneuverPreceededByNameChange(const RouteStepIterator step_prior_to_intersection, @@ -73,11 +73,11 @@ bool doubleChoiceless(const RouteStepIterator step_entering_intersection, // Due to obvious detection, sometimes we can have straight turns followed by a different turn right // next to each other. We combine both turns into one, if the second turn is without choice -//  -//  e +//   +//   e // a - b - c // ' d -//  +//   // with a main road `abd`, the turn `continue straight` at `b` and `turn left at `c` will become a // `turn left` at `b` bool straightTurnFollowedByChoiceless(const RouteStepIterator step_entering_intersection, diff --git a/src/extractor/intersection/intersection_analysis.cpp b/src/extractor/intersection/intersection_analysis.cpp index e1b5ad3a4..98c8ef8a7 100644 --- a/src/extractor/intersection/intersection_analysis.cpp +++ b/src/extractor/intersection/intersection_analysis.cpp @@ -128,7 +128,7 @@ std::pair findMergedBearing(const util::NodeBasedDynamicGraph &gra { // In some intersections, turning roads can introduce artificial turns if we merge here. // Consider a scenario like: - //  + //   // a . g - f // | . // | . @@ -136,7 +136,7 @@ std::pair findMergedBearing(const util::NodeBasedDynamicGraph &gra // d-b--------e // | // c - //  + //   // Merging `bgf` and `be` would introduce an angle, even though d-b-e is perfectly straight // We don't change the angle, if such an opposite road exists return {false, entry.perceived_bearing};