Code Monkey home page Code Monkey logo

pdsim-backend's Introduction

PDSim Backend

Using Unified Planning Library to parse PDDL and generate plans for PDSim

Availbale planners:

Install

  • Get the project

    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 requirements

    python -m pip install -r requirements.txt

Usage

  • Run in cli mode providing 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-backend's People

Contributors

aplab2020 avatar augustusinvicta avatar cryoscopic-e avatar

Watchers

 avatar  avatar

Forkers

aplab2020

pdsim-backend's Issues

Installing requirements.txt facing problem in python 3.12.0

Hi,
first I followed this instrctions and ran pip install unified-planning[engines] pyzmq requests and installed successfully.
Then I clone this repo and ran 'python -m pip install -r requirements.txt'.

But it's showing this error
Requirement already satisfied: pyzmq~=25.1.1 in c:\python312\lib\site-packages (from -r requirements.txt (line 1)) (25.1.1) Requirement already satisfied: requests~=2.31.0 in c:\python312\lib\site-packages (from -r requirements.txt (line 2)) (2.31.0) Requirement already satisfied: protobuf in c:\python312\lib\site-packages (from -r requirements.txt (line 3)) (4.21.12) Collecting unified-planning==1.0.0 (from -r requirements.txt (line 4)) Using cached unified_planning-1.0.0-py3-none-any.whl.metadata (2.8 kB) Collecting up-fast-downward==0.3.1 (from -r requirements.txt (line 5)) Using cached up_fast_downward-0.3.1-py3-none-win_amd64.whl.metadata (836 bytes) Collecting up-tamer (from -r requirements.txt (line 6)) Using cached up_tamer-1.0.0-py3-none-any.whl.metadata (266 bytes) ERROR: Ignored the following yanked versions: 0.0.1, 0.0.4.0, 0.0.4.1 ERROR: Could not find a version that satisfies the requirement up-lpg (from versions: none) ERROR: No matching distribution found for up-lpg

Please let me know, how to fix it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.