Skip to main content

CommonRoad

Numerical experiments for motion planning of road vehicles require numerous ingredients: vehicle dynamics, a road network, static obstacles, dynamic obstacles and their movement over time, goal regions, a cost function, etc. Providing a description of the numerical experiment precise enough to reproduce it might require several pages of information. Thus, only key aspects are typically described in scientific publications, making it impossible to reproduce results - yet, reproducibility is an important asset of good science.

Composable benchmarks for motion planning on roads (CommonRoad) are proposed so that numerical experiments are fully defined by a unique ID; all required information to reconstruct the experiment can be found on commonroad.in.tum.de . Each benchmark is composed of a vehicle model, a cost function, and a scenario (including goals and constraints). The scenarios are partly recorded from real traffic and partly hand-crafted to create dangerous situations. Solutions to the benchmarks can be uploaded and ranked on the CommonRoad Website. Learn more about the scenario specification here.

CommonRoad_io

The CommonRoad_io package provides methods to read, write, and visualize CommonRoad scenarios and planning problems. Furthermore, it can be used as a framework for implementing motion planning algorithms to solve CommonRoad Benchmarks and is the basis for other tools of the CommonRoad Framework. With CommonRoad_io, those solutions can be written to xml-files for uploading them on commonroad.in.tum.de.

CommonRoad_io 2020.3 is compatible with CommonRoad scenario in version 2020a and supports reading 2018b scenarios.

The software is written in Python 3.6 and tested on MacOs and Linux. The usage of the Anaconda Python distribution is strongly recommended.

Documentation

The full documentation of the API and introducing examples can be found under commonroad.in.tum.de.

For getting started, we recommend our tutorials.

Additional Tools

Based on CommonRoad_io, we have developed a list of tools for implementing motion-planning algorithms:

Requirements

The required dependencies for running CommonRoad_io are:

  • numpy>=1.13

  • shapely>=1.6.4

  • matplotlib>=2.2.2

  • lxml>=4.2.2

  • networkx>=2.2

  • Pillow>=7.0.0

Installation

CommonRoad_io can be installed with:

pip install commonroad-io

Alternatively, clone from our gitlab repository:

git clone https://gitlab.lrz.de/tum-cps/commonroad_io.git

and add the folder commonroad_io to your Python environment.

Changelog

Compared to version 2020.2, the following features were added:

  • Support of environment obstacles, e.g. buildings

  • Several new traffic signs

  • New ScenarioID class for the representation of benchmarks

  • New line marking types unknown and no_marking

  • The creation of lanelet assignments for obstacles is now optional.This decreases the loading time of scenarios. The lanelet assignment can still be performed manually after loading a scenario.

  • Function generate_object_id works now if no element has been added before and reserves ID if object will be added later

  • Various small bug fixes

A detailed overview about the changes in each version is provided in the Changelog.

Release files for commonroad-io 2020.3

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

Source distribution (sdist)

Source distribution for commonroad-io 2020.3
File Size Uploaded
commonroad-io-2020.3.tar.gz 919.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for commonroad-io 2020.3
File Interpreter ABI Platform
commonroad_io-2020.3-py3-none-any.whl Python 3 none any Details

Total release size: 1.9 MB

Release files / commonroad-io-2020.3.tar.gz

Download URL commonroad-io-2020.3.tar.gz
Size 919.0 kB
Tags Source
SHA-256 checksum
How to use checksums
04bf2938bf46c8bc3617fbd66541673b81a142a50bd7a2cbe31a41740b20d2c6
BLAKE2b-256 checksum
How to use checksums
117d0ef5a8a4a984e7b4fdd720e2f58ea9aec7b667ce3ec2deab3b88d65df19c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7

Release files / commonroad_io-2020.3-py3-none-any.whl

Download URL commonroad_io-2020.3-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
25d4b904a62063f4d36a0325e7ff4df0863e3f6d5f36b319c72a3431c53243a7
BLAKE2b-256 checksum
How to use checksums
4b6fcb47a0f5f0d4d2e5ec2557fb3d8663c80bead28c8d2cded2ac5e6bbf09bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.7

Release history Release notifications | RSS feed

2026.1

2 release files

2024.3

2 release files

2024.2

2 release files

2024.1

2 release files

2023.4

2 release files

2023.3

2 release files

2023.2

2 release files

2022.3

2 release files

2021.4

2 release files

2021.3

2 release files

2021.1

2 release files

This release

2020.3 This release

2 release files

2020.2

2 release files

2019.2

2 release files

2019.1

2 release files

2018.1

2 release files

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