提交 41b07434 编写于 作者: L Liangliang Zhang 提交者: Calvin Miao

routing: fixed code issues in routing.

上级 47e2817c
......@@ -399,7 +399,6 @@ bool ResultGenerator::GeneratePassageRegion(
} else {
GetNodesOfWaysBasedOnVirtual(nodes, &nodes_of_ways);
}
std::vector<std::string> road_id_of_ways;
for (const auto& way : nodes_of_ways) {
std::vector<std::vector<NodeWithRange>> nodes_of_passages;
if (way.empty()) {
......
......@@ -160,14 +160,13 @@ std::string GraphCreator::GetEdgeID(const std::string& from_id,
void GraphCreator::AddEdge(const Node& from_node,
const RepeatedPtrField<Id>& to_node_vec,
const Edge::DirectionType& type) {
std::string edge_id = "";
for (const auto& to_id : to_node_vec) {
if (forbidden_lane_id_set_.find(to_id.id()) !=
forbidden_lane_id_set_.end()) {
ADEBUG << "Ignored lane [id = " << to_id.id();
continue;
}
edge_id = GetEdgeID(from_node.lane_id(), to_id.id());
const std::string edge_id = GetEdgeID(from_node.lane_id(), to_id.id());
if (showed_edge_id_set_.count(edge_id) != 0) {
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册