| 51 | } |
| 52 | |
| 53 | OpenDriveSearch::OpenDriveSearch(MAP_DATA_TYPE type, const std::string& path, bool doubleRoad) : MemSearch(type) { |
| 54 | txRoads _roads; |
| 55 | txLaneLinks _links; |
| 56 | txObjects objs; |
| 57 | txJunctions juncs; |
| 58 | txOdHeaderPtr header; |
| 59 | txPoint point_ref; |
| 60 | if (parseOpenDrive(path, _roads, _links, objs, juncs, header, point_ref, doubleRoad)) { |
| 61 | txlog::printf("odr parse finish.\n"); |
| 62 | mapPtr.reset(new txMap(COORD_WGS84)); |
| 63 | mapPtr->insertRoads(_roads); |
| 64 | mapPtr->insertLaneLinks(_links); |
| 65 | mapPtr->insertObjects(objs); |
| 66 | mapPtr->insertJunctions(juncs); |
| 67 | mapPtr->setHeader(header); |
| 68 | mapPtr->indertRefPoint(point_ref); |
| 69 | } else { |
| 70 | mapPtr.reset(); |
| 71 | } |
| 72 | this->initFile(path); |
| 73 | } |
| 74 | OpenDriveSearch::OpenDriveSearch(MAP_DATA_TYPE type, const std::string& path, |
| 75 | std::vector<std::tuple<hadmap::txPoint, hadmap::txPoint>> map_range_list) |
| 76 | : MemSearch(type) { |
nothing calls this directly
no test coverage detected