AutoVerse-ai / Verse-library

Library for modeling, simulation, and verification of interacting autonomous agents
https://autoverse-ai.github.io/Verse-library/
University of Illinois/NCSA Open Source License
29 stars 18 forks source link
ai autonomy formal scenarios vehicles verification

Verse Library

Verse is a Python library for creating, simulating, and verifying scenarios with interacting, decision making agents. The decision logic of an agent can be written in an expressive subset of Python. The continuous evolution can be described as a black-box function. The agent can be ported across different maps, which can be defined from scratch or imported from opendrive files. Verse scenarios can be simulated and verified using hybrid reachability analysis algorithms. The initial implementation of reachability analysis used intervals (hyperrectangles) as the main data structure. A new implementation that support generalized star sets will soon become available. Verse is developed and maintained by the Reliable Autonomy Research Group at the University of Illinois at Urbana-Champaign.

Installation

The package requires python 3.8+. The package can be installed using pip with all required dependencies

pip install -e .

To update the dependencies in case anything is missing, requirements.txt can be used.

pip install -r requirements.txt

Try

python3 demo/ball/ball_bounces.py

Try other examples in the demo/ folder.

Tutorial

Interactive Jupyter tutorial: tutorial/tutorial.ipynb.

PDF tutorial: tutorial.pdf.

Documentation (in progress): Online.

Read comments in demo/ball/ball_bounces.py and other examples in the demo folder to learn how to create new agents and scenarios.

Using NeuReach with Verse

Verse allows users to plug-in different backend tools for computing reachable sets, specifically, the continuous-post operator. By default, Verse supports DryVR and NeuReach. For NeuReach, additional dependencies can be downloaded:

git submodule init
git submodule update

Library structure

The source code of the package is contained in the verse folder, which contains the following sub-directories.

Core Dev Team

Contributors

In order to contribute to this repository, you should run the following commands:

pip install -r requirements-dev.txt
pre-commit install

Related Publications

Verse: A Python library for reasoning about multi-agent hybrid system scenarios arxiv Yangge Li, Haoqing Zhu, Katherine Braught, Keyi Shen, Sayan Mitra. In the proceedings of Computer Aided Verification (CAV), LNCS vol 13964, pages 351–364, 2023.

Verification of L1 Adaptive Control using Verse Library: A Case Study of Quadrotors Lin Song, Yangge Li, Sheng Cheng, Pan Zhao, Sayan Mitra, Naira Hovakimyan In the Work in Progress Session of International Conference on Cyber-Physical Systems (WiP-ICCPS), San Antonio, Tx, 2023.

Parallel and incremental verification of hybrid automata with Ray and Verse Haoqing Zhu, Yangge Li, Keyi Shen, and Sayan Mitra. In the proceedings of 21st Intl. Symposium on Automated Technologies for Verification and Analysis (ATVA), 2023.

Parallelization and incremental algorithms in the verse hybrid system verification library Haoqing Zhu, Masters thesis, University of Illinois at Urbana-Champaign, May 2023.

Sponsors