提交 15d6a55c 编写于 作者: L Liangliang Zhang 提交者: Jiangtao Hu

fixed lane segment bug.

上级 69d7fe1f
......@@ -241,6 +241,10 @@ bool PncMap::UpdateRoutingResponse(const routing::RoutingResponse &routing) {
route_indices_.emplace_back();
route_indices_.back().segment =
ToLaneSegment(passage.segment(lane_index));
if (route_indices_.back().segment.lane == nullptr) {
AERROR << "Fail to get lane segment from passage.";
return false;
}
route_indices_.back().index = {road_index, passage_index, lane_index};
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册