From 682b17ff66dff23e03c6a57de276ea0c3e670c0e Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期一, 23 三月 2020 18:44:47 +0800
Subject: [PATCH] 起步和直线
---
lib/src/main/cpp/master/comm_if.cpp | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/lib/src/main/cpp/master/comm_if.cpp b/lib/src/main/cpp/master/comm_if.cpp
index fddeb5c..182c687 100644
--- a/lib/src/main/cpp/master/comm_if.cpp
+++ b/lib/src/main/cpp/master/comm_if.cpp
@@ -526,9 +526,12 @@
vector<vector<int>> greenLines;
vector<vector<int>> triggerLines;
vector<vector<int>> redAreas;
+ vector<vector<int>> roadEdgeLines;
+
vector<int> area;
vector<int> stopLine;
+ roadEdgeLines.clear();
stopLine.clear();
area.clear();
tts.clear();
@@ -595,6 +598,20 @@
}
}
+ if (itr->HasMember("road_edge_line")) {
+ const Value &s = (*itr)["road_edge_line"];
+
+ for (Value::ConstValueIterator itrLine = s.Begin();
+ itrLine != s.End(); ++itrLine) {
+ points.clear();
+ for (Value::ConstValueIterator itrPoint = (*itrLine).Begin();
+ itrPoint != (*itrLine).End(); ++itrPoint) {
+ points.push_back((*itrPoint).GetInt());
+ }
+ roadEdgeLines.push_back(points);
+ }
+ }
+
if (itr->HasMember("area")) {
const Value &s = (*itr)["area"];
@@ -633,7 +650,7 @@
tts = s.GetString();
}
- AddRoadMapParent(id, type, tts, stop_flag, redLines, redAreas, greenLines, triggerLines, area, stopLine);
+ AddRoadMapParent(id, type, tts, stop_flag, redLines, redAreas, greenLines, triggerLines, roadEdgeLines, area, stopLine);
}
}
}
--
Gitblit v1.8.0