Skip to main content

Python Vehicle Models of CommonRoad

This package contains all vehicle models of the CommonRoad benchmarks.

We provide implementations of the vehicle dynamics, routines to convert initial states, and vehicle parameters.

Documentation

For a detailed explanation of the vehicle models, please have a look at the documentation.

Installation

To use vehicle models and parameters, run

pip install commonroad-vehicle-models

Code examples

For an extended simulation example demonstrating the advantages of more complicated models, we refer to our gitlab repository. A simple simulation example for using the single-track model in combination with an odeint solver would be

from scipy.integrate import odeint
import numpy

from vehiclemodels.init_ks import init_ks
from vehiclemodels.parameters_vehicle1 import parameters_vehicle1
from vehiclemodels.vehicle_dynamics_ks import vehicle_dynamics_ks

def func_KS(x, t, u, p):
    f = vehicle_dynamics_ks(x, u, p)
    return f

tStart = 0  # start time
tFinal = 1  # start time

# load vehicle parameters
p = parameters_vehicle1()

# initial state for simulation
delta0 = 0
vel0 = 15
Psi0 = 0
sy0 = 0
initialState = [0, sy0, delta0, vel0, Psi0]
x0_KS = init_ks(initialState)

t = numpy.arange(0, tFinal, 0.01)
u = [0, 5]
x = odeint(func_KS, x0_KS, t, args=(u, p))

Contribute

If you want to contribute new vehicle models, you can create a merge request in our repository, or contact via our forum.

Changelog

Compared to version 2.0.0 the following features were added/changed:

  • linearized kinematic single-track model added as an additional vehicle model
  • vehicle parameters are stored in YAML-files
  • parameter configuration of vehicles are generated from YAML-files using OmegaConf (backwards compatible)

Referencing

If you use CommonRoad for your research, please cite our paper:

@inproceedings{Althoff2017a,
	author = {Althoff, Matthias and Koschi, Markus and Manzinger, Stefanie},
	title = {CommonRoad: Composable benchmarks for motion planning on roads},
	booktitle = {Proc. of the IEEE Intelligent Vehicles Symposium},
	year = {2017},
}

Metadata

Release files for commonroad-vehicle-models 3.0.2

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-vehicle-models 3.0.2
File Size Uploaded Provenance Actions
commonroad-vehicle-models-3.0.2.tar.gz 24.6 kB Without provenance Details for commonroad-vehicle-models-3.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for commonroad-vehicle-models 3.0.2
File Interpreter ABI Platform Actions
commonroad_vehicle_models-3.0.2-py3-none-any.whl Python 3 none any Details for commonroad_vehicle_models-3.0.2-py3-none-any.whl

Total release size: 69.0 kB

Release files / commonroad-vehicle-models-3.0.2.tar.gz

Download URL commonroad-vehicle-models-3.0.2.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
874de3b173f7b39869b69ec8da71690f849766af8623525e3e96f8a33d034f8e
BLAKE2b-256 checksum
How to use checksums
bfe1bc6dbacfc1af64c73e0610a7b71a47510c7d77d0d1eba88737c423fa84e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9

Release files / commonroad_vehicle_models-3.0.2-py3-none-any.whl

Download URL commonroad_vehicle_models-3.0.2-py3-none-any.whl
Size 44.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8a675ddfdbba0c14521a4479cd820cfb42d03eb549723b00bd9384a434ddd6e
BLAKE2b-256 checksum
How to use checksums
c3050bcea75e39bcb98192bfe908d2e53d636f87d0d9a365dcd95ffe5c1d9373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9

Security for commonroad-vehicle-models 3.0.2

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