Skip to main content

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.

Documentation Status PyPI version Supported python versions License

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

GUI screenshot

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:
    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.
    
    Set the platform to xcb using this command: export QT_QPA_PLATFORM="xcb"

Authors

Sebastian Maierhofer (current maintainer)
Benjamin Orthen
Stefan Urban

Metadata

Release files for opendrive2lanelet 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opendrive2lanelet 1.2.1
File Size Uploaded Provenance Actions
opendrive2lanelet-1.2.1.tar.gz 113.8 kB Without provenance Details for opendrive2lanelet-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opendrive2lanelet 1.2.1
File Interpreter ABI Platform Actions
opendrive2lanelet-1.2.1-py3-none-any.whl Python 3 none any Details for opendrive2lanelet-1.2.1-py3-none-any.whl

Total release size: 196.4 kB

Release files / opendrive2lanelet-1.2.1.tar.gz

Download URL opendrive2lanelet-1.2.1.tar.gz
Size 113.8 kB
Tags Source
SHA-256 checksum
How to use checksums
53e41dadfe64bdd18a857c6965bc4e8ab263a9ce14a24459edb521720d66b4db
BLAKE2b-256 checksum
How to use checksums
4f214d1a95ad82eb01c0cae961d118fac16b4a8cfb7931e50cdb2a269f938f1c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / opendrive2lanelet-1.2.1-py3-none-any.whl

Download URL opendrive2lanelet-1.2.1-py3-none-any.whl
Size 82.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ba15a7fd6d7de0359402159f748416c6dae1c31a834efe2ee45be43db5ecebd
BLAKE2b-256 checksum
How to use checksums
fe142a6d8185604b3fdc3eb664f4a49b814bc237d52a7bd9b7693cbe5a0d407f
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for opendrive2lanelet 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page