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
Release history Release notifications | RSS feed
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.8.tar.gz
(8.0 kB
view details)
Built Distribution
reachab-0.4.8-py3-none-any.whl
(21.6 kB
view details)
File details
Details for the file reachab-0.4.8.tar.gz
.
File metadata
- Download URL: reachab-0.4.8.tar.gz
- Upload date:
- Size: 8.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83cd7ff3a9b41a54f05d93e88c721f71c0f72170044ca9f8eb40efa3b3b7b103 |
|
MD5 | 7e5fdcbd9e56a02bbef9d18f21009b0b |
|
BLAKE2b-256 | 4f8e2d2f9d767099757e5ca9e5776f3e873d7ac388d74f9202052d97b3f9a1ae |
File details
Details for the file reachab-0.4.8-py3-none-any.whl
.
File metadata
- Download URL: reachab-0.4.8-py3-none-any.whl
- Upload date:
- Size: 21.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea02968d397ced3014a853db2efccf676e2aceac62e21afb26e887fd32270c29 |
|
MD5 | c81b4e681d6f538a39dc6c6f3c92217c |
|
BLAKE2b-256 | e6b6a5af3622be1e3d2cac87184705e97c619be5986a4bf2641066c503d3214d |