32static constexpr double kOvertakeTimeBuffer = 3.0;
33static constexpr double kMinOvertakeDistance = 10.0;
34static constexpr double kDpSafetyDistance = 20.0;
35static constexpr double kDpSafetyTimeBuffer = 3.0;
41 return target_obs_speed * kDpSafetyTimeBuffer;
45 return FLAGS_yield_distance;
50 const double target_obs_speed,
const double adc_speed) {
51 const double overtake_distance_s =
52 std::fmax(std::fmax(adc_speed, target_obs_speed) * kOvertakeTimeBuffer,
53 kMinOvertakeDistance);
54 return overtake_distance_s;
59 return std::fmax(adc_speed * FLAGS_follow_time_buffer,
60 FLAGS_follow_min_distance);
65 return FLAGS_yield_distance;
static double EstimateProperOvertakingGap(const double target_obs_speed, const double adc_speed)
static double EstimateSafeYieldingGap()
static double EstimateProperFollowingGap(const double adc_speed)
static double EstimateSafeFollowingGap(const double target_obs_speed)
static double EstimateProperYieldingGap()
static double EstimateSafeOvertakingGap()
Planning module main class.
Defines proper safety distance the ADC should keep from target obstacle considering different informa...