提交 c4910f1b 编写于 作者: H Hongyi 提交者: Xiangquan Xiao

Prediction: consider the length in front of the overlap

上级 e4654406
......@@ -438,7 +438,10 @@ void ObstaclesPrioritizer::AssignCautionByOverlap(
} else {
std::shared_ptr<const LaneInfo> overlap_lane_ptr =
PredictionMap::LaneById(object_id);
SetCautionBackward(overlap_lane_ptr,
// ahead_s is the length in front of the overlap
double ahead_s = overlap_lane_ptr->total_length() -
object.lane_overlap_info().start_s();
SetCautionBackward(overlap_lane_ptr, ahead_s +
FLAGS_caution_search_distance_backward_for_overlap);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册