Skip to main content

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

enhsp_wrapper-0.1.4.tar.gz (50.6 MB view hashes)

Uploaded Source

Built Distribution

enhsp_wrapper-0.1.4-py3-none-any.whl (50.7 MB view hashes)

Uploaded Python 3

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