Skip to main content

Frenetix Motion Planner: Sampling-based Frenet Planner

Project description

DOI

Linux Python 3.10 Python 3.9

Frenetix Motion Planner

This repository includes a Frenet trajectory planning algorithm in the CommonRoad scenario format. The trajectories are generated according to the sampling-based approach in [1-5] including two different implementations. The Repo provides a python-based and a C++-accelerated Motion Planner Frenetix implementation.

Standard Planner Initialization

Requirements

The software is developed and tested on recent versions of Linux. We strongly recommend to use Ubuntu 22.04 or higher. For the python installation, we suggest the usage of Virtual Environment with Python 3.11, Python 3.10 or Python 3.9 For the development IDE we suggest PyCharm

Installation & Run Code

  1. Make sure that the following dependencies are installed on your system for the C++ implementation:

    • Eigen3
      • On Ubuntu: sudo apt-get install libeigen3-dev
    • Boost
      • On Ubuntu: sudo apt-get install libboost-all-dev
    • OpenMP
      • On Ubuntu: sudo apt-get install libomp-dev
    • python3.10-full
      • On Ubuntu: sudo apt-get install python3.10-full and sudo apt-get install python3.10-dev
  2. Clone this repository & create a new virtual environment python3.10 -m venv venv

  3. Install the package:

    • Source & Install the package via pip: source venv/bin/activate & pip install -r .
    • Frenetix should be installed automatically. If not please write rainer.trauth@tum.de.
  4. Optional: Download additional Scenarios:

    • Clone commonroad scenarios on the same level as commonroad-reactive-planner --> not into commonroad-reactive-planner with:
      • git clone https://gitlab.lrz.de/tum-cps/commonroad-scenarios.git
  5. Change Configurations in configurations/defaults/*.yaml if needed.

  6. Change Settings in main.py if needed. Note that not all configuration combinations may work. The following options are available:

    1. use_cpp: If True: The C++ Frenet Implementations will be used.
    2. start_multiagent: If True: Start a multiagent run. For runtime reasons, C++ is automatically used.
    3. evaluation_pipeline: If True: Run many scenarios in a row. Set scenario folder accordingly.
    4. use_specific_scenario_list: If True: Run a specific scenario list. Example in example_scenarios/scenario_list.csv. Make sure all scnearios in the list are in the scenario folder.
  7. Run the planner with python3 main.py

  8. Logs and Plots can be found in /logs/<scenario_name>

reactive-planner
Multi-agent Simulation example

📈 Test Data

Additional scenarios can be found here.

🔧 Modules

Detailed documentation of the functionality behind the single modules can be found below.

  1. General Planning Algorithm

  2. Frenetix C++ Trajectory Handler

  3. Commonroad Scenario Handler

  4. Behavior Planner

  5. Occlusion-aware Module

  6. Wale-Net

  7. Risk-Assessment

📇 Contact Info

Rainer Trauth, Institute of Automotive Technology, School of Engineering and Design, Technical University of Munich, 85748 Garching, Germany

Johannes Betz, Professorship Autonomous Vehicle Systems, School of Engineering and Design, Technical University of Munich, 85748 Garching, Germany

📃 Citation

If you use this repository for any academic work, please cite our code:

@misc{GitHubRepo,
  author = {Rainer Trauth},
  title = {Frenetix Motion Planner},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  doi = {10.5281/zenodo.10078062},
  url = {https://github.com/TUM-AVS/Frenetix-Motion-Planner}
}

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

frenetix_motion_planner-2024.1.tar.gz (760.7 kB view hashes)

Uploaded Source

Built Distribution

frenetix_motion_planner-2024.1-py3-none-any.whl (806.4 kB view hashes)

Uploaded Python 3

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