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
Install
This project is now hosted on pypi
Use Conda (preferred)
Create a new venv
conda create -n pdsim python=3.11
Activate
conda activate pdsim
Install PDSim-Backend
pip install pdsim-backend
Use Venv
Create a new venv
python -m venv <directory>
Activate
- Windows(Powershell):
<directory>\Scripts\activate.ps1 - Linux/macOS:
source <directory>/bin/activate
Install PDSim-Backend
pip install pdsim-backend
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.
PDSim will try to find the planner that suits best the planning problem provided and let you choose which one to run.
Some Availbale planners:
- FastDownward
- Tamer
- Pyperplan FUll list here
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-1.0.1.tar.gz.
File metadata
- Download URL: pdsim_backend-1.0.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12a8cecc60541b1b93d68993d7042c2b21588a6349b1982d60130966bf0f5d65
|
|
| MD5 |
b8f7dd4c44ddcce25bb9006b7cf7fded
|
|
| BLAKE2b-256 |
b1e8d47ea222da6be7e2b6df80e4436041ac8875094d7038b611ed3ff143bb28
|
Provenance
The following attestation bundles were made for pdsim_backend-1.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-1.0.1.tar.gz -
Subject digest:
12a8cecc60541b1b93d68993d7042c2b21588a6349b1982d60130966bf0f5d65 - Sigstore transparency entry: 168526891
- Sigstore integration time:
-
Permalink:
Cryoscopic-E/PDSim-Backend@1ca239363b91156762806d812984e9b80fadc76c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Cryoscopic-E
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1ca239363b91156762806d812984e9b80fadc76c -
Trigger Event:
release
-
Statement type:
File details
Details for the file pdsim_backend-1.0.1-py3-none-any.whl.
File metadata
- Download URL: pdsim_backend-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c082afa861be0a1d91941c5ebff94e0ed9b3b97bbe5c66a946c5090aa599f8ff
|
|
| MD5 |
ec8f353621c38f9fa74505525330d447
|
|
| BLAKE2b-256 |
f84cee7bd6d9ca2a140b9c4df90d2f851515866d0d54c1493b14f762a1536aad
|
Provenance
The following attestation bundles were made for pdsim_backend-1.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-1.0.1-py3-none-any.whl -
Subject digest:
c082afa861be0a1d91941c5ebff94e0ed9b3b97bbe5c66a946c5090aa599f8ff - Sigstore transparency entry: 168526892
- Sigstore integration time:
-
Permalink:
Cryoscopic-E/PDSim-Backend@1ca239363b91156762806d812984e9b80fadc76c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/Cryoscopic-E
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1ca239363b91156762806d812984e9b80fadc76c -
Trigger Event:
release
-
Statement type: