Giter VIP home page Giter VIP logo

simple-htn-planner's Introduction

Simple-HTN-Planner

PyHop is a simple Hierarchical Task Network (HTN) planner written in Python by Dana Nau:

PyHop 2.0 Github repo

Dana Nau's slides on HTN Planning -- PyHop and the "Travel" example are detailed

Here is a trivial port of PyHop 2.0 in Visual Studio (2019) C++14; g++ 9.3.0 will also compile and run this port (thanks to Johannes Haindl for reporting about this).

The file "MyPyHop.py" contains the python code to run the PyHop "Travel" example; the file "BlocksWorldPyHop.py" contains the python code to run both the "Travel" and the "Blocksworld" examples from PyHop.

Both "MyPyHop.py" and "BlocksWorldPyHop.py" have been tested with VS 2019 Python; I've uploaded both files so that you can compare the C++ code to the Python code.

I did my best to (i) use PyHop identifiers in the C++ code, and (ii) print exactly what and when PyHop does print something, so you should be able to follow the C++ code from the Python code.

I fixed a bug in PyHop 2.0โ€™s blocksworld HTN which prevented me from solving IPC 2011 blocksworld problems; C++ code has been updated accordingly.

simple-htn-planner's People

Contributors

pcfvw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

simple-htn-planner's Issues

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.