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

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
  • 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


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-0.1.tar.gz (4.8 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-0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

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

Hashes for pdsim_backend-0.1.tar.gz
Algorithm Hash digest
SHA256 d33a5588620f2d4e45bb84db69b55a14086c835f38568bcb0dc3b5ad41c691cc
MD5 9ee581f9b98258ae9751797c2de8509b
BLAKE2b-256 a8290a40039da1a8bf0e1586f71a7579e01fe11f1a52af7c0a2c3440f6f18045

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdsim_backend-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-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

Hashes for pdsim_backend-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c63392e52b3dc6910ad6c118d883607315e2f16c33579d240defae76c0d4181
MD5 b63cd39fbb1cae55a48b53d759b0d168
BLAKE2b-256 93da4a935d100d9b29206a681d33135989b9d21a7887f7b09efb0790055a102c

See more details on using hashes here.

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

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