| | |
| | | |
| | | // 一组平行的分道线 |
| | | typedef struct { |
| | | std::vector<lane_direct_t> lane_direct; |
| | | std::vector<lane_direct_t> lane_direct; // 每一车道的运行方向 |
| | | std::vector<std::vector<segment_t>> lines; // 每段域下的平行的一组线 |
| | | } separate_t; |
| | | |
| | | typedef struct { |
| | | int active; |
| | | string tts; |
| | | bool stopFlag; |
| | | Line line; |
| | | } stop_line_t; |
| | | |
| | | typedef struct { |
| | | int id; |
| | | Line startLine; |
| | | Line stopLine; |
| | | int active; // 到达路口尾部的行进方向 |
| | | // Line stopLine; |
| | | // int active; // 到达路口尾部的行进方向 |
| | | bool activeBreak; // 路口刹车减速 |
| | | bool activeStop; // 路口停车瞭望 |
| | | bool errorLane; // 错误车道 |
| | | int targetRoad; |
| | | int stopFlag; |
| | | string tts; |
| | | bool arrivedTail; |
| | | // int stopFlag; |
| | | // string tts; |
| | | // bool arrivedTail; |
| | | Polygon area; // 整个道路区域 |
| | | |
| | | std::vector<stop_line_t> stopLine; |
| | | std::vector<edge_t> leftEdge; |
| | | std::vector<edge_t> rightEdge; |
| | | std::vector<separate_t> separate; |