Skip to main content

Reachability Analysis with zonotypes

Project description

Reachability Analysis

Reachability Analysis (RA) for hybrid systems:

  • RA with zonotypes

Installation

pip install reachab

Usage

After installation with bash pip install reachab, you could test the installation with reachab.test_me or running the script:

import numpy as np
import reachab as rb
import matplotlib.pyplot as plt

def mdp_reachab():
    Omega_0 = {'c': np.matrix([[80],
                               [0],
                               [10],
                               [3]
                               ]),
               'g': np.matrix([[1, -1],
                               [1, 1],
                               [0, 0],
                               [0, 0]
                               ])
               }
    U = {'c': np.matrix([[0],
                         [0],
                         [0],
                         [0],
                         ]),
         'g': np.matrix([[1, 0],
                         [1, 1],
                         [0, 0],
                         [0, 0]
                         ])
         }
    # zonoset=reach(Omega_0, U, params)
    R, X, obj_reach, zonoset = rb.reach_zonotype_without_box(Omega_0, U,
                                                          **{"time_horizon": 2.2, "steps": 4, "visualization": "y",
                                                             "face_color": "green"})
    all_inside_points = rb.get_sample_points_inside_hull(zonoset)
    rb.plot_all_inside_points(all_inside_points)
    plt.grid()
    plt.show()

if __name__ == '__main__':
    mdp_reachab()

... should produce:

Citation

Please cite following document if you use this python package:

@inproceedings{hartmann2019optimal,
  title={Optimal motion planning with reachable sets of vulnerable road users},
  author={Hartmann, Michael and Watzenig, Daniel},
  booktitle={2019 IEEE Intelligent Vehicles Symposium (IV)},
  pages={891--898},
  year={2019},
  organization={IEEE}
}

Image source: https://www.pexels.com/photo/photo-of-multicolored-abstract-painting-1193743/

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

reachab-0.4.10.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

reachab-0.4.10-py3-none-any.whl (23.6 kB view details)

Uploaded Python 3

File details

Details for the file reachab-0.4.10.tar.gz.

File metadata

  • Download URL: reachab-0.4.10.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

File hashes

Hashes for reachab-0.4.10.tar.gz
Algorithm Hash digest
SHA256 a07315224f8fa8269b33c608d12a5458427102fec0be316fbe0143a7d3aeedf8
MD5 d839a26958c4e1d4146b8ce7dee3a84b
BLAKE2b-256 3c40ac6d3446e72179e4548d3f5c2681f90daff80d8c79b6718f50a04d94cd9b

See more details on using hashes here.

File details

Details for the file reachab-0.4.10-py3-none-any.whl.

File metadata

  • Download URL: reachab-0.4.10-py3-none-any.whl
  • Upload date:
  • Size: 23.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

File hashes

Hashes for reachab-0.4.10-py3-none-any.whl
Algorithm Hash digest
SHA256 898ca12701c1ddff1cf77376082198f42a360ca6cb757c47b49924c362362141
MD5 72b50b4d28ab7e8ba2345b62c2a090ac
BLAKE2b-256 ceddf30413e8a8627ba6db086cb03e683b46936d72780ded942edbdba3380c4b

See more details on using hashes here.

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