提交 93c96aa5 编写于 作者: J Jiangtao Hu 提交者: Jiaming Tao

planning: remove s range check for reference line projection. (#610)

上级 8dec67ad
......@@ -94,7 +94,7 @@ bool PathData::get_path_point_with_ref_s(
SLPoint sl;
if (!reference_line_->get_point_in_frenet_frame(
Vec2d(curr_path_point.x(), curr_path_point.y()), &sl)) {
AERROR << "Fail to get point in frenet from.";
AERROR << "Fail to get point in frenet from:" << curr_path_point.DebugString();
return false;
}
const double curr_distance = std::fabs(sl.s() - ref_s);
......
......@@ -189,13 +189,6 @@ bool ReferenceLine::get_point_in_frenet_frame(
return false;
}
if (s > length()) {
AERROR
<< "The s of point is bigger than the length of current map_path. s: "
<< s << ", curr path length: " << map_path_.accumulated_s().back()
<< ".";
return false;
}
sl_point->set_s(s);
sl_point->set_l(l);
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册