Pyxodr
Pyxodr - Read opendrive with python parser
Install / Use
/learn @moonstarsky37/PyxodrREADME
Pyxodr - Read opendrive with python/c++ parser
This project is fork from here with some modification for utf-8 based user. Also, test building the python API with python 3.8 (built test with VS2017, VS2019 in Windows 10).
C++ library for Parsing OpenScenario (1.0.0) & OpenDrive format files (1.6) with Python bindings for 3.+
Introduction <a name="introduction"></a>
This repository provides a library for reading ASAM's OpenStandards OpenScenario & OpenDrive Data files, the parsing conforms to
ASAM OpenDRIVE 1.6 Specification
ASAM OpenScenario 1.0.0 Specification
Inspiration <a name="inspiration"></a>
- https://github.com/carla-simulator/map
- https://github.com/esmini/esmini.git
Getting started <a name="started"></a>
The project is compiled with c++14 enabled compiler, choose your stack accordingly .
Build from Source <a name="build"></a> for C++ and pybind
git clone https://github.com/moonstarsky37/ad-xolib
cd ad-xolib
git submodule update --init --recursive
# build by cmake, if you not link a alias, the default is "C:\Program Files\CMake\bin\cmake.exe"
# i.e below command can be using as
# "C:\Program Files\CMake\bin\cmake.exe" . -B build
cmake . -B build # it will create a folder named "build", if not, created by "mkdir build"
cmake . --target build
Build for python
To now, you will create a folder named build with following code.
Open the "ad-xolib.sln" with VS.
And Click the "Local Window Debugger" will create the pybind result python API.
That is, after building the src, it will create some folder like this the API file is under the folder named "pybind".

In my case, the builted result under python 3.8 will like following:

If you missing any of *.dll in this folder, just copy
1. ./build/src/xosc/Debug/xosc.dll
2. ./build/src/xodr/Debug/xodr.dll
3. ./build/deps/pugixml/Debug/pugixml.dll
to ./build/pybind folder.
Finally, you can import pyxodr now and read opendrive file

Alternatives <a name="alternatives"></a>
- https://github.com/JensKlimke/odrparser- OpenDrive 1.5
- https://github.com/DLR-TS/xodr - OpenDrive 1.4
- https://github.com/pyoscx/pyoscx - pyoscx
- https://github.com/carla-simulator/scenario_runner - Scenario Runner
- https://github.com/MrMushroom/CarlaScenarioLoader - CarlaScenarioLoader
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
