提交 1ed269f1 编写于 作者: Z Zhang Liangliang 提交者: Jiangtao Hu

Planning: fixed a boundary bug in qp_spline_path. We cannot use...

Planning: fixed a boundary bug in qp_spline_path. We cannot use adc_sl_boundary because it include the vehicle width.
上级 5f604b55
......@@ -297,10 +297,10 @@ bool QpSplinePathGenerator::AddConstraint(
if (evaluated_s_.at(i) - evaluated_s_.at(0) <
qp_spline_path_config_.cross_lane_longitudinal_extension()) {
road_boundary.first = std::fmin(road_boundary.first,
adc_sl_boundary_.start_l() - lateral_buf);
road_boundary.second = std::fmax(road_boundary.second,
adc_sl_boundary_.end_l() + lateral_buf);
road_boundary.first =
std::fmin(road_boundary.first, init_frenet_point_.l() - lateral_buf);
road_boundary.second =
std::fmax(road_boundary.second, init_frenet_point_.l() + lateral_buf);
}
boundary_low.emplace_back(common::util::MaxElement(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册