提交 87d0b129 编写于 作者: Z Zhang Liangliang 提交者: Jiangtao Hu

Planning: fixed a search range issue from finite element method in...

Planning: fixed a search range issue from finite element method in dp_st_graph. added kappa check in constraint check for informative purpose.
上级 970fc77e
......@@ -59,6 +59,14 @@ bool ConstraintChecker::ValidTrajectory(
<< FLAGS_longitudinal_acceleration_upper_bound << "].";
return false;
}
double kappa = p.path_point().kappa();
if (!WithinRange(kappa, -FLAGS_kappa_bound, FLAGS_kappa_bound)) {
AERROR << "Kappa at relative time " << t
<< " exceeds bound, value: " << kappa << ", bound ["
<< -FLAGS_kappa_bound << ", " << FLAGS_kappa_bound << "].";
return false;
}
}
return true;
}
......
......@@ -196,7 +196,7 @@ void DpStGraph::GetRowRange(const StGraphPoint& point,
} else {
v0 = (point.index_s() - point.pre_point()->index_s()) * unit_s_ / unit_t_;
}
const double speed_coeff = 0.5 * unit_t_ * unit_t_;
const double speed_coeff = unit_t_ * unit_t_;
const double delta_s_upper_bound =
v0 * unit_t_ + vehicle_param_.max_acceleration() * speed_coeff;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册