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

Uploaded Source

Built Distribution

reachab-0.4.6-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reachab-0.4.6.tar.gz
  • Upload date:
  • Size: 7.5 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.6.tar.gz
Algorithm Hash digest
SHA256 03ecc72fefd5a1b80dc4e031dce250b506442cbbdb16c46b4baca4f5a4abb36d
MD5 7e01abe472dbc36df154f079e327c216
BLAKE2b-256 a5555b1b4c9c79af3fb77dd21bee2b2dc666df0eaf894f11ae03af1c03f9082a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: reachab-0.4.6-py3-none-any.whl
  • Upload date:
  • Size: 21.3 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e751b4780dedb8f2168700191cd99fd367bdb9b8497403231c0d20bb332897af
MD5 7252ff1574b148de46acd0d3ba064959
BLAKE2b-256 80fa91f1d8e73b269441f4d2ad2192a2e4a0cd7b10770c21d10b1d12936cb855

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