minhanghuang / opendrive-cpp

OpenDRIVE Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

opendrive-cpp

Build Status Build Status

#1 Dependency

tinyxml2

#2 Build

make build 
cd build
cmake ..
make -j4

#3 Instructions

  • find package
pkg_check_modules(OpenDriveCpp REQUIRED opendrive-cpp)
include_directories(
  ${OpenDriveCpp_INCLUDE_DIRS}
)

link_directories(
  ${OpenDriveCpp_LIBRARY_DIRS}
)
target_link_libraries(${TARGET_NAME}
  ${OpenDriveCpp_LIBRARIES}
)
  • parse xodr file
#include <opendrive-cpp/opendrive.h>
const std::string file_path = "town.xodr";
opendrive::Parser parser;
auto ele_map = std::make_shared<opendrive::element::Map>();
parser.ParseMap(file_path, ele_map);

About

OpenDRIVE Parser

License:Apache License 2.0


Languages

Language:C++ 91.8%Language:CMake 4.0%Language:Python 2.6%Language:C 0.8%Language:Shell 0.7%