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:

    parser = argparse.ArgumentParser()
    parser.add_argument('--box_function', '-box', type=str, help='choices: without_box, with_box',
                        default='without_box', required=False)
    parser.add_argument('--visualization', '-vis', type=str, help='y, n',
                        default='y', required=False)
    parser.add_argument('--time_horizon', '-T', type=float, help='value like: T=2.2', default=2.2, required=False)
    parser.add_argument('--steps', '-N', type=int, help='value like N=4', default=6, required=False)
    parser.add_argument('--debug', '-deb', type=str, help='(y,n)', default='n', required=False)
    parser.add_argument('--window_x', '-wix', type=int, help='windowsize in x-direction for savgol_filter', default=101, required=False)
    parser.add_argument('--window_y', '-wiy', type=int, help='windowsize in y-direction for savgol_filter', default=101, required=False)
    parser.add_argument('--poly_x', '-pox', type=int, help='polygon order in x-direction for savgol_filter', default=2, required=False)
    parser.add_argument('--poly_y', '-poy', type=int, help='polygon order in y-direction for savgol_filter', default=2, required=False)
    parser.add_argument('--program', '-pro', type=str, help='a) only_reachability', default='only_reachability', required=False)
    args = parser.parse_args()
    params = vars(args)
    params['PROJECT_ROOT']=definitions.get_project_root()
    if (params['debug'] == 'y'):
        logging.basicConfig(format='%(levelname)s:%(message)s', level=logging.DEBUG)
    only_reachability(params)
    def only_reachability(params):
    Omega_0 = {'c': np.matrix([[0],
                               [0],
                               [10],
                               [3]
                               ]),
               'g': np.matrix([[1, -1, .5, .2],
                               [1, 1, -.8, .3],
                               [0, 0, .2, .3],
                               [0, 0, .1, .5]
                               ])
               }
    U = {'c': np.matrix([[0],
                         [0],
                         [0],
                         [0],
                         ]),
         'g': np.matrix([[1, 0, 1],
                         [1, 1, 0],
                         [0, 0, 0],
                         [0, 0, 0]
                         ])
         }
    zonoset=reachab.reach(Omega_0, U, params)
    show_all()

... 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.9.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

reachab-0.4.9-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reachab-0.4.9.tar.gz
  • Upload date:
  • Size: 9.3 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.9.tar.gz
Algorithm Hash digest
SHA256 2304aa936e01a92f5b9979abc3e2d2bb6a0c22586a8b80d1748b7fbc600c476b
MD5 9d2a027eb78ffe7e4f69c5b378bf9f62
BLAKE2b-256 4be71c96da1da7c52975cf18c449eb49cd086ded692235b1be80295548755157

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reachab-0.4.9-py3-none-any.whl
  • Upload date:
  • Size: 23.0 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 2f2d2a6b6f4632594865d8db1fc64a22d337ef05a7ffcbd4d44a75aa402f535f
MD5 c38bbd2c946f5125d7497d613d4f8be1
BLAKE2b-256 a20b9c7b0af5e552c0e9559e1c589b2a9de3a5b72bb4af7f4c0533db4b435f1c

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