Skip to main content

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:

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

pdsim_backend-1.0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdsim_backend-1.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

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

Hashes for pdsim_backend-1.0.1.tar.gz
Algorithm Hash digest
SHA256 12a8cecc60541b1b93d68993d7042c2b21588a6349b1982d60130966bf0f5d65
MD5 b8f7dd4c44ddcce25bb9006b7cf7fded
BLAKE2b-256 b1e8d47ea222da6be7e2b6df80e4436041ac8875094d7038b611ed3ff143bb28

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdsim_backend-1.0.1.tar.gz:

Publisher: python-publish.yml on Cryoscopic-E/PDSim-Backend

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pdsim_backend-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c082afa861be0a1d91941c5ebff94e0ed9b3b97bbe5c66a946c5090aa599f8ff
MD5 ec8f353621c38f9fa74505525330d447
BLAKE2b-256 f84cee7bd6d9ca2a140b9c4df90d2f851515866d0d54c1493b14f762a1536aad

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page