MCPcopy Create free account
hub / github.com/Tencent/TAD_Sim / OpenDriveSearch

Method OpenDriveSearch

common/map_sdk/map_engine/src/mem_search_ex.cpp:53–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53OpenDriveSearch::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}
74OpenDriveSearch::OpenDriveSearch(MAP_DATA_TYPE type, const std::string& path,
75 std::vector<std::tuple<hadmap::txPoint, hadmap::txPoint>> map_range_list)
76 : MemSearch(type) {

Callers

nothing calls this directly

Calls 11

parseOpenDriveFunction · 0.85
printfFunction · 0.85
parseOpenDriveAreaFunction · 0.85
setHeaderMethod · 0.80
indertRefPointMethod · 0.80
initFileMethod · 0.80
resetMethod · 0.45
insertRoadsMethod · 0.45
insertLaneLinksMethod · 0.45
insertObjectsMethod · 0.45
insertJunctionsMethod · 0.45

Tested by

no test coverage detected