Wrapper for the ENHSP planner
Project description
ENHSP Wrapper
This is a simple wrapper for the ENHSP planner. For most use cases of ENHSP in Python, you should look at unified-planning instead. This package does not automatically stay updated with the latest version of ENHSP. The version of ENHSP used in this package is 20-0.10.0 (this number may not even be correct if I forget to update it!), and is likely out-dated when you read this file.
If, for some reason, unified-planning does not work for you, then you may find this ENHSP wrapper useful. Unlike unified-planning, this wrapper does not try to parse the problem before passing it onto ENHSP. This is likely only useful if you are using a PDDL syntax that ENHSP supports, but unified-planning does not.
Installation
Run
pip install enhsp-wrapper
to install the package. This will include the ENHSP jar files this package depends on, which in turn depend on Java 17. It may not work if you do not have Java 17 installed.
Example Usage
from enhsp_wrapper.enhsp import ENHSP, PlanningStatus
# pass ENHSP its command line arguments
planner = ENHSP('-s gbfs -h hadd -timeout 10')
# pass in the domain and problem PDDL files
result = planner.solve('d.pddl', 'p.pddl')
assert result.status == PlanningStatus.SUCCESS
print('\n'.join(result.plan))
Contribute
To contribute to this project, install poetry, clone the repository, then run
peotry shell
poetry install
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
Built Distribution
File details
Details for the file enhsp_wrapper-0.1.4.tar.gz
.
File metadata
- Download URL: enhsp_wrapper-0.1.4.tar.gz
- Upload date:
- Size: 50.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.9.13 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2d6f33a89fc3f376e58a1cbadf4af0dae27f8978f940ecab349db830d29eeb2 |
|
MD5 | 8a1dd78dba0c56c7b08d3fc221530e4a |
|
BLAKE2b-256 | c5975dfa92bac4a5ca9335046e401311e47d8e7dac2bd3698ea5fb76d2f13774 |
File details
Details for the file enhsp_wrapper-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: enhsp_wrapper-0.1.4-py3-none-any.whl
- Upload date:
- Size: 50.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.1 CPython/3.9.13 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cffad9f643ed9758480d9f0a1c4b1b52dc2b501a3f2c3a1b59806dec7de183e |
|
MD5 | f963ac8e52281ec3c3fe10be29e28c6d |
|
BLAKE2b-256 | 36d117b83b53f7eccfbef9dc974a9f4b07b7505839fa3c3929037d8e523e902c |