bisc / ctrl-perc-contracts

A repository for models and source related to controller-perception contracts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monotonic Safety for Scalable Probabilistic Model Checking

A repository for models and source code for probabilistic safety estimation via monotonic safety (MoS) and MoS-based abstractions.

The directory structure is as follows:

  • code: This directory contains the code for generating and running the models, for both perception and control, along with code for generting counter examples to the monotonicity of safety rule.
  • models: This directory contains the generated models accompanying the paper. It is separated by perception models and control models, for both case studies.
  • results: This directory contains the data and visuals accompanying the paper, along with the code used to generate the the visuals.
  • old: old and miscellaneous files. This directory can be ignored.

Using Wolfram/Mathematica Implementations

All of the perception bundling, some visualizations, and some experiments are implemented on the Wolfram language/Mathematica stack. It has different parts described below.

Installing Wolfram Script

Requirements: Wolfram Script version 1.5+.

To run the scripts in this software package, you need to dowload and install a free version of the Wolfram Engine:

  1. Download and install the Wolfram Engine for your OS.
  2. Create a Wolfram ID account (if you do not have one).
  3. Accept the terms of the free license
  4. Run "wolframscript" in your command line
  5. Input your Wolfram ID and password into the prompt

Running Wolfram scripts

The scripts are files with .wls extensions that generate bundled perception distributions. Their output is typically sent to the command line or in a set of files, depending on the script.

All scripts are standalone and run as follows:

wolframscript <scriptname.wls> <arg1> <arg2> ... 

Running Mathematica notebook

The notebooks implement various exploratory experiments, visualizations, and cached bundlings.

Requirements: For editing access, you require Wolfram Mathematica, version 12.1+. You can obtain a free 30-day trial or you find yourself be at an instutition with an academic license. For read-only access, you can download a free Wolfram Player.

Instructions:

  1. Open a desired .nb notebook,
  2. Either run it all at once (Ctrl+A, Shift+Enter) or line-by-line (select a line, Shift+Enter).

Running Carla simulator

  1. Follow the instructions on https://carla.readthedocs.io/en/0.9.11/

About

A repository for models and source related to controller-perception contracts.


Languages

Language:Mathematica 96.0%Language:Python 2.1%Language:MATLAB 1.4%Language:Java 0.4%Language:Jupyter Notebook 0.1%Language:Shell 0.0%Language:Batchfile 0.0%