criticality measures of automated vehicles
Project description
CommonRoad-CriMe
Toolbox to compute Criticality Measures (e.g. time-to-collision, time-to-react,...). Such measures can be used to trigger warnings and emergency maneuvers in driver assistance systems or repair an infeasible trajectory. If you have questions or want to report problems or suggestions, please start a Github discussion / Github issue.
🚀 Installation Guide
commonroad-crime
can be installed with:
$ pip install commonroad-crime
Develop CriMe locally
For adding new measures, we recommend using Anaconda to manage your environment so that even if you mess something up, you can always have a safe and clean restart. A guide for managing python environments with Anaconda can be found here.
After installing Anaconda, create a new environment with:
$ conda create -n commonroad-py38 python=3.8 -y
Here the name of the environment is called commonroad-py38. You may also change this name as you wish. In such case, don't forget to change it in the following commands as well. Always activate this environment before you do anything related:
$ conda activate commonroad-py38
or
$ source activate commonroad-py38
Then, install the dependencies with:
$ cd <path-to-this-repo>
$ pip install -e .
$ conda develop .
To test the installition, run unittest:
$ cd tests
$ python -m unittest -v
To get started your journey with our criticality measures, check the tutorials
and the following tips.
Add new criticality measure
- create a new branch with
feature-<measure-name>
and checkout the branch - navigate to
commonroad_crime/data_structure/type.py
to find the correct category of the measure and add an enumeration entry<abbreviation>: <explanation>
- navigate to
commonroad_crime/measure
to find the above-mentioned category and create a python file named<abbreviation>.py
. Then create a class inheriting theCriMeBase
undercommonroad_crime/data_structure/base.py
- similar to other measures, you need to implement the
compute()
andvisualize()
functions
Define configuration parameters of the measure
- navigate to
commonroad_crime/data_structure/configuation.py
to find the above-mentioned category and add a new instance to the class asself.<parameter> = config_relevant.<parameter>
- you can then directly call the values using
self.configuration.<category>.<parameter>
in your measure class - to override the default parameter values, create a
yaml
file (name it the same as the scenario) in./config_files
and modify the values there
🚧 Documentation
The documentation of our toolbox is available on our website: https://cps.pages.gitlab.lrz.de/commonroad/commonroad-criticality-measures/.
Build documentation locally
In order to generate the documentation via Sphinx locally, run the following commands in the root directory:$ pip install -r ./docs/requirements_doc.txt
$ cd docs/sphinx
$ make html
The documentation can then be launched by browsing ./docs/sphinx/build/html/index.html/
.
🌟 Contributors (in alphabetical order by last name)
- Liguo Chen
- Marius Erath
- Yuanfei Lin
- Sebastian Maierhofer
- Ivana Peneva
- Kun Qian
- Oliver Specht
- Sicheng Wang
- Youran Wang
- Zekun Xing
- Ziqian Xu
🔖 Citation
If you use commonroad-crime
for academic work, we highly encourage you to cite our paper:
@InProceedings{lin2023crime,
title = {{CommonRoad-CriMe}: {A} Toolbox for Criticality Measures of Autonomous Vehicles},
author = {Yuanfei Lin and Matthias Althoff},
booktitle = {Proc. of the IEEE Intell. Veh. Symp.},
pages = {1-8},
year = {2023},
}
If you use this project's code in industry, we'd love to hear from you as well; feel free to reach out to Yuanfei Lin directly.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file commonroad_crime-0.4.2.tar.gz
.
File metadata
- Download URL: commonroad_crime-0.4.2.tar.gz
- Upload date:
- Size: 75.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26e5a7d0a89d476805c64b3ac8e168155f6c928fe9a1464ec4bbe5708161363e |
|
MD5 | 8be7c9144e9471da94b29a16c89cba0f |
|
BLAKE2b-256 | 7c2816e9f157b2218c7df8326432a3256595cf7c122393b4955725a458fa789f |
File details
Details for the file commonroad_crime-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: commonroad_crime-0.4.2-py3-none-any.whl
- Upload date:
- Size: 125.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.8.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca5e3a05eab10b97fe8219e47cbe9ca5da5381f30385cebd5e06f7764cfa4ed7 |
|
MD5 | 99dbd485a092a43958ea8bddc15adbc0 |
|
BLAKE2b-256 | 016b66b15427b9b40d7ea481b62fc4872258dc180e5d76cf85552b549deabe29 |