Parser and converter from OpenDRIVE to lanelets
Project description
OpenDRIVE 2 Lanelet - Converter
This tool is deprecated! Please use our new CommonRoad Scenario Designer!
We provide the code for an OpenDRIVE (www.opendrive.org) to lanelets (www.mrt.kit.edu/software/liblanelet) converter, which has been introduced in our paper: M. Althoff, S. Urban, and M. Koschi, "Automatic Conversion of Road Networks from OpenDRIVE to Lanelets," in Proc. of the IEEE International Conference on Service Operations and Logistics, and Informatics, 2018. Additionally, we provide a converter from CommonRoad lanelets to OSM lanelets and vice versa.
Installation
Installing from source
git clone https://gitlab.lrz.de/cps/opendrive2lanelet.git
python setup.py install
Public source (only released versions): https://gitlab.lrz.de/tum-cps/opendrive2lanelet.git
Using pip:
pip install opendrive2lanelet
Example OpenDRIVE Files
Download example files from: http://opendrive.org/download.html
Usage
Using our provided GUI
Opening OpenDRIVE to CommonRoad converter GUI from the command line:
opendrive2lanelet-gui
Converting files using the command line
Converting a file from OpenDRIVE to CommonRoad with the command line:
opendrive2lanelet-convert input_file.xodr -o output_file.xml
Converting a file from OSM lanelets to CommonRoad lanelets with the command line (for description of input parameters see documentation):
osm-convert inputfile.xml --reverse -o outputfile.osm --adjencies --proj "+proj=etmerc +lat_0=38 +lon_0=125 +ellps=bessel"
For the conversion of CommonRoad lanelets to OSM lanelets change the input and output file accordingly. Visualizing the results of the conversion to CommonRoad:
opendrive2lanelet-visualize input-file.xml
Documentation
The documentation is published on the CommonRoad homepage.
To generate the documentation from source, first install the necessary dependencies with pip:
pip install -r docs_requirements.txt
Then you can run
cd docs && make html
for example.
Known Problems
- When trying to use the gui.py under Wayland, the following error occurs:
Set the platform to xcb using this command:This application failed to start because it could not find or load the Qt platform plugin "wayland" in "". Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb. Reinstalling the application may fix this problem.
export QT_QPA_PLATFORM="xcb"
Authors
Sebastian Maierhofer (current maintainer)
Benjamin Orthen
Stefan Urban
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file opendrive2lanelet-1.2.1.tar.gz
.
File metadata
- Download URL: opendrive2lanelet-1.2.1.tar.gz
- Upload date:
- Size: 113.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53e41dadfe64bdd18a857c6965bc4e8ab263a9ce14a24459edb521720d66b4db |
|
MD5 | 033cf6bb27f49163690fa28e8fbc8440 |
|
BLAKE2b-256 | 4f214d1a95ad82eb01c0cae961d118fac16b4a8cfb7931e50cdb2a269f938f1c |
File details
Details for the file opendrive2lanelet-1.2.1-py3-none-any.whl
.
File metadata
- Download URL: opendrive2lanelet-1.2.1-py3-none-any.whl
- Upload date:
- Size: 82.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba15a7fd6d7de0359402159f748416c6dae1c31a834efe2ee45be43db5ecebd |
|
MD5 | 36148fad072f79b14fc9f6b94ffda9b9 |
|
BLAKE2b-256 | fe142a6d8185604b3fdc3eb664f4a49b814bc237d52a7bd9b7693cbe5a0d407f |