Metadata-Version: 2.3
Name: commonroad-reactive-planner
Version: 2025.1
Summary: CommonRoad Reactive Planner: Sampling-based Frenet Planner
License: BSD
Keywords: autonomous,automated,vehicles,driving,motion,planning
Author: Cyber-Physical Systems Group, Technical University of Munich
Author-email: commonroad@lists.lrz.de
Requires-Python: >=3.9,<3.12
Classifier: License :: OSI Approved :: BSD License
Classifier: License :: Other/Proprietary 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.8
Requires-Dist: commonroad-clcs (>=2025.1.1,<2026.0.0)
Requires-Dist: commonroad-drivability-checker (>=2025.1,<2026.0)
Requires-Dist: commonroad-io (>=2024.3,<2025.0)
Requires-Dist: commonroad-route-planner (>=2025.1.0,<2026.0.0)
Requires-Dist: commonroad_vehicle_models (>=3.0.2)
Requires-Dist: imageio (>=2.13.5)
Requires-Dist: matplotlib (>=2.2.2)
Requires-Dist: methodtools (>=0.4.5,<0.5.0)
Requires-Dist: networkx (>=2.2)
Requires-Dist: numpy (>=1.22)
Requires-Dist: omegaconf (>=2.1.1)
Requires-Dist: scipy (>=1.5.2)
Requires-Dist: triangle (>=20230923)
Project-URL: Homepage, https://commonroad.in.tum.de
Project-URL: Source, https://gitlab.lrz.de/tum-cps/commonroad-reactive-planner
Description-Content-Type: text/markdown

# CommonRoad Reactive Planner

This project provides a trajectory planner for planning problems given in the [CommonRoad](https://commonroad.in.tum.de/) scenario format.
The trajectories are generated using the sampling-based approach in [1][2]. This approach plans motions by sampling a 
discrete set of trajectories, represented as quintic polynomials in a Frenet frame and selecting an optimal trajectory according
to a given cost function.

<img src="docs/assets/ZAM_Tjunction-1_42_T-1.gif" alt="reactive-planner" width="600"/>


## Getting Started
These instructions should help you to install the trajectory planner and use it for development and testing purposes.

To install the package from PyPi, please run:
```shell
pip install commonroad-reactive-planner
```

### Requirements
The software is  written in Python 3.8 and tested on Ubuntu 18.04-22.04. The required python dependencies are listed in `pyproject.toml`.

For the python installation, we suggest the usage of [Anaconda](http://www.anaconda.com/download/#download).

For the development IDE we suggest [PyCharm](http://www.jetbrains.com/pycharm/)


### Installation from Source
1. Clone this repository & create a new conda environment, e.g.,  `conda create -n commonroad-py38 python=3.8`


2. Go to cloned root directory and install the package:
    * Install the package via poetry: `poetry install`
    * Install the package via pip: `pip install .`



### How to run

**Main example script** `run_planner.py`: 

The example script shows how to run the planner on an exemplary CommonRoad scenario with the following steps:
* creating a planner configuration
* instantiating the reactive planner
* running the planner in a cyclic replanning loop with a fixed replanning fequency

In addition we also provide an interactive Jupyter notebook tutorial in the `tutorial/` folder.


## Literature
[1] Werling M., et al. *Optimal trajectory generation for dynamic street scenarios in a frenet frame*. In: IEEE International Conference on Robotics and Automation, Anchorage, Alaska, 987–993.

[2] Werling M., et al. *Optimal trajectories for time-critical street scenarios using discretized terminal manifolds* In:
The International Journal of Robotics Research, 2012

