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

Function parseOpenDrive

common/map_sdk/map_import/src/ParseInterface.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace hadmap {
9using AreaPointVec = std::vector<std::tuple<hadmap::txPoint, hadmap::txPoint>>;
10bool parseOpenDrive(const std::string& data_path, txRoads& roads, txLaneLinks& links, txObjects& objs,
11 txJunctions& juncs, txOdHeaderPtr& header, txPoint& refPoint, bool doubleRoad) {
12 DataParsePtr _parser = ParserFactory::getParser(DataParse::OPENDRIVE);
13 if (_parser == nullptr) return false;
14 return _parser->parse(data_path) && _parser->getData(roads, links, objs, juncs, header, refPoint, doubleRoad);
15}
16bool parseOpenDriveArea(const std::string& data_path, txRoads& roads, txLaneLinks& links, txObjects& objs,
17 txJunctions& juncs, AreaPointVec ptr, txOdHeaderPtr& header, txPoint& refPoint) {
18 DataParsePtr _parser = ParserFactory::getParser(DataParse::OPENDRIVE);

Callers 1

OpenDriveSearchMethod · 0.85

Calls 2

parseMethod · 0.45
getDataMethod · 0.45

Tested by

no test coverage detected