Using Unified Planning Library to parse PDDL and generate plans for PDSim.
Project description
PDSim Backend
Using Unified Planning Library to parse PDDL and generate plans for PDSim
Availbale planners:
Install
-
Get the project to have the script and examples available
git clone https://github.com/Cryoscopic-E/PDSim-Backend.git -
Move to project folder
cd PDSim-Backend -
Activate environment (optional)
python -m venv venv- Linux:
source myvenv/bin/activate - Windows (Powereshell):
.\venv\Scripts\activate.ps1 - Windows (CMD):
.\venv\Scripts\activate.bat
- Linux:
-
Install package and requirements for scripting
pip install pdsim_backend
This will install the PDSim-Backend python package along with dependencies. It can now be used from python or as a cli script.
Usage
Python Mode
from pdsim_backend import run_backend
run_backend(domain='./examples/pddl/blocks/domain.pddl', problem='./examples/pddl/blocks/problem.pddl')
CLI Mode
- Provide your domain and problem files.
python pdsim_unity.py --domain <domain_path> --problem <problem_path>
You can provide an optional --planner flag, by default it'll use fast-downward, but the user will be prompted which planner is available for a specific problem.
- Embed pdsim server in your up problem definition.
from pdsim_unity import pdsim_upf
< your problem definition >
pdsim_upf(up_problem, planner_name)
This will create a server to communicate with unity and serve the protobuf representation of the problem and the generated plan.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pdsim_backend-0.1.tar.gz.
File metadata
- Download URL: pdsim_backend-0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d33a5588620f2d4e45bb84db69b55a14086c835f38568bcb0dc3b5ad41c691cc
|
|
| MD5 |
9ee581f9b98258ae9751797c2de8509b
|
|
| BLAKE2b-256 |
a8290a40039da1a8bf0e1586f71a7579e01fe11f1a52af7c0a2c3440f6f18045
|
Provenance
The following attestation bundles were made for pdsim_backend-0.1.tar.gz:
Publisher:
python-publish.yml on Cryoscopic-E/PDSim-Backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdsim_backend-0.1.tar.gz -
Subject digest:
d33a5588620f2d4e45bb84db69b55a14086c835f38568bcb0dc3b5ad41c691cc - Sigstore transparency entry: 164570480
- Sigstore integration time:
-
Permalink:
Cryoscopic-E/PDSim-Backend@404e2bfd4b73f6b9960fad82d0fb8bebf4a85ec6 -
Branch / Tag:
refs/tags/v1.0.0-rc - Owner: https://github.com/Cryoscopic-E
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@404e2bfd4b73f6b9960fad82d0fb8bebf4a85ec6 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pdsim_backend-0.1-py3-none-any.whl.
File metadata
- Download URL: pdsim_backend-0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7c63392e52b3dc6910ad6c118d883607315e2f16c33579d240defae76c0d4181
|
|
| MD5 |
b63cd39fbb1cae55a48b53d759b0d168
|
|
| BLAKE2b-256 |
93da4a935d100d9b29206a681d33135989b9d21a7887f7b09efb0790055a102c
|
Provenance
The following attestation bundles were made for pdsim_backend-0.1-py3-none-any.whl:
Publisher:
python-publish.yml on Cryoscopic-E/PDSim-Backend
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pdsim_backend-0.1-py3-none-any.whl -
Subject digest:
7c63392e52b3dc6910ad6c118d883607315e2f16c33579d240defae76c0d4181 - Sigstore transparency entry: 164570486
- Sigstore integration time:
-
Permalink:
Cryoscopic-E/PDSim-Backend@404e2bfd4b73f6b9960fad82d0fb8bebf4a85ec6 -
Branch / Tag:
refs/tags/v1.0.0-rc - Owner: https://github.com/Cryoscopic-E
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@404e2bfd4b73f6b9960fad82d0fb8bebf4a85ec6 -
Trigger Event:
release
-
Statement type: