├── docs ├── authors.md ├── index.md ├── changelog.md ├── contributing.md └── references.md ├── .gitattributes ├── tests ├── examples │ └── blocksworld │ │ ├── p-0.map │ │ └── p0.pddl ├── docker │ └── Dockerfile-planutils ├── pddl_files │ └── deterministic │ │ ├── blocks-strips-untyped │ │ ├── instances │ │ │ ├── instance-2.pddl │ │ │ ├── instance-6.pddl │ │ │ ├── instance-3.pddl │ │ │ ├── instance-4.pddl │ │ │ ├── instance-1.pddl │ │ │ ├── instance-9.pddl │ │ │ ├── instance-5.pddl │ │ │ ├── instance-7.pddl │ │ │ ├── instance-10.pddl │ │ │ ├── instance-11.pddl │ │ │ ├── instance-12.pddl │ │ │ ├── instance-8.pddl │ │ │ ├── instance-17.pddl │ │ │ ├── instance-13.pddl │ │ │ ├── instance-14.pddl │ │ │ ├── instance-16.pddl │ │ │ ├── instance-18.pddl │ │ │ ├── instance-15.pddl │ │ │ ├── instance-19.pddl │ │ │ ├── instance-20.pddl │ │ │ ├── instance-21.pddl │ │ │ ├── instance-24.pddl │ │ │ ├── instance-22.pddl │ │ │ ├── instance-26.pddl │ │ │ ├── instance-23.pddl │ │ │ ├── instance-25.pddl │ │ │ ├── instance-28.pddl │ │ │ ├── instance-27.pddl │ │ │ ├── instance-29.pddl │ │ │ ├── instance-32.pddl │ │ │ ├── instance-30.pddl │ │ │ ├── instance-31.pddl │ │ │ ├── instance-34.pddl │ │ │ ├── instance-33.pddl │ │ │ ├── instance-35.pddl │ │ │ ├── instance-36.pddl │ │ │ ├── instance-37.pddl │ │ │ ├── instance-38.pddl │ │ │ ├── instance-39.pddl │ │ │ ├── instance-40.pddl │ │ │ ├── instance-42.pddl │ │ │ ├── instance-41.pddl │ │ │ ├── instance-43.pddl │ │ │ ├── instance-44.pddl │ │ │ ├── instance-45.pddl │ │ │ ├── instance-46.pddl │ │ │ ├── instance-50.pddl │ │ │ ├── instance-47.pddl │ │ │ ├── instance-48.pddl │ │ │ └── instance-49.pddl │ │ └── domain.pddl │ │ ├── blocks-strips-typed │ │ └── instances │ │ │ ├── instance-2.pddl │ │ │ ├── instance-6.pddl │ │ │ ├── instance-3.pddl │ │ │ ├── instance-4.pddl │ │ │ ├── instance-1.pddl │ │ │ ├── instance-9.pddl │ │ │ ├── instance-5.pddl │ │ │ ├── instance-7.pddl │ │ │ ├── instance-10.pddl │ │ │ ├── instance-11.pddl │ │ │ ├── instance-12.pddl │ │ │ ├── instance-8.pddl │ │ │ ├── instance-17.pddl │ │ │ ├── instance-13.pddl │ │ │ ├── instance-14.pddl │ │ │ ├── instance-16.pddl │ │ │ ├── instance-15.pddl │ │ │ ├── instance-18.pddl │ │ │ ├── instance-19.pddl │ │ │ ├── instance-20.pddl │ │ │ ├── instance-21.pddl │ │ │ ├── instance-24.pddl │ │ │ ├── instance-22.pddl │ │ │ ├── instance-26.pddl │ │ │ ├── instance-23.pddl │ │ │ ├── instance-25.pddl │ │ │ ├── instance-28.pddl │ │ │ ├── instance-27.pddl │ │ │ ├── instance-29.pddl │ │ │ ├── instance-32.pddl │ │ │ ├── instance-30.pddl │ │ │ ├── instance-31.pddl │ │ │ ├── instance-34.pddl │ │ │ ├── instance-33.pddl │ │ │ ├── instance-35.pddl │ │ │ ├── instance-36.pddl │ │ │ ├── instance-37.pddl │ │ │ ├── instance-38.pddl │ │ │ ├── instance-39.pddl │ │ │ ├── instance-40.pddl │ │ │ ├── instance-42.pddl │ │ │ ├── instance-41.pddl │ │ │ ├── instance-43.pddl │ │ │ ├── instance-44.pddl │ │ │ ├── instance-45.pddl │ │ │ ├── instance-46.pddl │ │ │ ├── instance-50.pddl │ │ │ ├── instance-47.pddl │ │ │ ├── instance-48.pddl │ │ │ └── instance-49.pddl │ │ ├── elevator-strips-simple-untyped │ │ └── instances │ │ │ ├── instance-1.pddl │ │ │ ├── instance-2.pddl │ │ │ ├── instance-3.pddl │ │ │ ├── instance-4.pddl │ │ │ ├── instance-5.pddl │ │ │ ├── instance-7.pddl │ │ │ ├── instance-9.pddl │ │ │ ├── instance-10.pddl │ │ │ ├── instance-6.pddl │ │ │ ├── instance-8.pddl │ │ │ ├── instance-11.pddl │ │ │ ├── instance-12.pddl │ │ │ ├── instance-13.pddl │ │ │ ├── instance-14.pddl │ │ │ └── instance-15.pddl │ │ ├── elevator-adl-simple-typed │ │ └── instances │ │ │ ├── instance-1.pddl │ │ │ ├── instance-2.pddl │ │ │ ├── instance-3.pddl │ │ │ ├── instance-4.pddl │ │ │ ├── instance-5.pddl │ │ │ ├── instance-6.pddl │ │ │ ├── instance-7.pddl │ │ │ ├── instance-8.pddl │ │ │ ├── instance-9.pddl │ │ │ ├── instance-10.pddl │ │ │ ├── instance-11.pddl │ │ │ ├── instance-12.pddl │ │ │ ├── instance-13.pddl │ │ │ ├── instance-14.pddl │ │ │ ├── instance-15.pddl │ │ │ ├── instance-16.pddl │ │ │ ├── instance-17.pddl │ │ │ ├── instance-18.pddl │ │ │ ├── instance-19.pddl │ │ │ └── instance-20.pddl │ │ ├── elevator-strips-simple-typed │ │ └── instances │ │ │ ├── instance-1.pddl │ │ │ ├── instance-2.pddl │ │ │ ├── instance-3.pddl │ │ │ ├── instance-4.pddl │ │ │ ├── instance-5.pddl │ │ │ ├── instance-10.pddl │ │ │ ├── instance-6.pddl │ │ │ ├── instance-7.pddl │ │ │ ├── instance-8.pddl │ │ │ ├── instance-9.pddl │ │ │ ├── instance-11.pddl │ │ │ ├── instance-12.pddl │ │ │ ├── instance-13.pddl │ │ │ ├── instance-14.pddl │ │ │ ├── instance-15.pddl │ │ │ ├── instance-16.pddl │ │ │ ├── instance-17.pddl │ │ │ ├── instance-18.pddl │ │ │ ├── instance-19.pddl │ │ │ └── instance-20.pddl │ │ ├── elevator-adl-full-typed │ │ └── instances │ │ │ ├── instance-1.pddl │ │ │ ├── instance-2.pddl │ │ │ ├── instance-3.pddl │ │ │ ├── instance-4.pddl │ │ │ ├── instance-5.pddl │ │ │ ├── instance-6.pddl │ │ │ ├── instance-7.pddl │ │ │ ├── instance-8.pddl │ │ │ ├── instance-9.pddl │ │ │ ├── instance-10.pddl │ │ │ ├── instance-11.pddl │ │ │ ├── instance-12.pddl │ │ │ ├── instance-13.pddl │ │ │ ├── instance-14.pddl │ │ │ ├── instance-15.pddl │ │ │ ├── instance-16.pddl │ │ │ ├── instance-17.pddl │ │ │ ├── instance-18.pddl │ │ │ ├── instance-19.pddl │ │ │ └── instance-20.pddl │ │ ├── logistics-strips-typed │ │ └── instances │ │ │ ├── instance-1.pddl │ │ │ ├── instance-3.pddl │ │ │ ├── instance-2.pddl │ │ │ ├── instance-4.pddl │ │ │ ├── instance-5.pddl │ │ │ ├── instance-6.pddl │ │ │ ├── instance-10.pddl │ │ │ ├── instance-7.pddl │ │ │ ├── instance-8.pddl │ │ │ ├── instance-9.pddl │ │ │ ├── instance-12.pddl │ │ │ ├── instance-11.pddl │ │ │ ├── instance-14.pddl │ │ │ ├── instance-13.pddl │ │ │ ├── instance-15.pddl │ │ │ ├── instance-16.pddl │ │ │ ├── instance-17.pddl │ │ │ ├── instance-18.pddl │ │ │ ├── instance-19.pddl │ │ │ ├── instance-20.pddl │ │ │ ├── instance-21.pddl │ │ │ ├── instance-22.pddl │ │ │ ├── instance-24.pddl │ │ │ ├── instance-23.pddl │ │ │ ├── instance-26.pddl │ │ │ ├── instance-25.pddl │ │ │ ├── instance-27.pddl │ │ │ └── instance-28.pddl │ │ └── logistics-strips-untyped │ │ └── instances │ │ ├── instance-1.pddl │ │ ├── instance-2.pddl │ │ ├── instance-3.pddl │ │ ├── instance-4.pddl │ │ ├── instance-5.pddl │ │ ├── instance-6.pddl │ │ ├── instance-10.pddl │ │ ├── instance-7.pddl │ │ ├── instance-8.pddl │ │ ├── instance-9.pddl │ │ ├── instance-11.pddl │ │ ├── instance-12.pddl │ │ ├── instance-13.pddl │ │ ├── instance-14.pddl │ │ ├── instance-15.pddl │ │ └── instance-16.pddl ├── test_adl_compiler │ ├── pddl │ │ ├── blocksworld │ │ │ └── p01.pddl │ │ ├── robot-coffee │ │ │ ├── coffee3next.pddl │ │ │ └── domain-fond.pddl │ │ └── blocksworld_fond │ │ │ ├── problem.pddl │ │ │ └── domain-fond.pddl │ └── __init__.py ├── __init__.py ├── helpers │ ├── __init__.py │ └── planutils │ │ └── __init__.py ├── test_compiler │ └── __init__.py ├── test_main.py ├── test_utils │ └── __init__.py └── test_helpers │ └── __init__.py ├── HISTORY.md ├── .gitmodules ├── pytest.ini ├── codecov.yml ├── AUTHORS.md ├── plan4past.def ├── CONTRIBUTING.md ├── mkdocs.yml ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── workflows │ ├── docs.yml │ ├── test.yml │ ├── linting.yml │ └── python-publish.yml └── PULL_REQUEST_TEMPLATE.md ├── .pre-commit-config.yaml └── plan4past ├── utils └── __init__.py ├── helpers └── __init__.py ├── __init__.py └── constants.py /docs/authors.md: -------------------------------------------------------------------------------- 1 | {!../AUTHORS.md!} 2 | -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- 1 | {!../README.md!} 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pddl linguist-vendored 2 | -------------------------------------------------------------------------------- /docs/changelog.md: -------------------------------------------------------------------------------- 1 | {!../HISTORY.md!} 2 | -------------------------------------------------------------------------------- /docs/contributing.md: -------------------------------------------------------------------------------- 1 | {!../CONTRIBUTING.md!} 2 | -------------------------------------------------------------------------------- /tests/examples/blocksworld/p-0.map: -------------------------------------------------------------------------------- 1 | on_b_a,on b a 2 | ontable_c,ontable c -------------------------------------------------------------------------------- /HISTORY.md: -------------------------------------------------------------------------------- 1 | # History 2 | 3 | ## 0.1.0 (2023-06-17) 4 | 5 | - First release. 6 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "tests/benchmarks"] 2 | path = tests/benchmarks 3 | url = https://github.com/whitemech/Plan4Past-data 4 | -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | log_cli = 1 3 | log_cli_level = DEBUG 4 | log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s) 5 | log_cli_date_format=%Y-%m-%d %H:%M:%S 6 | 7 | markers = "" -------------------------------------------------------------------------------- /tests/docker/Dockerfile-planutils: -------------------------------------------------------------------------------- 1 | FROM aiplanning/planutils:latest 2 | 3 | # Install solvers and tools 4 | RUN planutils install -y val 5 | RUN planutils install -y planning.domains 6 | RUN planutils install -y lama 7 | -------------------------------------------------------------------------------- /tests/examples/blocksworld/p0.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-4-0) 2 | (:domain blocks) 3 | (:objects d b a c - block) 4 | (:init (clear c) (clear a) (on a b) (on c d) (ontable b) (ontable d) (handempty)) 5 | (:goal (and (on d c) (on c b) (on b a))) 6 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-4-1) 2 | (:domain BLOCKS) 3 | (:objects A C D B ) 4 | (:INIT (CLEAR B) (ONTABLE D) (ON B C) (ON C A) (ON A D) (HANDEMPTY)) 5 | (:goal (AND (ON D C) (ON C A) (ON A B))) 6 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-4-1) 2 | (:domain BLOCKS) 3 | (:objects A C D B - block) 4 | (:INIT (CLEAR B) (ONTABLE D) (ON B C) (ON C A) (ON A D) (HANDEMPTY)) 5 | (:goal (AND (ON D C) (ON C A) (ON A B))) 6 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-5-2) 2 | (:domain BLOCKS) 3 | (:objects A C E B D ) 4 | (:INIT (CLEAR D) (ONTABLE B) (ON D E) (ON E C) (ON C A) (ON A B) (HANDEMPTY)) 5 | (:goal (AND (ON D C) (ON C B) (ON B E) (ON E A))) 6 | ) -------------------------------------------------------------------------------- /tests/test_adl_compiler/pddl/blocksworld/p01.pddl: -------------------------------------------------------------------------------- 1 | (define (problem bw_5_1) 2 | (:domain blocks-domain) 3 | (:objects b1 b2 b3 b4 b5 - block) 4 | (:init (emptyhand) (on b1 b3) (on b2 b1) (on-table b3) (on-table b4) (on b5 b4) (clear b2) (clear b5)) 5 | (:goal (and (on b1 b3))) 6 | ) 7 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-5-2) 2 | (:domain BLOCKS) 3 | (:objects A C E B D - block) 4 | (:INIT (CLEAR D) (ONTABLE B) (ON D E) (ON E C) (ON C A) (ON A B) (HANDEMPTY)) 5 | (:goal (AND (ON D C) (ON C B) (ON B E) (ON E A))) 6 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-4-2) 2 | (:domain BLOCKS) 3 | (:objects B D C A ) 4 | (:INIT (CLEAR A) (CLEAR C) (CLEAR D) (ONTABLE A) (ONTABLE B) (ONTABLE D) 5 | (ON C B) (HANDEMPTY)) 6 | (:goal (AND (ON A B) (ON B C) (ON C D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-4-2) 2 | (:domain BLOCKS) 3 | (:objects B D C A - block) 4 | (:INIT (CLEAR A) (CLEAR C) (CLEAR D) (ONTABLE A) (ONTABLE B) (ONTABLE D) 5 | (ON C B) (HANDEMPTY)) 6 | (:goal (AND (ON A B) (ON B C) (ON C D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-5-0) 2 | (:domain BLOCKS) 3 | (:objects B E A C D ) 4 | (:INIT (CLEAR D) (CLEAR C) (ONTABLE D) (ONTABLE A) (ON C E) (ON E B) (ON B A) 5 | (HANDEMPTY)) 6 | (:goal (AND (ON A E) (ON E B) (ON B D) (ON D C))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-5-0) 2 | (:domain BLOCKS) 3 | (:objects B E A C D - block) 4 | (:INIT (CLEAR D) (CLEAR C) (ONTABLE D) (ONTABLE A) (ON C E) (ON E B) (ON B A) 5 | (HANDEMPTY)) 6 | (:goal (AND (ON A E) (ON E B) (ON B D) (ON D C))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-4-0) 2 | (:domain BLOCKS) 3 | (:objects D B A C ) 4 | (:INIT (CLEAR C) (CLEAR A) (CLEAR B) (CLEAR D) (ONTABLE C) (ONTABLE A) 5 | (ONTABLE B) (ONTABLE D) (HANDEMPTY)) 6 | (:goal (AND (ON D C) (ON C B) (ON B A))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-6-2) 2 | (:domain BLOCKS) 3 | (:objects E F B D C A ) 4 | (:INIT (CLEAR A) (ONTABLE C) (ON A D) (ON D B) (ON B F) (ON F E) (ON E C) 5 | (HANDEMPTY)) 6 | (:goal (AND (ON E F) (ON F A) (ON A B) (ON B C) (ON C D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-4-0) 2 | (:domain BLOCKS) 3 | (:objects D B A C - block) 4 | (:INIT (CLEAR C) (CLEAR A) (CLEAR B) (CLEAR D) (ONTABLE C) (ONTABLE A) 5 | (ONTABLE B) (ONTABLE D) (HANDEMPTY)) 6 | (:goal (AND (ON D C) (ON C B) (ON B A))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-6-2) 2 | (:domain BLOCKS) 3 | (:objects E F B D C A - block) 4 | (:INIT (CLEAR A) (ONTABLE C) (ON A D) (ON D B) (ON B F) (ON F E) (ON E C) 5 | (HANDEMPTY)) 6 | (:goal (AND (ON E F) (ON F A) (ON A B) (ON B C) (ON C D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-5-1) 2 | (:domain BLOCKS) 3 | (:objects A D C E B ) 4 | (:INIT (CLEAR B) (CLEAR E) (CLEAR C) (ONTABLE D) (ONTABLE E) (ONTABLE C) 5 | (ON B A) (ON A D) (HANDEMPTY)) 6 | (:goal (AND (ON D C) (ON C B) (ON B A) (ON A E))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-5-1) 2 | (:domain BLOCKS) 3 | (:objects A D C E B - block) 4 | (:INIT (CLEAR B) (CLEAR E) (CLEAR C) (ONTABLE D) (ONTABLE E) (ONTABLE C) 5 | (ON B A) (ON A D) (HANDEMPTY)) 6 | (:goal (AND (ON D C) (ON C B) (ON B A) (ON A E))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-6-0) 2 | (:domain BLOCKS) 3 | (:objects E A B C F D ) 4 | (:INIT (CLEAR D) (CLEAR F) (ONTABLE C) (ONTABLE B) (ON D A) (ON A C) (ON F E) 5 | (ON E B) (HANDEMPTY)) 6 | (:goal (AND (ON C B) (ON B A) (ON A E) (ON E F) (ON F D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-6-0) 2 | (:domain BLOCKS) 3 | (:objects E A B C F D - block) 4 | (:INIT (CLEAR D) (CLEAR F) (ONTABLE C) (ONTABLE B) (ON D A) (ON A C) (ON F E) 5 | (ON E B) (HANDEMPTY)) 6 | (:goal (AND (ON C B) (ON B A) (ON A E) (ON E F) (ON F D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-7-0) 2 | (:domain BLOCKS) 3 | (:objects C F A B G D E ) 4 | (:INIT (CLEAR E) (ONTABLE D) (ON E G) (ON G B) (ON B A) (ON A F) (ON F C) 5 | (ON C D) (HANDEMPTY)) 6 | (:goal (AND (ON A G) (ON G D) (ON D B) (ON B C) (ON C F) (ON F E))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-7-0) 2 | (:domain BLOCKS) 3 | (:objects C F A B G D E - block) 4 | (:INIT (CLEAR E) (ONTABLE D) (ON E G) (ON G B) (ON B A) (ON A F) (ON F C) 5 | (ON C D) (HANDEMPTY)) 6 | (:goal (AND (ON A G) (ON G D) (ON D B) (ON B C) (ON C F) (ON F E))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-7-1) 2 | (:domain BLOCKS) 3 | (:objects E B D F G C A ) 4 | (:INIT (CLEAR A) (CLEAR C) (ONTABLE G) (ONTABLE F) (ON A G) (ON C D) (ON D B) 5 | (ON B E) (ON E F) (HANDEMPTY)) 6 | (:goal (AND (ON A E) (ON E B) (ON B F) (ON F G) (ON G C) (ON C D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-7-2) 2 | (:domain BLOCKS) 3 | (:objects E G C D F A B ) 4 | (:INIT (CLEAR B) (CLEAR A) (ONTABLE F) (ONTABLE D) (ON B C) (ON C G) (ON G E) 5 | (ON E F) (ON A D) (HANDEMPTY)) 6 | (:goal (AND (ON E B) (ON B F) (ON F D) (ON D A) (ON A C) (ON C G))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-7-1) 2 | (:domain BLOCKS) 3 | (:objects E B D F G C A - block) 4 | (:INIT (CLEAR A) (CLEAR C) (ONTABLE G) (ONTABLE F) (ON A G) (ON C D) (ON D B) 5 | (ON B E) (ON E F) (HANDEMPTY)) 6 | (:goal (AND (ON A E) (ON E B) (ON B F) (ON F G) (ON G C) (ON C D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-7-2) 2 | (:domain BLOCKS) 3 | (:objects E G C D F A B - block) 4 | (:INIT (CLEAR B) (CLEAR A) (ONTABLE F) (ONTABLE D) (ON B C) (ON C G) (ON G E) 5 | (ON E F) (ON A D) (HANDEMPTY)) 6 | (:goal (AND (ON E B) (ON B F) (ON F D) (ON D A) (ON A C) (ON C G))) 7 | ) -------------------------------------------------------------------------------- /docs/references.md: -------------------------------------------------------------------------------- 1 | # References 2 | 3 | 1. De Giacomo, G.; Di Stasio, A.; Fuggitti, F.; Rubin, S.. "Pure-Past Linear Temporal and Dynamic Logic on Finite Traces". In IJCAI, 2020. 4 | 3. Bonassi, L.; De Giacomo, G.; Favorito, M.; Fuggitti, F.; Gerevini, A.; and Scala, E.. "Planning for Temporally Extended Goals in Pure-Past Linear Temporal Logic". In ICAPS, 2023. 5 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-6-1) 2 | (:domain BLOCKS) 3 | (:objects F D C E B A ) 4 | (:INIT (CLEAR A) (CLEAR B) (CLEAR E) (CLEAR C) (CLEAR D) (ONTABLE F) 5 | (ONTABLE B) (ONTABLE E) (ONTABLE C) (ONTABLE D) (ON A F) (HANDEMPTY)) 6 | (:goal (AND (ON E F) (ON F C) (ON C B) (ON B A) (ON A D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-6-1) 2 | (:domain BLOCKS) 3 | (:objects F D C E B A - block) 4 | (:INIT (CLEAR A) (CLEAR B) (CLEAR E) (CLEAR C) (CLEAR D) (ONTABLE F) 5 | (ONTABLE B) (ONTABLE E) (ONTABLE C) (ONTABLE D) (ON A F) (HANDEMPTY)) 6 | (:goal (AND (ON E F) (ON F C) (ON C B) (ON B A) (ON A D))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-17.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-9-1) 2 | (:domain BLOCKS) 3 | (:objects H G I C D B E A F ) 4 | (:INIT (CLEAR F) (ONTABLE A) (ON F E) (ON E B) (ON B D) (ON D C) (ON C I) 5 | (ON I G) (ON G H) (ON H A) (HANDEMPTY)) 6 | (:goal (AND (ON D I) (ON I A) (ON A B) (ON B H) (ON H G) (ON G F) (ON F E) 7 | (ON E C))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-17.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-9-1) 2 | (:domain BLOCKS) 3 | (:objects H G I C D B E A F - block) 4 | (:INIT (CLEAR F) (ONTABLE A) (ON F E) (ON E B) (ON B D) (ON D C) (ON C I) 5 | (ON I G) (ON G H) (ON H A) (HANDEMPTY)) 6 | (:goal (AND (ON D I) (ON I A) (ON A B) (ON B H) (ON H G) (ON G F) (ON F E) 7 | (ON E C))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-8-0) 2 | (:domain BLOCKS) 3 | (:objects H G F E C B D A ) 4 | (:INIT (CLEAR A) (CLEAR D) (CLEAR B) (CLEAR C) (ONTABLE E) (ONTABLE F) 5 | (ONTABLE B) (ONTABLE C) (ON A G) (ON G E) (ON D H) (ON H F) (HANDEMPTY)) 6 | (:goal (AND (ON D F) (ON F E) (ON E H) (ON H C) (ON C A) (ON A G) (ON G B))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-8-1) 2 | (:domain BLOCKS) 3 | (:objects B A G C F D H E ) 4 | (:INIT (CLEAR E) (CLEAR H) (CLEAR D) (CLEAR F) (ONTABLE C) (ONTABLE G) 5 | (ONTABLE D) (ONTABLE F) (ON E C) (ON H A) (ON A B) (ON B G) (HANDEMPTY)) 6 | (:goal (AND (ON C D) (ON D B) (ON B G) (ON G F) (ON F H) (ON H A) (ON A E))) 7 | ) -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | require_ci_to_pass: yes 3 | 4 | coverage: 5 | precision: 2 6 | round: down 7 | range: "70...100" 8 | 9 | parsers: 10 | gcov: 11 | branch_detection: 12 | conditional: yes 13 | loop: yes 14 | method: no 15 | macro: no 16 | 17 | comment: 18 | layout: "reach,diff,flags,tree" 19 | behavior: default 20 | require_changes: false 21 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-8-0) 2 | (:domain BLOCKS) 3 | (:objects H G F E C B D A - block) 4 | (:INIT (CLEAR A) (CLEAR D) (CLEAR B) (CLEAR C) (ONTABLE E) (ONTABLE F) 5 | (ONTABLE B) (ONTABLE C) (ON A G) (ON G E) (ON D H) (ON H F) (HANDEMPTY)) 6 | (:goal (AND (ON D F) (ON F E) (ON E H) (ON H C) (ON C A) (ON A G) (ON G B))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-8-1) 2 | (:domain BLOCKS) 3 | (:objects B A G C F D H E - block) 4 | (:INIT (CLEAR E) (CLEAR H) (CLEAR D) (CLEAR F) (ONTABLE C) (ONTABLE G) 5 | (ONTABLE D) (ONTABLE F) (ON E C) (ON H A) (ON A B) (ON B G) (HANDEMPTY)) 6 | (:goal (AND (ON C D) (ON D B) (ON B G) (ON G F) (ON F H) (ON H A) (ON A E))) 7 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-16.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-9-0) 2 | (:domain BLOCKS) 3 | (:objects H D I A E G B F C ) 4 | (:INIT (CLEAR C) (CLEAR F) (ONTABLE C) (ONTABLE B) (ON F G) (ON G E) (ON E A) 5 | (ON A I) (ON I D) (ON D H) (ON H B) (HANDEMPTY)) 6 | (:goal (AND (ON G D) (ON D B) (ON B C) (ON C A) (ON A I) (ON I F) (ON F E) 7 | (ON E H))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-18.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-9-2) 2 | (:domain BLOCKS) 3 | (:objects B I C E D A G F H ) 4 | (:INIT (CLEAR H) (CLEAR F) (ONTABLE G) (ONTABLE F) (ON H A) (ON A D) (ON D E) 5 | (ON E C) (ON C I) (ON I B) (ON B G) (HANDEMPTY)) 6 | (:goal (AND (ON F G) (ON G H) (ON H D) (ON D I) (ON I E) (ON E B) (ON B C) 7 | (ON C A))) 8 | ) -------------------------------------------------------------------------------- /AUTHORS.md: -------------------------------------------------------------------------------- 1 | # Credits 2 | 3 | ## Maintainers 4 | 5 | * [Luigi Bonassi](https://github.com/LBonassi95) <[luigi.bonassi@unibs.it](mailto:luigi.bonassi@unibs.it)> 6 | * [Marco Favorito](https://github.com/marcofavorito) <[marco.favorito@gmail.com](mailto:marco.favorito@gmail.com)> 7 | * [Francesco Fuggitti](https://github.com/francescofuggitti) <[francesco.fuggitti@gmail.com](mailto:francesco.fuggitti@gmail.com)> 8 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-16.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-9-0) 2 | (:domain BLOCKS) 3 | (:objects H D I A E G B F C - block) 4 | (:INIT (CLEAR C) (CLEAR F) (ONTABLE C) (ONTABLE B) (ON F G) (ON G E) (ON E A) 5 | (ON A I) (ON I D) (ON D H) (ON H B) (HANDEMPTY)) 6 | (:goal (AND (ON G D) (ON D B) (ON B C) (ON C A) (ON A I) (ON I F) (ON F E) 7 | (ON E H))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-8-2) 2 | (:domain BLOCKS) 3 | (:objects F B G C H E A D ) 4 | (:INIT (CLEAR D) (CLEAR A) (CLEAR E) (CLEAR H) (CLEAR C) (ONTABLE G) 5 | (ONTABLE A) (ONTABLE E) (ONTABLE H) (ONTABLE C) (ON D B) (ON B F) (ON F G) 6 | (HANDEMPTY)) 7 | (:goal (AND (ON C B) (ON B E) (ON E G) (ON G F) (ON F A) (ON A D) (ON D H))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-8-2) 2 | (:domain BLOCKS) 3 | (:objects F B G C H E A D - block) 4 | (:INIT (CLEAR D) (CLEAR A) (CLEAR E) (CLEAR H) (CLEAR C) (ONTABLE G) 5 | (ONTABLE A) (ONTABLE E) (ONTABLE H) (ONTABLE C) (ON D B) (ON B F) (ON F G) 6 | (HANDEMPTY)) 7 | (:goal (AND (ON C B) (ON B E) (ON E G) (ON G F) (ON F A) (ON A D) (ON D H))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-18.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-9-2) 2 | (:domain BLOCKS) 3 | (:objects B I C E D A G F H - block) 4 | (:INIT (CLEAR H) (CLEAR F) (ONTABLE G) (ONTABLE F) (ON H A) (ON A D) (ON D E) 5 | (ON E C) (ON C I) (ON I B) (ON B G) (HANDEMPTY)) 6 | (:goal (AND (ON F G) (ON G H) (ON H D) (ON D I) (ON I E) (ON E B) (ON B C) 7 | (ON C A))) 8 | ) 9 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-19.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-10-0) 2 | (:domain BLOCKS) 3 | (:objects D A H G B J E I F C ) 4 | (:INIT (CLEAR C) (CLEAR F) (ONTABLE I) (ONTABLE F) (ON C E) (ON E J) (ON J B) 5 | (ON B G) (ON G H) (ON H A) (ON A D) (ON D I) (HANDEMPTY)) 6 | (:goal (AND (ON D C) (ON C F) (ON F J) (ON J E) (ON E H) (ON H B) (ON B A) 7 | (ON A G) (ON G I))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-20.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-10-1) 2 | (:domain BLOCKS) 3 | (:objects D A J I E G H B F C ) 4 | (:INIT (CLEAR C) (CLEAR F) (ONTABLE B) (ONTABLE H) (ON C G) (ON G E) (ON E I) 5 | (ON I J) (ON J A) (ON A B) (ON F D) (ON D H) (HANDEMPTY)) 6 | (:goal (AND (ON C B) (ON B D) (ON D F) (ON F I) (ON I A) (ON A E) (ON E H) 7 | (ON H G) (ON G J))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-21.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-10-2) 2 | (:domain BLOCKS) 3 | (:objects B G E D F H I A C J ) 4 | (:INIT (CLEAR J) (CLEAR C) (ONTABLE A) (ONTABLE C) (ON J I) (ON I H) (ON H F) 5 | (ON F D) (ON D E) (ON E G) (ON G B) (ON B A) (HANDEMPTY)) 6 | (:goal (AND (ON B E) (ON E I) (ON I G) (ON G H) (ON H C) (ON C A) (ON A F) 7 | (ON F J) (ON J D))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-19.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-10-0) 2 | (:domain BLOCKS) 3 | (:objects D A H G B J E I F C - block) 4 | (:INIT (CLEAR C) (CLEAR F) (ONTABLE I) (ONTABLE F) (ON C E) (ON E J) (ON J B) 5 | (ON B G) (ON G H) (ON H A) (ON A D) (ON D I) (HANDEMPTY)) 6 | (:goal (AND (ON D C) (ON C F) (ON F J) (ON J E) (ON E H) (ON H B) (ON B A) 7 | (ON A G) (ON G I))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-20.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-10-1) 2 | (:domain BLOCKS) 3 | (:objects D A J I E G H B F C - block) 4 | (:INIT (CLEAR C) (CLEAR F) (ONTABLE B) (ONTABLE H) (ON C G) (ON G E) (ON E I) 5 | (ON I J) (ON J A) (ON A B) (ON F D) (ON D H) (HANDEMPTY)) 6 | (:goal (AND (ON C B) (ON B D) (ON D F) (ON F I) (ON I A) (ON A E) (ON E H) 7 | (ON H G) (ON G J))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-21.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-10-2) 2 | (:domain BLOCKS) 3 | (:objects B G E D F H I A C J - block) 4 | (:INIT (CLEAR J) (CLEAR C) (ONTABLE A) (ONTABLE C) (ON J I) (ON I H) (ON H F) 5 | (ON F D) (ON D E) (ON E G) (ON G B) (ON B A) (HANDEMPTY)) 6 | (:goal (AND (ON B E) (ON E I) (ON I G) (ON G H) (ON H C) (ON C A) (ON A F) 7 | (ON F J) (ON J D))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-24.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-11-2) 2 | (:domain BLOCKS) 3 | (:objects E J D C F K H G A I B ) 4 | (:INIT (CLEAR B) (CLEAR I) (ONTABLE A) (ONTABLE G) (ON B H) (ON H K) (ON K F) 5 | (ON F C) (ON C D) (ON D J) (ON J A) (ON I E) (ON E G) (HANDEMPTY)) 6 | (:goal (AND (ON I G) (ON G C) (ON C D) (ON D E) (ON E J) (ON J B) (ON B H) 7 | (ON H A) (ON A F) (ON F K))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-24.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-11-2) 2 | (:domain BLOCKS) 3 | (:objects E J D C F K H G A I B - block) 4 | (:INIT (CLEAR B) (CLEAR I) (ONTABLE A) (ONTABLE G) (ON B H) (ON H K) (ON K F) 5 | (ON F C) (ON C D) (ON D J) (ON J A) (ON I E) (ON E G) (HANDEMPTY)) 6 | (:goal (AND (ON I G) (ON G C) (ON C D) (ON D E) (ON E J) (ON J B) (ON B H) 7 | (ON H A) (ON A F) (ON F K))) 8 | ) -------------------------------------------------------------------------------- /plan4past.def: -------------------------------------------------------------------------------- 1 | Bootstrap: docker 2 | From: python:3.10 3 | 4 | 5 | %files 6 | plan4past /opt/plan4past/plan4past 7 | scripts /opt/plan4past/scripts 8 | pyproject.toml /opt/plan4past/pyproject.toml 9 | setup.cfg /opt/plan4past/setup.cfg 10 | README.md /opt/plan4past/README.md 11 | LICENSE /opt/plan4past/LICENSE 12 | 13 | 14 | %post 15 | pip install /opt/plan4past/ 16 | 17 | 18 | %runscript 19 | exec plan4past "$@" 20 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-22.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-11-0) 2 | (:domain BLOCKS) 3 | (:objects F A K H G E D I C J B ) 4 | (:INIT (CLEAR B) (CLEAR J) (CLEAR C) (ONTABLE I) (ONTABLE D) (ONTABLE E) 5 | (ON B G) (ON G H) (ON H K) (ON K A) (ON A F) (ON F I) (ON J D) (ON C E) 6 | (HANDEMPTY)) 7 | (:goal (AND (ON A J) (ON J D) (ON D B) (ON B H) (ON H K) (ON K I) (ON I F) 8 | (ON F E) (ON E G) (ON G C))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-26.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-12-1) 2 | (:domain BLOCKS) 3 | (:objects E L A B F I H G D J K C ) 4 | (:INIT (CLEAR C) (CLEAR K) (ONTABLE J) (ONTABLE D) (ON C G) (ON G H) (ON H I) 5 | (ON I F) (ON F B) (ON B A) (ON A L) (ON L E) (ON E J) (ON K D) (HANDEMPTY)) 6 | (:goal (AND (ON J C) (ON C E) (ON E K) (ON K H) (ON H A) (ON A F) (ON F L) 7 | (ON L G) (ON G B) (ON B I) (ON I D))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-22.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-11-0) 2 | (:domain BLOCKS) 3 | (:objects F A K H G E D I C J B - block) 4 | (:INIT (CLEAR B) (CLEAR J) (CLEAR C) (ONTABLE I) (ONTABLE D) (ONTABLE E) 5 | (ON B G) (ON G H) (ON H K) (ON K A) (ON A F) (ON F I) (ON J D) (ON C E) 6 | (HANDEMPTY)) 7 | (:goal (AND (ON A J) (ON J D) (ON D B) (ON B H) (ON H K) (ON K I) (ON I F) 8 | (ON F E) (ON E G) (ON G C))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-26.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-12-1) 2 | (:domain BLOCKS) 3 | (:objects E L A B F I H G D J K C - block) 4 | (:INIT (CLEAR C) (CLEAR K) (ONTABLE J) (ONTABLE D) (ON C G) (ON G H) (ON H I) 5 | (ON I F) (ON F B) (ON B A) (ON A L) (ON L E) (ON E J) (ON K D) (HANDEMPTY)) 6 | (:goal (AND (ON J C) (ON C E) (ON E K) (ON K H) (ON H A) (ON A F) (ON F L) 7 | (ON L G) (ON G B) (ON B I) (ON I D))) 8 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-23.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-11-1) 2 | (:domain BLOCKS) 3 | (:objects B C E A H K I G D F J ) 4 | (:INIT (CLEAR J) (CLEAR F) (CLEAR D) (CLEAR G) (ONTABLE I) (ONTABLE K) 5 | (ONTABLE H) (ONTABLE A) (ON J I) (ON F E) (ON E K) (ON D C) (ON C H) (ON G B) 6 | (ON B A) (HANDEMPTY)) 7 | (:goal (AND (ON B D) (ON D J) (ON J K) (ON K H) (ON H A) (ON A C) (ON C F) 8 | (ON F G) (ON G I) (ON I E))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-23.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-11-1) 2 | (:domain BLOCKS) 3 | (:objects B C E A H K I G D F J - block) 4 | (:INIT (CLEAR J) (CLEAR F) (CLEAR D) (CLEAR G) (ONTABLE I) (ONTABLE K) 5 | (ONTABLE H) (ONTABLE A) (ON J I) (ON F E) (ON E K) (ON D C) (ON C H) (ON G B) 6 | (ON B A) (HANDEMPTY)) 7 | (:goal (AND (ON B D) (ON D J) (ON J K) (ON K H) (ON H A) (ON A C) (ON C F) 8 | (ON F G) (ON G I) (ON I E))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-25.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-12-0) 2 | (:domain BLOCKS) 3 | (:objects I D B E K G A F C J L H ) 4 | (:INIT (CLEAR H) (CLEAR L) (CLEAR J) (ONTABLE C) (ONTABLE F) (ONTABLE J) 5 | (ON H A) (ON A G) (ON G K) (ON K E) (ON E B) (ON B D) (ON D I) (ON I C) 6 | (ON L F) (HANDEMPTY)) 7 | (:goal (AND (ON I C) (ON C B) (ON B L) (ON L D) (ON D J) (ON J E) (ON E K) 8 | (ON K F) (ON F A) (ON A H) (ON H G))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 7 | f0 f1 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (floor f0) 13 | (floor f1) 14 | 15 | (above f0 f1) 16 | (origin p0 f1) 17 | (destin p0 f0) 18 | 19 | (lift-at f0) 20 | ) 21 | 22 | 23 | (:goal (and 24 | (served p0) 25 | )) 26 | ) 27 | 28 | 29 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-25.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-12-0) 2 | (:domain BLOCKS) 3 | (:objects I D B E K G A F C J L H - block) 4 | (:INIT (CLEAR H) (CLEAR L) (CLEAR J) (ONTABLE C) (ONTABLE F) (ONTABLE J) 5 | (ON H A) (ON A G) (ON G K) (ON K E) (ON E B) (ON B D) (ON D I) (ON I C) 6 | (ON L F) (HANDEMPTY)) 7 | (:goal (AND (ON I C) (ON C B) (ON B L) (ON L D) (ON D J) (ON J E) (ON E K) 8 | (ON K F) (ON F A) (ON A H) (ON H G))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-28.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-13-1) 2 | (:domain BLOCKS) 3 | (:objects I M G H L A C D E K F B J ) 4 | (:INIT (CLEAR J) (CLEAR B) (ONTABLE F) (ONTABLE K) (ON J E) (ON E D) (ON D C) 5 | (ON C A) (ON A L) (ON L H) (ON H G) (ON G M) (ON M I) (ON I F) (ON B K) 6 | (HANDEMPTY)) 7 | (:goal (AND (ON D A) (ON A E) (ON E L) (ON L M) (ON M C) (ON C J) (ON J F) 8 | (ON F K) (ON K G) (ON G H) (ON H I) (ON I B))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f0) 16 | (destin p0 f1) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f0) 16 | (destin p0 f1) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (and 28 | (served p0) 29 | )) 30 | ) 31 | 32 | 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-28.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-13-1) 2 | (:domain BLOCKS) 3 | (:objects I M G H L A C D E K F B J - block) 4 | (:INIT (CLEAR J) (CLEAR B) (ONTABLE F) (ONTABLE K) (ON J E) (ON E D) (ON D C) 5 | (ON C A) (ON A L) (ON L H) (ON H G) (ON G M) (ON M I) (ON I F) (ON B K) 6 | (HANDEMPTY)) 7 | (:goal (AND (ON D A) (ON A E) (ON E L) (ON L M) (ON M C) (ON C J) (ON J F) 8 | (ON F K) (ON K G) (ON G H) (ON H I) (ON I B))) 9 | ) -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | Contributions are welcome, and greatly appreciated! Every little bit helps, and credit will always be given. 4 | 5 | If you need support, want to report/fix a bug, ask for/implement features, you can check the 6 | [Issues page](https://github.com/whitemech/Plan4Past/issues) 7 | or [submit a Pull request](https://github.com/whitemech/Plan4Past/pulls). 8 | 9 | For other kinds of feedback, you can contact one of the [authors](./authors.md) by email. 10 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u20-v5-g5-a60-n10-A20-B80-N50-F5-r0) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (forall (?p - passenger) (served ?p))) 28 | ) 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u20-v5-g5-a60-n10-A20-B80-N50-F5-r1) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f0) 16 | (destin p0 f1) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (forall (?p - passenger) (served ?p))) 28 | ) 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u20-v5-g5-a60-n10-A20-B80-N50-F5-r2) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (forall (?p - passenger) (served ?p))) 28 | ) 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u20-v5-g5-a60-n10-A20-B80-N50-F5-r3) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (forall (?p - passenger) (served ?p))) 28 | ) 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u20-v5-g5-a60-n10-A20-B80-N50-F5-r4) 5 | (:domain miconic) 6 | (:objects p0 - passenger 7 | f0 f1 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | 13 | 14 | 15 | (origin p0 f1) 16 | (destin p0 f0) 17 | 18 | 19 | 20 | 21 | 22 | 23 | (lift-at f0) 24 | ) 25 | 26 | 27 | (:goal (forall (?p - passenger) (served ?p))) 28 | ) 29 | 30 | 31 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-27.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-13-0) 2 | (:domain BLOCKS) 3 | (:objects L H E A J C D F G K M I B ) 4 | (:INIT (CLEAR B) (CLEAR I) (CLEAR M) (ONTABLE K) (ONTABLE G) (ONTABLE M) 5 | (ON B F) (ON F D) (ON D C) (ON C J) (ON J A) (ON A E) (ON E H) (ON H L) 6 | (ON L K) (ON I G) (HANDEMPTY)) 7 | (:goal (AND (ON G I) (ON I C) (ON C D) (ON D F) (ON F A) (ON A M) (ON M H) 8 | (ON H E) (ON E L) (ON L J) (ON J B) (ON B K))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-27.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-13-0) 2 | (:domain BLOCKS) 3 | (:objects L H E A J C D F G K M I B - block) 4 | (:INIT (CLEAR B) (CLEAR I) (CLEAR M) (ONTABLE K) (ONTABLE G) (ONTABLE M) 5 | (ON B F) (ON F D) (ON D C) (ON C J) (ON J A) (ON A E) (ON E H) (ON H L) 6 | (ON L K) (ON I G) (HANDEMPTY)) 7 | (:goal (AND (ON G I) (ON I C) (ON C D) (ON D F) (ON F A) (ON A M) (ON M H) 8 | (ON H E) (ON E L) (ON L J) (ON J B) (ON B K))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-29.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-14-0) 2 | (:domain BLOCKS) 3 | (:objects I D B L C K M H J N E F G A ) 4 | (:INIT (CLEAR A) (CLEAR G) (CLEAR F) (ONTABLE E) (ONTABLE N) (ONTABLE F) 5 | (ON A J) (ON J H) (ON H M) (ON M K) (ON K C) (ON C L) (ON L B) (ON B E) 6 | (ON G D) (ON D I) (ON I N) (HANDEMPTY)) 7 | (:goal (AND (ON E L) (ON L F) (ON F B) (ON B J) (ON J I) (ON I N) (ON N C) 8 | (ON C K) (ON K G) (ON G D) (ON D M) (ON M A) (ON A H))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 7 | f0 f1 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (floor f0) 13 | (floor f1) 14 | (above f0 f1) 15 | 16 | 17 | 18 | (origin p0 f0) 19 | (destin p0 f1) 20 | 21 | 22 | 23 | 24 | 25 | 26 | (lift-at f0) 27 | ) 28 | 29 | 30 | (:goal (and 31 | (served p0) 32 | )) 33 | ) 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 7 | f0 f1 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (floor f0) 13 | (floor f1) 14 | (above f0 f1) 15 | 16 | 17 | 18 | (origin p0 f1) 19 | (destin p0 f0) 20 | 21 | 22 | 23 | 24 | 25 | 26 | (lift-at f0) 27 | ) 28 | 29 | 30 | (:goal (and 31 | (served p0) 32 | )) 33 | ) 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 7 | f0 f1 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (floor f0) 13 | (floor f1) 14 | (above f0 f1) 15 | 16 | 17 | 18 | (origin p0 f1) 19 | (destin p0 f0) 20 | 21 | 22 | 23 | 24 | 25 | 26 | (lift-at f0) 27 | ) 28 | 29 | 30 | (:goal (and 31 | (served p0) 32 | )) 33 | ) 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 7 | f0 f1 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (floor f0) 13 | (floor f1) 14 | (above f0 f1) 15 | 16 | 17 | 18 | (origin p0 f1) 19 | (destin p0 f0) 20 | 21 | 22 | 23 | 24 | 25 | 26 | (lift-at f0) 27 | ) 28 | 29 | 30 | (:goal (and 31 | (served p0) 32 | )) 33 | ) 34 | 35 | 36 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-29.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-14-0) 2 | (:domain BLOCKS) 3 | (:objects I D B L C K M H J N E F G A - block) 4 | (:INIT (CLEAR A) (CLEAR G) (CLEAR F) (ONTABLE E) (ONTABLE N) (ONTABLE F) 5 | (ON A J) (ON J H) (ON H M) (ON M K) (ON K C) (ON C L) (ON L B) (ON B E) 6 | (ON G D) (ON D I) (ON I N) (HANDEMPTY)) 7 | (:goal (AND (ON E L) (ON L F) (ON F B) (ON B J) (ON J I) (ON I N) (ON N C) 8 | (ON C K) (ON K G) (ON G D) (ON D M) (ON M A) (ON A H))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-32.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-15-1) 2 | (:domain BLOCKS) 3 | (:objects J B K A D H E N C F L M I O G ) 4 | (:INIT (CLEAR G) (CLEAR O) (ONTABLE I) (ONTABLE M) (ON G L) (ON L F) (ON F C) 5 | (ON C N) (ON N E) (ON E H) (ON H D) (ON D A) (ON A K) (ON K B) (ON B J) 6 | (ON J I) (ON O M) (HANDEMPTY)) 7 | (:goal (AND (ON D G) (ON G F) (ON F K) (ON K J) (ON J E) (ON E M) (ON M A) 8 | (ON A B) (ON B C) (ON C N) (ON N O) (ON O I) (ON I L) (ON L H))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-32.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-15-1) 2 | (:domain BLOCKS) 3 | (:objects J B K A D H E N C F L M I O G - block) 4 | (:INIT (CLEAR G) (CLEAR O) (ONTABLE I) (ONTABLE M) (ON G L) (ON L F) (ON F C) 5 | (ON C N) (ON N E) (ON E H) (ON H D) (ON D A) (ON A K) (ON K B) (ON B J) 6 | (ON J I) (ON O M) (HANDEMPTY)) 7 | (:goal (AND (ON D G) (ON G F) (ON F K) (ON K J) (ON J E) (ON E M) (ON M A) 8 | (ON A B) (ON B C) (ON C N) (ON N O) (ON O I) (ON I L) (ON L H))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-30.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-14-1) 2 | (:domain BLOCKS) 3 | (:objects K A F L D B M E J N H I C G ) 4 | (:INIT (CLEAR G) (CLEAR C) (CLEAR I) (CLEAR H) (CLEAR N) (ONTABLE J) 5 | (ONTABLE E) (ONTABLE M) (ONTABLE B) (ONTABLE N) (ON G J) (ON C E) (ON I D) 6 | (ON D L) (ON L M) (ON H F) (ON F A) (ON A K) (ON K B) (HANDEMPTY)) 7 | (:goal (AND (ON J D) (ON D B) (ON B H) (ON H M) (ON M K) (ON K F) (ON F G) 8 | (ON G A) (ON A I) (ON I E) (ON E L) (ON L N) (ON N C))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-30.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-14-1) 2 | (:domain BLOCKS) 3 | (:objects K A F L D B M E J N H I C G - block) 4 | (:INIT (CLEAR G) (CLEAR C) (CLEAR I) (CLEAR H) (CLEAR N) (ONTABLE J) 5 | (ONTABLE E) (ONTABLE M) (ONTABLE B) (ONTABLE N) (ON G J) (ON C E) (ON I D) 6 | (ON D L) (ON L M) (ON H F) (ON F A) (ON A K) (ON K B) (HANDEMPTY)) 7 | (:goal (AND (ON J D) (ON D B) (ON B H) (ON H M) (ON M K) (ON K F) (ON F G) 8 | (ON G A) (ON A I) (ON I E) (ON E L) (ON L N) (ON N C))) 9 | ) -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- 1 | site_name: Plan4Past 2 | site_url: "https://whitemech.github.io/Plan4Past/" 3 | repo_name: 'whitemech/plan4past' 4 | repo_url: "https://github.com/whitemech/Plan4Past" 5 | 6 | nav: 7 | - Home: index.md 8 | - Credits: authors.md 9 | - How to contribute: contributing.md 10 | - Change Log: changelog.md 11 | - References: references.md 12 | 13 | theme: 14 | name: material 15 | markdown_extensions: 16 | - markdown_include.include: 17 | base_path: docs 18 | - pymdownx.highlight: 19 | anchor_linenums: true 20 | - pymdownx.superfences -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-31.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-15-0) 2 | (:domain BLOCKS) 3 | (:objects A C L D J H K O N G I F B M E ) 4 | (:INIT (CLEAR E) (CLEAR M) (CLEAR B) (CLEAR F) (CLEAR I) (ONTABLE G) 5 | (ONTABLE N) (ONTABLE O) (ONTABLE K) (ONTABLE H) (ON E J) (ON J D) (ON D L) 6 | (ON L C) (ON C G) (ON M N) (ON B A) (ON A O) (ON F K) (ON I H) (HANDEMPTY)) 7 | (:goal (AND (ON G O) (ON O H) (ON H K) (ON K M) (ON M F) (ON F E) (ON E A) 8 | (ON A B) (ON B L) (ON L J) (ON J D) (ON D N) (ON N I) (ON I C))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-31.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-15-0) 2 | (:domain BLOCKS) 3 | (:objects A C L D J H K O N G I F B M E - block) 4 | (:INIT (CLEAR E) (CLEAR M) (CLEAR B) (CLEAR F) (CLEAR I) (ONTABLE G) 5 | (ONTABLE N) (ONTABLE O) (ONTABLE K) (ONTABLE H) (ON E J) (ON J D) (ON D L) 6 | (ON L C) (ON C G) (ON M N) (ON B A) (ON A O) (ON F K) (ON I H) (HANDEMPTY)) 7 | (:goal (AND (ON G O) (ON O H) (ON H K) (ON K M) (ON M F) (ON F E) (ON E A) 8 | (ON A B) (ON B L) (ON L J) (ON J D) (ON D N) (ON N I) (ON I C))) 9 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-34.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-16-2) 2 | (:domain BLOCKS) 3 | (:objects K I G N P A D M C B H F O J L E ) 4 | (:INIT (CLEAR E) (CLEAR L) (ONTABLE J) (ONTABLE O) (ON E F) (ON F H) (ON H B) 5 | (ON B C) (ON C M) (ON M D) (ON D A) (ON A P) (ON P N) (ON N G) (ON G I) 6 | (ON I K) (ON K J) (ON L O) (HANDEMPTY)) 7 | (:goal (AND (ON I D) (ON D H) (ON H F) (ON F B) (ON B K) (ON K J) (ON J G) 8 | (ON G E) (ON E C) (ON C L) (ON L M) (ON M N) (ON N A) (ON A P) 9 | (ON P O))) 10 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-34.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-16-2) 2 | (:domain BLOCKS) 3 | (:objects K I G N P A D M C B H F O J L E - block) 4 | (:INIT (CLEAR E) (CLEAR L) (ONTABLE J) (ONTABLE O) (ON E F) (ON F H) (ON H B) 5 | (ON B C) (ON C M) (ON M D) (ON D A) (ON A P) (ON P N) (ON N G) (ON G I) 6 | (ON I K) (ON K J) (ON L O) (HANDEMPTY)) 7 | (:goal (AND (ON I D) (ON D H) (ON H F) (ON F B) (ON B K) (ON K J) (ON J G) 8 | (ON G E) (ON E C) (ON C L) (ON L M) (ON M N) (ON N A) (ON A P) 9 | (ON P O))) 10 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-33.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-16-1) 2 | (:domain BLOCKS) 3 | (:objects K C D B I N P J M L G E A O H F ) 4 | (:INIT (CLEAR F) (CLEAR H) (CLEAR O) (ONTABLE A) (ONTABLE E) (ONTABLE G) 5 | (ON F L) (ON L M) (ON M J) (ON J P) (ON P N) (ON N I) (ON I B) (ON B D) 6 | (ON D C) (ON C K) (ON K A) (ON H E) (ON O G) (HANDEMPTY)) 7 | (:goal (AND (ON D B) (ON B P) (ON P F) (ON F G) (ON G K) (ON K I) (ON I L) 8 | (ON L J) (ON J H) (ON H A) (ON A N) (ON N E) (ON E M) (ON M C) 9 | (ON C O))) 10 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-33.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-16-1) 2 | (:domain BLOCKS) 3 | (:objects K C D B I N P J M L G E A O H F - block) 4 | (:INIT (CLEAR F) (CLEAR H) (CLEAR O) (ONTABLE A) (ONTABLE E) (ONTABLE G) 5 | (ON F L) (ON L M) (ON M J) (ON J P) (ON P N) (ON N I) (ON I B) (ON B D) 6 | (ON D C) (ON C K) (ON K A) (ON H E) (ON O G) (HANDEMPTY)) 7 | (:goal (AND (ON D B) (ON B P) (ON P F) (ON F G) (ON G K) (ON K I) (ON I L) 8 | (ON L J) (ON J H) (ON H A) (ON A N) (ON N E) (ON E M) (ON M C) 9 | (ON C O))) 10 | ) -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | ### Subject of the issue 11 | Describe your issue here. 12 | 13 | ### Your environment 14 | - OS: [e.g. iOS] 15 | - Python version: [e.g. 3.7.2] 16 | - Package Version [e.g. 0.1.2] 17 | - Anything else you consider helpful. 18 | 19 | ### Steps to reproduce 20 | Tell us how to reproduce this issue. 21 | 22 | ### Expected behaviour 23 | Tell us what should happen 24 | 25 | ### Actual behaviour 26 | Tell us what happens instead 27 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-35.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-17-0) 2 | (:domain BLOCKS) 3 | (:objects C D E F B I J A N O K M P H G L Q ) 4 | (:INIT (CLEAR Q) (CLEAR L) (CLEAR G) (CLEAR H) (CLEAR P) (ONTABLE M) 5 | (ONTABLE K) (ONTABLE O) (ONTABLE N) (ONTABLE P) (ON Q A) (ON A J) (ON J I) 6 | (ON I B) (ON B M) (ON L F) (ON F E) (ON E K) (ON G D) (ON D C) (ON C O) 7 | (ON H N) (HANDEMPTY)) 8 | (:goal (AND (ON Q N) (ON N L) (ON L O) (ON O J) (ON J H) (ON H C) (ON C E) 9 | (ON E M) (ON M P) (ON P A) (ON A G) (ON G B) (ON B I) (ON I K) 10 | (ON K F) (ON F D))) 11 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-35.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BLOCKS-17-0) 2 | (:domain BLOCKS) 3 | (:objects C D E F B I J A N O K M P H G L Q - block) 4 | (:INIT (CLEAR Q) (CLEAR L) (CLEAR G) (CLEAR H) (CLEAR P) (ONTABLE M) 5 | (ONTABLE K) (ONTABLE O) (ONTABLE N) (ONTABLE P) (ON Q A) (ON A J) (ON J I) 6 | (ON I B) (ON B M) (ON L F) (ON F E) (ON E K) (ON G D) (ON D C) (ON C O) 7 | (ON H N) (HANDEMPTY)) 8 | (:goal (AND (ON Q N) (ON N L) (ON L O) (ON O J) (ON J H) (ON H C) (ON C E) 9 | (ON E M) (ON M P) (ON P A) (ON A G) (ON G B) (ON B I) (ON I K) 10 | (ON K F) (ON F D))) 11 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u20-v5-g5-a60-n10-A20-B80-N50-F5-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f2) 24 | 25 | (origin p1 f1) 26 | (destin p1 f3) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (forall (?p - passenger) (served ?p))) 38 | ) 39 | 40 | 41 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u20-v5-g5-a60-n10-A20-B80-N50-F5-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f0) 23 | (destin p0 f1) 24 | 25 | (origin p1 f3) 26 | (destin p1 f0) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (forall (?p - passenger) (served ?p))) 38 | ) 39 | 40 | 41 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u20-v5-g5-a60-n10-A20-B80-N50-F5-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f0) 24 | 25 | (origin p1 f0) 26 | (destin p1 f2) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (forall (?p - passenger) (served ?p))) 38 | ) 39 | 40 | 41 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u20-v5-g5-a60-n10-A20-B80-N50-F5-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f1) 23 | (destin p0 f3) 24 | 25 | (origin p1 f2) 26 | (destin p1 f3) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (forall (?p - passenger) (served ?p))) 38 | ) 39 | 40 | 41 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u20-v5-g5-a60-n10-A20-B80-N50-F5-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f2) 24 | 25 | (origin p1 f2) 26 | (destin p1 f0) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (forall (?p - passenger) (served ?p))) 38 | ) 39 | 40 | 41 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f2) 24 | 25 | (origin p1 f1) 26 | (destin p1 f3) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f0) 23 | (destin p0 f1) 24 | 25 | (origin p1 f3) 26 | (destin p1 f0) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f0) 24 | 25 | (origin p1 f0) 26 | (destin p1 f2) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f1) 23 | (destin p0 f3) 24 | 25 | (origin p1 f2) 26 | (destin p1 f3) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f2) 24 | 25 | (origin p1 f2) 26 | (destin p1 f0) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f2) 24 | 25 | (origin p1 f2) 26 | (destin p1 f0) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f2) 24 | 25 | (origin p1 f1) 26 | (destin p1 f3) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f0) 23 | (destin p0 f1) 24 | 25 | (origin p1 f3) 26 | (destin p1 f0) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f3) 23 | (destin p0 f0) 24 | 25 | (origin p1 f0) 26 | (destin p1 f2) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 - passenger 7 | f0 f1 f2 f3 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | 15 | (above f1 f2) 16 | (above f1 f3) 17 | 18 | (above f2 f3) 19 | 20 | 21 | 22 | (origin p0 f1) 23 | (destin p0 f3) 24 | 25 | (origin p1 f2) 26 | (destin p1 f3) 27 | 28 | 29 | 30 | 31 | 32 | 33 | (lift-at f0) 34 | ) 35 | 36 | 37 | (:goal (and 38 | (served p0) 39 | (served p1) 40 | )) 41 | ) 42 | 43 | 44 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-4-0) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt1 apt2 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj11 apt1) (at obj23 pos1) (at obj13 apt1) (at obj21 pos1))) 17 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-4-2) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package ) 10 | 11 | (:init (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj21 apt1) (at obj11 pos2) (at obj23 pos2) (at obj12 pos1))) 17 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-4-1) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj12 apt2) (at obj13 apt1) (at obj21 apt2) (at obj11 pos2))) 17 | ) -------------------------------------------------------------------------------- /tests/test_adl_compiler/pddl/robot-coffee/coffee3next.pddl: -------------------------------------------------------------------------------- 1 | (define (problem coffee1) 2 | (:domain robot_coffee) 3 | (:objects o1 o2 o3 lab - office 4 | c - kitchen) 5 | (:init (robotat lab) 6 | (connected lab o1) 7 | (connected o1 lab) 8 | (connected o1 o2) 9 | (connected o2 o1) 10 | (connected o1 o3) 11 | (connected o3 o1) 12 | (connected o3 o2) 13 | (connected o2 o3) 14 | (connected c o3) 15 | (connected o3 c)) 16 | ; (:goal (next (next (next (robotat c)))) 17 | 18 | 19 | ; ) 20 | 21 | (:goal (and (robotat c))) 22 | 23 | 24 | ) 25 | -------------------------------------------------------------------------------- /.github/workflows/docs.yml: -------------------------------------------------------------------------------- 1 | name: docs 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | jobs: 10 | run: 11 | continue-on-error: True 12 | runs-on: ${{ matrix.os }} 13 | 14 | strategy: 15 | matrix: 16 | os: [ubuntu-latest] 17 | python-version: ["3.10"] 18 | 19 | timeout-minutes: 30 20 | 21 | steps: 22 | - uses: actions/checkout@main 23 | - uses: actions/setup-python@main 24 | with: 25 | python-version: ${{ matrix.python-version }} 26 | - name: Install dependencies 27 | run: | 28 | pip install tox 29 | - name: Generate Documentation 30 | run: tox -e docs 31 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-5-0) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | (:goal (and (at obj23 apt2) (at obj22 apt1) (at obj13 apt2) (at obj12 pos2) 16 | (at obj11 pos2))) 17 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-5-1) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj23 pos1) (at obj11 pos1) (at obj22 apt2) (at obj21 apt2) 17 | (at obj12 apt1)))) 18 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-5-2) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj21 apt2) (at obj12 apt1) (at obj13 pos1) (at obj22 pos2) 17 | (at obj23 apt2))) 18 | ) 19 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-3) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj12 pos1) (at obj23 pos1) (at obj11 apt1) (at obj22 apt1) 17 | (at obj13 pos2) (at obj21 pos2))) 18 | ) 19 | 20 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-0) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj12 apt2) (at obj23 apt1) (at obj21 apt2) (at obj22 pos2) 17 | (at obj13 pos2) (at obj11 apt2))) 18 | ) 19 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-1) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj11 pos1) (at obj22 apt2) (at obj23 pos2) (at obj12 apt1) 17 | (at obj13 pos2) (at obj21 pos2))) 18 | ) 19 | 20 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-2) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt2 apt1 - airport 6 | pos2 pos1 - location 7 | cit2 cit1 - city 8 | tru2 tru1 - truck 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 14 | (in-city apt2 cit2)) 15 | 16 | (:goal (and (at obj23 apt1) (at obj21 pos2) (at obj12 apt2) (at obj13 apt1) 17 | (at obj22 apt1) (at obj11 pos2))) 18 | ) 19 | -------------------------------------------------------------------------------- /tests/test_adl_compiler/pddl/blocksworld_fond/problem.pddl: -------------------------------------------------------------------------------- 1 | (define (problem sussman-anomaly) ; graphplan 3 steps 2 | (:domain blocks-world-domain) 3 | (:objects A B C D E F) 4 | (:init (block A) (block B) (block C) (block Table) (block D) (block E) (block F) 5 | (on C A) (on A Table) (on B Table) (on D C) (on E Table) (on F Table) 6 | (clear D) (clear B) (clear Table) (clear E) (clear F)) 7 | ; (:goal (until (eventually(on D Table)) 8 | ; (and(eventually(on A Table)) 9 | ; (eventually(on B Table)) 10 | ; (eventually(on C Table)) 11 | ; (eventually(on E Table)) 12 | ; (eventually(on F Table)) 13 | ; ) 14 | ; ) 15 | ; ) 16 | (:goal (and )) 17 | ) 18 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 7 | f0 f1 f2 f3) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (floor f0) 14 | (floor f1) 15 | (floor f2) 16 | (floor f3) 17 | 18 | (above f0 f1) 19 | (above f0 f2) 20 | (above f0 f3) 21 | 22 | (above f1 f2) 23 | (above f1 f3) 24 | 25 | (above f2 f3) 26 | 27 | 28 | 29 | (origin p0 f0) 30 | (destin p0 f1) 31 | 32 | (origin p1 f3) 33 | (destin p1 f0) 34 | 35 | 36 | 37 | 38 | 39 | 40 | (lift-at f0) 41 | ) 42 | 43 | 44 | (:goal (and 45 | (served p0) 46 | (served p1) 47 | )) 48 | ) 49 | 50 | 51 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 7 | f0 f1 f2 f3) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (floor f0) 14 | (floor f1) 15 | (floor f2) 16 | (floor f3) 17 | 18 | (above f0 f1) 19 | (above f0 f2) 20 | (above f0 f3) 21 | 22 | (above f1 f2) 23 | (above f1 f3) 24 | 25 | (above f2 f3) 26 | 27 | 28 | 29 | (origin p0 f1) 30 | (destin p0 f3) 31 | 32 | (origin p1 f2) 33 | (destin p1 f3) 34 | 35 | 36 | 37 | 38 | 39 | 40 | (lift-at f0) 41 | ) 42 | 43 | 44 | (:goal (and 45 | (served p0) 46 | (served p1) 47 | )) 48 | ) 49 | 50 | 51 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 7 | f0 f1 f2 f3 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (floor f0) 14 | (floor f1) 15 | (floor f2) 16 | (floor f3) 17 | 18 | (above f0 f1) 19 | (above f0 f2) 20 | (above f0 f3) 21 | 22 | (above f1 f2) 23 | (above f1 f3) 24 | 25 | (above f2 f3) 26 | 27 | 28 | 29 | (origin p0 f3) 30 | (destin p0 f2) 31 | 32 | (origin p1 f2) 33 | (destin p1 f0) 34 | 35 | 36 | 37 | 38 | 39 | 40 | (lift-at f0) 41 | ) 42 | 43 | 44 | (:goal (and 45 | (served p0) 46 | (served p1) 47 | )) 48 | ) 49 | 50 | 51 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 7 | f0 f1 f2 f3) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (floor f0) 14 | (floor f1) 15 | (floor f2) 16 | (floor f3) 17 | 18 | (above f0 f1) 19 | (above f0 f2) 20 | (above f0 f3) 21 | 22 | (above f1 f2) 23 | (above f1 f3) 24 | 25 | (above f2 f3) 26 | 27 | 28 | 29 | (origin p0 f3) 30 | (destin p0 f2) 31 | 32 | (origin p1 f1) 33 | (destin p1 f3) 34 | 35 | 36 | 37 | 38 | 39 | 40 | (lift-at f0) 41 | ) 42 | 43 | 44 | (:goal (and 45 | (served p0) 46 | (served p1) 47 | )) 48 | ) 49 | 50 | 51 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f4-p2-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 7 | f0 f1 f2 f3 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (floor f0) 14 | (floor f1) 15 | (floor f2) 16 | (floor f3) 17 | 18 | (above f0 f1) 19 | (above f0 f2) 20 | (above f0 f3) 21 | 22 | (above f1 f2) 23 | (above f1 f3) 24 | 25 | (above f2 f3) 26 | 27 | 28 | 29 | (origin p0 f3) 30 | (destin p0 f0) 31 | 32 | (origin p1 f0) 33 | (destin p1 f2) 34 | 35 | 36 | 37 | 38 | 39 | 40 | (lift-at f0) 41 | ) 42 | 43 | 44 | (:goal (and 45 | (served p0) 46 | (served p1) 47 | )) 48 | ) 49 | 50 | 51 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | fail_fast: true 2 | 3 | repos: 4 | - repo: https://github.com/ambv/black 5 | rev: 23.3.0 6 | hooks: 7 | - id: black 8 | args: [--exclude=scripts/whitelist.py] 9 | 10 | - repo: https://github.com/PyCQA/flake8 11 | rev: 6.0.0 12 | hooks: 13 | - id: flake8 14 | 15 | - repo: https://github.com/pre-commit/mirrors-mypy 16 | rev: v1.3.0 17 | hooks: 18 | - id: mypy 19 | exclude: scripts/whitelist.py 20 | 21 | - repo: https://github.com/pycqa/isort 22 | rev: 5.12.0 23 | hooks: 24 | - id: isort 25 | args: ["--profile", "black"] 26 | 27 | - repo: https://github.com/pre-commit/mirrors-pylint 28 | rev: v3.0.0a5 29 | hooks: 30 | - id: pylint 31 | args: [--disable=all, --enable=unused-import] -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-4-0) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj11 apt1) (at obj23 pos1) (at obj13 apt1) (at obj21 pos1))) 12 | ) 13 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-4-1) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj12 apt2) (at obj13 apt1) (at obj21 apt2) (at obj11 pos2))) 12 | ) 13 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-4-2) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj21 apt1) (at obj11 pos2) (at obj23 pos2) (at obj12 pos1))) 12 | ) 13 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-5-0) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj23 apt2) (at obj22 apt1) (at obj13 apt2) (at obj12 pos2) 12 | (at obj11 pos2))) 13 | ) 14 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-5-1) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj23 pos1) (at obj11 pos1) (at obj22 apt2) (at obj21 apt2) 12 | (at obj12 apt1))) 13 | ) 14 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-5-2) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj21 apt2) (at obj12 apt1) (at obj13 pos1) (at obj22 pos2) 12 | (at obj23 apt2))) 13 | ) 14 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u20-v5-g5-a60-n10-A20-B80-N50-F5-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f1) 34 | (destin p0 f4) 35 | 36 | (origin p1 f3) 37 | (destin p1 f1) 38 | 39 | (origin p2 f5) 40 | (destin p2 f1) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (forall (?p - passenger) (served ?p))) 52 | ) 53 | 54 | 55 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u20-v5-g5-a60-n10-A20-B80-N50-F5-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f2) 34 | (destin p0 f5) 35 | 36 | (origin p1 f5) 37 | (destin p1 f2) 38 | 39 | (origin p2 f4) 40 | (destin p2 f1) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (forall (?p - passenger) (served ?p))) 52 | ) 53 | 54 | 55 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u20-v5-g5-a60-n10-A20-B80-N50-F5-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f1) 34 | (destin p0 f0) 35 | 36 | (origin p1 f4) 37 | (destin p1 f0) 38 | 39 | (origin p2 f3) 40 | (destin p2 f0) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (forall (?p - passenger) (served ?p))) 52 | ) 53 | 54 | 55 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u20-v5-g5-a60-n10-A20-B80-N50-F5-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f5) 34 | (destin p0 f0) 35 | 36 | (origin p1 f1) 37 | (destin p1 f3) 38 | 39 | (origin p2 f0) 40 | (destin p2 f5) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (forall (?p - passenger) (served ?p))) 52 | ) 53 | 54 | 55 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u20-v5-g5-a60-n10-A20-B80-N50-F5-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f3) 34 | (destin p0 f0) 35 | 36 | (origin p1 f2) 37 | (destin p1 f0) 38 | 39 | (origin p2 f0) 40 | (destin p2 f4) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (forall (?p - passenger) (served ?p))) 52 | ) 53 | 54 | 55 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | (Define (problem logistics-7-1) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt3 apt2 apt1 - airport 6 | pos3 pos2 pos1 - location 7 | cit3 cit2 cit1 - city 8 | tru3 tru2 tru1 - truck 9 | obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init 12 | (at apn1 apt3) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 13 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 14 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 15 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 16 | (in-city apt3 cit3)) 17 | 18 | (:goal (and (at obj33 apt1) (at obj23 apt1) (at obj11 pos3) (at obj32 pos1) 19 | (at obj13 pos2) (at obj21 apt3) (at obj12 apt3))) 20 | ) 21 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-9) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj12 pos1) (at obj23 pos1) (at obj11 apt1) (at obj22 apt1) 12 | (at obj13 pos2) (at obj21 pos2))) 13 | ) 14 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-7.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-0) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj12 apt2) (at obj23 apt1) (at obj21 apt2) (at obj22 pos2) 12 | (at obj13 pos2) (at obj11 apt2))) 13 | ) 14 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-1) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj11 pos1) (at obj22 apt2) (at obj23 pos2) (at obj12 apt1) 12 | (at obj13 pos2) (at obj21 pos2))) 13 | ) 14 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-6-2) 2 | (:domain logistics) 3 | (:objects apn1 apt2 pos2 apt1 pos1 cit2 cit1 tru2 tru1 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (truck tru1) (truck tru2) (city cit1) (city cit2) 6 | (location pos1) (location apt1) (location pos2) (location apt2) (airport apt1) 7 | (airport apt2) (airplane apn1) (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) 8 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 9 | (at obj23 pos2) (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) 10 | (in-city apt2 cit2)) 11 | (:goal (and (at obj23 apt1) (at obj21 pos2) (at obj12 apt2) (at obj13 apt1) 12 | (at obj22 apt1) (at obj11 pos2))) 13 | ) 14 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-7-0) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt3 apt2 apt1 - airport 6 | pos3 pos2 pos1 - location 7 | cit3 cit2 cit1 - city 8 | tru3 tru2 tru1 - truck 9 | obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init 12 | (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 13 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 14 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 15 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 16 | (in-city apt3 cit3)) 17 | 18 | (:goal (and (at obj22 pos2) (at obj33 apt1) (at obj12 pos2) (at obj13 apt3) 19 | (at obj31 apt2) (at obj23 apt1) (at obj32 pos1))) 20 | ) 21 | 22 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-8-1) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt3 apt2 apt1 - airport 6 | pos3 pos2 pos1 - location 7 | cit3 cit2 cit1 - city 8 | tru3 tru2 tru1 - truck 9 | obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init 12 | (at apn1 apt3) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 13 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 14 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 15 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 16 | (in-city apt3 cit3)) 17 | 18 | (:goal (and (at obj22 pos3) (at obj13 pos2) (at obj32 apt2) (at obj33 apt3) 19 | (at obj23 apt2) (at obj31 apt1) (at obj21 pos3) (at obj12 pos3))) 20 | ) 21 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f1) 34 | (destin p0 f4) 35 | 36 | (origin p1 f3) 37 | (destin p1 f1) 38 | 39 | (origin p2 f5) 40 | (destin p2 f1) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f2) 34 | (destin p0 f5) 35 | 36 | (origin p1 f5) 37 | (destin p1 f2) 38 | 39 | (origin p2 f4) 40 | (destin p2 f1) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f1) 34 | (destin p0 f0) 35 | 36 | (origin p1 f4) 37 | (destin p1 f0) 38 | 39 | (origin p2 f3) 40 | (destin p2 f0) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f5) 34 | (destin p0 f0) 35 | 36 | (origin p1 f1) 37 | (destin p1 f3) 38 | 39 | (origin p2 f0) 40 | (destin p2 f5) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f3) 34 | (destin p0 f0) 35 | 36 | (origin p1 f2) 37 | (destin p1 f0) 38 | 39 | (origin p2 f0) 40 | (destin p2 f4) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f1) 34 | (destin p0 f4) 35 | 36 | (origin p1 f3) 37 | (destin p1 f1) 38 | 39 | (origin p2 f5) 40 | (destin p2 f1) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f2) 34 | (destin p0 f5) 35 | 36 | (origin p1 f5) 37 | (destin p1 f2) 38 | 39 | (origin p2 f4) 40 | (destin p2 f1) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f1) 34 | (destin p0 f0) 35 | 36 | (origin p1 f4) 37 | (destin p1 f0) 38 | 39 | (origin p2 f3) 40 | (destin p2 f0) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f5) 34 | (destin p0 f0) 35 | 36 | (origin p1 f1) 37 | (destin p1 f3) 38 | 39 | (origin p2 f0) 40 | (destin p2 f5) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 - passenger 7 | f0 f1 f2 f3 f4 f5 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | 17 | (above f1 f2) 18 | (above f1 f3) 19 | (above f1 f4) 20 | (above f1 f5) 21 | 22 | (above f2 f3) 23 | (above f2 f4) 24 | (above f2 f5) 25 | 26 | (above f3 f4) 27 | (above f3 f5) 28 | 29 | (above f4 f5) 30 | 31 | 32 | 33 | (origin p0 f3) 34 | (destin p0 f0) 35 | 36 | (origin p1 f2) 37 | (destin p1 f0) 38 | 39 | (origin p2 f0) 40 | (destin p2 f4) 41 | 42 | 43 | 44 | 45 | 46 | 47 | (lift-at f0) 48 | ) 49 | 50 | 51 | (:goal (and 52 | (served p0) 53 | (served p1) 54 | (served p2) 55 | )) 56 | ) 57 | 58 | 59 | -------------------------------------------------------------------------------- /plan4past/utils/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """Utils modules.""" 24 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-8-0) 2 | 3 | (:domain logistics) 4 | (:objects 5 | apn1 - airplane 6 | apt3 apt2 apt1 - airport 7 | pos3 pos2 pos1 - location 8 | cit3 cit2 cit1 - city 9 | tru3 tru2 tru1 - truck 10 | obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 11 | 12 | (:init 13 | (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 14 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 15 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 16 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 17 | (in-city apt3 cit3)) 18 | 19 | (:goal (and (at obj11 pos3) (at obj21 pos2) (at obj31 apt3) (at obj22 pos3) 20 | (at obj12 pos1) (at obj23 apt2) (at obj13 apt2) (at obj32 apt1))) 21 | ) 22 | 23 | -------------------------------------------------------------------------------- /plan4past/helpers/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """Helper modules.""" 24 | -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """Test for the plan4past project.""" 24 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-9-0) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt3 apt2 apt1 - airport 6 | pos3 pos2 pos1 - location 7 | cit3 cit2 cit1 - city 8 | tru3 tru2 tru1 - truck 9 | obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init 12 | (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 13 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 14 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 15 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 16 | (in-city apt3 cit3)) 17 | 18 | (:goal (and (at obj23 pos3) (at obj32 pos1) (at obj22 pos1) (at obj31 apt3) 19 | (at obj11 pos1) (at obj33 pos3) (at obj13 apt3) (at obj12 pos1) 20 | (at obj21 apt1))) 21 | ) 22 | 23 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-16.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-9-1) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt3 apt2 apt1 - airport 6 | pos3 pos2 pos1 - location 7 | cit3 cit2 cit1 - city 8 | tru3 tru2 tru1 - truck 9 | obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init 12 | (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 13 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 14 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 15 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 16 | (in-city apt3 cit3)) 17 | 18 | (:goal (and (at obj11 apt2) (at obj31 pos3) (at obj13 pos3) (at obj23 apt3) 19 | (at obj33 apt3) (at obj22 pos2) (at obj32 apt3) (at obj21 pos2) 20 | (at obj12 pos3))) 21 | ) 22 | 23 | -------------------------------------------------------------------------------- /tests/helpers/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """This package contains helper functions for tests.""" 24 | -------------------------------------------------------------------------------- /tests/test_adl_compiler/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | """This package contains the tests for the ADL compiler.""" 23 | -------------------------------------------------------------------------------- /tests/test_compiler/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """This package contain tests for the compiler module.""" 24 | -------------------------------------------------------------------------------- /tests/test_main.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """Main tests.""" 24 | 25 | 26 | def test_example(): 27 | """Test example.""" 28 | -------------------------------------------------------------------------------- /tests/test_utils/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """This test package contains tests for the plan4past.utils subpackage.""" 24 | -------------------------------------------------------------------------------- /tests/helpers/planutils/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """This package contains helper functions for using planutils tools.""" 24 | -------------------------------------------------------------------------------- /tests/test_helpers/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """This test package contains tests for the plan4past.helpers subpackage.""" 24 | -------------------------------------------------------------------------------- /tests/test_adl_compiler/pddl/blocksworld_fond/domain-fond.pddl: -------------------------------------------------------------------------------- 1 | (define (domain blocks-world-domain) 2 | (:requirements :strips :equality :conditional-effects :non-deterministic) 3 | 4 | (:constants Table) 5 | 6 | (:predicates (on ?x ?y) 7 | (clear ?x) 8 | (block ?b) 9 | ) 10 | 11 | ;; Define step for placing one block on another. 12 | (:action puton 13 | :parameters (?X ?Y ?Z) 14 | :precondition (and (on ?X ?Z) (clear ?X) (clear ?Y) 15 | (not (= ?Y ?Z)) (not (= ?X ?Z)) 16 | (not (= ?X ?Y)) (not (= ?X Table))) 17 | :effect 18 | (oneof 19 | (and (on ?X ?Y) (not (on ?X ?Z)) 20 | (when (not (= ?Z Table)) (clear ?Z)) 21 | (when (not (= ?Y Table)) (not (clear ?Y))) 22 | ) 23 | (and (on ?X Table) 24 | (when (not (= ?Z Table)) (not (on ?X ?Z))) 25 | (when (not (= ?Z Table)) (clear ?Z)) 26 | ; (when (not (= ?Y Table)) (not (clear ?Y))) 27 | ) 28 | ) 29 | ) 30 | ) 31 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 7 | f0 f1 f2 f3 f4 f5 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (passenger p2) 14 | (floor f0) 15 | (floor f1) 16 | (floor f2) 17 | (floor f3) 18 | (floor f4) 19 | (floor f5) 20 | 21 | (above f0 f1) 22 | (above f0 f2) 23 | (above f0 f3) 24 | (above f0 f4) 25 | (above f0 f5) 26 | 27 | (above f1 f2) 28 | (above f1 f3) 29 | (above f1 f4) 30 | (above f1 f5) 31 | 32 | (above f2 f3) 33 | (above f2 f4) 34 | (above f2 f5) 35 | 36 | (above f3 f4) 37 | (above f3 f5) 38 | 39 | (above f4 f5) 40 | 41 | 42 | 43 | (origin p0 f1) 44 | (destin p0 f4) 45 | 46 | (origin p1 f3) 47 | (destin p1 f1) 48 | 49 | (origin p2 f5) 50 | (destin p2 f1) 51 | 52 | 53 | 54 | 55 | 56 | 57 | (lift-at f0) 58 | ) 59 | 60 | 61 | (:goal (and 62 | (served p0) 63 | (served p1) 64 | (served p2) 65 | )) 66 | ) 67 | 68 | 69 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 7 | f0 f1 f2 f3 f4 f5 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (passenger p2) 14 | (floor f0) 15 | (floor f1) 16 | (floor f2) 17 | (floor f3) 18 | (floor f4) 19 | (floor f5) 20 | 21 | (above f0 f1) 22 | (above f0 f2) 23 | (above f0 f3) 24 | (above f0 f4) 25 | (above f0 f5) 26 | 27 | (above f1 f2) 28 | (above f1 f3) 29 | (above f1 f4) 30 | (above f1 f5) 31 | 32 | (above f2 f3) 33 | (above f2 f4) 34 | (above f2 f5) 35 | 36 | (above f3 f4) 37 | (above f3 f5) 38 | 39 | (above f4 f5) 40 | 41 | 42 | 43 | (origin p0 f2) 44 | (destin p0 f5) 45 | 46 | (origin p1 f5) 47 | (destin p1 f2) 48 | 49 | (origin p2 f4) 50 | (destin p2 f1) 51 | 52 | 53 | 54 | 55 | 56 | 57 | (lift-at f0) 58 | ) 59 | 60 | 61 | (:goal (and 62 | (served p0) 63 | (served p1) 64 | (served p2) 65 | )) 66 | ) 67 | 68 | 69 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 7 | f0 f1 f2 f3 f4 f5 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (passenger p2) 14 | (floor f0) 15 | (floor f1) 16 | (floor f2) 17 | (floor f3) 18 | (floor f4) 19 | (floor f5) 20 | 21 | (above f0 f1) 22 | (above f0 f2) 23 | (above f0 f3) 24 | (above f0 f4) 25 | (above f0 f5) 26 | 27 | (above f1 f2) 28 | (above f1 f3) 29 | (above f1 f4) 30 | (above f1 f5) 31 | 32 | (above f2 f3) 33 | (above f2 f4) 34 | (above f2 f5) 35 | 36 | (above f3 f4) 37 | (above f3 f5) 38 | 39 | (above f4 f5) 40 | 41 | 42 | 43 | (origin p0 f1) 44 | (destin p0 f0) 45 | 46 | (origin p1 f4) 47 | (destin p1 f0) 48 | 49 | (origin p2 f3) 50 | (destin p2 f0) 51 | 52 | 53 | 54 | 55 | 56 | 57 | (lift-at f0) 58 | ) 59 | 60 | 61 | (:goal (and 62 | (served p0) 63 | (served p1) 64 | (served p2) 65 | )) 66 | ) 67 | 68 | 69 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 7 | f0 f1 f2 f3 f4 f5 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (passenger p2) 14 | (floor f0) 15 | (floor f1) 16 | (floor f2) 17 | (floor f3) 18 | (floor f4) 19 | (floor f5) 20 | 21 | (above f0 f1) 22 | (above f0 f2) 23 | (above f0 f3) 24 | (above f0 f4) 25 | (above f0 f5) 26 | 27 | (above f1 f2) 28 | (above f1 f3) 29 | (above f1 f4) 30 | (above f1 f5) 31 | 32 | (above f2 f3) 33 | (above f2 f4) 34 | (above f2 f5) 35 | 36 | (above f3 f4) 37 | (above f3 f5) 38 | 39 | (above f4 f5) 40 | 41 | 42 | 43 | (origin p0 f5) 44 | (destin p0 f0) 45 | 46 | (origin p1 f1) 47 | (destin p1 f3) 48 | 49 | (origin p2 f0) 50 | (destin p2 f5) 51 | 52 | 53 | 54 | 55 | 56 | 57 | (lift-at f0) 58 | ) 59 | 60 | 61 | (:goal (and 62 | (served p0) 63 | (served p1) 64 | (served p2) 65 | )) 66 | ) 67 | 68 | 69 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-untyped/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f6-p3-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 7 | f0 f1 f2 f3 f4 f5 ) 8 | 9 | 10 | (:init 11 | (passenger p0) 12 | (passenger p1) 13 | (passenger p2) 14 | (floor f0) 15 | (floor f1) 16 | (floor f2) 17 | (floor f3) 18 | (floor f4) 19 | (floor f5) 20 | 21 | (above f0 f1) 22 | (above f0 f2) 23 | (above f0 f3) 24 | (above f0 f4) 25 | (above f0 f5) 26 | 27 | (above f1 f2) 28 | (above f1 f3) 29 | (above f1 f4) 30 | (above f1 f5) 31 | 32 | (above f2 f3) 33 | (above f2 f4) 34 | (above f2 f5) 35 | 36 | (above f3 f4) 37 | (above f3 f5) 38 | 39 | (above f4 f5) 40 | 41 | 42 | 43 | (origin p0 f3) 44 | (destin p0 f0) 45 | 46 | (origin p1 f2) 47 | (destin p1 f0) 48 | 49 | (origin p2 f0) 50 | (destin p2 f4) 51 | 52 | 53 | 54 | 55 | 56 | 57 | (lift-at f0) 58 | ) 59 | 60 | 61 | (:goal (and 62 | (served p0) 63 | (served p1) 64 | (served p2) 65 | )) 66 | ) 67 | 68 | 69 | -------------------------------------------------------------------------------- /tests/test_adl_compiler/pddl/robot-coffee/domain-fond.pddl: -------------------------------------------------------------------------------- 1 | (define (domain robot_coffee) 2 | (:requirements :strips :non-deterministic) 3 | 4 | (:types office - room 5 | kitchen - room) 6 | (:predicates (robotat ?x - room) 7 | (coffeeat ?x - room) 8 | (connected ?x - room ?y - room) 9 | (has_coffee) 10 | ) 11 | 12 | (:action move_to 13 | :parameters 14 | (?x - room 15 | ?y - room) 16 | :precondition 17 | (and 18 | (robotat ?x) (connected ?x ?y)) 19 | :effect 20 | (and 21 | (robotat ?y) (not (robotat ?x))) 22 | ) 23 | 24 | (:action prepare_coffee 25 | :parameters 26 | (?x - kitchen) 27 | :precondition 28 | (and 29 | (robotat ?x) (not (has_coffee))) 30 | :effect 31 | (has_coffee) 32 | ) 33 | 34 | (:action put_coffee 35 | :parameters 36 | (?x - office) 37 | :precondition 38 | (and 39 | (robotat ?x) (has_coffee)) 40 | :effect 41 | (and (not (has_coffee)) 42 | (oneof 43 | (and (coffeeat ?x)) 44 | (and) 45 | )) 46 | ) 47 | 48 | 49 | ) 50 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-36.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-17-1) 2 | (:domain blocks) 3 | (:objects 4 | Q 5 | P 6 | O 7 | N 8 | M 9 | L 10 | K 11 | J 12 | I 13 | H 14 | G 15 | F 16 | E 17 | D 18 | C 19 | A 20 | B 21 | ) 22 | (:init 23 | (CLEAR K) 24 | (CLEAR L) 25 | (CLEAR N) 26 | (ONTABLE O) 27 | (ONTABLE A) 28 | (ONTABLE F) 29 | (ON K C) 30 | (ON C M) 31 | (ON M I) 32 | (ON I E) 33 | (ON E G) 34 | (ON G Q) 35 | (ON Q B) 36 | (ON B P) 37 | (ON P H) 38 | (ON H J) 39 | (ON J O) 40 | (ON L D) 41 | (ON D A) 42 | (ON N F) 43 | (HANDEMPTY) 44 | ) 45 | (:goal (and 46 | (ON P Q) 47 | (ON Q L) 48 | (ON L N) 49 | (ON N C) 50 | (ON C I) 51 | (ON I K) 52 | (ON K F) 53 | (ON F J) 54 | (ON J B) 55 | (ON B G) 56 | (ON G A) 57 | (ON A H) 58 | (ON H E) 59 | (ON E O) 60 | (ON O M) 61 | (ON M D) 62 | ) 63 | ) 64 | ) 65 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-36.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-17-1) 2 | (:domain blocks) 3 | (:objects 4 | Q 5 | P 6 | O 7 | N 8 | M 9 | L 10 | K 11 | J 12 | I 13 | H 14 | G 15 | F 16 | E 17 | D 18 | C 19 | A 20 | B 21 | - block) 22 | (:init 23 | (CLEAR K) 24 | (CLEAR L) 25 | (CLEAR N) 26 | (ONTABLE O) 27 | (ONTABLE A) 28 | (ONTABLE F) 29 | (ON K C) 30 | (ON C M) 31 | (ON M I) 32 | (ON I E) 33 | (ON E G) 34 | (ON G Q) 35 | (ON Q B) 36 | (ON B P) 37 | (ON P H) 38 | (ON H J) 39 | (ON J O) 40 | (ON L D) 41 | (ON D A) 42 | (ON N F) 43 | (HANDEMPTY) 44 | ) 45 | (:goal (and 46 | (ON P Q) 47 | (ON Q L) 48 | (ON L N) 49 | (ON N C) 50 | (ON C I) 51 | (ON I K) 52 | (ON K F) 53 | (ON F J) 54 | (ON J B) 55 | (ON B G) 56 | (ON G A) 57 | (ON A H) 58 | (ON H E) 59 | (ON E O) 60 | (ON O M) 61 | (ON M D) 62 | ) 63 | ) 64 | ) 65 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-17.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-10-0) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt1 apt4 apt3 apt2 - airport 6 | pos4 pos3 pos2 pos1 - location 7 | cit4 cit3 cit2 cit1 - city 8 | tru4 tru3 tru2 tru1 - truck 9 | obj43 obj42 obj41 obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt1) (at tru1 pos1) 12 | (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) 13 | (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) 14 | (at obj33 pos3) (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) 15 | (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) 16 | (in-city pos3 cit3) (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4)) 17 | 18 | (:goal (and (at obj31 pos3) (at obj33 apt3) (at obj41 apt3) (at obj23 pos4) 19 | (at obj11 pos3) (at obj22 apt2) (at obj12 apt1) (at obj21 pos4) 20 | (at obj42 pos4) (at obj32 pos1))) 21 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-18.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-10-1) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt4 apt3 apt2 apt1 - airport 6 | pos4 pos3 pos2 pos1 - location 7 | cit4 cit3 cit2 cit1 - city 8 | tru4 tru3 tru2 tru1 - truck 9 | obj43 obj42 obj41 obj33 obj32 obj31 obj23 10 | obj22 obj21 obj13 obj12 obj11 - package) 11 | 12 | (:init (at apn1 apt2) (at tru1 pos1) 13 | (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) 14 | (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) 15 | (at obj33 pos3) (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) 16 | (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) 17 | (in-city pos3 cit3) (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4)) 18 | 19 | (:goal (and (at obj43 apt4) (at obj32 pos3) (at obj42 apt3) (at obj12 pos1) 20 | (at obj41 apt3) (at obj23 pos3) (at obj13 apt4) (at obj22 pos4) 21 | (at obj31 apt3) (at obj33 apt1))) 22 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-19.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-11-0) 2 | (:domain logistics) 3 | 4 | (:objects 5 | apn1 - airplane 6 | apt4 apt3 apt2 apt1 - airport 7 | pos4 pos3 pos2 pos1 - location 8 | cit4 cit3 cit2 cit1 - city 9 | tru4 tru3 tru2 tru1 - truck 10 | obj43 obj42 obj41 obj33 obj32 obj31 11 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 12 | 13 | (:init (at tru1 pos1) 14 | (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) 15 | (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) 16 | (at obj33 pos3) (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) 17 | (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) 18 | (in-city pos3 cit3) (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4)) 19 | 20 | (:goal (and (at obj33 apt1) (at obj22 apt2) (at obj43 pos4) (at obj11 pos1) 21 | (at obj23 pos1) (at obj31 pos1) (at obj12 apt2) (at obj13 pos4) 22 | (at obj42 apt2) (at obj21 pos4) (at obj41 pos4))) 23 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-37.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-18-0) 2 | (:domain blocks) 3 | (:objects 4 | R 5 | Q 6 | P 7 | O 8 | N 9 | M 10 | L 11 | K 12 | J 13 | I 14 | H 15 | G 16 | F 17 | E 18 | D 19 | C 20 | A 21 | B 22 | ) 23 | (:init 24 | (CLEAR K) 25 | (CLEAR B) 26 | (CLEAR Q) 27 | (ONTABLE G) 28 | (ONTABLE R) 29 | (ONTABLE H) 30 | (ON K O) 31 | (ON O G) 32 | (ON B L) 33 | (ON L M) 34 | (ON M F) 35 | (ON F J) 36 | (ON J N) 37 | (ON N I) 38 | (ON I A) 39 | (ON A E) 40 | (ON E D) 41 | (ON D R) 42 | (ON Q P) 43 | (ON P C) 44 | (ON C H) 45 | (HANDEMPTY) 46 | ) 47 | (:goal (and 48 | (ON H J) 49 | (ON J N) 50 | (ON N R) 51 | (ON R F) 52 | (ON F K) 53 | (ON K L) 54 | (ON L I) 55 | (ON I B) 56 | (ON B M) 57 | (ON M C) 58 | (ON C D) 59 | (ON D A) 60 | (ON A O) 61 | (ON O Q) 62 | (ON Q P) 63 | (ON P G) 64 | (ON G E) 65 | ) 66 | ) 67 | ) 68 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-38.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-18-1) 2 | (:domain blocks) 3 | (:objects 4 | R 5 | Q 6 | P 7 | O 8 | N 9 | M 10 | L 11 | K 12 | J 13 | I 14 | H 15 | G 16 | F 17 | E 18 | D 19 | C 20 | A 21 | B 22 | ) 23 | (:init 24 | (CLEAR G) 25 | (CLEAR J) 26 | (CLEAR K) 27 | (ONTABLE C) 28 | (ONTABLE A) 29 | (ONTABLE K) 30 | (ON G P) 31 | (ON P N) 32 | (ON N E) 33 | (ON E R) 34 | (ON R I) 35 | (ON I F) 36 | (ON F O) 37 | (ON O L) 38 | (ON L B) 39 | (ON B D) 40 | (ON D Q) 41 | (ON Q M) 42 | (ON M C) 43 | (ON J H) 44 | (ON H A) 45 | (HANDEMPTY) 46 | ) 47 | (:goal (and 48 | (ON H G) 49 | (ON G M) 50 | (ON M D) 51 | (ON D B) 52 | (ON B N) 53 | (ON N E) 54 | (ON E F) 55 | (ON F R) 56 | (ON R Q) 57 | (ON Q O) 58 | (ON O K) 59 | (ON K J) 60 | (ON J I) 61 | (ON I P) 62 | (ON P L) 63 | (ON L C) 64 | (ON C A) 65 | ) 66 | ) 67 | ) 68 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-37.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-18-0) 2 | (:domain blocks) 3 | (:objects 4 | R 5 | Q 6 | P 7 | O 8 | N 9 | M 10 | L 11 | K 12 | J 13 | I 14 | H 15 | G 16 | F 17 | E 18 | D 19 | C 20 | A 21 | B 22 | - block) 23 | (:init 24 | (CLEAR K) 25 | (CLEAR B) 26 | (CLEAR Q) 27 | (ONTABLE G) 28 | (ONTABLE R) 29 | (ONTABLE H) 30 | (ON K O) 31 | (ON O G) 32 | (ON B L) 33 | (ON L M) 34 | (ON M F) 35 | (ON F J) 36 | (ON J N) 37 | (ON N I) 38 | (ON I A) 39 | (ON A E) 40 | (ON E D) 41 | (ON D R) 42 | (ON Q P) 43 | (ON P C) 44 | (ON C H) 45 | (HANDEMPTY) 46 | ) 47 | (:goal (and 48 | (ON H J) 49 | (ON J N) 50 | (ON N R) 51 | (ON R F) 52 | (ON F K) 53 | (ON K L) 54 | (ON L I) 55 | (ON I B) 56 | (ON B M) 57 | (ON M C) 58 | (ON C D) 59 | (ON D A) 60 | (ON A O) 61 | (ON O Q) 62 | (ON Q P) 63 | (ON P G) 64 | (ON G E) 65 | ) 66 | ) 67 | ) 68 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-38.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-18-1) 2 | (:domain blocks) 3 | (:objects 4 | R 5 | Q 6 | P 7 | O 8 | N 9 | M 10 | L 11 | K 12 | J 13 | I 14 | H 15 | G 16 | F 17 | E 18 | D 19 | C 20 | A 21 | B 22 | - block) 23 | (:init 24 | (CLEAR G) 25 | (CLEAR J) 26 | (CLEAR K) 27 | (ONTABLE C) 28 | (ONTABLE A) 29 | (ONTABLE K) 30 | (ON G P) 31 | (ON P N) 32 | (ON N E) 33 | (ON E R) 34 | (ON R I) 35 | (ON I F) 36 | (ON F O) 37 | (ON O L) 38 | (ON L B) 39 | (ON B D) 40 | (ON D Q) 41 | (ON Q M) 42 | (ON M C) 43 | (ON J H) 44 | (ON H A) 45 | (HANDEMPTY) 46 | ) 47 | (:goal (and 48 | (ON H G) 49 | (ON G M) 50 | (ON M D) 51 | (ON D B) 52 | (ON B N) 53 | (ON N E) 54 | (ON E F) 55 | (ON F R) 56 | (ON R Q) 57 | (ON Q O) 58 | (ON O K) 59 | (ON K J) 60 | (ON J I) 61 | (ON I P) 62 | (ON P L) 63 | (ON L C) 64 | (ON C A) 65 | ) 66 | ) 67 | ) 68 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-20.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-11-1) 2 | 3 | (:domain logistics) 4 | 5 | (:objects 6 | apn1 - airplane 7 | apt4 apt3 apt2 apt1 - airport 8 | pos4 pos3 pos2 pos1 - location 9 | cit4 cit3 cit2 cit1 - city 10 | tru4 tru3 tru2 tru1 - truck 11 | obj43 obj42 obj41 obj33 obj32 obj31 12 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 13 | 14 | (:init (at apn1 apt3) (at tru1 pos1) 15 | (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) 16 | (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) 17 | (at obj33 pos3) (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) 18 | (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) 19 | (in-city pos3 cit3) (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4)) 20 | 21 | (:goal (and (at obj13 pos2) (at obj21 apt3) (at obj42 pos4) (at obj41 pos2) 22 | (at obj11 apt2) (at obj22 pos4) (at obj23 apt4) (at obj32 apt3) 23 | (at obj12 apt3) (at obj33 pos2) (at obj43 pos1))) 24 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-21.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-12-0) 2 | (:domain logistics) 3 | (:objects 4 | apn1 - airplane 5 | apt4 apt3 apt2 apt1 - airport 6 | pos4 pos3 pos2 pos1 - location 7 | cit4 cit3 cit2 cit1 - city 8 | tru4 tru3 tru2 tru1 - truck 9 | obj43 obj42 obj41 obj33 obj32 obj31 obj23 10 | obj22 obj21 obj13 obj12 obj11 - package) 11 | 12 | (:init (at apn1 apt1) (at tru1 pos1) 13 | (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) 14 | (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) 15 | (at obj33 pos3) (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) 16 | (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) 17 | (in-city pos3 cit3) (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4)) 18 | 19 | (:goal (and (at obj13 apt1) (at obj42 pos4) (at obj31 pos3) (at obj33 pos2) 20 | (at obj43 pos4) (at obj32 apt4) (at obj21 apt2) (at obj11 apt4) 21 | (at obj22 pos2) (at obj41 apt1) (at obj12 apt4) (at obj23 pos4))) 22 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-22.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-12-1) 2 | (:domain logistics) 3 | (:objects apn1 - airplane 4 | apt4 apt3 apt2 apt1 - airport 5 | pos4 pos3 pos2 pos1 - location 6 | cit4 cit3 cit2 cit1 - city 7 | tru4 tru3 tru2 tru1 - truck 8 | obj43 obj42 obj41 obj33 obj32 obj31 9 | obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init 12 | (at apn1 apt1) (at tru1 pos1) 13 | (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) 14 | (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) 15 | (at obj33 pos3) (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) 16 | (in-city pos1 cit1) (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) 17 | (in-city pos3 cit3) (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4)) 18 | 19 | (:goal (and (at obj31 pos1) (at obj23 pos4) (at obj12 pos4) (at obj21 pos1) 20 | (at obj11 apt1) (at obj41 pos1) (at obj33 pos1) (at obj22 pos3) 21 | (at obj32 apt3) (at obj42 apt2) (at obj43 apt4) (at obj13 apt2))) 22 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-39.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-19-0) 2 | (:domain blocks) 3 | (:objects 4 | S 5 | R 6 | Q 7 | P 8 | O 9 | N 10 | M 11 | L 12 | K 13 | J 14 | I 15 | H 16 | G 17 | F 18 | E 19 | D 20 | C 21 | A 22 | B 23 | ) 24 | (:init 25 | (CLEAR N) 26 | (CLEAR L) 27 | (CLEAR S) 28 | (ONTABLE B) 29 | (ONTABLE L) 30 | (ONTABLE S) 31 | (ON N J) 32 | (ON J K) 33 | (ON K G) 34 | (ON G A) 35 | (ON A R) 36 | (ON R I) 37 | (ON I P) 38 | (ON P M) 39 | (ON M Q) 40 | (ON Q C) 41 | (ON C D) 42 | (ON D H) 43 | (ON H O) 44 | (ON O E) 45 | (ON E F) 46 | (ON F B) 47 | (HANDEMPTY) 48 | ) 49 | (:goal (and 50 | (ON H Q) 51 | (ON Q P) 52 | (ON P A) 53 | (ON A L) 54 | (ON L R) 55 | (ON R I) 56 | (ON I D) 57 | (ON D J) 58 | (ON J B) 59 | (ON B N) 60 | (ON N F) 61 | (ON F S) 62 | (ON S M) 63 | (ON M O) 64 | (ON O E) 65 | (ON E C) 66 | (ON C K) 67 | (ON K G) 68 | ) 69 | ) 70 | ) 71 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-40.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-19-1) 2 | (:domain blocks) 3 | (:objects 4 | S 5 | R 6 | Q 7 | P 8 | O 9 | N 10 | M 11 | L 12 | K 13 | J 14 | I 15 | H 16 | G 17 | F 18 | E 19 | D 20 | C 21 | A 22 | B 23 | ) 24 | (:init 25 | (CLEAR A) 26 | (CLEAR Q) 27 | (CLEAR O) 28 | (ONTABLE E) 29 | (ONTABLE D) 30 | (ONTABLE K) 31 | (ON A H) 32 | (ON H L) 33 | (ON L C) 34 | (ON C S) 35 | (ON S F) 36 | (ON F P) 37 | (ON P M) 38 | (ON M G) 39 | (ON G J) 40 | (ON J N) 41 | (ON N I) 42 | (ON I R) 43 | (ON R E) 44 | (ON Q D) 45 | (ON O B) 46 | (ON B K) 47 | (HANDEMPTY) 48 | ) 49 | (:goal (and 50 | (ON L C) 51 | (ON C S) 52 | (ON S I) 53 | (ON I J) 54 | (ON J K) 55 | (ON K E) 56 | (ON E B) 57 | (ON B H) 58 | (ON H A) 59 | (ON A D) 60 | (ON D P) 61 | (ON P N) 62 | (ON N O) 63 | (ON O R) 64 | (ON R Q) 65 | (ON Q F) 66 | (ON F G) 67 | (ON G M) 68 | ) 69 | ) 70 | ) 71 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-39.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-19-0) 2 | (:domain blocks) 3 | (:objects 4 | S 5 | R 6 | Q 7 | P 8 | O 9 | N 10 | M 11 | L 12 | K 13 | J 14 | I 15 | H 16 | G 17 | F 18 | E 19 | D 20 | C 21 | A 22 | B 23 | - block) 24 | (:init 25 | (CLEAR N) 26 | (CLEAR L) 27 | (CLEAR S) 28 | (ONTABLE B) 29 | (ONTABLE L) 30 | (ONTABLE S) 31 | (ON N J) 32 | (ON J K) 33 | (ON K G) 34 | (ON G A) 35 | (ON A R) 36 | (ON R I) 37 | (ON I P) 38 | (ON P M) 39 | (ON M Q) 40 | (ON Q C) 41 | (ON C D) 42 | (ON D H) 43 | (ON H O) 44 | (ON O E) 45 | (ON E F) 46 | (ON F B) 47 | (HANDEMPTY) 48 | ) 49 | (:goal (and 50 | (ON H Q) 51 | (ON Q P) 52 | (ON P A) 53 | (ON A L) 54 | (ON L R) 55 | (ON R I) 56 | (ON I D) 57 | (ON D J) 58 | (ON J B) 59 | (ON B N) 60 | (ON N F) 61 | (ON F S) 62 | (ON S M) 63 | (ON M O) 64 | (ON O E) 65 | (ON E C) 66 | (ON C K) 67 | (ON K G) 68 | ) 69 | ) 70 | ) 71 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-40.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-19-1) 2 | (:domain blocks) 3 | (:objects 4 | S 5 | R 6 | Q 7 | P 8 | O 9 | N 10 | M 11 | L 12 | K 13 | J 14 | I 15 | H 16 | G 17 | F 18 | E 19 | D 20 | C 21 | A 22 | B 23 | - block) 24 | (:init 25 | (CLEAR A) 26 | (CLEAR Q) 27 | (CLEAR O) 28 | (ONTABLE E) 29 | (ONTABLE D) 30 | (ONTABLE K) 31 | (ON A H) 32 | (ON H L) 33 | (ON L C) 34 | (ON C S) 35 | (ON S F) 36 | (ON F P) 37 | (ON P M) 38 | (ON M G) 39 | (ON G J) 40 | (ON J N) 41 | (ON N I) 42 | (ON I R) 43 | (ON R E) 44 | (ON Q D) 45 | (ON O B) 46 | (ON B K) 47 | (HANDEMPTY) 48 | ) 49 | (:goal (and 50 | (ON L C) 51 | (ON C S) 52 | (ON S I) 53 | (ON I J) 54 | (ON J K) 55 | (ON K E) 56 | (ON E B) 57 | (ON B H) 58 | (ON H A) 59 | (ON A D) 60 | (ON D P) 61 | (ON P N) 62 | (ON N O) 63 | (ON O R) 64 | (ON R Q) 65 | (ON Q F) 66 | (ON F G) 67 | (ON G M) 68 | ) 69 | ) 70 | ) 71 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: test 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | jobs: 10 | run: 11 | runs-on: ${{ matrix.os }} 12 | 13 | strategy: 14 | matrix: 15 | os: [ubuntu-latest] 16 | python-version: ["3.8", "3.9", "3.10", "3.11"] 17 | 18 | timeout-minutes: 30 19 | 20 | steps: 21 | - uses: actions/checkout@main 22 | with: 23 | submodules: recursive 24 | - uses: actions/setup-python@main 25 | with: 26 | python-version: ${{ matrix.python-version }} 27 | - name: Install dependencies 28 | run: pip install tox 29 | - name: Unit tests and coverage 30 | run: | 31 | pyver=`echo ${{ matrix.python-version }} | tr -d "."` 32 | tox -e py${{ matrix.python-version }} 33 | - name: Upload coverage to Codecov 34 | uses: codecov/codecov-action@v1 35 | with: 36 | token: ${{ secrets.CODECOV_TOKEN }} 37 | file: ./coverage.xml 38 | flags: unittests 39 | name: codecov-umbrella 40 | fail_ci_if_error: true 41 | - name: Generate Documentation 42 | run: tox -e docs 43 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-42.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-20-1) 2 | (:domain blocks) 3 | (:objects 4 | T 5 | S 6 | R 7 | Q 8 | P 9 | O 10 | N 11 | M 12 | L 13 | K 14 | J 15 | I 16 | H 17 | G 18 | F 19 | E 20 | D 21 | C 22 | A 23 | B 24 | ) 25 | (:init 26 | (CLEAR A) 27 | (CLEAR G) 28 | (ONTABLE N) 29 | (ONTABLE M) 30 | (ON A H) 31 | (ON H K) 32 | (ON K Q) 33 | (ON Q T) 34 | (ON T E) 35 | (ON E I) 36 | (ON I B) 37 | (ON B P) 38 | (ON P L) 39 | (ON L D) 40 | (ON D O) 41 | (ON O J) 42 | (ON J S) 43 | (ON S C) 44 | (ON C F) 45 | (ON F R) 46 | (ON R N) 47 | (ON G M) 48 | (HANDEMPTY) 49 | ) 50 | (:goal (and 51 | (ON H N) 52 | (ON N A) 53 | (ON A Q) 54 | (ON Q I) 55 | (ON I O) 56 | (ON O S) 57 | (ON S D) 58 | (ON D C) 59 | (ON C K) 60 | (ON K P) 61 | (ON P L) 62 | (ON L J) 63 | (ON J T) 64 | (ON T G) 65 | (ON G M) 66 | (ON M F) 67 | (ON F B) 68 | (ON B R) 69 | (ON R E) 70 | ) 71 | ) 72 | ) 73 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-11.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-7-0) 2 | (:domain logistics) 3 | (:objects apn1 apt3 pos3 apt2 pos2 apt1 pos1 cit3 cit2 cit1 tru3 tru2 tru1 obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (package obj31) (package obj32) (package obj33) 6 | (truck tru1) (truck tru2) (truck tru3) (city cit1) (city cit2) (city cit3) 7 | (location pos1) (location apt1) (location pos2) (location apt2) (location pos3) 8 | (location apt3) (airport apt1) (airport apt2) (airport apt3) (airplane apn1) 9 | (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 10 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 11 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 12 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 13 | (in-city apt3 cit3)) 14 | (:goal (and (at obj22 pos2) (at obj33 apt1) (at obj12 pos2) (at obj13 apt3) 15 | (at obj31 apt2) (at obj23 apt1) (at obj32 pos1))) 16 | ) 17 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-12.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-7-1) 2 | (:domain logistics) 3 | (:objects apn1 apt3 pos3 apt2 pos2 apt1 pos1 cit3 cit2 cit1 tru3 tru2 tru1 obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (package obj31) (package obj32) (package obj33) 6 | (truck tru1) (truck tru2) (truck tru3) (city cit1) (city cit2) (city cit3) 7 | (location pos1) (location apt1) (location pos2) (location apt2) (location pos3) 8 | (location apt3) (airport apt1) (airport apt2) (airport apt3) (airplane apn1) 9 | (at apn1 apt3) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 10 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 11 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 12 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 13 | (in-city apt3 cit3)) 14 | (:goal (and (at obj33 apt1) (at obj23 apt1) (at obj11 pos3) (at obj32 pos1) 15 | (at obj13 pos2) (at obj21 apt3) (at obj12 apt3))) 16 | ) 17 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-42.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-20-1) 2 | (:domain blocks) 3 | (:objects 4 | T 5 | S 6 | R 7 | Q 8 | P 9 | O 10 | N 11 | M 12 | L 13 | K 14 | J 15 | I 16 | H 17 | G 18 | F 19 | E 20 | D 21 | C 22 | A 23 | B 24 | - block) 25 | (:init 26 | (CLEAR A) 27 | (CLEAR G) 28 | (ONTABLE N) 29 | (ONTABLE M) 30 | (ON A H) 31 | (ON H K) 32 | (ON K Q) 33 | (ON Q T) 34 | (ON T E) 35 | (ON E I) 36 | (ON I B) 37 | (ON B P) 38 | (ON P L) 39 | (ON L D) 40 | (ON D O) 41 | (ON O J) 42 | (ON J S) 43 | (ON S C) 44 | (ON C F) 45 | (ON F R) 46 | (ON R N) 47 | (ON G M) 48 | (HANDEMPTY) 49 | ) 50 | (:goal (and 51 | (ON H N) 52 | (ON N A) 53 | (ON A Q) 54 | (ON Q I) 55 | (ON I O) 56 | (ON O S) 57 | (ON S D) 58 | (ON D C) 59 | (ON C K) 60 | (ON K P) 61 | (ON P L) 62 | (ON L J) 63 | (ON J T) 64 | (ON T G) 65 | (ON G M) 66 | (ON M F) 67 | (ON F B) 68 | (ON B R) 69 | (ON R E) 70 | ) 71 | ) 72 | ) 73 | -------------------------------------------------------------------------------- /.github/workflows/linting.yml: -------------------------------------------------------------------------------- 1 | name: lint 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | jobs: 10 | run: 11 | continue-on-error: True 12 | runs-on: ${{ matrix.os }} 13 | 14 | strategy: 15 | matrix: 16 | os: [ubuntu-latest] 17 | python-version: ["3.8", "3.9", "3.10", "3.11"] 18 | 19 | timeout-minutes: 30 20 | 21 | steps: 22 | - uses: actions/checkout@main 23 | with: 24 | submodules: recursive 25 | - uses: actions/setup-python@main 26 | with: 27 | python-version: ${{ matrix.python-version }} 28 | - name: Install dependencies 29 | run: | 30 | pip install tox 31 | - name: Pylint 32 | run: tox -e pylint 33 | - name: Code style check 34 | run: | 35 | tox -e black-check 36 | tox -e isort-check 37 | tox -e flake8 38 | - name: Unused code check 39 | run: tox -e vulture 40 | - name: Static type check 41 | run: tox -e mypy 42 | - name: Check copyright 43 | run: tox -e check-copyright 44 | - name: Misc checks 45 | run: | 46 | tox -e bandit 47 | tox -e safety 48 | -------------------------------------------------------------------------------- /plan4past/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """Planning for Pure-Past Linear Temporal Logic Goals.""" 24 | 25 | import inspect 26 | from pathlib import Path 27 | 28 | PACKAGE_ROOT = Path(inspect.getframeinfo(inspect.currentframe()).filename).parent # type: ignore 29 | REPO_ROOT = PACKAGE_ROOT.parent 30 | 31 | 32 | __version__ = "0.1.0" 33 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-16.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u20-v5-g5-a60-n10-A20-B80-N50-F5-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f7) 49 | (destin p0 f6) 50 | 51 | (origin p1 f1) 52 | (destin p1 f3) 53 | 54 | (origin p2 f1) 55 | (destin p2 f7) 56 | 57 | (origin p3 f2) 58 | (destin p3 f4) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (forall (?p - passenger) (served ?p))) 70 | ) 71 | 72 | 73 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-13.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-8-0) 2 | (:domain logistics) 3 | (:objects apn1 apt3 pos3 apt2 pos2 apt1 pos1 cit3 cit2 cit1 tru3 tru2 tru1 obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (package obj31) (package obj32) (package obj33) 6 | (truck tru1) (truck tru2) (truck tru3) (city cit1) (city cit2) (city cit3) 7 | (location pos1) (location apt1) (location pos2) (location apt2) (location pos3) 8 | (location apt3) (airport apt1) (airport apt2) (airport apt3) (airplane apn1) 9 | (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 10 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 11 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 12 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 13 | (in-city apt3 cit3)) 14 | (:goal (and (at obj11 pos3) (at obj21 pos2) (at obj31 apt3) (at obj22 pos3) 15 | (at obj12 pos1) (at obj23 apt2) (at obj13 apt2) (at obj32 apt1))) 16 | ) 17 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-8-1) 2 | (:domain logistics) 3 | (:objects apn1 apt3 pos3 apt2 pos2 apt1 pos1 cit3 cit2 cit1 tru3 tru2 tru1 obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (package obj31) (package obj32) (package obj33) 6 | (truck tru1) (truck tru2) (truck tru3) (city cit1) (city cit2) (city cit3) 7 | (location pos1) (location apt1) (location pos2) (location apt2) (location pos3) 8 | (location apt3) (airport apt1) (airport apt2) (airport apt3) (airplane apn1) 9 | (at apn1 apt3) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 10 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 11 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 12 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 13 | (in-city apt3 cit3)) 14 | (:goal (and (at obj22 pos3) (at obj13 pos2) (at obj32 apt2) (at obj33 apt3) 15 | (at obj23 apt2) (at obj31 apt1) (at obj21 pos3) (at obj12 pos3))) 16 | ) 17 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-41.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-20-0) 2 | (:domain blocks) 3 | (:objects 4 | T 5 | S 6 | R 7 | Q 8 | P 9 | O 10 | N 11 | M 12 | L 13 | K 14 | J 15 | I 16 | H 17 | G 18 | F 19 | E 20 | D 21 | C 22 | A 23 | B 24 | ) 25 | (:init 26 | (CLEAR S) 27 | (CLEAR N) 28 | (CLEAR P) 29 | (ONTABLE H) 30 | (ONTABLE N) 31 | (ONTABLE K) 32 | (ON S C) 33 | (ON C M) 34 | (ON M Q) 35 | (ON Q B) 36 | (ON B T) 37 | (ON T J) 38 | (ON J L) 39 | (ON L E) 40 | (ON E I) 41 | (ON I O) 42 | (ON O G) 43 | (ON G F) 44 | (ON F A) 45 | (ON A D) 46 | (ON D H) 47 | (ON P R) 48 | (ON R K) 49 | (HANDEMPTY) 50 | ) 51 | (:goal (and 52 | (ON K E) 53 | (ON E N) 54 | (ON N R) 55 | (ON R D) 56 | (ON D G) 57 | (ON G H) 58 | (ON H O) 59 | (ON O A) 60 | (ON A L) 61 | (ON L J) 62 | (ON J F) 63 | (ON F M) 64 | (ON M I) 65 | (ON I Q) 66 | (ON Q B) 67 | (ON B P) 68 | (ON P T) 69 | (ON T S) 70 | (ON S C) 71 | ) 72 | ) 73 | ) 74 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-41.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-20-0) 2 | (:domain blocks) 3 | (:objects 4 | T 5 | S 6 | R 7 | Q 8 | P 9 | O 10 | N 11 | M 12 | L 13 | K 14 | J 15 | I 16 | H 17 | G 18 | F 19 | E 20 | D 21 | C 22 | A 23 | B 24 | - block) 25 | (:init 26 | (CLEAR S) 27 | (CLEAR N) 28 | (CLEAR P) 29 | (ONTABLE H) 30 | (ONTABLE N) 31 | (ONTABLE K) 32 | (ON S C) 33 | (ON C M) 34 | (ON M Q) 35 | (ON Q B) 36 | (ON B T) 37 | (ON T J) 38 | (ON J L) 39 | (ON L E) 40 | (ON E I) 41 | (ON I O) 42 | (ON O G) 43 | (ON G F) 44 | (ON F A) 45 | (ON A D) 46 | (ON D H) 47 | (ON P R) 48 | (ON R K) 49 | (HANDEMPTY) 50 | ) 51 | (:goal (and 52 | (ON K E) 53 | (ON E N) 54 | (ON N R) 55 | (ON R D) 56 | (ON D G) 57 | (ON G H) 58 | (ON H O) 59 | (ON O A) 60 | (ON A L) 61 | (ON L J) 62 | (ON J F) 63 | (ON F M) 64 | (ON M I) 65 | (ON I Q) 66 | (ON Q B) 67 | (ON B P) 68 | (ON P T) 69 | (ON T S) 70 | (ON S C) 71 | ) 72 | ) 73 | ) 74 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-17.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u20-v5-g5-a60-n10-A20-B80-N50-F5-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f0) 49 | (destin p0 f5) 50 | 51 | (origin p1 f7) 52 | (destin p1 f4) 53 | 54 | (origin p2 f0) 55 | (destin p2 f7) 56 | 57 | (origin p3 f1) 58 | (destin p3 f6) 59 | 60 | 61 | 62 | (no-access p1 f5) 63 | 64 | 65 | 66 | (lift-at f0) 67 | ) 68 | 69 | 70 | (:goal (forall (?p - passenger) (served ?p))) 71 | ) 72 | 73 | 74 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-18.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u20-v5-g5-a60-n10-A20-B80-N50-F5-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f3) 49 | (destin p0 f0) 50 | 51 | (origin p1 f4) 52 | (destin p1 f2) 53 | 54 | (origin p2 f1) 55 | (destin p2 f6) 56 | 57 | (origin p3 f6) 58 | (destin p3 f7) 59 | 60 | 61 | 62 | (no-access p2 f4) 63 | 64 | 65 | 66 | (lift-at f0) 67 | ) 68 | 69 | 70 | (:goal (forall (?p - passenger) (served ?p))) 71 | ) 72 | 73 | 74 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-19.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u20-v5-g5-a60-n10-A20-B80-N50-F5-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f1) 49 | (destin p0 f7) 50 | 51 | (origin p1 f6) 52 | (destin p1 f3) 53 | 54 | (origin p2 f3) 55 | (destin p2 f4) 56 | 57 | (origin p3 f5) 58 | (destin p3 f0) 59 | 60 | 61 | 62 | (no-access p3 f7) 63 | 64 | 65 | 66 | (lift-at f0) 67 | ) 68 | 69 | 70 | (:goal (forall (?p - passenger) (served ?p))) 71 | ) 72 | 73 | 74 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-full-typed/instances/instance-20.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u20-v5-g5-a60-n10-A20-B80-N50-F5-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f7) 49 | (destin p0 f2) 50 | 51 | (origin p1 f2) 52 | (destin p1 f4) 53 | 54 | (origin p2 f6) 55 | (destin p2 f3) 56 | 57 | (origin p3 f5) 58 | (destin p3 f1) 59 | 60 | 61 | 62 | (no-access p0 f5) 63 | 64 | 65 | 66 | (lift-at f0) 67 | ) 68 | 69 | 70 | (:goal (forall (?p - passenger) (served ?p))) 71 | ) 72 | 73 | 74 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-43.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-21-0) 2 | (:domain blocks) 3 | (:objects 4 | U 5 | T 6 | S 7 | R 8 | Q 9 | P 10 | O 11 | N 12 | M 13 | L 14 | K 15 | J 16 | I 17 | H 18 | G 19 | F 20 | E 21 | D 22 | C 23 | A 24 | B 25 | ) 26 | (:init 27 | (CLEAR K) 28 | (CLEAR H) 29 | (ONTABLE F) 30 | (ONTABLE H) 31 | (ON K I) 32 | (ON I P) 33 | (ON P M) 34 | (ON M R) 35 | (ON R C) 36 | (ON C S) 37 | (ON S E) 38 | (ON E Q) 39 | (ON Q N) 40 | (ON N B) 41 | (ON B G) 42 | (ON G J) 43 | (ON J A) 44 | (ON A U) 45 | (ON U D) 46 | (ON D O) 47 | (ON O T) 48 | (ON T L) 49 | (ON L F) 50 | (HANDEMPTY) 51 | ) 52 | (:goal (and 53 | (ON H L) 54 | (ON L B) 55 | (ON B E) 56 | (ON E C) 57 | (ON C S) 58 | (ON S P) 59 | (ON P O) 60 | (ON O R) 61 | (ON R K) 62 | (ON K T) 63 | (ON T U) 64 | (ON U Q) 65 | (ON Q J) 66 | (ON J N) 67 | (ON N G) 68 | (ON G I) 69 | (ON I D) 70 | (ON D A) 71 | (ON A M) 72 | (ON M F) 73 | ) 74 | ) 75 | ) 76 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-15.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-9-0) 2 | (:domain logistics) 3 | (:objects apn1 apt3 pos3 apt2 pos2 apt1 pos1 cit3 cit2 cit1 tru3 tru2 tru1 obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (package obj31) (package obj32) (package obj33) 6 | (truck tru1) (truck tru2) (truck tru3) (city cit1) (city cit2) (city cit3) 7 | (location pos1) (location apt1) (location pos2) (location apt2) (location pos3) 8 | (location apt3) (airport apt1) (airport apt2) (airport apt3) (airplane apn1) 9 | (at apn1 apt2) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 10 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 11 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 12 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 13 | (in-city apt3 cit3)) 14 | (:goal (and (at obj23 pos3) (at obj32 pos1) (at obj22 pos1) (at obj31 apt3) 15 | (at obj11 pos1) (at obj33 pos3) (at obj13 apt3) (at obj12 pos1) 16 | (at obj21 apt1))) 17 | ) 18 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-untyped/instances/instance-16.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-9-1) 2 | (:domain logistics) 3 | (:objects apn1 apt3 pos3 apt2 pos2 apt1 pos1 cit3 cit2 cit1 tru3 tru2 tru1 obj33 obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 ) 4 | (:init (package obj11) (package obj12) (package obj13) (package obj21) 5 | (package obj22) (package obj23) (package obj31) (package obj32) (package obj33) 6 | (truck tru1) (truck tru2) (truck tru3) (city cit1) (city cit2) (city cit3) 7 | (location pos1) (location apt1) (location pos2) (location apt2) (location pos3) 8 | (location apt3) (airport apt1) (airport apt2) (airport apt3) (airplane apn1) 9 | (at apn1 apt1) (at tru1 pos1) (at obj11 pos1) (at obj12 pos1) (at obj13 pos1) 10 | (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) (at obj23 pos2) (at tru3 pos3) 11 | (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) (in-city pos1 cit1) 12 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 13 | (in-city apt3 cit3)) 14 | (:goal (and (at obj11 apt2) (at obj31 pos3) (at obj13 pos3) (at obj23 apt3) 15 | (at obj33 apt3) (at obj22 pos2) (at obj32 apt3) (at obj21 pos2) 16 | (at obj12 pos3))) 17 | ) 18 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-43.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-21-0) 2 | (:domain blocks) 3 | (:objects 4 | U 5 | T 6 | S 7 | R 8 | Q 9 | P 10 | O 11 | N 12 | M 13 | L 14 | K 15 | J 16 | I 17 | H 18 | G 19 | F 20 | E 21 | D 22 | C 23 | A 24 | B 25 | - block) 26 | (:init 27 | (CLEAR K) 28 | (CLEAR H) 29 | (ONTABLE F) 30 | (ONTABLE H) 31 | (ON K I) 32 | (ON I P) 33 | (ON P M) 34 | (ON M R) 35 | (ON R C) 36 | (ON C S) 37 | (ON S E) 38 | (ON E Q) 39 | (ON Q N) 40 | (ON N B) 41 | (ON B G) 42 | (ON G J) 43 | (ON J A) 44 | (ON A U) 45 | (ON U D) 46 | (ON D O) 47 | (ON O T) 48 | (ON T L) 49 | (ON L F) 50 | (HANDEMPTY) 51 | ) 52 | (:goal (and 53 | (ON H L) 54 | (ON L B) 55 | (ON B E) 56 | (ON E C) 57 | (ON C S) 58 | (ON S P) 59 | (ON P O) 60 | (ON O R) 61 | (ON R K) 62 | (ON K T) 63 | (ON T U) 64 | (ON U Q) 65 | (ON Q J) 66 | (ON J N) 67 | (ON N G) 68 | (ON G I) 69 | (ON I D) 70 | (ON D A) 71 | (ON A M) 72 | (ON M F) 73 | ) 74 | ) 75 | ) 76 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-16.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f7) 49 | (destin p0 f6) 50 | 51 | (origin p1 f1) 52 | (destin p1 f3) 53 | 54 | (origin p2 f1) 55 | (destin p2 f7) 56 | 57 | (origin p3 f2) 58 | (destin p3 f4) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-17.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f0) 49 | (destin p0 f5) 50 | 51 | (origin p1 f7) 52 | (destin p1 f4) 53 | 54 | (origin p2 f0) 55 | (destin p2 f7) 56 | 57 | (origin p3 f1) 58 | (destin p3 f6) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-18.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f3) 49 | (destin p0 f0) 50 | 51 | (origin p1 f4) 52 | (destin p1 f2) 53 | 54 | (origin p2 f1) 55 | (destin p2 f6) 56 | 57 | (origin p3 f6) 58 | (destin p3 f7) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-19.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f1) 49 | (destin p0 f7) 50 | 51 | (origin p1 f6) 52 | (destin p1 f3) 53 | 54 | (origin p2 f3) 55 | (destin p2 f4) 56 | 57 | (origin p3 f5) 58 | (destin p3 f0) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-adl-simple-typed/instances/instance-20.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f7) 49 | (destin p0 f2) 50 | 51 | (origin p1 f2) 52 | (destin p1 f4) 53 | 54 | (origin p2 f6) 55 | (destin p2 f3) 56 | 57 | (origin p3 f5) 58 | (destin p3 f1) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-16.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r0) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f7) 49 | (destin p0 f6) 50 | 51 | (origin p1 f1) 52 | (destin p1 f3) 53 | 54 | (origin p2 f1) 55 | (destin p2 f7) 56 | 57 | (origin p3 f2) 58 | (destin p3 f4) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-17.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r1) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f0) 49 | (destin p0 f5) 50 | 51 | (origin p1 f7) 52 | (destin p1 f4) 53 | 54 | (origin p2 f0) 55 | (destin p2 f7) 56 | 57 | (origin p3 f1) 58 | (destin p3 f6) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-18.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r2) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f3) 49 | (destin p0 f0) 50 | 51 | (origin p1 f4) 52 | (destin p1 f2) 53 | 54 | (origin p2 f1) 55 | (destin p2 f6) 56 | 57 | (origin p3 f6) 58 | (destin p3 f7) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-19.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r3) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f1) 49 | (destin p0 f7) 50 | 51 | (origin p1 f6) 52 | (destin p1 f3) 53 | 54 | (origin p2 f3) 55 | (destin p2 f4) 56 | 57 | (origin p3 f5) 58 | (destin p3 f0) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/elevator-strips-simple-typed/instances/instance-20.pddl: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | (define (problem mixed-f8-p4-u0-v0-g0-a0-n0-A0-B0-N0-F0-r4) 5 | (:domain miconic) 6 | (:objects p0 p1 p2 p3 - passenger 7 | f0 f1 f2 f3 f4 f5 f6 f7 - floor) 8 | 9 | 10 | (:init 11 | (above f0 f1) 12 | (above f0 f2) 13 | (above f0 f3) 14 | (above f0 f4) 15 | (above f0 f5) 16 | (above f0 f6) 17 | (above f0 f7) 18 | 19 | (above f1 f2) 20 | (above f1 f3) 21 | (above f1 f4) 22 | (above f1 f5) 23 | (above f1 f6) 24 | (above f1 f7) 25 | 26 | (above f2 f3) 27 | (above f2 f4) 28 | (above f2 f5) 29 | (above f2 f6) 30 | (above f2 f7) 31 | 32 | (above f3 f4) 33 | (above f3 f5) 34 | (above f3 f6) 35 | (above f3 f7) 36 | 37 | (above f4 f5) 38 | (above f4 f6) 39 | (above f4 f7) 40 | 41 | (above f5 f6) 42 | (above f5 f7) 43 | 44 | (above f6 f7) 45 | 46 | 47 | 48 | (origin p0 f7) 49 | (destin p0 f2) 50 | 51 | (origin p1 f2) 52 | (destin p1 f4) 53 | 54 | (origin p2 f6) 55 | (destin p2 f3) 56 | 57 | (origin p3 f5) 58 | (destin p3 f1) 59 | 60 | 61 | 62 | 63 | 64 | 65 | (lift-at f0) 66 | ) 67 | 68 | 69 | (:goal (and 70 | (served p0) 71 | (served p1) 72 | (served p2) 73 | (served p3) 74 | )) 75 | ) 76 | 77 | 78 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-44.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-21-1) 2 | (:domain blocks) 3 | (:objects 4 | U 5 | T 6 | S 7 | R 8 | Q 9 | P 10 | O 11 | N 12 | M 13 | L 14 | K 15 | J 16 | I 17 | H 18 | G 19 | F 20 | E 21 | D 22 | C 23 | A 24 | B 25 | ) 26 | (:init 27 | (CLEAR F) 28 | (CLEAR B) 29 | (CLEAR T) 30 | (ONTABLE M) 31 | (ONTABLE B) 32 | (ONTABLE T) 33 | (ON F L) 34 | (ON L D) 35 | (ON D I) 36 | (ON I R) 37 | (ON R A) 38 | (ON A J) 39 | (ON J H) 40 | (ON H S) 41 | (ON S Q) 42 | (ON Q G) 43 | (ON G U) 44 | (ON U O) 45 | (ON O P) 46 | (ON P K) 47 | (ON K C) 48 | (ON C E) 49 | (ON E N) 50 | (ON N M) 51 | (HANDEMPTY) 52 | ) 53 | (:goal (and 54 | (ON Q L) 55 | (ON L J) 56 | (ON J C) 57 | (ON C M) 58 | (ON M N) 59 | (ON N F) 60 | (ON F U) 61 | (ON U E) 62 | (ON E D) 63 | (ON D T) 64 | (ON T S) 65 | (ON S K) 66 | (ON K H) 67 | (ON H B) 68 | (ON B I) 69 | (ON I R) 70 | (ON R O) 71 | (ON O P) 72 | (ON P A) 73 | (ON A G) 74 | ) 75 | ) 76 | ) 77 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-44.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-21-1) 2 | (:domain blocks) 3 | (:objects 4 | U 5 | T 6 | S 7 | R 8 | Q 9 | P 10 | O 11 | N 12 | M 13 | L 14 | K 15 | J 16 | I 17 | H 18 | G 19 | F 20 | E 21 | D 22 | C 23 | A 24 | B 25 | - block) 26 | (:init 27 | (CLEAR F) 28 | (CLEAR B) 29 | (CLEAR T) 30 | (ONTABLE M) 31 | (ONTABLE B) 32 | (ONTABLE T) 33 | (ON F L) 34 | (ON L D) 35 | (ON D I) 36 | (ON I R) 37 | (ON R A) 38 | (ON A J) 39 | (ON J H) 40 | (ON H S) 41 | (ON S Q) 42 | (ON Q G) 43 | (ON G U) 44 | (ON U O) 45 | (ON O P) 46 | (ON P K) 47 | (ON K C) 48 | (ON C E) 49 | (ON E N) 50 | (ON N M) 51 | (HANDEMPTY) 52 | ) 53 | (:goal (and 54 | (ON Q L) 55 | (ON L J) 56 | (ON J C) 57 | (ON C M) 58 | (ON M N) 59 | (ON N F) 60 | (ON F U) 61 | (ON U E) 62 | (ON E D) 63 | (ON D T) 64 | (ON T S) 65 | (ON S K) 66 | (ON K H) 67 | (ON H B) 68 | (ON B I) 69 | (ON I R) 70 | (ON R O) 71 | (ON O P) 72 | (ON P A) 73 | (ON A G) 74 | ) 75 | ) 76 | ) 77 | -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- 1 | # This workflow will upload a Python Package using Twine when a release is created 2 | # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries 3 | 4 | # This workflow uses actions that are not certified by GitHub. 5 | # They are provided by a third-party and are governed by 6 | # separate terms of service, privacy policy, and support 7 | # documentation. 8 | 9 | name: Upload Python Package 10 | 11 | on: 12 | release: 13 | types: [published] 14 | 15 | permissions: 16 | contents: read 17 | 18 | jobs: 19 | deploy: 20 | 21 | runs-on: ubuntu-latest 22 | 23 | steps: 24 | - uses: actions/checkout@v3 25 | - name: Set up Python 26 | uses: actions/setup-python@v3 27 | with: 28 | python-version: '3.x' 29 | - name: Install dependencies 30 | run: | 31 | python -m pip install --upgrade pip 32 | pip install build 33 | - name: Build package 34 | run: python -m build 35 | - name: Publish package 36 | uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 37 | with: 38 | user: __token__ 39 | password: ${{ secrets.PYPI_API_TOKEN }} -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Proposed changes 2 | 3 | Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. 4 | 5 | ## Fixes 6 | 7 | If it fixes a bug or resolves a feature request, be sure to link to that issue. 8 | 9 | ## Types of changes 10 | 11 | What types of changes does your code introduce? 12 | _Put an `x` in the boxes that apply_ 13 | 14 | - [ ] Bugfix (non-breaking change which fixes an issue) 15 | - [ ] New feature (non-breaking change which adds functionality) 16 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 17 | 18 | ## Checklist 19 | 20 | _Put an `x` in the boxes that apply._ 21 | 22 | - [ ] I have read the [CONTRIBUTING](../blob/main/CONTRIBUTING.md) doc 23 | - [ ] I am making a pull request against the `develop` branch (left side). Also, you should start your branch off our `develop`. 24 | - [ ] Lint and unit tests pass locally with my changes 25 | - [ ] I have added tests that prove my fix is effective or that my feature works 26 | 27 | ## Further comments 28 | 29 | If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc... 30 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-45.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-22-0) 2 | (:domain blocks) 3 | (:objects 4 | V 5 | U 6 | T 7 | S 8 | R 9 | Q 10 | P 11 | O 12 | N 13 | M 14 | L 15 | K 16 | J 17 | I 18 | H 19 | G 20 | F 21 | E 22 | D 23 | C 24 | A 25 | B 26 | ) 27 | (:init 28 | (CLEAR N) 29 | (CLEAR P) 30 | (CLEAR V) 31 | (CLEAR U) 32 | (ONTABLE H) 33 | (ONTABLE P) 34 | (ONTABLE R) 35 | (ONTABLE E) 36 | (ON N H) 37 | (ON V M) 38 | (ON M S) 39 | (ON S D) 40 | (ON D B) 41 | (ON B J) 42 | (ON J L) 43 | (ON L G) 44 | (ON G C) 45 | (ON C Q) 46 | (ON Q R) 47 | (ON U I) 48 | (ON I A) 49 | (ON A T) 50 | (ON T K) 51 | (ON K O) 52 | (ON O F) 53 | (ON F E) 54 | (HANDEMPTY) 55 | ) 56 | (:goal (and 57 | (ON H O) 58 | (ON O M) 59 | (ON M Q) 60 | (ON Q G) 61 | (ON G S) 62 | (ON S I) 63 | (ON I N) 64 | (ON N P) 65 | (ON P U) 66 | (ON U B) 67 | (ON B D) 68 | (ON D F) 69 | (ON F E) 70 | (ON E C) 71 | (ON C K) 72 | (ON K A) 73 | (ON A L) 74 | (ON L R) 75 | (ON R T) 76 | (ON T V) 77 | (ON V J) 78 | ) 79 | ) 80 | ) 81 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-45.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-22-0) 2 | (:domain blocks) 3 | (:objects 4 | V 5 | U 6 | T 7 | S 8 | R 9 | Q 10 | P 11 | O 12 | N 13 | M 14 | L 15 | K 16 | J 17 | I 18 | H 19 | G 20 | F 21 | E 22 | D 23 | C 24 | A 25 | B 26 | - block) 27 | (:init 28 | (CLEAR N) 29 | (CLEAR P) 30 | (CLEAR V) 31 | (CLEAR U) 32 | (ONTABLE H) 33 | (ONTABLE P) 34 | (ONTABLE R) 35 | (ONTABLE E) 36 | (ON N H) 37 | (ON V M) 38 | (ON M S) 39 | (ON S D) 40 | (ON D B) 41 | (ON B J) 42 | (ON J L) 43 | (ON L G) 44 | (ON G C) 45 | (ON C Q) 46 | (ON Q R) 47 | (ON U I) 48 | (ON I A) 49 | (ON A T) 50 | (ON T K) 51 | (ON K O) 52 | (ON O F) 53 | (ON F E) 54 | (HANDEMPTY) 55 | ) 56 | (:goal (and 57 | (ON H O) 58 | (ON O M) 59 | (ON M Q) 60 | (ON Q G) 61 | (ON G S) 62 | (ON S I) 63 | (ON I N) 64 | (ON N P) 65 | (ON P U) 66 | (ON U B) 67 | (ON B D) 68 | (ON D F) 69 | (ON F E) 70 | (ON E C) 71 | (ON C K) 72 | (ON K A) 73 | (ON A L) 74 | (ON L R) 75 | (ON R T) 76 | (ON T V) 77 | (ON V J) 78 | ) 79 | ) 80 | ) 81 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-24.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-13-1) 2 | (:domain logistics) 3 | (:objects 4 | apn2 apn1 - airplane 5 | apt5 apt4 apt3 apt2 apt1 - airport 6 | pos5 pos4 pos3 pos2 pos1 - location 7 | cit5 cit4 cit3 cit2 cit1 - city 8 | tru5 tru4 tru3 tru2 tru1 - truck 9 | obj53 obj52 obj51 obj43 obj42 obj41 obj33 10 | obj32 obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 11 | (:init (at apn1 apt4) (at apn2 apt2) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) 14 | (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) (at tru5 pos5) 15 | (at obj51 pos5) (at obj52 pos5) (at obj53 pos5) (in-city pos1 cit1) 16 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 17 | (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4) (in-city pos5 cit5) 18 | (in-city apt5 cit5)) 19 | 20 | (:goal (and (at obj12 pos2) (at obj53 apt2) (at obj51 pos4) (at obj11 pos1) 21 | (at obj23 apt1) (at obj13 pos5) (at obj52 apt4) (at obj42 pos3) 22 | (at obj22 pos1) (at obj33 apt4) (at obj21 apt2) (at obj41 pos4) 23 | (at obj31 pos3))) 24 | ) -------------------------------------------------------------------------------- /plan4past/constants.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | # 3 | # Copyright 2021 -- 2023 WhiteMech 4 | # 5 | # ------------------------------ 6 | # 7 | # This file is part of Plan4Past. 8 | # 9 | # Plan4Past is free software: you can redistribute it and/or modify 10 | # it under the terms of the GNU Lesser General Public License as published by 11 | # the Free Software Foundation, either version 3 of the License, or 12 | # (at your option) any later version. 13 | # 14 | # Plan4Past is distributed in the hope that it will be useful, 15 | # but WITHOUT ANY WARRANTY; without even the implied warranty of 16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 | # GNU Lesser General Public License for more details. 18 | # 19 | # You should have received a copy of the GNU Lesser General Public License 20 | # along with Plan4Past. If not, see . 21 | # 22 | 23 | """Constants for Plan4Past.""" 24 | 25 | from pddl.logic import Predicate 26 | from pylogics.syntax.pltl import Atomic as PLTLAtomic 27 | 28 | PNF = "pnf" 29 | TRUE_ATOM = PLTLAtomic("true") 30 | GOAL_PREDICATE = Predicate("goal", *[]) 31 | CHECK_PREDICATE = Predicate("evaluate-pnf", *[]) 32 | TRUE_PREDICATE = Predicate("true", *[]) 33 | EVALUATE_PNF_ACTION = "evaluate-pnf-action" 34 | ACHIEVE_GOAL_ACTION = "achieve-goal" 35 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-23.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-13-0) 2 | (:domain logistics) 3 | (:objects apn2 apn1 - airplane 4 | apt5 apt4 apt3 apt2 apt1 - airport 5 | pos5 pos4 pos3 pos2 pos1 - location 6 | cit5 cit4 cit3 cit2 cit1 - city 7 | tru5 tru4 tru3 tru2 tru1 - truck 8 | obj53 obj52 obj51 obj43 obj42 obj41 obj33 obj32 9 | obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt2) (at apn2 apt1) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) 14 | (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) (at tru5 pos5) 15 | (at obj51 pos5) (at obj52 pos5) (at obj53 pos5) (in-city pos1 cit1) 16 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 17 | (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4) (in-city pos5 cit5) 18 | (in-city apt5 cit5)) 19 | 20 | (:goal (and (at obj31 apt1) (at obj12 pos3) (at obj23 pos5) (at obj11 pos5) 21 | (at obj43 apt2) (at obj52 apt4) (at obj13 pos4) (at obj53 pos1) 22 | (at obj33 pos1) (at obj32 apt2) (at obj41 apt3) (at obj51 apt5) 23 | (at obj22 pos2))) 24 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-46.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-22-1) 2 | (:domain blocks) 3 | (:objects 4 | V 5 | U 6 | T 7 | S 8 | R 9 | Q 10 | P 11 | O 12 | N 13 | M 14 | L 15 | K 16 | J 17 | I 18 | H 19 | G 20 | F 21 | E 22 | D 23 | C 24 | A 25 | B 26 | ) 27 | (:init 28 | (CLEAR P) 29 | (CLEAR O) 30 | (CLEAR G) 31 | (CLEAR A) 32 | (CLEAR N) 33 | (ONTABLE Q) 34 | (ONTABLE I) 35 | (ONTABLE K) 36 | (ONTABLE A) 37 | (ONTABLE N) 38 | (ON P U) 39 | (ON U Q) 40 | (ON O F) 41 | (ON F I) 42 | (ON G R) 43 | (ON R L) 44 | (ON L M) 45 | (ON M V) 46 | (ON V B) 47 | (ON B S) 48 | (ON S J) 49 | (ON J T) 50 | (ON T D) 51 | (ON D H) 52 | (ON H C) 53 | (ON C E) 54 | (ON E K) 55 | (HANDEMPTY) 56 | ) 57 | (:goal (and 58 | (ON C T) 59 | (ON T L) 60 | (ON L I) 61 | (ON I E) 62 | (ON E G) 63 | (ON G B) 64 | (ON B J) 65 | (ON J V) 66 | (ON V K) 67 | (ON K H) 68 | (ON H A) 69 | (ON A S) 70 | (ON S D) 71 | (ON D M) 72 | (ON M R) 73 | (ON R Q) 74 | (ON Q O) 75 | (ON O P) 76 | (ON P F) 77 | (ON F N) 78 | (ON N U) 79 | ) 80 | ) 81 | ) 82 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-26.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-14-1) 2 | (:domain logistics) 3 | (:objects apn2 apn1 - airplane 4 | apt5 apt4 apt3 apt2 apt1 - airport 5 | pos5 pos4 pos3 pos2 pos1 - location 6 | cit5 cit4 cit3 cit2 cit1 - city 7 | tru5 tru4 tru3 tru2 tru1 - truck 8 | obj53 obj52 obj51 obj43 obj42 obj41 obj33 obj32 9 | obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | (:init (at apn1 apt1) (at apn2 apt5) (at tru1 pos1) (at obj11 pos1) 11 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 12 | (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) 13 | (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) (at tru5 pos5) 14 | (at obj51 pos5) (at obj52 pos5) (at obj53 pos5) (in-city pos1 cit1) 15 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 16 | (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4) (in-city pos5 cit5) 17 | (in-city apt5 cit5)) 18 | 19 | (:goal (and (at obj33 pos3) (at obj22 pos3) (at obj13 apt2) (at obj43 apt1) 20 | (at obj41 apt1) (at obj51 pos4) (at obj53 apt5) (at obj11 pos4) 21 | (at obj31 pos3) (at obj42 pos1) (at obj52 pos1) (at obj12 apt3) 22 | (at obj32 apt4) (at obj21 pos4))) 23 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-46.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-22-1) 2 | (:domain blocks) 3 | (:objects 4 | V 5 | U 6 | T 7 | S 8 | R 9 | Q 10 | P 11 | O 12 | N 13 | M 14 | L 15 | K 16 | J 17 | I 18 | H 19 | G 20 | F 21 | E 22 | D 23 | C 24 | A 25 | B 26 | - block) 27 | (:init 28 | (CLEAR P) 29 | (CLEAR O) 30 | (CLEAR G) 31 | (CLEAR A) 32 | (CLEAR N) 33 | (ONTABLE Q) 34 | (ONTABLE I) 35 | (ONTABLE K) 36 | (ONTABLE A) 37 | (ONTABLE N) 38 | (ON P U) 39 | (ON U Q) 40 | (ON O F) 41 | (ON F I) 42 | (ON G R) 43 | (ON R L) 44 | (ON L M) 45 | (ON M V) 46 | (ON V B) 47 | (ON B S) 48 | (ON S J) 49 | (ON J T) 50 | (ON T D) 51 | (ON D H) 52 | (ON H C) 53 | (ON C E) 54 | (ON E K) 55 | (HANDEMPTY) 56 | ) 57 | (:goal (and 58 | (ON C T) 59 | (ON T L) 60 | (ON L I) 61 | (ON I E) 62 | (ON E G) 63 | (ON G B) 64 | (ON B J) 65 | (ON J V) 66 | (ON V K) 67 | (ON K H) 68 | (ON H A) 69 | (ON A S) 70 | (ON S D) 71 | (ON D M) 72 | (ON M R) 73 | (ON R Q) 74 | (ON Q O) 75 | (ON O P) 76 | (ON P F) 77 | (ON F N) 78 | (ON N U) 79 | ) 80 | ) 81 | ) 82 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-25.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-14-0) 2 | 3 | (:domain logistics) 4 | 5 | (:objects 6 | apn2 apn1 - airplane 7 | apt5 apt4 apt3 apt2 apt1 - airport 8 | pos5 pos4 pos3 pos2 pos1 - location 9 | cit5 cit4 cit3 cit2 cit1 - city 10 | tru5 tru4 tru3 tru2 tru1 - truck 11 | obj53 obj52 obj51 obj43 obj42 obj41 obj33 obj32 12 | obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 13 | (:init (at apn1 apt2) (at apn2 apt2) (at tru1 pos1) (at obj11 pos1) 14 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 15 | (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) 16 | (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) (at tru5 pos5) 17 | (at obj51 pos5) (at obj52 pos5) (at obj53 pos5) (in-city pos1 cit1) 18 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 19 | (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4) (in-city pos5 cit5) 20 | (in-city apt5 cit5)) 21 | 22 | (:goal (and (at obj51 apt5) (at obj53 apt5) (at obj23 pos2) (at obj31 pos5) 23 | (at obj12 apt3) (at obj32 pos4) (at obj13 apt1) (at obj42 pos4) 24 | (at obj41 apt3) (at obj11 apt4) (at obj22 pos4) (at obj43 apt5) 25 | (at obj33 pos3) (at obj21 pos5))) 26 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-27.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-15-0) 2 | (:domain logistics) 3 | (:objects apn2 apn1 - airplane 4 | apt5 apt4 apt3 apt2 apt1 - airport 5 | pos5 pos4 pos3 pos2 pos1 - location 6 | cit5 cit4 cit3 cit2 cit1 - city 7 | tru5 tru4 tru3 tru2 tru1 - truck 8 | obj53 obj52 obj51 obj43 obj42 obj41 obj33 obj32 9 | obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 10 | 11 | (:init (at apn1 apt5) (at apn2 apt2) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) 14 | (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) (at tru5 pos5) 15 | (at obj51 pos5) (at obj52 pos5) (at obj53 pos5) (in-city pos1 cit1) 16 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 17 | (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4) (in-city pos5 cit5) 18 | (in-city apt5 cit5)) 19 | 20 | (:goal (and (at obj22 apt4) (at obj31 apt4) (at obj43 pos5) (at obj13 apt1) 21 | (at obj23 pos4) (at obj12 pos2) (at obj51 pos3) (at obj32 pos3) 22 | (at obj11 apt3) (at obj42 apt2) (at obj52 apt4) (at obj33 apt3) 23 | (at obj21 pos3) (at obj53 apt2) (at obj41 apt1))) 24 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/logistics-strips-typed/instances/instance-28.pddl: -------------------------------------------------------------------------------- 1 | (define (problem logistics-15-1) 2 | (:domain logistics) 3 | (:objects 4 | apn2 apn1 - airplane 5 | apt5 apt4 apt3 apt2 apt1 - airport 6 | pos5 pos4 pos3 pos2 pos1 - location 7 | cit5 cit4 cit3 cit2 cit1 - city 8 | tru5 tru4 tru3 tru2 tru1 - truck 9 | obj53 obj52 obj51 obj43 obj42 obj41 obj33 obj32 10 | obj31 obj23 obj22 obj21 obj13 obj12 obj11 - package) 11 | (:init (at apn1 apt2) (at apn2 apt1) (at tru1 pos1) (at obj11 pos1) 12 | (at obj12 pos1) (at obj13 pos1) (at tru2 pos2) (at obj21 pos2) (at obj22 pos2) 13 | (at obj23 pos2) (at tru3 pos3) (at obj31 pos3) (at obj32 pos3) (at obj33 pos3) 14 | (at tru4 pos4) (at obj41 pos4) (at obj42 pos4) (at obj43 pos4) (at tru5 pos5) 15 | (at obj51 pos5) (at obj52 pos5) (at obj53 pos5) (in-city pos1 cit1) 16 | (in-city apt1 cit1) (in-city pos2 cit2) (in-city apt2 cit2) (in-city pos3 cit3) 17 | (in-city apt3 cit3) (in-city pos4 cit4) (in-city apt4 cit4) (in-city pos5 cit5) 18 | (in-city apt5 cit5)) 19 | 20 | (:goal (and (at obj31 apt4) (at obj22 apt2) (at obj42 apt4) (at obj53 apt3) 21 | (at obj12 pos1) (at obj32 apt1) (at obj43 apt3) (at obj52 apt1) 22 | (at obj51 apt3) (at obj21 apt4) (at obj11 pos3) (at obj23 pos4) 23 | (at obj33 pos3) (at obj13 apt3) (at obj41 pos1))) 24 | ) -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-50.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-24-1) 2 | (:domain blocks) 3 | (:objects 4 | X 5 | W 6 | V 7 | U 8 | T 9 | S 10 | R 11 | Q 12 | P 13 | O 14 | N 15 | M 16 | L 17 | K 18 | J 19 | I 20 | H 21 | G 22 | F 23 | E 24 | D 25 | C 26 | A 27 | B 28 | ) 29 | (:init 30 | (CLEAR K) 31 | (CLEAR I) 32 | (ONTABLE C) 33 | (ONTABLE O) 34 | (ON K F) 35 | (ON F T) 36 | (ON T B) 37 | (ON B G) 38 | (ON G R) 39 | (ON R M) 40 | (ON M E) 41 | (ON E J) 42 | (ON J V) 43 | (ON V N) 44 | (ON N U) 45 | (ON U H) 46 | (ON H C) 47 | (ON I A) 48 | (ON A P) 49 | (ON P Q) 50 | (ON Q D) 51 | (ON D W) 52 | (ON W X) 53 | (ON X S) 54 | (ON S L) 55 | (ON L O) 56 | (HANDEMPTY) 57 | ) 58 | (:goal (and 59 | (ON L C) 60 | (ON C P) 61 | (ON P Q) 62 | (ON Q M) 63 | (ON M B) 64 | (ON B G) 65 | (ON G F) 66 | (ON F K) 67 | (ON K E) 68 | (ON E R) 69 | (ON R A) 70 | (ON A W) 71 | (ON W T) 72 | (ON T N) 73 | (ON N J) 74 | (ON J U) 75 | (ON U S) 76 | (ON S D) 77 | (ON D H) 78 | (ON H V) 79 | (ON V O) 80 | (ON O I) 81 | (ON I X) 82 | ) 83 | ) 84 | ) 85 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-50.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-24-1) 2 | (:domain blocks) 3 | (:objects 4 | X 5 | W 6 | V 7 | U 8 | T 9 | S 10 | R 11 | Q 12 | P 13 | O 14 | N 15 | M 16 | L 17 | K 18 | J 19 | I 20 | H 21 | G 22 | F 23 | E 24 | D 25 | C 26 | A 27 | B 28 | - block) 29 | (:init 30 | (CLEAR K) 31 | (CLEAR I) 32 | (ONTABLE C) 33 | (ONTABLE O) 34 | (ON K F) 35 | (ON F T) 36 | (ON T B) 37 | (ON B G) 38 | (ON G R) 39 | (ON R M) 40 | (ON M E) 41 | (ON E J) 42 | (ON J V) 43 | (ON V N) 44 | (ON N U) 45 | (ON U H) 46 | (ON H C) 47 | (ON I A) 48 | (ON A P) 49 | (ON P Q) 50 | (ON Q D) 51 | (ON D W) 52 | (ON W X) 53 | (ON X S) 54 | (ON S L) 55 | (ON L O) 56 | (HANDEMPTY) 57 | ) 58 | (:goal (and 59 | (ON L C) 60 | (ON C P) 61 | (ON P Q) 62 | (ON Q M) 63 | (ON M B) 64 | (ON B G) 65 | (ON G F) 66 | (ON F K) 67 | (ON K E) 68 | (ON E R) 69 | (ON R A) 70 | (ON A W) 71 | (ON W T) 72 | (ON T N) 73 | (ON N J) 74 | (ON J U) 75 | (ON U S) 76 | (ON S D) 77 | (ON D H) 78 | (ON H V) 79 | (ON V O) 80 | (ON O I) 81 | (ON I X) 82 | ) 83 | ) 84 | ) 85 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/domain.pddl: -------------------------------------------------------------------------------- 1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2 | ;;; 4 Op-blocks world 3 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 4 | 5 | (define (domain BLOCKS) 6 | (:requirements :strips) 7 | (:predicates (on ?x ?y) 8 | (ontable ?x) 9 | (clear ?x) 10 | (handempty) 11 | (holding ?x) 12 | ) 13 | 14 | (:action pick-up 15 | :parameters (?x) 16 | :precondition (and (clear ?x) (ontable ?x) (handempty)) 17 | :effect 18 | (and (not (ontable ?x)) 19 | (not (clear ?x)) 20 | (not (handempty)) 21 | (holding ?x))) 22 | 23 | (:action put-down 24 | :parameters (?x) 25 | :precondition (holding ?x) 26 | :effect 27 | (and (not (holding ?x)) 28 | (clear ?x) 29 | (handempty) 30 | (ontable ?x))) 31 | (:action stack 32 | :parameters (?x ?y) 33 | :precondition (and (holding ?x) (clear ?y)) 34 | :effect 35 | (and (not (holding ?x)) 36 | (not (clear ?y)) 37 | (clear ?x) 38 | (handempty) 39 | (on ?x ?y))) 40 | (:action unstack 41 | :parameters (?x ?y) 42 | :precondition (and (on ?x ?y) (clear ?x) (handempty)) 43 | :effect 44 | (and (holding ?x) 45 | (clear ?y) 46 | (not (clear ?x)) 47 | (not (handempty)) 48 | (not (on ?x ?y))))) 49 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-47.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-23-0) 2 | (:domain blocks) 3 | (:objects 4 | W 5 | V 6 | U 7 | T 8 | S 9 | R 10 | Q 11 | P 12 | O 13 | N 14 | M 15 | L 16 | K 17 | J 18 | I 19 | H 20 | G 21 | F 22 | E 23 | D 24 | C 25 | A 26 | B 27 | ) 28 | (:init 29 | (CLEAR V) 30 | (CLEAR Q) 31 | (CLEAR B) 32 | (CLEAR U) 33 | (CLEAR F) 34 | (ONTABLE G) 35 | (ONTABLE Q) 36 | (ONTABLE B) 37 | (ONTABLE W) 38 | (ONTABLE S) 39 | (ON V A) 40 | (ON A K) 41 | (ON K N) 42 | (ON N D) 43 | (ON D I) 44 | (ON I M) 45 | (ON M J) 46 | (ON J O) 47 | (ON O T) 48 | (ON T L) 49 | (ON L C) 50 | (ON C P) 51 | (ON P E) 52 | (ON E G) 53 | (ON U R) 54 | (ON R W) 55 | (ON F H) 56 | (ON H S) 57 | (HANDEMPTY) 58 | ) 59 | (:goal (and 60 | (ON E K) 61 | (ON K I) 62 | (ON I J) 63 | (ON J A) 64 | (ON A Q) 65 | (ON Q F) 66 | (ON F N) 67 | (ON N D) 68 | (ON D W) 69 | (ON W C) 70 | (ON C H) 71 | (ON H P) 72 | (ON P R) 73 | (ON R T) 74 | (ON T S) 75 | (ON S V) 76 | (ON V B) 77 | (ON B U) 78 | (ON U L) 79 | (ON L O) 80 | (ON O G) 81 | (ON G M) 82 | ) 83 | ) 84 | ) 85 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-48.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-23-1) 2 | (:domain blocks) 3 | (:objects 4 | W 5 | V 6 | U 7 | T 8 | S 9 | R 10 | Q 11 | P 12 | O 13 | N 14 | M 15 | L 16 | K 17 | J 18 | I 19 | H 20 | G 21 | F 22 | E 23 | D 24 | C 25 | A 26 | B 27 | ) 28 | (:init 29 | (CLEAR M) 30 | (CLEAR U) 31 | (CLEAR F) 32 | (CLEAR Q) 33 | (CLEAR N) 34 | (ONTABLE B) 35 | (ONTABLE O) 36 | (ONTABLE J) 37 | (ONTABLE Q) 38 | (ONTABLE N) 39 | (ON M A) 40 | (ON A R) 41 | (ON R B) 42 | (ON U G) 43 | (ON G T) 44 | (ON T S) 45 | (ON S V) 46 | (ON V H) 47 | (ON H C) 48 | (ON C K) 49 | (ON K P) 50 | (ON P L) 51 | (ON L W) 52 | (ON W O) 53 | (ON F E) 54 | (ON E D) 55 | (ON D I) 56 | (ON I J) 57 | (HANDEMPTY) 58 | ) 59 | (:goal (and 60 | (ON A M) 61 | (ON M T) 62 | (ON T N) 63 | (ON N J) 64 | (ON J I) 65 | (ON I G) 66 | (ON G O) 67 | (ON O V) 68 | (ON V U) 69 | (ON U H) 70 | (ON H C) 71 | (ON C W) 72 | (ON W Q) 73 | (ON Q E) 74 | (ON E K) 75 | (ON K R) 76 | (ON R P) 77 | (ON P B) 78 | (ON B S) 79 | (ON S F) 80 | (ON F L) 81 | (ON L D) 82 | ) 83 | ) 84 | ) 85 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-47.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-23-0) 2 | (:domain blocks) 3 | (:objects 4 | W 5 | V 6 | U 7 | T 8 | S 9 | R 10 | Q 11 | P 12 | O 13 | N 14 | M 15 | L 16 | K 17 | J 18 | I 19 | H 20 | G 21 | F 22 | E 23 | D 24 | C 25 | A 26 | B 27 | - block) 28 | (:init 29 | (CLEAR V) 30 | (CLEAR Q) 31 | (CLEAR B) 32 | (CLEAR U) 33 | (CLEAR F) 34 | (ONTABLE G) 35 | (ONTABLE Q) 36 | (ONTABLE B) 37 | (ONTABLE W) 38 | (ONTABLE S) 39 | (ON V A) 40 | (ON A K) 41 | (ON K N) 42 | (ON N D) 43 | (ON D I) 44 | (ON I M) 45 | (ON M J) 46 | (ON J O) 47 | (ON O T) 48 | (ON T L) 49 | (ON L C) 50 | (ON C P) 51 | (ON P E) 52 | (ON E G) 53 | (ON U R) 54 | (ON R W) 55 | (ON F H) 56 | (ON H S) 57 | (HANDEMPTY) 58 | ) 59 | (:goal (and 60 | (ON E K) 61 | (ON K I) 62 | (ON I J) 63 | (ON J A) 64 | (ON A Q) 65 | (ON Q F) 66 | (ON F N) 67 | (ON N D) 68 | (ON D W) 69 | (ON W C) 70 | (ON C H) 71 | (ON H P) 72 | (ON P R) 73 | (ON R T) 74 | (ON T S) 75 | (ON S V) 76 | (ON V B) 77 | (ON B U) 78 | (ON U L) 79 | (ON L O) 80 | (ON O G) 81 | (ON G M) 82 | ) 83 | ) 84 | ) 85 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-48.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-23-1) 2 | (:domain blocks) 3 | (:objects 4 | W 5 | V 6 | U 7 | T 8 | S 9 | R 10 | Q 11 | P 12 | O 13 | N 14 | M 15 | L 16 | K 17 | J 18 | I 19 | H 20 | G 21 | F 22 | E 23 | D 24 | C 25 | A 26 | B 27 | - block) 28 | (:init 29 | (CLEAR M) 30 | (CLEAR U) 31 | (CLEAR F) 32 | (CLEAR Q) 33 | (CLEAR N) 34 | (ONTABLE B) 35 | (ONTABLE O) 36 | (ONTABLE J) 37 | (ONTABLE Q) 38 | (ONTABLE N) 39 | (ON M A) 40 | (ON A R) 41 | (ON R B) 42 | (ON U G) 43 | (ON G T) 44 | (ON T S) 45 | (ON S V) 46 | (ON V H) 47 | (ON H C) 48 | (ON C K) 49 | (ON K P) 50 | (ON P L) 51 | (ON L W) 52 | (ON W O) 53 | (ON F E) 54 | (ON E D) 55 | (ON D I) 56 | (ON I J) 57 | (HANDEMPTY) 58 | ) 59 | (:goal (and 60 | (ON A M) 61 | (ON M T) 62 | (ON T N) 63 | (ON N J) 64 | (ON J I) 65 | (ON I G) 66 | (ON G O) 67 | (ON O V) 68 | (ON V U) 69 | (ON U H) 70 | (ON H C) 71 | (ON C W) 72 | (ON W Q) 73 | (ON Q E) 74 | (ON E K) 75 | (ON K R) 76 | (ON R P) 77 | (ON P B) 78 | (ON B S) 79 | (ON S F) 80 | (ON F L) 81 | (ON L D) 82 | ) 83 | ) 84 | ) 85 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-untyped/instances/instance-49.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-24-0) 2 | (:domain blocks) 3 | (:objects 4 | X 5 | W 6 | V 7 | U 8 | T 9 | S 10 | R 11 | Q 12 | P 13 | O 14 | N 15 | M 16 | L 17 | K 18 | J 19 | I 20 | H 21 | G 22 | F 23 | E 24 | D 25 | C 26 | A 27 | B 28 | ) 29 | (:init 30 | (CLEAR B) 31 | (CLEAR G) 32 | (CLEAR V) 33 | (CLEAR M) 34 | (CLEAR R) 35 | (ONTABLE T) 36 | (ONTABLE Q) 37 | (ONTABLE F) 38 | (ONTABLE H) 39 | (ONTABLE R) 40 | (ON B O) 41 | (ON O C) 42 | (ON C L) 43 | (ON L K) 44 | (ON K I) 45 | (ON I S) 46 | (ON S D) 47 | (ON D T) 48 | (ON G P) 49 | (ON P A) 50 | (ON A J) 51 | (ON J N) 52 | (ON N X) 53 | (ON X Q) 54 | (ON V W) 55 | (ON W E) 56 | (ON E U) 57 | (ON U F) 58 | (ON M H) 59 | (HANDEMPTY) 60 | ) 61 | (:goal (and 62 | (ON I E) 63 | (ON E F) 64 | (ON F O) 65 | (ON O X) 66 | (ON X J) 67 | (ON J N) 68 | (ON N V) 69 | (ON V P) 70 | (ON P M) 71 | (ON M H) 72 | (ON H K) 73 | (ON K L) 74 | (ON L D) 75 | (ON D U) 76 | (ON U A) 77 | (ON A T) 78 | (ON T R) 79 | (ON R C) 80 | (ON C G) 81 | (ON G Q) 82 | (ON Q S) 83 | (ON S B) 84 | (ON B W) 85 | ) 86 | ) 87 | ) 88 | -------------------------------------------------------------------------------- /tests/pddl_files/deterministic/blocks-strips-typed/instances/instance-49.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks-24-0) 2 | (:domain blocks) 3 | (:objects 4 | X 5 | W 6 | V 7 | U 8 | T 9 | S 10 | R 11 | Q 12 | P 13 | O 14 | N 15 | M 16 | L 17 | K 18 | J 19 | I 20 | H 21 | G 22 | F 23 | E 24 | D 25 | C 26 | A 27 | B 28 | - block) 29 | (:init 30 | (CLEAR B) 31 | (CLEAR G) 32 | (CLEAR V) 33 | (CLEAR M) 34 | (CLEAR R) 35 | (ONTABLE T) 36 | (ONTABLE Q) 37 | (ONTABLE F) 38 | (ONTABLE H) 39 | (ONTABLE R) 40 | (ON B O) 41 | (ON O C) 42 | (ON C L) 43 | (ON L K) 44 | (ON K I) 45 | (ON I S) 46 | (ON S D) 47 | (ON D T) 48 | (ON G P) 49 | (ON P A) 50 | (ON A J) 51 | (ON J N) 52 | (ON N X) 53 | (ON X Q) 54 | (ON V W) 55 | (ON W E) 56 | (ON E U) 57 | (ON U F) 58 | (ON M H) 59 | (HANDEMPTY) 60 | ) 61 | (:goal (and 62 | (ON I E) 63 | (ON E F) 64 | (ON F O) 65 | (ON O X) 66 | (ON X J) 67 | (ON J N) 68 | (ON N V) 69 | (ON V P) 70 | (ON P M) 71 | (ON M H) 72 | (ON H K) 73 | (ON K L) 74 | (ON L D) 75 | (ON D U) 76 | (ON U A) 77 | (ON A T) 78 | (ON T R) 79 | (ON R C) 80 | (ON C G) 81 | (ON G Q) 82 | (ON Q S) 83 | (ON S B) 84 | (ON B W) 85 | ) 86 | ) 87 | ) 88 | --------------------------------------------------------------------------------