Skip to main content

Implementation of vehicle models with varying abstraction levels ranging from single track model to a multi-body model.

Project description

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 us per e-mail.

Referencing

If you use CommonRoad, please cite

M. Althoff, M. Koschi, and S. Manzinger, ''CommonRoad: Composable Benchmarks for Motion Planning on Roads,'' in Proc. of the IEEE Intelligent Vehicles Symposium, 2017, pp. 719-726.

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

commonroad-vehicle-models-1.0.0.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

commonroad_vehicle_models-1.0.0-py3-none-any.whl (31.1 kB view details)

Uploaded Python 3

File details

Details for the file commonroad-vehicle-models-1.0.0.tar.gz.

File metadata

  • Download URL: commonroad-vehicle-models-1.0.0.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for commonroad-vehicle-models-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ba3a2258446b3ec611815b6ceedf1f7ae04e5d7f2be58a181acae3333b28e98b
MD5 3cc208742f862cdcebd99e86dc85d4fe
BLAKE2b-256 06e50077fbbac1699302513b4bc4be163f193e53e2bc45b1085ddbdfed817d6c

See more details on using hashes here.

File details

Details for the file commonroad_vehicle_models-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: commonroad_vehicle_models-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 31.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.6

File hashes

Hashes for commonroad_vehicle_models-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54e87af336b48ec3db9459c5d002e3227c8aa3822d89ea88023036735a3ef227
MD5 f53fefb2599d3f870cfe7e0c65fe32ff
BLAKE2b-256 44ad0fd0468fd2700840c7cdb681b1e7125542c3138f0c961f3b42b009e49b47

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page