| | |
| | | #include "test_items2/dummy_light.h" |
| | | |
| | | #include <vector> |
| | | #include <string> |
| | | |
| | | #define EXAM_AREA_NONE 0 |
| | | #define EXAM_AREA_START 1 |
| | |
| | | int wrong_id; |
| | | }; |
| | | |
| | | struct road_exam_map { |
| | | int id; |
| | | int type; |
| | | |
| | | string tts; |
| | | |
| | | int redLineNum; |
| | | Polygon *redLine; |
| | | |
| | | int greenLineNum; |
| | | Polygon *greenLine; |
| | | |
| | | int redAreaNum; |
| | | Polygon *redArea; |
| | | |
| | | int triggerLineNum; |
| | | Polygon *triggerLine; |
| | | |
| | | Line startLine; |
| | | Line endLine; |
| | | }; |
| | | |
| | | typedef vector<struct road_exam_map> LIST_ROAD_MAP; |
| | | |
| | | //vector<ExamFault> ExamFaultList; |
| | | |
| | | void DriverTestInit(void); |
| | | void ReadDriverExamPrimer(void); |
| | | void ClearMap(void); |
| | | void AddMap(int id, int type, const double (*map)[2], int pointNum, const double (*map2)[2], int pointNum2); |
| | | void CleanRoadMap(void); |
| | | void SetRoadMapPoints(vector<double> &mapPoints); |
| | | void AddRoadMapParent(int id, int type, string tts, vector<vector<int>> &redLines, |
| | | vector<vector<int>> &redAreas, vector<vector<int>> &greenLines, vector<vector<int>> &triggerLines); |
| | | |
| | | void SetCarMeasurePoint(double *basePoint, int *axial, int *left_front_tire, |
| | | int *right_front_tire, int *left_rear_tire, int *right_rear_tire, |
| | | int *body, int bodyNum, double (*point)[2], int pointNum, double antPitch); |