MCPcopy Create free account
hub / github.com/comaps/comaps / IntermediateDirection

Function IntermediateDirection

libs/routing/turns_generator_utils.cpp:87–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87CarDirection IntermediateDirection(double const angle)
88{
89 static std::vector<std::pair<double, CarDirection>> const kLowerBounds = {
90 {145., CarDirection::TurnSharpRight}, {50., CarDirection::TurnRight}, {10., CarDirection::TurnSlightRight},
91 {-10., CarDirection::GoStraight}, {-50., CarDirection::TurnSlightLeft}, {-145., CarDirection::TurnLeft},
92 {-180., CarDirection::TurnSharpLeft}};
93
94 return FindDirectionByAngle(kLowerBounds, angle);
95}
96
97PedestrianDirection IntermediateDirectionPedestrian(double const angle)
98{

Callers 5

GetTurnDirectionBasicFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 1

FindDirectionByAngleFunction · 0.85

Tested by 1

UNIT_TESTFunction · 0.68