提交 86af5add 编写于 作者: Z Zhang Liangliang 提交者: Liangliang Zhang

Planning: return false when knots_size() < 2 or evaluated_s_.empty() in qp_spline_path_generator.

上级 dcb740dc
......@@ -263,7 +263,7 @@ bool QpSplinePathGenerator::InitSpline(const double start_s,
(end_s - start_s) / qp_spline_path_config_.max_constraint_interval() + 1;
common::util::uniform_slice(start_s, end_s, constraint_num - 1,
&evaluated_s_);
return true;
return (knots_.size() > 1) && !evaluated_s_.empty();
}
bool QpSplinePathGenerator::AddConstraint(const QpFrenetFrame& qp_frenet_frame,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册