提交 fc32d33b 编写于 作者: C changsh726 提交者: Liu Jiaming

prediction: fix failed unit test

上级 259be81b
......@@ -251,7 +251,7 @@ void RoadGraph::ConstructLaneSequence(
// End condition: if search reached the maximum search distance,
// or if there is no more successor lane_segment.
if (search_forward_direction) {
if (lane_segment.end_s() < lane_info_ptr->total_length() ||
if (lane_segments->back().end_s() < lane_info_ptr->total_length() ||
lane_info_ptr->lane().successor_id().empty()) {
LaneSequence* sequence = lane_graph_ptr->add_lane_sequence();
for (const auto& it : *lane_segments) {
......@@ -261,7 +261,7 @@ void RoadGraph::ConstructLaneSequence(
return;
}
} else {
if (lane_segment.start_s() > 0.0 ||
if (lane_segments->front().start_s() > 0.0 ||
lane_info_ptr->lane().predecessor_id().empty()) {
LaneSequence* sequence = lane_graph_ptr->add_lane_sequence();
for (const auto& it : *lane_segments) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册