提交 19c3696b 编写于 作者: D Dong Li 提交者: GitHub

pnc_map: use lane length as the upper bound for end_s (#1056)

上级 64960fde
......@@ -364,7 +364,8 @@ bool PncMap::PassageToSegments(routing::Passage passage,
AERROR << "Failed to find lane : " << lane.id();
return false;
}
segments->emplace_back(lane_ptr, lane.start_s(), lane.end_s());
segments->emplace_back(lane_ptr, std::max(0.0, lane.start_s()),
std::min(lane_ptr->total_length(), lane.end_s()));
}
return !segments->empty();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册