Metadata-Version: 2.1
Name: commonroad-prediction
Version: 0.1.0
Summary: A collection and interface for CommonRoad prediction algorithms.
Home-page: https://commonroad.in.tum.de
License: BSD-3-Clause
Keywords: autonomous,automated,vehicles,driving,motion,planning,prediction
Author: Cyber-Physical Systems Group, Technical University of Munich
Author-email: commonroad@lists.lrz.de
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: commonroad-drivability-checker (==2023.1)
Requires-Dist: commonroad-io (>=2023.4)
Requires-Dist: imageio (>=2.31.1,<3.0.0)
Description-Content-Type: text/markdown

# CommonRoad-Prediction
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/commonroad-prediction.svg)](https://pypi.python.org/pypi/commonroad-prediction/)  
![Linux](https://img.shields.io/badge/Linux-FCC624?style=for-the-badge&logo=linux&logoColor=black)  
[![PyPI version fury.io](https://badge.fury.io/py/commonroad-prediction.svg)](https://pypi.python.org/pypi/commonroad-prediction/)
[![PyPI download month](https://img.shields.io/pypi/dm/commonroad-prediction.svg?label=PyPI%20downloads)](https://pypi.python.org/pypi/commonroad-prediction/) 
[![PyPI download week](https://img.shields.io/pypi/dw/commonroad-prediction.svg?label=PyPI%20downloads)](https://pypi.python.org/pypi/commonroad-prediction/)   
[![PyPI license](https://img.shields.io/pypi/l/commonroad-prediction.svg)](https://pypi.python.org/pypi/commonroad-prediction/)

A collection and interface for CommonRoad-based prediction algorithms.

## Project status
Currently implemented and tested models:   

- Constant Velocity Linear Predictor [1]
- Constant Velocity Curvilinear Predictor [1]
- Constant Acceleration Linear Predictor [1]
- Constant Acceleration Curvilinear Predictor [1]

In development:
- Intelligent Driver Model (IDM) Predictor [2]
- Lane-Changing Model MOBIL Predictor [3]

We highly welcome your contribution.
If you want to contribute a prediction algorithm, please create an issue/pull request in our [GitHub repository](https://github.com/commonroad/commonroad-prediction).


## Installation and Usage
We recommend to use PyCharm (Professional) as IDE.  
### Usage in other projects
We provide an PyPI package which can be installed with the following command
```shell
pip install commonroad-prediction
```

### Development
It is recommended to use [poetry](https://python-poetry.org/) as an environment manager.
Clone the repository and install it with poetry.
```shell
git clone git@github.com:commonroad/commonroad-prediction.git
poetry shell
poetry install
```

### Examples
We recommend to use PyCharm (Professional) as IDE. 
An example script for visualizing predictions is provided [here](example.md).


## Documentation
You can generate the documentation within your activated Poetry environment using.
```bash
poetry shell
mkdocs build
```
The documentation will be located under site, where you can open `index.html` in your browser to view it.
For updating the documentation you can also use the live preview:
```bash
poetry shell
mkdocs serve
```

## Authors
Responsible: Roland Stolz, Sebastian Maierhofer


## References
The implemented algorithms are based on the subsequent publications:  

[1] R. Schubert, E. Richter and G. Wanielik, 
"Comparison and evaluation of advanced motion models for vehicle tracking,"
Proc. of the IEEE Int. Conf. on Information Fusion, 2008, pp. 1-6.

[2] M. Treiber, A. Hennecke, and D. Helbing, 
"Congested traffic states in empirical observations and microscopic simulations,"
Physical Review E, vol. 62, no. 2, pp. 1805–1824, 2000.

[3] A. Kesting, M. Treiber, and D. Helbing, 
“General lane-changing model MOBIL for car-following models,” 
Transportation Research Record, vol. 1999, pp. 86–94, Jan. 2007
