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

Method GetUTurnPenalty

libs/routing/edge_estimator.cpp:754–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

752};
753
754double CarEstimator::GetUTurnPenalty(Purpose /* purpose */) const
755{
756 // Adds 2 minutes penalty for U-turn. The value is quite arbitrary
757 // and needs to be properly selected after a number of real-world
758 // experiments.
759 return 2 * 60; // seconds
760}
761
762double CarEstimator::GetTurnPenalty(Purpose purpose, double angle, RoadGeometry const & from_road,
763 RoadGeometry const & to_road, bool is_left_hand_traffic) const

Callers 1

GetPenaltiesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected