├── .gitignore ├── .template_env ├── README.md ├── agentboard ├── agents │ ├── __init__.py │ ├── base_agent.py │ ├── custom_agent.py │ ├── react_agent.py │ └── vanilla_agent.py ├── common │ └── registry.py ├── environment │ ├── WebShop │ │ ├── LICENSE.md │ │ ├── README.md │ │ ├── run_dev.log │ │ ├── run_dev.sh │ │ ├── run_web_agent_site_env.sh │ │ ├── run_web_agent_text_env.sh │ │ ├── search_engine │ │ │ ├── convert_product_file_format.py │ │ │ ├── lucene_searcher.py │ │ │ └── run_indexing.sh │ │ ├── setup.sh │ │ └── web_agent_site │ │ │ ├── __init__.py │ │ │ ├── app.py │ │ │ ├── attributes │ │ │ ├── annotate.py │ │ │ └── generate_attrs.py │ │ │ ├── engine │ │ │ ├── __init__.py │ │ │ ├── engine.py │ │ │ ├── goal.py │ │ │ └── normalize.py │ │ │ ├── envs │ │ │ ├── __init__.py │ │ │ ├── chromedriver │ │ │ ├── web_agent_site_env.py │ │ │ └── web_agent_text_env.py │ │ │ ├── models │ │ │ ├── __init__.py │ │ │ └── models.py │ │ │ ├── static │ │ │ ├── images │ │ │ │ └── no-image-available.png │ │ │ └── style.css │ │ │ ├── templates │ │ │ ├── attributes_page.html │ │ │ ├── description_page.html │ │ │ ├── done_page.html │ │ │ ├── features_page.html │ │ │ ├── item_page.html │ │ │ ├── results_page.html │ │ │ ├── review_page.html │ │ │ └── search_page.html │ │ │ └── utils.py │ ├── __init__.py │ ├── academia_env.py │ ├── alfworld │ │ ├── alfworld_env.py │ │ └── base_config.yaml │ ├── babyai_env.py │ ├── base_env.py │ ├── browser_env │ │ ├── __init__.py │ │ ├── actions.py │ │ ├── async_envs.py │ │ ├── auto_login.py │ │ ├── constants.py │ │ ├── env_config.py │ │ ├── envs.py │ │ ├── evaluation_function.py │ │ ├── help_function.py │ │ ├── processors.py │ │ └── utils.py │ ├── jericho_env.py │ ├── legacy │ │ ├── game24_env │ │ │ ├── game24_env.py │ │ │ └── games.txt │ │ ├── scienceworld │ │ │ ├── .ipynb_checkpoints │ │ │ │ └── scienceworld_env-checkpoint.py │ │ │ ├── __init__.py │ │ │ └── scienceworld_env.py │ │ └── textworld_env.py │ ├── movie_env.py │ ├── pddl_env │ │ ├── pddl_env.py │ │ └── pddlgym │ │ │ ├── __init__.py │ │ │ ├── core.py │ │ │ ├── custom │ │ │ ├── __init__.py │ │ │ └── searchandrescue.py │ │ │ ├── demo.py │ │ │ ├── demo_planning.py │ │ │ ├── downward_translate │ │ │ ├── __init__.py │ │ │ ├── axiom_rules.py │ │ │ ├── build_model.py │ │ │ ├── constraints.py │ │ │ ├── fact_groups.py │ │ │ ├── graph.py │ │ │ ├── greedy_join.py │ │ │ ├── instantiate.py │ │ │ ├── invariant_finder.py │ │ │ ├── invariants.py │ │ │ ├── normalize.py │ │ │ ├── options.py │ │ │ ├── pddl │ │ │ │ ├── __init__.py │ │ │ │ ├── actions.py │ │ │ │ ├── axioms.py │ │ │ │ ├── conditions.py │ │ │ │ ├── effects.py │ │ │ │ ├── f_expression.py │ │ │ │ ├── functions.py │ │ │ │ ├── pddl_types.py │ │ │ │ ├── predicates.py │ │ │ │ └── tasks.py │ │ │ ├── pddl_parser │ │ │ │ ├── __init__.py │ │ │ │ ├── lisp_parser.py │ │ │ │ ├── parsing_functions.py │ │ │ │ └── pddl_file.py │ │ │ ├── pddl_to_prolog.py │ │ │ ├── regression-tests │ │ │ │ ├── README │ │ │ │ ├── issue34-domain.pddl │ │ │ │ ├── issue34-problem.pddl │ │ │ │ ├── issue405-domain.pddl │ │ │ │ ├── issue405-problem.pddl │ │ │ │ ├── issue49-falsegoal-domain.pddl │ │ │ │ ├── issue49-falsegoal-problem.pddl │ │ │ │ ├── issue49-orig-domain.pddl │ │ │ │ ├── issue49-orig-problem.pddl │ │ │ │ ├── issue49-truegoal-domain.pddl │ │ │ │ ├── issue49-truegoal-problem.pddl │ │ │ │ ├── issue58-domain.pddl │ │ │ │ ├── issue58-problem.pddl │ │ │ │ ├── issue7-domain.pddl │ │ │ │ ├── issue7-problem.pddl │ │ │ │ ├── issue73-domain.pddl │ │ │ │ └── issue73-problem.pddl │ │ │ ├── sas_tasks.py │ │ │ ├── sccs.py │ │ │ ├── simplify.py │ │ │ ├── split_rules.py │ │ │ ├── tests │ │ │ │ ├── __init__.py │ │ │ │ ├── test_normalization.py │ │ │ │ └── test_scripts.py │ │ │ ├── timers.py │ │ │ ├── tools.py │ │ │ ├── translate.py │ │ │ └── variable_order.py │ │ │ ├── inference.py │ │ │ ├── parser.py │ │ │ ├── pddl │ │ │ ├── baking.pddl │ │ │ ├── baking │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ └── problem7.pddl │ │ │ ├── barman.pddl │ │ │ ├── barman │ │ │ │ ├── p01.pddl │ │ │ │ ├── p02.pddl │ │ │ │ ├── p03.pddl │ │ │ │ ├── p04.pddl │ │ │ │ ├── p05.pddl │ │ │ │ ├── p06.pddl │ │ │ │ ├── p07.pddl │ │ │ │ ├── p08.pddl │ │ │ │ ├── p09.pddl │ │ │ │ ├── p10.pddl │ │ │ │ ├── p11.pddl │ │ │ │ ├── p12.pddl │ │ │ │ ├── p13.pddl │ │ │ │ ├── p14.pddl │ │ │ │ ├── p15.pddl │ │ │ │ ├── p16.pddl │ │ │ │ ├── p17.pddl │ │ │ │ ├── p18.pddl │ │ │ │ ├── p19.pddl │ │ │ │ └── p20.pddl │ │ │ ├── barman_old │ │ │ │ ├── p01.pddl │ │ │ │ ├── p02.pddl │ │ │ │ ├── p03.pddl │ │ │ │ ├── p04.pddl │ │ │ │ ├── p05.pddl │ │ │ │ ├── p06.pddl │ │ │ │ ├── p07.pddl │ │ │ │ ├── p08.pddl │ │ │ │ ├── p09.pddl │ │ │ │ ├── p10.pddl │ │ │ │ ├── p11.pddl │ │ │ │ ├── p12.pddl │ │ │ │ ├── p13.pddl │ │ │ │ ├── p14.pddl │ │ │ │ ├── p15.pddl │ │ │ │ ├── p16.pddl │ │ │ │ ├── p17.pddl │ │ │ │ ├── p18.pddl │ │ │ │ ├── p19.pddl │ │ │ │ └── p20.pddl │ │ │ ├── blocks.pddl │ │ │ ├── blocks │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── blocks_medium.pddl │ │ │ ├── blocks_medium │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem14.pddl │ │ │ │ ├── problem15.pddl │ │ │ │ ├── problem16.pddl │ │ │ │ ├── problem17.pddl │ │ │ │ ├── problem18.pddl │ │ │ │ ├── problem19.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem20.pddl │ │ │ │ ├── problem21.pddl │ │ │ │ ├── problem22.pddl │ │ │ │ ├── problem23.pddl │ │ │ │ ├── problem24.pddl │ │ │ │ ├── problem25.pddl │ │ │ │ ├── problem26.pddl │ │ │ │ ├── problem27.pddl │ │ │ │ ├── problem28.pddl │ │ │ │ ├── problem29.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem30.pddl │ │ │ │ ├── problem31.pddl │ │ │ │ ├── problem32.pddl │ │ │ │ ├── problem33.pddl │ │ │ │ ├── problem34.pddl │ │ │ │ ├── problem35.pddl │ │ │ │ ├── problem36.pddl │ │ │ │ ├── problem37.pddl │ │ │ │ ├── problem38.pddl │ │ │ │ ├── problem39.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── blocks_old.pddl │ │ │ ├── blocks_old │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── blockworld.pddl │ │ │ ├── blockworld │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── doors.pddl │ │ │ ├── doors │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── elevator.pddl │ │ │ ├── elevator │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── footwear.pddl │ │ │ ├── footwear │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem14.pddl │ │ │ │ ├── problem15.pddl │ │ │ │ ├── problem16.pddl │ │ │ │ ├── problem17.pddl │ │ │ │ ├── problem18.pddl │ │ │ │ ├── problem19.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem20.pddl │ │ │ │ ├── problem21.pddl │ │ │ │ ├── problem22.pddl │ │ │ │ ├── problem23.pddl │ │ │ │ ├── problem24.pddl │ │ │ │ ├── problem25.pddl │ │ │ │ ├── problem26.pddl │ │ │ │ ├── problem27.pddl │ │ │ │ ├── problem28.pddl │ │ │ │ ├── problem29.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem30.pddl │ │ │ │ ├── problem31.pddl │ │ │ │ ├── problem32.pddl │ │ │ │ ├── problem33.pddl │ │ │ │ ├── problem34.pddl │ │ │ │ ├── problem35.pddl │ │ │ │ ├── problem36.pddl │ │ │ │ ├── problem37.pddl │ │ │ │ ├── problem38.pddl │ │ │ │ ├── problem39.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── fridge.pddl │ │ │ ├── fridge │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── glibrearrangement.pddl │ │ │ ├── glibrearrangement │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem14.pddl │ │ │ │ ├── problem15.pddl │ │ │ │ ├── problem16.pddl │ │ │ │ ├── problem17.pddl │ │ │ │ ├── problem18.pddl │ │ │ │ ├── problem19.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── gripper.pddl │ │ │ ├── gripper │ │ │ │ ├── prob01.pddl │ │ │ │ ├── prob02.pddl │ │ │ │ ├── prob03.pddl │ │ │ │ ├── prob04.pddl │ │ │ │ ├── prob05.pddl │ │ │ │ ├── prob06.pddl │ │ │ │ ├── prob07.pddl │ │ │ │ ├── prob08.pddl │ │ │ │ ├── prob09.pddl │ │ │ │ ├── prob10.pddl │ │ │ │ ├── prob11.pddl │ │ │ │ ├── prob12.pddl │ │ │ │ ├── prob13.pddl │ │ │ │ ├── prob14.pddl │ │ │ │ ├── prob15.pddl │ │ │ │ ├── prob16.pddl │ │ │ │ ├── prob17.pddl │ │ │ │ ├── prob18.pddl │ │ │ │ ├── prob19.pddl │ │ │ │ └── prob20.pddl │ │ │ ├── gripper_old │ │ │ │ ├── prob01.pddl │ │ │ │ ├── prob02.pddl │ │ │ │ ├── prob03.pddl │ │ │ │ ├── prob04.pddl │ │ │ │ ├── prob05.pddl │ │ │ │ ├── prob06.pddl │ │ │ │ ├── prob07.pddl │ │ │ │ ├── prob08.pddl │ │ │ │ ├── prob09.pddl │ │ │ │ ├── prob10.pddl │ │ │ │ ├── prob11.pddl │ │ │ │ ├── prob12.pddl │ │ │ │ ├── prob13.pddl │ │ │ │ ├── prob14.pddl │ │ │ │ ├── prob15.pddl │ │ │ │ ├── prob16.pddl │ │ │ │ ├── prob17.pddl │ │ │ │ ├── prob18.pddl │ │ │ │ ├── prob19.pddl │ │ │ │ └── prob20.pddl │ │ │ ├── hanoi.pddl │ │ │ ├── hanoi │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── test_problem0.pddl │ │ │ │ ├── test_problem1.pddl │ │ │ │ ├── test_problem2.pddl │ │ │ │ ├── test_problem3.pddl │ │ │ │ ├── test_problem4.pddl │ │ │ │ └── test_problem5.pddl │ │ │ ├── hanoi_operator_actions.pddl │ │ │ ├── hanoi_operator_actions │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── minecraft.pddl │ │ │ ├── minecraft │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem14.pddl │ │ │ │ ├── problem15.pddl │ │ │ │ ├── problem16.pddl │ │ │ │ ├── problem17.pddl │ │ │ │ ├── problem18.pddl │ │ │ │ ├── problem19.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem20.pddl │ │ │ │ ├── problem21.pddl │ │ │ │ ├── problem22.pddl │ │ │ │ ├── problem23.pddl │ │ │ │ ├── problem24.pddl │ │ │ │ ├── problem25.pddl │ │ │ │ ├── problem26.pddl │ │ │ │ ├── problem27.pddl │ │ │ │ ├── problem28.pddl │ │ │ │ ├── problem29.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── newspapers.pddl │ │ │ ├── newspapers │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem14.pddl │ │ │ │ ├── problem15.pddl │ │ │ │ ├── problem16.pddl │ │ │ │ ├── problem17.pddl │ │ │ │ ├── problem18.pddl │ │ │ │ ├── problem19.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem20.pddl │ │ │ │ ├── problem21.pddl │ │ │ │ ├── problem22.pddl │ │ │ │ ├── problem23.pddl │ │ │ │ ├── problem24.pddl │ │ │ │ ├── problem25.pddl │ │ │ │ ├── problem26.pddl │ │ │ │ ├── problem27.pddl │ │ │ │ ├── problem28.pddl │ │ │ │ ├── problem29.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem30.pddl │ │ │ │ ├── problem31.pddl │ │ │ │ ├── problem32.pddl │ │ │ │ ├── problem33.pddl │ │ │ │ ├── problem34.pddl │ │ │ │ ├── problem35.pddl │ │ │ │ ├── problem36.pddl │ │ │ │ ├── problem37.pddl │ │ │ │ ├── problem38.pddl │ │ │ │ ├── problem39.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── spannerlearning.pddl │ │ │ ├── spannerlearning │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem14.pddl │ │ │ │ ├── problem15.pddl │ │ │ │ ├── problem16.pddl │ │ │ │ ├── problem17.pddl │ │ │ │ ├── problem18.pddl │ │ │ │ ├── problem19.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem20.pddl │ │ │ │ ├── problem21.pddl │ │ │ │ ├── problem22.pddl │ │ │ │ ├── problem23.pddl │ │ │ │ ├── problem24.pddl │ │ │ │ ├── problem25.pddl │ │ │ │ ├── problem26.pddl │ │ │ │ ├── problem27.pddl │ │ │ │ ├── problem28.pddl │ │ │ │ ├── problem29.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem30.pddl │ │ │ │ ├── problem31.pddl │ │ │ │ ├── problem32.pddl │ │ │ │ ├── problem33.pddl │ │ │ │ ├── problem34.pddl │ │ │ │ ├── problem35.pddl │ │ │ │ ├── problem36.pddl │ │ │ │ ├── problem37.pddl │ │ │ │ ├── problem38.pddl │ │ │ │ ├── problem39.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem40.pddl │ │ │ │ ├── problem41.pddl │ │ │ │ ├── problem42.pddl │ │ │ │ ├── problem43.pddl │ │ │ │ ├── problem44.pddl │ │ │ │ ├── problem45.pddl │ │ │ │ ├── problem46.pddl │ │ │ │ ├── problem47.pddl │ │ │ │ ├── problem48.pddl │ │ │ │ ├── problem49.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── storage.pddl │ │ │ ├── storage │ │ │ │ ├── p01.pddl │ │ │ │ ├── p02.pddl │ │ │ │ ├── p03.pddl │ │ │ │ ├── p04.pddl │ │ │ │ ├── p05.pddl │ │ │ │ ├── p06.pddl │ │ │ │ ├── p07.pddl │ │ │ │ ├── p08.pddl │ │ │ │ ├── p09.pddl │ │ │ │ ├── p10.pddl │ │ │ │ ├── p11.pddl │ │ │ │ ├── p12.pddl │ │ │ │ ├── p13.pddl │ │ │ │ ├── p14.pddl │ │ │ │ ├── p15.pddl │ │ │ │ ├── p16.pddl │ │ │ │ ├── p17.pddl │ │ │ │ ├── p18.pddl │ │ │ │ ├── p19.pddl │ │ │ │ └── p20.pddl │ │ │ ├── termes.pddl │ │ │ ├── termes │ │ │ │ ├── p01.pddl │ │ │ │ ├── p02.pddl │ │ │ │ ├── p03.pddl │ │ │ │ ├── p04.pddl │ │ │ │ ├── p05.pddl │ │ │ │ ├── p06.pddl │ │ │ │ ├── p07.pddl │ │ │ │ ├── p08.pddl │ │ │ │ ├── p09.pddl │ │ │ │ ├── p10.pddl │ │ │ │ ├── p11.pddl │ │ │ │ ├── p12.pddl │ │ │ │ ├── p13.pddl │ │ │ │ ├── p14.pddl │ │ │ │ ├── p15.pddl │ │ │ │ ├── p16.pddl │ │ │ │ ├── p17.pddl │ │ │ │ ├── p18.pddl │ │ │ │ ├── p19.pddl │ │ │ │ └── p20.pddl │ │ │ ├── tireworld_test │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── trapnewspapers.pddl │ │ │ ├── trapnewspapers │ │ │ │ ├── problem0.pddl │ │ │ │ ├── problem1.pddl │ │ │ │ ├── problem10.pddl │ │ │ │ ├── problem11.pddl │ │ │ │ ├── problem12.pddl │ │ │ │ ├── problem13.pddl │ │ │ │ ├── problem14.pddl │ │ │ │ ├── problem15.pddl │ │ │ │ ├── problem16.pddl │ │ │ │ ├── problem17.pddl │ │ │ │ ├── problem18.pddl │ │ │ │ ├── problem19.pddl │ │ │ │ ├── problem2.pddl │ │ │ │ ├── problem20.pddl │ │ │ │ ├── problem21.pddl │ │ │ │ ├── problem22.pddl │ │ │ │ ├── problem23.pddl │ │ │ │ ├── problem24.pddl │ │ │ │ ├── problem25.pddl │ │ │ │ ├── problem26.pddl │ │ │ │ ├── problem27.pddl │ │ │ │ ├── problem28.pddl │ │ │ │ ├── problem29.pddl │ │ │ │ ├── problem3.pddl │ │ │ │ ├── problem30.pddl │ │ │ │ ├── problem31.pddl │ │ │ │ ├── problem32.pddl │ │ │ │ ├── problem33.pddl │ │ │ │ ├── problem34.pddl │ │ │ │ ├── problem35.pddl │ │ │ │ ├── problem36.pddl │ │ │ │ ├── problem37.pddl │ │ │ │ ├── problem38.pddl │ │ │ │ ├── problem39.pddl │ │ │ │ ├── problem4.pddl │ │ │ │ ├── problem5.pddl │ │ │ │ ├── problem6.pddl │ │ │ │ ├── problem7.pddl │ │ │ │ ├── problem8.pddl │ │ │ │ └── problem9.pddl │ │ │ ├── tyreworld.pddl │ │ │ ├── tyreworld │ │ │ │ ├── p01.pddl │ │ │ │ ├── p02.pddl │ │ │ │ ├── p03.pddl │ │ │ │ ├── p04.pddl │ │ │ │ ├── p05.pddl │ │ │ │ ├── p06.pddl │ │ │ │ ├── p07.pddl │ │ │ │ ├── p08.pddl │ │ │ │ ├── p09.pddl │ │ │ │ └── p10.pddl │ │ │ └── tyreworld_old │ │ │ │ ├── p01.pddl │ │ │ │ ├── p02.pddl │ │ │ │ ├── p03.pddl │ │ │ │ ├── p04.pddl │ │ │ │ ├── p05.pddl │ │ │ │ ├── p06.pddl │ │ │ │ ├── p07.pddl │ │ │ │ ├── p08.pddl │ │ │ │ ├── p09.pddl │ │ │ │ ├── p10.pddl │ │ │ │ ├── p11.pddl │ │ │ │ ├── p12.pddl │ │ │ │ ├── p13.pddl │ │ │ │ ├── p14.pddl │ │ │ │ ├── p15.pddl │ │ │ │ ├── p16.pddl │ │ │ │ ├── p17.pddl │ │ │ │ ├── p18.pddl │ │ │ │ ├── p19.pddl │ │ │ │ └── p20.pddl │ │ │ ├── procedural_generation │ │ │ ├── footwear.py │ │ │ ├── generated_blocks.py │ │ │ ├── hiking.py │ │ │ ├── hoffmann_ferry │ │ │ │ ├── ferry │ │ │ │ ├── ferry.c │ │ │ │ ├── ferry.o │ │ │ │ ├── makefile │ │ │ │ ├── problem1.pddl │ │ │ │ └── script.sh │ │ │ ├── hoffmann_grid │ │ │ │ ├── grid │ │ │ │ ├── grid.c │ │ │ │ ├── grid.o │ │ │ │ ├── makefile │ │ │ │ ├── notes.txt │ │ │ │ └── script.sh │ │ │ ├── hoffmann_logistics │ │ │ │ ├── logistics │ │ │ │ ├── logistics.c │ │ │ │ ├── logistics.o │ │ │ │ ├── makefile │ │ │ │ ├── notes.txt │ │ │ │ └── script.sh │ │ │ ├── hoffmann_miconic │ │ │ │ ├── makefile │ │ │ │ ├── miconic │ │ │ │ ├── miconic.c │ │ │ │ ├── miconic.o │ │ │ │ ├── notes.txt │ │ │ │ ├── output.sas │ │ │ │ ├── sas_plan │ │ │ │ └── script.sh │ │ │ ├── manyblocksnopiles.py │ │ │ ├── manyblockssmallpiles.py │ │ │ ├── manygripper.py │ │ │ ├── manymiconic.py │ │ │ ├── manyquantifiedblocks.py │ │ │ ├── maze.py │ │ │ ├── newspapers.py │ │ │ ├── searchandrescue.py │ │ │ └── tireworld-gen.lisp │ │ │ ├── prolog_interface.py │ │ │ ├── rendering │ │ │ ├── __init__.py │ │ │ ├── assets │ │ │ │ ├── bear.png │ │ │ │ ├── doors_boundary.png │ │ │ │ ├── doors_key.png │ │ │ │ ├── doors_locked_room.png │ │ │ │ ├── doors_player.png │ │ │ │ ├── doors_unlocked_room.png │ │ │ │ ├── goal.png │ │ │ │ ├── hiking_goal.png │ │ │ │ ├── hiking_hill.png │ │ │ │ ├── hiking_path.png │ │ │ │ ├── hiking_player_on_goal.png │ │ │ │ ├── hiking_player_on_hill.png │ │ │ │ ├── hiking_player_on_path.png │ │ │ │ ├── hiking_player_on_rock.png │ │ │ │ ├── hiking_player_on_water.png │ │ │ │ ├── hiking_rock.png │ │ │ │ ├── hiking_water.png │ │ │ │ ├── minecraft_agent.png │ │ │ │ ├── minecraft_background.png │ │ │ │ ├── minecraft_frame.png │ │ │ │ ├── minecraft_grass.jpg │ │ │ │ ├── minecraft_log.jpg │ │ │ │ ├── minecraft_plank.png │ │ │ │ ├── monkey.png │ │ │ │ ├── pawn.png │ │ │ │ ├── robot.png │ │ │ │ ├── robot_holding_bear.png │ │ │ │ ├── robot_holding_monkey.png │ │ │ │ ├── robot_holding_pawn.png │ │ │ │ ├── sar_chicken.png │ │ │ │ ├── sar_clear.png │ │ │ │ ├── sar_fire.png │ │ │ │ ├── sar_hidden.png │ │ │ │ ├── sar_hospital.png │ │ │ │ ├── sar_person.png │ │ │ │ ├── sar_robot.png │ │ │ │ ├── sar_robot_holding_person.png │ │ │ │ ├── sar_robot_xray.png │ │ │ │ ├── sar_smoke.png │ │ │ │ ├── sar_wall.png │ │ │ │ ├── slidetile_1.png │ │ │ │ ├── slidetile_2.png │ │ │ │ ├── slidetile_3.png │ │ │ │ ├── slidetile_4.png │ │ │ │ ├── slidetile_5.png │ │ │ │ ├── slidetile_6.png │ │ │ │ ├── slidetile_7.png │ │ │ │ ├── slidetile_8.png │ │ │ │ ├── slidetile_empty.png │ │ │ │ ├── sokoban_clear.png │ │ │ │ ├── sokoban_goal.png │ │ │ │ ├── sokoban_player.png │ │ │ │ ├── sokoban_stone.png │ │ │ │ ├── sokoban_stone_at_goal.png │ │ │ │ └── sokoban_wall.png │ │ │ ├── blocks.py │ │ │ ├── doors.py │ │ │ ├── explodingblocks.py │ │ │ ├── hanoi.py │ │ │ ├── hiking.py │ │ │ ├── maze.py │ │ │ ├── minecraft.py │ │ │ ├── myopic_posar.py │ │ │ ├── navigation.py │ │ │ ├── posar.py │ │ │ ├── rearrangement.py │ │ │ ├── sar_render_from_string_grid.py │ │ │ ├── searchandrescue.py │ │ │ ├── slidetile.py │ │ │ ├── slow_searchandrescue.py │ │ │ ├── snake.py │ │ │ ├── sokoban.py │ │ │ ├── tireworld.py │ │ │ ├── tsp.py │ │ │ ├── utils.py │ │ │ └── visit_all.py │ │ │ ├── spaces.py │ │ │ ├── structs.py │ │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── pddl │ │ │ │ ├── derivedblocks.pddl │ │ │ │ ├── derivedblocks │ │ │ │ │ └── test_problem.pddl │ │ │ │ ├── easyblocks.pddl │ │ │ │ ├── easyblocks │ │ │ │ │ └── problem2.pddl │ │ │ │ ├── hierarchical_type_test_domain.pddl │ │ │ │ ├── hierarchical_type_test_domain │ │ │ │ │ └── hierarchical_type_test_problem.pddl │ │ │ │ ├── test_domain.pddl │ │ │ │ ├── test_domain │ │ │ │ │ └── test_problem.pddl │ │ │ │ ├── test_probabilistic_domain.pddl │ │ │ │ ├── test_probabilistic_domain │ │ │ │ │ └── test_problem.pddl │ │ │ │ ├── test_probabilistic_domain_alt.pddl │ │ │ │ ├── test_probabilistic_domain_alt │ │ │ │ │ └── test_problem.pddl │ │ │ │ ├── test_probabilistic_domain_alt_2.pddl │ │ │ │ ├── test_probabilistic_domain_alt_2 │ │ │ │ │ └── test_problem.pddl │ │ │ │ ├── test_probabilistic_domain_alt_3.pddl │ │ │ │ └── test_probabilistic_domain_alt_3 │ │ │ │ │ └── test_problem.pddl │ │ │ ├── test_inference.py │ │ │ ├── test_parser.py │ │ │ ├── test_pddlenv.py │ │ │ ├── test_searchandrescue.py │ │ │ ├── test_spaces.py │ │ │ └── test_system.py │ │ │ └── utils.py │ ├── scienceworld_env.py │ ├── sheet_env.py │ ├── todo_env.py │ ├── weather_env.py │ └── webshop_env.py ├── eval_main.py ├── llm │ ├── __init__.py │ ├── azure_gpt.py │ ├── claude.py │ ├── huggingface.py │ ├── openai_gpt.py │ └── vllm.py ├── prompts │ ├── Raw │ │ ├── academia_raw.json │ │ ├── movie_raw.json │ │ ├── sheet_raw.json │ │ ├── todo_raw.json │ │ └── weather_raw.json │ ├── ReactAgent │ │ ├── academia_prompt.json │ │ ├── movie_prompt.json │ │ └── weather_prompt.json │ ├── VanillaAgent │ │ ├── academia_prompt.json │ │ ├── alfworld_base.json │ │ ├── babyai_vanilla_prompt.json │ │ ├── game24_vanilla_prompt.json │ │ ├── jericho_vanilla_prompt.json │ │ ├── movie_prompt.json │ │ ├── pddl_vanilla_prompt.json │ │ ├── scienceworld_base.json │ │ ├── sheet_prompt.json │ │ ├── todo_prompt.json │ │ ├── weather_prompt.json │ │ ├── webbrowse_vanilla.json │ │ └── webshop_vanilla.json │ └── prompt_template.py ├── tasks │ ├── __init__.py │ ├── alfworld.py │ ├── babyai.py │ ├── base_task.py │ ├── jericho.py │ ├── legacy │ │ ├── game24.py │ │ ├── math.py │ │ ├── textworld.py │ │ ├── tidybot.py │ │ └── virutalhome.py │ ├── pddl.py │ ├── scienceworld.py │ ├── tool.py │ ├── webbrowse.py │ └── webshop.py └── utils │ ├── academia │ └── academia_tools.py │ ├── common_exception.py │ ├── logging │ ├── agent_logger.py │ └── logger.py │ ├── movie │ └── movie_tools.py │ ├── sheet │ ├── Test Sheet-For Copy.xlsx │ └── sheets_tools.py │ ├── todo │ ├── projects.json │ └── todo_tools.py │ ├── tool │ ├── data_utils.py │ └── helpers.py │ └── weather │ └── weather_tools.py ├── assets ├── agent_customization.md ├── agentboard.png ├── api_keys_tool.md ├── code_structure.png ├── figure01.png ├── llm_customization.md ├── main_graph.png ├── sheet_step01.png ├── sheet_step02.png ├── sheet_step03.png └── sheet_step04.png ├── eval_configs ├── .ipynb_checkpoints │ └── main_results_all_tasks-checkpoint.yaml └── main_results_all_tasks.yaml ├── requirements.txt ├── scripts ├── evaluate.sh └── prepare_webbrowse.sh └── setup.sh /.gitignore: -------------------------------------------------------------------------------- 1 | .env 2 | .idea/ 3 | .pytest_cache/ 4 | .vscode/ 5 | __pycache__/ 6 | .idea/* 7 | .ipynb_checkpoints/* 8 | agentboard/utils/sheet/credential.json 9 | data/* 10 | alfworld/* 11 | wandb/* 12 | results/* 13 | agentboard/environment/browser_env/config_files/ 14 | agentboard/environment/WebShop/search_engine/indexes* 15 | agentboard/environment/WebShop/search_engine/resources* 16 | agentboard/environment/WebShop/user_session_logs* 17 | agentboard/environment/WebShop/subreward_log* 18 | **/.auth 19 | */__pycache__/ 20 | /.ipynb_checkpoints/* -------------------------------------------------------------------------------- /.template_env: -------------------------------------------------------------------------------- 1 | # OPENAI_API_TYPE=... (optional, azure api only) 2 | # OPENAI_API_BASE=... 3 | # OPENAI_API_VERSION=... 4 | OPENAI_API_KEY=... 5 | HF_KEY=... 6 | PROJECT_PATH=... 7 | TODO_KEY=... 8 | MOVIE_KEY=... 9 | SHEET_EMAIL=... 10 | WANDB_API_KEY=... 11 | WANDB_ENTITY=... 12 | 13 | # You should edit the environment variables and move this file to .env 14 | -------------------------------------------------------------------------------- /agentboard/agents/__init__.py: -------------------------------------------------------------------------------- 1 | from .vanilla_agent import VanillaAgent 2 | from .react_agent import ReactAgent 3 | from common.registry import registry 4 | 5 | __all__ = ["VanillaAgent", "ReactAgent"] 6 | 7 | 8 | def load_agent(name, config, llm_model): 9 | agent = registry.get_agent_class(name).from_config(llm_model, config) 10 | return agent 11 | -------------------------------------------------------------------------------- /agentboard/agents/base_agent.py: -------------------------------------------------------------------------------- 1 | class BaseAgent: # the agent should receive goal, state and action, then return the next state 2 | def __init__(self): 3 | super().__init__() 4 | 5 | def reset(self, goal, init_obs, init_act=None): 6 | pass 7 | 8 | def update(self, action, state): 9 | pass 10 | 11 | def run(self): 12 | pass 13 | 14 | @classmethod 15 | def from_config(cls, llm_model, config): 16 | pass -------------------------------------------------------------------------------- /agentboard/environment/WebShop/LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Princeton Natural Language Processing 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/run_dev.log: -------------------------------------------------------------------------------- 1 | * Serving Flask app 'app' (lazy loading) 2 | * Environment: development 3 | * Debug mode: on 4 | Products loaded. 5 | Keys cleaned. 6 | Attributes loaded. 7 | 164 skipped 8 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/run_dev.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | export FLASK_ENV=development 3 | python -m web_agent_site.app --log --attrs 4 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/run_web_agent_site_env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | python -m run_envs.run_web_agent_site_env 3 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/run_web_agent_text_env.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | python -m run_envs.run_web_agent_text_env 3 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/search_engine/lucene_searcher.py: -------------------------------------------------------------------------------- 1 | import json 2 | from pyserini.search.lucene import LuceneSearcher 3 | from rich import print 4 | 5 | 6 | searcher = LuceneSearcher('indexes') 7 | hits = searcher.search('rubber sole shoes', k=20) 8 | 9 | for hit in hits: 10 | doc = searcher.doc(hit.docid) 11 | print(doc) 12 | obj = json.loads(doc.raw())['product']['Title'] 13 | print(obj) 14 | 15 | print(len(hits)) 16 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/search_engine/run_indexing.sh: -------------------------------------------------------------------------------- 1 | python -m pyserini.index.lucene \ 2 | --collection JsonCollection \ 3 | --input resources_100 \ 4 | --index indexes_100 \ 5 | --generator DefaultLuceneDocumentGenerator \ 6 | --threads 1 \ 7 | --storePositions --storeDocvectors --storeRaw 8 | 9 | python -m pyserini.index.lucene \ 10 | --collection JsonCollection \ 11 | --input resources \ 12 | --index indexes \ 13 | --generator DefaultLuceneDocumentGenerator \ 14 | --threads 1 \ 15 | --storePositions --storeDocvectors --storeRaw 16 | 17 | python -m pyserini.index.lucene \ 18 | --collection JsonCollection \ 19 | --input resources_1k \ 20 | --index indexes_1k \ 21 | --generator DefaultLuceneDocumentGenerator \ 22 | --threads 1 \ 23 | --storePositions --storeDocvectors --storeRaw 24 | 25 | python -m pyserini.index.lucene \ 26 | --collection JsonCollection \ 27 | --input resources_100k \ 28 | --index indexes_100k \ 29 | --generator DefaultLuceneDocumentGenerator \ 30 | --threads 1 \ 31 | --storePositions --storeDocvectors --storeRaw 32 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Download spaCy large NLP model 4 | python -m spacy download en_core_web_lg 5 | 6 | # Build search engine index 7 | cd search_engine 8 | mkdir -p resources resources_100 resources_1k resources_100k 9 | python convert_product_file_format.py # convert items.json => required doc format 10 | mkdir -p indexes 11 | ./run_indexing.sh 12 | cd .. 13 | 14 | mkdir -p user_session_logs/ 15 | cd user_session_logs/ 16 | echo "Downloading example trajectories complete" 17 | cd .. 18 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/web_agent_site/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/WebShop/web_agent_site/__init__.py -------------------------------------------------------------------------------- /agentboard/environment/WebShop/web_agent_site/engine/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/WebShop/web_agent_site/engine/__init__.py -------------------------------------------------------------------------------- /agentboard/environment/WebShop/web_agent_site/envs/__init__.py: -------------------------------------------------------------------------------- 1 | from gym.envs.registration import register 2 | 3 | from web_agent_site.envs.web_agent_site_env import WebAgentSiteEnv 4 | from web_agent_site.envs.web_agent_text_env import WebAgentTextEnv 5 | 6 | register( 7 | id='WebAgentSiteEnv-v0', 8 | entry_point='web_agent_site.envs:WebAgentSiteEnv', 9 | ) 10 | 11 | register( 12 | id='WebAgentTextEnv-v0', 13 | entry_point='web_agent_site.envs:WebAgentTextEnv', 14 | ) -------------------------------------------------------------------------------- /agentboard/environment/WebShop/web_agent_site/envs/chromedriver: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/WebShop/web_agent_site/envs/chromedriver -------------------------------------------------------------------------------- /agentboard/environment/WebShop/web_agent_site/models/__init__.py: -------------------------------------------------------------------------------- 1 | from web_agent_site.models.models import ( 2 | HumanPolicy, 3 | RandomPolicy, 4 | ) 5 | -------------------------------------------------------------------------------- /agentboard/environment/WebShop/web_agent_site/static/images/no-image-available.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/WebShop/web_agent_site/static/images/no-image-available.png -------------------------------------------------------------------------------- /agentboard/environment/base_env.py: -------------------------------------------------------------------------------- 1 | import gym 2 | import subprocess 3 | import os 4 | import re 5 | import numpy as np 6 | 7 | 8 | class BaseEnvironment(gym.Env): 9 | def __init__(self): 10 | super().__init__() 11 | 12 | def get_info(self): 13 | pass 14 | 15 | def get_obs(self): 16 | pass 17 | 18 | def get_goal(self): 19 | pass 20 | 21 | def get_history(self): 22 | pass 23 | 24 | def get_action_space(self): 25 | pass 26 | 27 | def is_done(self): 28 | pass 29 | 30 | def update(self, action, obs, reward, done, infos): 31 | pass 32 | 33 | def reset(self): 34 | pass 35 | 36 | def step(self, action): 37 | pass 38 | 39 | def save_log(self, log_path): 40 | pass 41 | 42 | @classmethod 43 | def from_config(cls, config): 44 | pass -------------------------------------------------------------------------------- /agentboard/environment/legacy/scienceworld/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/legacy/scienceworld/__init__.py -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/custom/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/custom/__init__.py -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/downward_translate/__init__.py -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/pddl/__init__.py: -------------------------------------------------------------------------------- 1 | from .pddl_types import Type 2 | from .pddl_types import TypedObject 3 | 4 | from .tasks import Task 5 | from .tasks import Requirements 6 | 7 | from .predicates import Predicate 8 | 9 | from .functions import Function 10 | 11 | from .actions import Action 12 | from .actions import PropositionalAction 13 | 14 | from .axioms import Axiom 15 | from .axioms import PropositionalAxiom 16 | 17 | from .conditions import Literal 18 | from .conditions import Atom 19 | from .conditions import NegatedAtom 20 | from .conditions import Falsity 21 | from .conditions import Truth 22 | from .conditions import Conjunction 23 | from .conditions import Disjunction 24 | from .conditions import UniversalCondition 25 | from .conditions import ExistentialCondition 26 | 27 | from .effects import ConditionalEffect 28 | from .effects import ConjunctiveEffect 29 | from .effects import CostEffect 30 | from .effects import Effect 31 | from .effects import SimpleEffect 32 | from .effects import UniversalEffect 33 | 34 | from .f_expression import Assign 35 | from .f_expression import Increase 36 | from .f_expression import NumericConstant 37 | from .f_expression import PrimitiveNumericExpression 38 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/pddl/functions.py: -------------------------------------------------------------------------------- 1 | class Function: 2 | def __init__(self, name, arguments, type_name): 3 | self.name = name 4 | self.arguments = arguments 5 | if type_name != "number": 6 | raise SystemExit("Error: object fluents not supported\n" + 7 | "(function %s has type %s)" % (name, type_name)) 8 | self.type_name = type_name 9 | 10 | def __str__(self): 11 | result = "%s(%s)" % (self.name, ", ".join(map(str, self.arguments))) 12 | if self.type_name: 13 | result += ": %s" % self.type_name 14 | return result 15 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/pddl/predicates.py: -------------------------------------------------------------------------------- 1 | class Predicate: 2 | def __init__(self, name, arguments): 3 | self.name = name 4 | self.arguments = arguments 5 | 6 | def __str__(self): 7 | return "%s(%s)" % (self.name, ", ".join(map(str, self.arguments))) 8 | 9 | def get_arity(self): 10 | return len(self.arguments) 11 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/pddl_parser/__init__.py: -------------------------------------------------------------------------------- 1 | from .pddl_file import open 2 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/README: -------------------------------------------------------------------------------- 1 | - issue405: The goal violates a mutex, which the translator should 2 | detect and produce a trivial unsolvable problem. The search code 3 | should then report the problem as unsolvable. (It may be the case 4 | that this example is a bit fragile because it's based on 5 | Blocksworld, and I guess there's no guarantee which of the two major 6 | Blocksworld encodings we get. I think only one of them will detect 7 | that there is a mutex violation.) 8 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue405-problem.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-50) 2 | (:domain blocksworld) 3 | (:objects b1 b2 b3 - block) 4 | (:init 5 | (handempty) 6 | (on b1 b2) 7 | (on b2 b3) 8 | (ontable b3) 9 | (clear b1) 10 | ) 11 | (:goal 12 | (and 13 | (on b1 b2) 14 | (on b1 b3) 15 | ) 16 | ) 17 | ) 18 | 19 | 20 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue49-falsegoal-domain.pddl: -------------------------------------------------------------------------------- 1 | ;; Small test domain for the problem of issue49. 2 | 3 | (define (domain issue49) 4 | (:predicates 5 | (A) 6 | (B) 7 | (C) 8 | ) 9 | 10 | (:action action-a 11 | :precondition (A) 12 | :effect (B) 13 | ) 14 | ) 15 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue49-falsegoal-problem.pddl: -------------------------------------------------------------------------------- 1 | (define (problem issue49-statically-false-goal) 2 | (:domain issue49) 3 | 4 | (:objects) 5 | 6 | (:init (A)) 7 | 8 | (:goal (and (A) (B) (C))) 9 | ) 10 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue49-truegoal-domain.pddl: -------------------------------------------------------------------------------- 1 | ;; Small test domain for the problem of issue49. 2 | 3 | (define (domain issue49) 4 | (:predicates 5 | (A) 6 | (B) 7 | (C) 8 | ) 9 | 10 | (:action action-a 11 | :precondition (A) 12 | :effect (B) 13 | ) 14 | ) 15 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue49-truegoal-problem.pddl: -------------------------------------------------------------------------------- 1 | (define (problem issue49-statically-true-goal) 2 | (:domain issue49) 3 | 4 | (:objects) 5 | 6 | (:init (A)) 7 | 8 | (:goal (and (A) (B))) 9 | ) 10 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue58-domain.pddl: -------------------------------------------------------------------------------- 1 | (define (domain desire) 2 | (:types robot location - object) 3 | (:constants unknown - object 4 | desiree - robot) 5 | (:predicates (loc ?o - object ?val - location)) 6 | 7 | (:action move 8 | :parameters (?from - location ?to - location) 9 | :precondition (loc desiree ?from) 10 | :effect (and (not (loc desiree ?from)) 11 | (loc desiree ?to))) 12 | 13 | (:action set-loc-init 14 | :parameters (?o - robot) 15 | :precondition (loc ?o unknown) 16 | :effect (not (loc ?o unknown))) 17 | ) 18 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue58-problem.pddl: -------------------------------------------------------------------------------- 1 | (define (problem desire-prob) 2 | (:domain desire) 3 | (:objects pos1 pos2 - location) 4 | (:init (loc desiree pos1)) 5 | (:goal (loc desiree pos2)) 6 | ) 7 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue7-problem.pddl: -------------------------------------------------------------------------------- 1 | ;; Problem to test issue75. If we add the implied preconditions, the 2 | ;; preprocessor cannot prune any variables; if we do, it can prune lots. 3 | ;; 4 | ;; Pruning the variables is safe and should be done: the variables 5 | ;; that are pruned are ones that are only set by effects, but not 6 | ;; mentioned in the goal or used as preconditions. (Adding the implied 7 | ;; preconditions causes them to be mentioned in the preconditions, 8 | ;; which means that relevance analysis can't detect them as useless 9 | ;; any more.) 10 | ;; 11 | ;; This is based on Trucks-Strips #1, with the following modifications: 12 | ;; 13 | ;; - Removed everything pertaining to packages 2 and 3. 14 | ;; - Removed atom (foo). 15 | ;; - Changed goal deadline from t3 to t2. 16 | ;; - Removed storage space (if that's what it is) a2. 17 | ;; - Removed everything pertaining to timesteps t3, t4, t5 and t6. 18 | ;; - Changed truck init location and package goal location to l2. 19 | ;; - Removed everything pertaining to location l3. 20 | 21 | (define (problem GROUNDED-TRUCK-1) 22 | (:domain GROUNDED-TRUCKS) 23 | (:init 24 | (at_package1_l2) 25 | (at_truck1_l1) 26 | (free_a1_truck1) 27 | (time-now_t0) 28 | ) 29 | (:goal 30 | (and 31 | (delivered_package1_l1_t2) 32 | ) 33 | ) 34 | ) 35 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/regression-tests/issue73-problem.pddl: -------------------------------------------------------------------------------- 1 | (define (problem roverprob1234) 2 | (:domain rover) 3 | 4 | (:init (at_rover0_waypoint3) (at_soil_sample_waypoint0) 5 | (empty_rover0store) (at_soil_sample_waypoint2) 6 | (at_soil_sample_waypoint3) (at_rock_sample_waypoint1) 7 | (at_rock_sample_waypoint2) (at_rock_sample_waypoint3) (ok_a0) (ok_a1) 8 | (ok_o0) (negof_once_o0) (ok_o1) (negof_once_o1) (ok_o2) 9 | (negof_once_o2) (ok_o3) (negof_once_o3) (ok_sb3) (ok_sb7) (ok_sb8) 10 | (ok_sb11) (ok_sb12) (ok_sb13) (ok_sb16) (ok_sb17) (ok_sb19) (ok_sb20) 11 | (normal-mode) (= (total-cost) 0)) 12 | 13 | (:goal (and (communicated_soil_data_waypoint2) 14 | (communicated_rock_data_waypoint3) 15 | (communicated_image_data_objective1_high_res) (a0) (a1) (e0) (e1) 16 | (e2) (o0) (o1) (o2) (o3) (sb3) (sb7) (sb8) (sb11) (sb12) (sb13) 17 | (sb16) (sb17) (sb19) (sb20))) 18 | 19 | (:metric minimize (total-cost)) 20 | ) 21 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/downward_translate/tests/__init__.py -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/tests/test_scripts.py: -------------------------------------------------------------------------------- 1 | import os.path 2 | import subprocess 3 | import sys 4 | 5 | DIR = os.path.dirname(os.path.abspath(__file__)) 6 | TRANSLATE_DIR = os.path.dirname(DIR) 7 | REPO = os.path.abspath(os.path.join(DIR, "..", "..", "..")) 8 | BENCHMARKS = os.path.join(REPO, "misc", "tests", "benchmarks") 9 | DOMAIN = os.path.join(BENCHMARKS, "gripper", "domain.pddl") 10 | PROBLEM = os.path.join(BENCHMARKS, "gripper", "prob01.pddl") 11 | SCRIPTS = [ 12 | "build_model.py", 13 | "graph.py", 14 | "instantiate.py", 15 | "invariant_finder.py", 16 | "normalize.py", 17 | "pddl_to_prolog.py", 18 | "translate.py", 19 | ] 20 | 21 | def test_scripts(): 22 | for script in SCRIPTS: 23 | script = os.path.join(TRANSLATE_DIR, script) 24 | folder, filename = os.path.split(script) 25 | assert subprocess.check_call([sys.executable, filename, DOMAIN, PROBLEM], cwd=folder) == 0 26 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/timers.py: -------------------------------------------------------------------------------- 1 | import contextlib 2 | import os 3 | import sys 4 | import time 5 | 6 | 7 | class Timer: 8 | def __init__(self): 9 | self.start_time = time.time() 10 | self.start_clock = self._clock() 11 | 12 | def _clock(self): 13 | times = os.times() 14 | return times[0] + times[1] 15 | 16 | def __str__(self): 17 | return "[%.3fs CPU, %.3fs wall-clock]" % ( 18 | self._clock() - self.start_clock, 19 | time.time() - self.start_time) 20 | 21 | 22 | @contextlib.contextmanager 23 | def timing(text, block=False): 24 | timer = Timer() 25 | if block: 26 | print("%s..." % text) 27 | else: 28 | print("%s..." % text, end=' ') 29 | sys.stdout.flush() 30 | yield 31 | if block: 32 | print("%s: %s" % (text, timer)) 33 | else: 34 | print(timer) 35 | sys.stdout.flush() 36 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/downward_translate/tools.py: -------------------------------------------------------------------------------- 1 | def cartesian_product(sequences): 2 | # TODO: Rename this. It's not good that we have two functions 3 | # called "product" and "cartesian_product", of which "product" 4 | # computes cartesian products, while "cartesian_product" does not. 5 | 6 | # This isn't actually a proper cartesian product because we 7 | # concatenate lists, rather than forming sequences of atomic elements. 8 | # We could probably also use something like 9 | # map(itertools.chain, product(*sequences)) 10 | # but that does not produce the same results 11 | if not sequences: 12 | yield [] 13 | else: 14 | temp = list(cartesian_product(sequences[1:])) 15 | for item in sequences[0]: 16 | for sequence in temp: 17 | yield item + sequence 18 | 19 | 20 | def get_peak_memory_in_kb(): 21 | try: 22 | # This will only work on Linux systems. 23 | with open("/proc/self/status") as status_file: 24 | for line in status_file: 25 | parts = line.split() 26 | if parts[0] == "VmPeak:": 27 | return int(parts[1]) 28 | except OSError: 29 | pass 30 | raise Warning("warning: could not determine peak memory") 31 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/baking/problem0.pddl: -------------------------------------------------------------------------------- 1 | (define (problem baking) 2 | (:domain baking) 3 | 4 | (:objects 5 | oven-0 - oven 6 | egg-0 - ingredient 7 | flour-0 - ingredient 8 | soap-0 - soap 9 | pan-0 - pan 10 | new-0 - ingredient 11 | ) 12 | 13 | (:init 14 | 15 | (isegg egg-0) 16 | (isflour flour-0) 17 | (hypothetical new-0) 18 | (panisclean pan-0) 19 | 20 | ; action literals 21 | (putegginpan egg-0 pan-0) 22 | (putflourinpan flour-0 pan-0) 23 | (mix pan-0) 24 | (putpaninoven pan-0 oven-0) 25 | (removepanfromoven pan-0) 26 | (bakecake new-0 oven-0) 27 | (bakesouffle new-0 oven-0) 28 | (cleanpan pan-0 soap-0) 29 | 30 | ) 31 | 32 | (:goal (and (iscake new-0) )) 33 | ) 34 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/baking/problem1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem baking) 2 | (:domain baking) 3 | 4 | (:objects 5 | oven-0 - oven 6 | egg-0 - ingredient 7 | flour-0 - ingredient 8 | soap-0 - soap 9 | pan-0 - pan 10 | new-0 - ingredient 11 | ) 12 | 13 | (:init 14 | 15 | (isegg egg-0) 16 | (isflour flour-0) 17 | (hypothetical new-0) 18 | 19 | ; action literals 20 | (putegginpan egg-0 pan-0) 21 | (putflourinpan flour-0 pan-0) 22 | (mix pan-0) 23 | (putpaninoven pan-0 oven-0) 24 | (removepanfromoven pan-0) 25 | (bakecake new-0 oven-0) 26 | (bakesouffle new-0 oven-0) 27 | (cleanpan pan-0 soap-0) 28 | 29 | ) 30 | 31 | (:goal (and (issouffle new-0) )) 32 | ) 33 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/baking/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem baking) 2 | (:domain baking) 3 | 4 | (:objects 5 | oven-0 - oven 6 | egg-0 - ingredient 7 | egg-1 - ingredient 8 | flour-0 - ingredient 9 | soap-0 - soap 10 | pan-0 - pan 11 | new-0 - ingredient 12 | new-1 - ingredient 13 | ) 14 | 15 | (:init 16 | 17 | (isegg egg-0) 18 | (isegg egg-1) 19 | (isflour flour-0) 20 | (hypothetical new-0) 21 | (hypothetical new-1) 22 | (panisclean pan-0) 23 | 24 | ; action literals 25 | (putegginpan egg-0 pan-0) 26 | (putegginpan egg-1 pan-0) 27 | (putflourinpan flour-0 pan-0) 28 | (mix pan-0) 29 | (putpaninoven pan-0 oven-0) 30 | (removepanfromoven pan-0) 31 | (bakecake new-0 oven-0) 32 | (bakecake new-1 oven-0) 33 | (bakesouffle new-0 oven-0) 34 | (bakesouffle new-1 oven-0) 35 | (cleanpan pan-0 soap-0) 36 | 37 | ) 38 | 39 | (:goal (and (issouffle new-0) (iscake new-1) )) 40 | ) 41 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/baking/problem3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem baking) 2 | (:domain baking) 3 | 4 | (:objects 5 | oven-0 - oven 6 | egg-0 - ingredient 7 | egg-1 - ingredient 8 | flour-0 - ingredient 9 | pan-0 - pan 10 | pan-1 - pan 11 | new-0 - ingredient 12 | new-1 - ingredient 13 | soap-0 - soap 14 | ) 15 | 16 | (:init 17 | 18 | (isegg egg-0) 19 | (isegg egg-1) 20 | (isflour flour-0) 21 | (hypothetical new-0) 22 | (hypothetical new-1) 23 | (panisclean pan-0) 24 | (panisclean pan-1) 25 | (soapconsumed soap-0) 26 | 27 | ; action literals 28 | (putegginpan egg-0 pan-0) 29 | (putegginpan egg-1 pan-0) 30 | (putflourinpan flour-0 pan-0) 31 | (mix pan-0) 32 | (putpaninoven pan-0 oven-0) 33 | (removepanfromoven pan-0) 34 | (cleanpan pan-0 soap-0) 35 | (putegginpan egg-0 pan-1) 36 | (putegginpan egg-1 pan-1) 37 | (putflourinpan flour-0 pan-1) 38 | (mix pan-1) 39 | (putpaninoven pan-1 oven-0) 40 | (removepanfromoven pan-1) 41 | (cleanpan pan-1 soap-0) 42 | (bakecake new-0 oven-0) 43 | (bakecake new-1 oven-0) 44 | (bakesouffle new-0 oven-0) 45 | (bakesouffle new-1 oven-0) 46 | 47 | ) 48 | 49 | (:goal (and (issouffle new-0) (iscake new-1) )) 50 | ) 51 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/baking/problem6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem baking) 2 | (:domain baking) 3 | 4 | (:objects 5 | oven-0 - oven 6 | egg-0 - ingredient 7 | egg-1 - ingredient 8 | flour-0 - ingredient 9 | flour-1 - ingredient 10 | pan-0 - pan 11 | new-0 - ingredient 12 | new-1 - ingredient 13 | soap-0 - soap 14 | ) 15 | 16 | (:init 17 | 18 | (isegg egg-0) 19 | (isegg egg-1) 20 | (isflour flour-0) 21 | (isflour flour-1) 22 | (hypothetical new-0) 23 | (hypothetical new-1) 24 | (panisclean pan-0) 25 | 26 | ; action literals 27 | (putegginpan egg-0 pan-0) 28 | (putegginpan egg-1 pan-0) 29 | (putflourinpan flour-0 pan-0) 30 | (putflourinpan flour-1 pan-0) 31 | (mix pan-0) 32 | (putpaninoven pan-0 oven-0) 33 | (removepanfromoven pan-0) 34 | (cleanpan pan-0 soap-0) 35 | (bakecake new-0 oven-0) 36 | (bakecake new-1 oven-0) 37 | (bakesouffle new-0 oven-0) 38 | (bakesouffle new-1 oven-0) 39 | ) 40 | 41 | (:goal (and 42 | (iscake new-0) 43 | (iscake new-1) 44 | )) 45 | ) 46 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/barman/p02.pddl: -------------------------------------------------------------------------------- 1 | (define (problem prob) 2 | (:domain barman) 3 | (:objects 4 | shaker1 - shaker 5 | left right - hand 6 | shot1 shot2 shot3 shot4 - shot 7 | ingredient1 ingredient2 ingredient3 - ingredient 8 | cocktail1 cocktail2 cocktail3 - cocktail 9 | dispenser1 dispenser2 dispenser3 - dispenser 10 | l0 l1 l2 - level 11 | ) 12 | (:init 13 | (ontable shaker1) 14 | (ontable shot1) 15 | (ontable shot2) 16 | (ontable shot3) 17 | (ontable shot4) 18 | (dispenses dispenser1 ingredient1) 19 | (dispenses dispenser2 ingredient2) 20 | (dispenses dispenser3 ingredient3) 21 | (clean shaker1) 22 | (clean shot1) 23 | (clean shot2) 24 | (clean shot3) 25 | (clean shot4) 26 | (empty shaker1) 27 | (empty shot1) 28 | (empty shot2) 29 | (empty shot3) 30 | (empty shot4) 31 | (handempty left) 32 | (handempty right) 33 | (shaker-empty-level shaker1 l0) 34 | (shaker-level shaker1 l0) 35 | (next l0 l1) 36 | (next l1 l2) 37 | (cocktail-part1 cocktail1 ingredient3) 38 | (cocktail-part2 cocktail1 ingredient1) 39 | (cocktail-part1 cocktail2 ingredient3) 40 | (cocktail-part2 cocktail2 ingredient2) 41 | (cocktail-part1 cocktail3 ingredient3) 42 | (cocktail-part2 cocktail3 ingredient1) 43 | ) 44 | (:goal 45 | (and 46 | (contains shot2 cocktail3) 47 | ))) 48 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/barman/p03.pddl: -------------------------------------------------------------------------------- 1 | (define (problem prob) 2 | (:domain barman) 3 | (:objects 4 | shaker1 - shaker 5 | left right - hand 6 | shot1 shot2 shot3 shot4 - shot 7 | ingredient1 ingredient2 ingredient3 - ingredient 8 | cocktail1 cocktail2 cocktail3 - cocktail 9 | dispenser1 dispenser2 dispenser3 - dispenser 10 | l0 l1 l2 - level 11 | ) 12 | (:init 13 | (ontable shaker1) 14 | (ontable shot1) 15 | (ontable shot2) 16 | (ontable shot3) 17 | (ontable shot4) 18 | (dispenses dispenser1 ingredient1) 19 | (dispenses dispenser2 ingredient2) 20 | (dispenses dispenser3 ingredient3) 21 | (clean shaker1) 22 | (clean shot1) 23 | (clean shot2) 24 | (clean shot3) 25 | (clean shot4) 26 | (empty shaker1) 27 | (empty shot1) 28 | (empty shot2) 29 | (empty shot3) 30 | (empty shot4) 31 | (handempty left) 32 | (handempty right) 33 | (shaker-empty-level shaker1 l0) 34 | (shaker-level shaker1 l0) 35 | (next l0 l1) 36 | (next l1 l2) 37 | (cocktail-part1 cocktail1 ingredient1) 38 | (cocktail-part2 cocktail1 ingredient3) 39 | (cocktail-part1 cocktail2 ingredient2) 40 | (cocktail-part2 cocktail2 ingredient3) 41 | (cocktail-part1 cocktail3 ingredient2) 42 | (cocktail-part2 cocktail3 ingredient1) 43 | ) 44 | (:goal 45 | (and 46 | (contains shot3 cocktail3) 47 | ))) 48 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/barman/p04.pddl: -------------------------------------------------------------------------------- 1 | (define (problem prob) 2 | (:domain barman) 3 | (:objects 4 | shaker1 - shaker 5 | left right - hand 6 | shot1 shot2 shot3 shot4 - shot 7 | ingredient1 ingredient2 ingredient3 - ingredient 8 | cocktail1 cocktail2 cocktail3 - cocktail 9 | dispenser1 dispenser2 dispenser3 - dispenser 10 | l0 l1 l2 - level 11 | ) 12 | (:init 13 | (ontable shaker1) 14 | (ontable shot1) 15 | (ontable shot2) 16 | (ontable shot3) 17 | (ontable shot4) 18 | (dispenses dispenser1 ingredient1) 19 | (dispenses dispenser2 ingredient2) 20 | (dispenses dispenser3 ingredient3) 21 | (clean shaker1) 22 | (clean shot1) 23 | (clean shot2) 24 | (clean shot3) 25 | (clean shot4) 26 | (empty shaker1) 27 | (empty shot1) 28 | (empty shot2) 29 | (empty shot3) 30 | (empty shot4) 31 | (handempty left) 32 | (handempty right) 33 | (shaker-empty-level shaker1 l0) 34 | (shaker-level shaker1 l0) 35 | (next l0 l1) 36 | (next l1 l2) 37 | (cocktail-part1 cocktail1 ingredient2) 38 | (cocktail-part2 cocktail1 ingredient1) 39 | (cocktail-part1 cocktail2 ingredient2) 40 | (cocktail-part2 cocktail2 ingredient3) 41 | (cocktail-part1 cocktail3 ingredient1) 42 | (cocktail-part2 cocktail3 ingredient2) 43 | ) 44 | (:goal 45 | (and 46 | (contains shot1 cocktail1) 47 | ))) 48 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/barman/p14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem prob) 2 | (:domain barman) 3 | (:objects 4 | shaker1 - shaker 5 | left right - hand 6 | shot1 shot2 shot3 shot4 - shot 7 | ingredient1 ingredient2 ingredient3 - ingredient 8 | cocktail1 cocktail2 cocktail3 - cocktail 9 | dispenser1 dispenser2 dispenser3 - dispenser 10 | l0 l1 l2 - level 11 | ) 12 | (:init 13 | (ontable shaker1) 14 | (ontable shot1) 15 | (ontable shot2) 16 | (ontable shot3) 17 | (ontable shot4) 18 | (dispenses dispenser1 ingredient1) 19 | (dispenses dispenser2 ingredient2) 20 | (dispenses dispenser3 ingredient3) 21 | (clean shaker1) 22 | (clean shot1) 23 | (clean shot2) 24 | (clean shot3) 25 | (clean shot4) 26 | (empty shaker1) 27 | (empty shot1) 28 | (empty shot2) 29 | (empty shot3) 30 | (empty shot4) 31 | (handempty left) 32 | (handempty right) 33 | (shaker-empty-level shaker1 l0) 34 | (shaker-level shaker1 l0) 35 | (next l0 l1) 36 | (next l1 l2) 37 | (cocktail-part1 cocktail1 ingredient1) 38 | (cocktail-part2 cocktail1 ingredient3) 39 | (cocktail-part1 cocktail2 ingredient2) 40 | (cocktail-part2 cocktail2 ingredient3) 41 | (cocktail-part1 cocktail3 ingredient1) 42 | (cocktail-part2 cocktail3 ingredient2) 43 | ) 44 | (:goal 45 | (and 46 | (contains shot1 ingredient1) 47 | ))) 48 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks.pddl: -------------------------------------------------------------------------------- 1 | (define (domain blocksworld-4ops) 2 | (:requirements :strips) 3 | (:predicates (clear ?x) 4 | (on-table ?x) 5 | (arm-empty) 6 | (holding ?x) 7 | (on ?x ?y)) 8 | 9 | (:action pickup 10 | :parameters (?ob) 11 | :precondition (and (clear ?ob) (on-table ?ob) (arm-empty)) 12 | :effect (and (holding ?ob) (not (clear ?ob)) (not (on-table ?ob)) 13 | (not (arm-empty)))) 14 | 15 | (:action putdown 16 | :parameters (?ob) 17 | :precondition (holding ?ob) 18 | :effect (and (clear ?ob) (arm-empty) (on-table ?ob) 19 | (not (holding ?ob)))) 20 | 21 | (:action stack 22 | :parameters (?ob ?underob) 23 | :precondition (and (clear ?underob) (holding ?ob)) 24 | :effect (and (arm-empty) (clear ?ob) (on ?ob ?underob) 25 | (not (clear ?underob)) (not (holding ?ob)))) 26 | 27 | (:action unstack 28 | :parameters (?ob ?underob) 29 | :precondition (and (on ?ob ?underob) (clear ?ob) (arm-empty)) 30 | :effect (and (holding ?ob) (clear ?underob) 31 | (not (on ?ob ?underob)) (not (clear ?ob)) (not (arm-empty))))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-3) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b3 b2) 8 | (on b1 b3) 9 | (clear b2) 10 | ) 11 | (:goal 12 | (and 13 | (on b2 b3) 14 | (on b3 b1)) 15 | ) 16 | ) 17 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-7) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 b7 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b2 b5) 8 | (on-table b3) 9 | (on b4 b7) 10 | (on-table b5) 11 | (on b6 b3) 12 | (on b7 b1) 13 | (clear b2) 14 | (clear b4) 15 | (clear b6) 16 | ) 17 | (:goal 18 | (and 19 | (on b1 b7) 20 | (on b2 b5) 21 | (on b3 b2) 22 | (on b4 b1) 23 | (on b5 b6) 24 | (on b7 b3)) 25 | ) 26 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-3) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b3) 7 | (on-table b2) 8 | (on b3 b2) 9 | (clear b1) 10 | ) 11 | (:goal 12 | (and 13 | (on b2 b3) 14 | (on b3 b1)) 15 | ) 16 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-4) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b3) 7 | (on-table b2) 8 | (on b3 b2) 9 | (on-table b4) 10 | (clear b1) 11 | (clear b4) 12 | ) 13 | (:goal 14 | (and 15 | (on b2 b1) 16 | (on b3 b4)) 17 | ) 18 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-4) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b4) 7 | (on-table b2) 8 | (on b3 b1) 9 | (on b4 b2) 10 | (clear b3) 11 | ) 12 | (:goal 13 | (and 14 | (on b1 b2) 15 | (on b2 b3) 16 | (on b3 b4)) 17 | ) 18 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-5) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b2) 7 | (on b2 b3) 8 | (on b3 b5) 9 | (on b4 b1) 10 | (on-table b5) 11 | (clear b4) 12 | ) 13 | (:goal 14 | (and 15 | (on b1 b3) 16 | (on b5 b3)) 17 | ) 18 | ) 19 | 20 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-5) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b2 b1) 8 | (on b3 b4) 9 | (on b4 b2) 10 | (on b5 b3) 11 | (clear b5) 12 | ) 13 | (:goal 14 | (and 15 | (on b1 b2) 16 | (on b3 b5) 17 | (on b4 b1)) 18 | ) 19 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem7.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-6) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b2 b3) 8 | (on b3 b1) 9 | (on-table b4) 10 | (on b5 b2) 11 | (on-table b6) 12 | (clear b4) 13 | (clear b5) 14 | (clear b6) 15 | ) 16 | (:goal 17 | (and 18 | (on b3 b5) 19 | (on b4 b3)) 20 | ) 21 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-6) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b3) 7 | (on-table b2) 8 | (on b3 b2) 9 | (on b4 b5) 10 | (on b5 b1) 11 | (on b6 b4) 12 | (clear b6) 13 | ) 14 | (:goal 15 | (and 16 | (on b1 b6) 17 | (on b3 b5) 18 | (on b6 b2)) 19 | ) 20 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks/problem9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-7) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 b7 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on-table b2) 8 | (on b3 b6) 9 | (on b4 b7) 10 | (on-table b5) 11 | (on-table b6) 12 | (on b7 b3) 13 | (clear b1) 14 | (clear b2) 15 | (clear b4) 16 | (clear b5) 17 | ) 18 | (:goal 19 | (and 20 | (on b1 b2) 21 | (on b2 b6) 22 | (on b3 b7) 23 | (on b5 b3) 24 | (on b6 b5) 25 | (on b7 b4)) 26 | ) 27 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem0.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b2 - block 8 | b3 - block 9 | b4 - block 10 | b5 - block 11 | b6 - block 12 | b7 - block 13 | b8 - block 14 | b9 - block 15 | ) 16 | (:init 17 | (clear b0) 18 | (clear b4) 19 | (clear b7) 20 | (handempty) 21 | (on b0 b1) 22 | (on b1 b2) 23 | (on b2 b3) 24 | (on b4 b5) 25 | (on b5 b6) 26 | (on b7 b8) 27 | (on b8 b9) 28 | (on b9 b10) 29 | (ontable b10) 30 | (ontable b3) 31 | (ontable b6) 32 | ) 33 | (:goal (and 34 | (on b4 b10) 35 | (on b10 b2) 36 | (on b2 b3) 37 | (ontable b3) 38 | (on b5 b8) 39 | (on b8 b9) 40 | (on b9 b6) 41 | (on b6 b7) 42 | (ontable b7) 43 | (on b0 b1) 44 | (ontable b1))) 45 | ) 46 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem1.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b15 - block 12 | b16 - block 13 | b17 - block 14 | b18 - block 15 | b2 - block 16 | b3 - block 17 | b4 - block 18 | b5 - block 19 | b6 - block 20 | b7 - block 21 | b8 - block 22 | b9 - block 23 | ) 24 | (:init 25 | (clear b0) 26 | (clear b11) 27 | (clear b15) 28 | (clear b3) 29 | (clear b8) 30 | (handempty) 31 | (on b0 b1) 32 | (on b11 b12) 33 | (on b12 b13) 34 | (on b13 b14) 35 | (on b15 b16) 36 | (on b16 b17) 37 | (on b17 b18) 38 | (on b1 b2) 39 | (on b3 b4) 40 | (on b4 b5) 41 | (on b5 b6) 42 | (on b6 b7) 43 | (on b8 b9) 44 | (on b9 b10) 45 | (ontable b10) 46 | (ontable b14) 47 | (ontable b18) 48 | (ontable b2) 49 | (ontable b7) 50 | ) 51 | (:goal (and 52 | (on b4 b8) 53 | (on b8 b5) 54 | (on b5 b1) 55 | (on b1 b17) 56 | (ontable b17) 57 | (on b0 b15) 58 | (on b15 b13) 59 | (ontable b13) 60 | (on b2 b6) 61 | (on b6 b9) 62 | (on b9 b7) 63 | (ontable b7) 64 | (on b11 b12) 65 | (on b12 b18) 66 | (on b18 b10) 67 | (ontable b10) 68 | (on b16 b3) 69 | (on b3 b14) 70 | (ontable b14))) 71 | ) 72 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem10.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b15 - block 12 | b2 - block 13 | b3 - block 14 | b4 - block 15 | b5 - block 16 | b6 - block 17 | b7 - block 18 | b8 - block 19 | b9 - block 20 | ) 21 | (:init 22 | (clear b0) 23 | (clear b11) 24 | (clear b3) 25 | (clear b8) 26 | (handempty) 27 | (on b0 b1) 28 | (on b11 b12) 29 | (on b12 b13) 30 | (on b13 b14) 31 | (on b14 b15) 32 | (on b1 b2) 33 | (on b3 b4) 34 | (on b4 b5) 35 | (on b5 b6) 36 | (on b6 b7) 37 | (on b8 b9) 38 | (on b9 b10) 39 | (ontable b10) 40 | (ontable b15) 41 | (ontable b2) 42 | (ontable b7) 43 | ) 44 | (:goal (and 45 | (on b0 b10) 46 | (on b10 b4) 47 | (on b4 b2) 48 | (on b2 b1) 49 | (ontable b1) 50 | (on b5 b14) 51 | (on b14 b15) 52 | (on b15 b13) 53 | (on b13 b12) 54 | (ontable b12) 55 | (on b11 b9) 56 | (on b9 b7) 57 | (ontable b7))) 58 | ) 59 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem14.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b2 - block 12 | b3 - block 13 | b4 - block 14 | b5 - block 15 | b6 - block 16 | b7 - block 17 | b8 - block 18 | b9 - block 19 | ) 20 | (:init 21 | (clear b0) 22 | (clear b12) 23 | (clear b4) 24 | (clear b8) 25 | (handempty) 26 | (on b0 b1) 27 | (on b10 b11) 28 | (on b12 b13) 29 | (on b13 b14) 30 | (on b1 b2) 31 | (on b2 b3) 32 | (on b4 b5) 33 | (on b5 b6) 34 | (on b6 b7) 35 | (on b8 b9) 36 | (on b9 b10) 37 | (ontable b11) 38 | (ontable b14) 39 | (ontable b3) 40 | (ontable b7) 41 | ) 42 | (:goal (and 43 | (on b13 b1) 44 | (on b1 b3) 45 | (on b3 b9) 46 | (on b9 b11) 47 | (ontable b11) 48 | (on b0 b4) 49 | (on b4 b2) 50 | (on b2 b14) 51 | (on b14 b10) 52 | (ontable b10) 53 | (on b6 b7) 54 | (on b7 b8) 55 | (on b8 b5) 56 | (ontable b5) 57 | (ontable b12))) 58 | ) 59 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem15.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b2 - block 11 | b3 - block 12 | b4 - block 13 | b5 - block 14 | b6 - block 15 | b7 - block 16 | b8 - block 17 | b9 - block 18 | ) 19 | (:init 20 | (clear b0) 21 | (clear b10) 22 | (clear b4) 23 | (clear b7) 24 | (handempty) 25 | (on b0 b1) 26 | (on b10 b11) 27 | (on b11 b12) 28 | (on b12 b13) 29 | (on b1 b2) 30 | (on b2 b3) 31 | (on b4 b5) 32 | (on b5 b6) 33 | (on b7 b8) 34 | (on b8 b9) 35 | (ontable b13) 36 | (ontable b3) 37 | (ontable b6) 38 | (ontable b9) 39 | ) 40 | (:goal (and 41 | (on b1 b8) 42 | (on b8 b10) 43 | (ontable b10) 44 | (on b9 b5) 45 | (on b5 b7) 46 | (ontable b7) 47 | (on b6 b2) 48 | (on b2 b4) 49 | (on b4 b3) 50 | (ontable b3) 51 | (on b11 b13) 52 | (on b13 b0) 53 | (on b0 b12) 54 | (ontable b12))) 55 | ) 56 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem17.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b15 - block 12 | b16 - block 13 | b17 - block 14 | b18 - block 15 | b2 - block 16 | b3 - block 17 | b4 - block 18 | b5 - block 19 | b6 - block 20 | b7 - block 21 | b8 - block 22 | b9 - block 23 | ) 24 | (:init 25 | (clear b0) 26 | (clear b12) 27 | (clear b16) 28 | (clear b4) 29 | (clear b8) 30 | (handempty) 31 | (on b0 b1) 32 | (on b10 b11) 33 | (on b12 b13) 34 | (on b13 b14) 35 | (on b14 b15) 36 | (on b16 b17) 37 | (on b17 b18) 38 | (on b1 b2) 39 | (on b2 b3) 40 | (on b4 b5) 41 | (on b5 b6) 42 | (on b6 b7) 43 | (on b8 b9) 44 | (on b9 b10) 45 | (ontable b11) 46 | (ontable b15) 47 | (ontable b18) 48 | (ontable b3) 49 | (ontable b7) 50 | ) 51 | (:goal (and 52 | (on b3 b18) 53 | (on b18 b12) 54 | (ontable b12) 55 | (on b0 b8) 56 | (on b8 b6) 57 | (ontable b6) 58 | (on b1 b16) 59 | (on b16 b11) 60 | (on b11 b7) 61 | (on b7 b10) 62 | (ontable b10) 63 | (on b13 b9) 64 | (on b9 b4) 65 | (on b4 b17) 66 | (on b17 b2) 67 | (ontable b2))) 68 | ) 69 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem18.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b2 - block 12 | b3 - block 13 | b4 - block 14 | b5 - block 15 | b6 - block 16 | b7 - block 17 | b8 - block 18 | b9 - block 19 | ) 20 | (:init 21 | (clear b0) 22 | (clear b12) 23 | (clear b5) 24 | (clear b9) 25 | (handempty) 26 | (on b0 b1) 27 | (on b10 b11) 28 | (on b12 b13) 29 | (on b13 b14) 30 | (on b1 b2) 31 | (on b2 b3) 32 | (on b3 b4) 33 | (on b5 b6) 34 | (on b6 b7) 35 | (on b7 b8) 36 | (on b9 b10) 37 | (ontable b11) 38 | (ontable b14) 39 | (ontable b4) 40 | (ontable b8) 41 | ) 42 | (:goal (and 43 | (on b14 b5) 44 | (on b5 b12) 45 | (on b12 b7) 46 | (ontable b7) 47 | (on b6 b0) 48 | (on b0 b13) 49 | (on b13 b8) 50 | (on b8 b3) 51 | (ontable b3) 52 | (on b11 b4) 53 | (on b4 b2) 54 | (on b2 b9) 55 | (ontable b9) 56 | (on b10 b1) 57 | (ontable b1))) 58 | ) 59 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem19.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b2 - block 9 | b3 - block 10 | b4 - block 11 | b5 - block 12 | b6 - block 13 | b7 - block 14 | b8 - block 15 | b9 - block 16 | ) 17 | (:init 18 | (clear b0) 19 | (clear b3) 20 | (clear b7) 21 | (handempty) 22 | (on b0 b1) 23 | (on b10 b11) 24 | (on b1 b2) 25 | (on b3 b4) 26 | (on b4 b5) 27 | (on b5 b6) 28 | (on b7 b8) 29 | (on b8 b9) 30 | (on b9 b10) 31 | (ontable b11) 32 | (ontable b2) 33 | (ontable b6) 34 | ) 35 | (:goal (and 36 | (on b10 b5) 37 | (on b5 b6) 38 | (on b6 b4) 39 | (on b4 b8) 40 | (ontable b8) 41 | (on b1 b7) 42 | (on b7 b9) 43 | (ontable b9) 44 | (on b0 b3) 45 | (on b3 b2) 46 | (ontable b2) 47 | (ontable b11))) 48 | ) 49 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem21.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b2 - block 7 | b3 - block 8 | b4 - block 9 | b5 - block 10 | b6 - block 11 | b7 - block 12 | b8 - block 13 | b9 - block 14 | ) 15 | (:init 16 | (clear b0) 17 | (clear b3) 18 | (clear b7) 19 | (handempty) 20 | (on b0 b1) 21 | (on b1 b2) 22 | (on b3 b4) 23 | (on b4 b5) 24 | (on b5 b6) 25 | (on b7 b8) 26 | (on b8 b9) 27 | (ontable b2) 28 | (ontable b6) 29 | (ontable b9) 30 | ) 31 | (:goal (and 32 | (on b5 b7) 33 | (on b7 b9) 34 | (on b9 b4) 35 | (ontable b4) 36 | (on b1 b3) 37 | (on b3 b8) 38 | (ontable b8) 39 | (on b0 b6) 40 | (on b6 b2) 41 | (ontable b2))) 42 | ) 43 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem22.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b15 - block 12 | b16 - block 13 | b17 - block 14 | b18 - block 15 | b19 - block 16 | b2 - block 17 | b20 - block 18 | b3 - block 19 | b4 - block 20 | b5 - block 21 | b6 - block 22 | b7 - block 23 | b8 - block 24 | b9 - block 25 | ) 26 | (:init 27 | (clear b0) 28 | (clear b13) 29 | (clear b18) 30 | (clear b4) 31 | (clear b8) 32 | (handempty) 33 | (on b0 b1) 34 | (on b10 b11) 35 | (on b11 b12) 36 | (on b13 b14) 37 | (on b14 b15) 38 | (on b15 b16) 39 | (on b16 b17) 40 | (on b18 b19) 41 | (on b19 b20) 42 | (on b1 b2) 43 | (on b2 b3) 44 | (on b4 b5) 45 | (on b5 b6) 46 | (on b6 b7) 47 | (on b8 b9) 48 | (on b9 b10) 49 | (ontable b12) 50 | (ontable b17) 51 | (ontable b20) 52 | (ontable b3) 53 | (ontable b7) 54 | ) 55 | (:goal (and 56 | (on b1 b11) 57 | (on b11 b14) 58 | (on b14 b17) 59 | (ontable b17) 60 | (on b5 b3) 61 | (on b3 b19) 62 | (ontable b19) 63 | (on b6 b7) 64 | (on b7 b16) 65 | (on b16 b4) 66 | (on b4 b9) 67 | (ontable b9))) 68 | ) 69 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem24.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b2 - block 9 | b3 - block 10 | b4 - block 11 | b5 - block 12 | b6 - block 13 | b7 - block 14 | b8 - block 15 | b9 - block 16 | ) 17 | (:init 18 | (clear b0) 19 | (clear b3) 20 | (clear b8) 21 | (handempty) 22 | (on b0 b1) 23 | (on b10 b11) 24 | (on b1 b2) 25 | (on b3 b4) 26 | (on b4 b5) 27 | (on b5 b6) 28 | (on b6 b7) 29 | (on b8 b9) 30 | (on b9 b10) 31 | (ontable b11) 32 | (ontable b2) 33 | (ontable b7) 34 | ) 35 | (:goal (and 36 | (on b1 b11) 37 | (on b11 b3) 38 | (ontable b3) 39 | (on b9 b10) 40 | (on b10 b2) 41 | (on b2 b6) 42 | (ontable b6) 43 | (on b8 b0) 44 | (on b0 b7) 45 | (on b7 b4) 46 | (on b4 b5) 47 | (ontable b5))) 48 | ) 49 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem26.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b2 - block 9 | b3 - block 10 | b4 - block 11 | b5 - block 12 | b6 - block 13 | b7 - block 14 | b8 - block 15 | b9 - block 16 | ) 17 | (:init 18 | (clear b0) 19 | (clear b3) 20 | (clear b8) 21 | (handempty) 22 | (on b0 b1) 23 | (on b10 b11) 24 | (on b1 b2) 25 | (on b3 b4) 26 | (on b4 b5) 27 | (on b5 b6) 28 | (on b6 b7) 29 | (on b8 b9) 30 | (on b9 b10) 31 | (ontable b11) 32 | (ontable b2) 33 | (ontable b7) 34 | ) 35 | (:goal (and 36 | (on b7 b5) 37 | (on b5 b8) 38 | (on b8 b11) 39 | (on b11 b0) 40 | (ontable b0) 41 | (on b3 b1) 42 | (on b1 b2) 43 | (on b2 b9) 44 | (ontable b9) 45 | (on b10 b4) 46 | (on b4 b6) 47 | (ontable b6))) 48 | ) 49 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem27.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b2 - block 8 | b3 - block 9 | b4 - block 10 | b5 - block 11 | b6 - block 12 | b7 - block 13 | b8 - block 14 | b9 - block 15 | ) 16 | (:init 17 | (clear b0) 18 | (clear b3) 19 | (clear b6) 20 | (handempty) 21 | (on b0 b1) 22 | (on b1 b2) 23 | (on b3 b4) 24 | (on b4 b5) 25 | (on b6 b7) 26 | (on b7 b8) 27 | (on b8 b9) 28 | (on b9 b10) 29 | (ontable b10) 30 | (ontable b2) 31 | (ontable b5) 32 | ) 33 | (:goal (and 34 | (on b3 b10) 35 | (on b10 b6) 36 | (on b6 b9) 37 | (on b9 b5) 38 | (ontable b5) 39 | (on b8 b4) 40 | (on b4 b2) 41 | (on b2 b0) 42 | (ontable b0) 43 | (on b1 b7) 44 | (ontable b7))) 45 | ) 46 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem28.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b15 - block 12 | b16 - block 13 | b17 - block 14 | b18 - block 15 | b19 - block 16 | b2 - block 17 | b20 - block 18 | b21 - block 19 | b3 - block 20 | b4 - block 21 | b5 - block 22 | b6 - block 23 | b7 - block 24 | b8 - block 25 | b9 - block 26 | ) 27 | (:init 28 | (clear b0) 29 | (clear b11) 30 | (clear b14) 31 | (clear b19) 32 | (clear b4) 33 | (clear b8) 34 | (handempty) 35 | (on b0 b1) 36 | (on b11 b12) 37 | (on b12 b13) 38 | (on b14 b15) 39 | (on b15 b16) 40 | (on b16 b17) 41 | (on b17 b18) 42 | (on b19 b20) 43 | (on b1 b2) 44 | (on b20 b21) 45 | (on b2 b3) 46 | (on b4 b5) 47 | (on b5 b6) 48 | (on b6 b7) 49 | (on b8 b9) 50 | (on b9 b10) 51 | (ontable b10) 52 | (ontable b13) 53 | (ontable b18) 54 | (ontable b21) 55 | (ontable b3) 56 | (ontable b7) 57 | ) 58 | (:goal (and 59 | (on b13 b14) 60 | (on b14 b10) 61 | (on b10 b1) 62 | (on b1 b18) 63 | (ontable b18) 64 | (on b16 b4) 65 | (on b4 b3) 66 | (ontable b3) 67 | (on b5 b19) 68 | (on b19 b2) 69 | (on b2 b0) 70 | (ontable b0) 71 | (on b7 b11) 72 | (on b11 b9) 73 | (ontable b9))) 74 | ) 75 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem29.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b2 - block 11 | b3 - block 12 | b4 - block 13 | b5 - block 14 | b6 - block 15 | b7 - block 16 | b8 - block 17 | b9 - block 18 | ) 19 | (:init 20 | (clear b0) 21 | (clear b10) 22 | (clear b5) 23 | (handempty) 24 | (on b0 b1) 25 | (on b10 b11) 26 | (on b11 b12) 27 | (on b12 b13) 28 | (on b1 b2) 29 | (on b2 b3) 30 | (on b3 b4) 31 | (on b5 b6) 32 | (on b6 b7) 33 | (on b7 b8) 34 | (on b8 b9) 35 | (ontable b13) 36 | (ontable b4) 37 | (ontable b9) 38 | ) 39 | (:goal (and 40 | (on b1 b2) 41 | (on b2 b8) 42 | (on b8 b6) 43 | (ontable b6) 44 | (on b12 b0) 45 | (on b0 b7) 46 | (ontable b7) 47 | (on b5 b10) 48 | (on b10 b9) 49 | (ontable b9))) 50 | ) 51 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem3.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b2 - block 9 | b3 - block 10 | b4 - block 11 | b5 - block 12 | b6 - block 13 | b7 - block 14 | b8 - block 15 | b9 - block 16 | ) 17 | (:init 18 | (clear b0) 19 | (clear b4) 20 | (clear b9) 21 | (handempty) 22 | (on b0 b1) 23 | (on b10 b11) 24 | (on b1 b2) 25 | (on b2 b3) 26 | (on b4 b5) 27 | (on b5 b6) 28 | (on b6 b7) 29 | (on b7 b8) 30 | (on b9 b10) 31 | (ontable b11) 32 | (ontable b3) 33 | (ontable b8) 34 | ) 35 | (:goal (and 36 | (on b10 b11) 37 | (on b11 b4) 38 | (on b4 b2) 39 | (ontable b2) 40 | (on b6 b3) 41 | (on b3 b8) 42 | (ontable b8) 43 | (on b5 b0) 44 | (on b0 b1) 45 | (on b1 b9) 46 | (on b9 b7) 47 | (ontable b7))) 48 | ) 49 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem30.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b2 - block 10 | b3 - block 11 | b4 - block 12 | b5 - block 13 | b6 - block 14 | b7 - block 15 | b8 - block 16 | b9 - block 17 | ) 18 | (:init 19 | (clear b0) 20 | (clear b3) 21 | (clear b8) 22 | (handempty) 23 | (on b0 b1) 24 | (on b10 b11) 25 | (on b11 b12) 26 | (on b1 b2) 27 | (on b3 b4) 28 | (on b4 b5) 29 | (on b5 b6) 30 | (on b6 b7) 31 | (on b8 b9) 32 | (on b9 b10) 33 | (ontable b12) 34 | (ontable b2) 35 | (ontable b7) 36 | ) 37 | (:goal (and 38 | (on b10 b8) 39 | (on b8 b6) 40 | (on b6 b12) 41 | (on b12 b1) 42 | (ontable b1) 43 | (on b5 b3) 44 | (on b3 b0) 45 | (on b0 b11) 46 | (on b11 b9) 47 | (ontable b9) 48 | (on b4 b2) 49 | (on b2 b7) 50 | (ontable b7))) 51 | ) 52 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem31.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b15 - block 12 | b16 - block 13 | b2 - block 14 | b3 - block 15 | b4 - block 16 | b5 - block 17 | b6 - block 18 | b7 - block 19 | b8 - block 20 | b9 - block 21 | ) 22 | (:init 23 | (clear b0) 24 | (clear b12) 25 | (clear b3) 26 | (clear b8) 27 | (handempty) 28 | (on b0 b1) 29 | (on b10 b11) 30 | (on b12 b13) 31 | (on b13 b14) 32 | (on b14 b15) 33 | (on b15 b16) 34 | (on b1 b2) 35 | (on b3 b4) 36 | (on b4 b5) 37 | (on b5 b6) 38 | (on b6 b7) 39 | (on b8 b9) 40 | (on b9 b10) 41 | (ontable b11) 42 | (ontable b16) 43 | (ontable b2) 44 | (ontable b7) 45 | ) 46 | (:goal (and 47 | (on b8 b16) 48 | (on b16 b2) 49 | (on b2 b3) 50 | (on b3 b1) 51 | (ontable b1) 52 | (on b11 b9) 53 | (on b9 b13) 54 | (on b13 b4) 55 | (on b4 b15) 56 | (ontable b15) 57 | (on b12 b0) 58 | (on b0 b10) 59 | (ontable b10) 60 | (on b7 b14) 61 | (on b14 b6) 62 | (on b6 b5) 63 | (ontable b5))) 64 | ) 65 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem32.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b2 - block 11 | b3 - block 12 | b4 - block 13 | b5 - block 14 | b6 - block 15 | b7 - block 16 | b8 - block 17 | b9 - block 18 | ) 19 | (:init 20 | (clear b0) 21 | (clear b10) 22 | (clear b3) 23 | (clear b6) 24 | (handempty) 25 | (on b0 b1) 26 | (on b10 b11) 27 | (on b11 b12) 28 | (on b12 b13) 29 | (on b1 b2) 30 | (on b3 b4) 31 | (on b4 b5) 32 | (on b6 b7) 33 | (on b7 b8) 34 | (on b8 b9) 35 | (ontable b13) 36 | (ontable b2) 37 | (ontable b5) 38 | (ontable b9) 39 | ) 40 | (:goal (and 41 | (on b12 b13) 42 | (on b13 b11) 43 | (on b11 b0) 44 | (on b0 b4) 45 | (ontable b4) 46 | (on b9 b8) 47 | (on b8 b1) 48 | (ontable b1) 49 | (on b6 b3) 50 | (on b3 b5) 51 | (on b5 b2) 52 | (on b2 b10) 53 | (ontable b10))) 54 | ) 55 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem4.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b2 - block 11 | b3 - block 12 | b4 - block 13 | b5 - block 14 | b6 - block 15 | b7 - block 16 | b8 - block 17 | b9 - block 18 | ) 19 | (:init 20 | (clear b0) 21 | (clear b10) 22 | (clear b4) 23 | (clear b7) 24 | (handempty) 25 | (on b0 b1) 26 | (on b10 b11) 27 | (on b11 b12) 28 | (on b12 b13) 29 | (on b1 b2) 30 | (on b2 b3) 31 | (on b4 b5) 32 | (on b5 b6) 33 | (on b7 b8) 34 | (on b8 b9) 35 | (ontable b13) 36 | (ontable b3) 37 | (ontable b6) 38 | (ontable b9) 39 | ) 40 | (:goal (and 41 | (on b9 b0) 42 | (on b0 b8) 43 | (ontable b8) 44 | (on b3 b6) 45 | (on b6 b10) 46 | (on b10 b7) 47 | (on b7 b11) 48 | (ontable b11) 49 | (on b5 b2) 50 | (on b2 b12) 51 | (on b12 b13) 52 | (on b13 b1) 53 | (ontable b1) 54 | (ontable b4))) 55 | ) 56 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_medium/problem5.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem generatedblocks) (:domain blocks) 3 | (:objects 4 | b0 - block 5 | b1 - block 6 | b10 - block 7 | b11 - block 8 | b12 - block 9 | b13 - block 10 | b14 - block 11 | b15 - block 12 | b2 - block 13 | b3 - block 14 | b4 - block 15 | b5 - block 16 | b6 - block 17 | b7 - block 18 | b8 - block 19 | b9 - block 20 | ) 21 | (:init 22 | (clear b0) 23 | (clear b12) 24 | (clear b5) 25 | (clear b8) 26 | (handempty) 27 | (on b0 b1) 28 | (on b10 b11) 29 | (on b12 b13) 30 | (on b13 b14) 31 | (on b14 b15) 32 | (on b1 b2) 33 | (on b2 b3) 34 | (on b3 b4) 35 | (on b5 b6) 36 | (on b6 b7) 37 | (on b8 b9) 38 | (on b9 b10) 39 | (ontable b11) 40 | (ontable b15) 41 | (ontable b4) 42 | (ontable b7) 43 | ) 44 | (:goal (and 45 | (on b8 b14) 46 | (on b14 b7) 47 | (on b7 b0) 48 | (ontable b0) 49 | (on b12 b10) 50 | (on b10 b6) 51 | (on b6 b9) 52 | (ontable b9) 53 | (on b4 b13) 54 | (on b13 b2) 55 | (on b2 b3) 56 | (ontable b3) 57 | (on b15 b11) 58 | (on b11 b5) 59 | (on b5 b1) 60 | (ontable b1))) 61 | ) 62 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_old/problem1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks) 2 | (:domain blocks) 3 | (:objects 4 | d - block 5 | b - block 6 | a - block 7 | c - block 8 | robot - robot 9 | ) 10 | (:init 11 | (clear c) 12 | (clear a) 13 | (clear b) 14 | (clear d) 15 | (ontable c) 16 | (ontable a) 17 | (ontable b) 18 | (ontable d) 19 | (handempty robot) 20 | 21 | ; action literals 22 | (pickup a) 23 | (putdown a) 24 | (unstack a) 25 | (stack a b) 26 | (stack a c) 27 | (stack a d) 28 | (pickup b) 29 | (putdown b) 30 | (unstack b) 31 | (stack b a) 32 | (stack b c) 33 | (stack b d) 34 | (pickup c) 35 | (putdown c) 36 | (unstack c) 37 | (stack c b) 38 | (stack c a) 39 | (stack c d) 40 | (pickup d) 41 | (putdown d) 42 | (unstack d) 43 | (stack d b) 44 | (stack d c) 45 | (stack d a) 46 | 47 | ) 48 | (:goal (and (on d c) (on c b) (on b a))) 49 | ) 50 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blocks_old/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem blocks) 2 | (:domain blocks) 3 | (:objects 4 | d - block 5 | b - block 6 | a - block 7 | c - block 8 | robot - robot 9 | ) 10 | (:init 11 | (clear b) 12 | (clear d) 13 | (on c a) 14 | (on d c) 15 | (ontable a) 16 | (ontable b) 17 | (handempty robot) 18 | 19 | ; action literals 20 | (pickup a) 21 | (putdown a) 22 | (unstack a) 23 | (stack a b) 24 | (stack a c) 25 | (stack a d) 26 | (pickup b) 27 | (putdown b) 28 | (unstack b) 29 | (stack b a) 30 | (stack b c) 31 | (stack b d) 32 | (pickup c) 33 | (putdown c) 34 | (unstack c) 35 | (stack c b) 36 | (stack c a) 37 | (stack c d) 38 | (pickup d) 39 | (putdown d) 40 | (unstack d) 41 | (stack d b) 42 | (stack d c) 43 | (stack d a) 44 | 45 | ) 46 | (:goal (and (on b a) (on a c) (on c d))) 47 | ) 48 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld.pddl: -------------------------------------------------------------------------------- 1 | (define (domain blocksworld-4ops) 2 | (:requirements :strips) 3 | (:predicates (clear ?x) 4 | (on-table ?x) 5 | (arm-empty) 6 | (holding ?x) 7 | (on ?x ?y)) 8 | 9 | (:action pickup 10 | :parameters (?ob) 11 | :precondition (and (clear ?ob) (on-table ?ob) (arm-empty)) 12 | :effect (and (holding ?ob) (not (clear ?ob)) (not (on-table ?ob)) 13 | (not (arm-empty)))) 14 | 15 | (:action putdown 16 | :parameters (?ob) 17 | :precondition (holding ?ob) 18 | :effect (and (clear ?ob) (arm-empty) (on-table ?ob) 19 | (not (holding ?ob)))) 20 | 21 | (:action stack 22 | :parameters (?ob ?underob) 23 | :precondition (and (clear ?underob) (holding ?ob)) 24 | :effect (and (arm-empty) (clear ?ob) (on ?ob ?underob) 25 | (not (clear ?underob)) (not (holding ?ob)))) 26 | 27 | (:action unstack 28 | :parameters (?ob ?underob) 29 | :precondition (and (on ?ob ?underob) (clear ?ob) (arm-empty)) 30 | :effect (and (holding ?ob) (clear ?underob) 31 | (not (on ?ob ?underob)) (not (clear ?ob)) (not (arm-empty))))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-3) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b2 b3) 8 | (on b3 b1) 9 | (clear b2) 10 | ) 11 | (:goal 12 | (and 13 | (on b3 b2) 14 | (on b2 b1)) 15 | ) 16 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-7) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 b7 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b2 b5) 8 | (on-table b3) 9 | (on b4 b7) 10 | (on-table b5) 11 | (on b6 b3) 12 | (on b7 b1) 13 | (clear b2) 14 | (clear b4) 15 | (clear b6) 16 | ) 17 | (:goal 18 | (and 19 | (on b1 b7) 20 | (on b2 b5) 21 | (on b3 b2) 22 | (on b4 b1) 23 | (on b5 b6) 24 | (on b7 b3)) 25 | ) 26 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-3) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b3) 7 | (on-table b2) 8 | (on b3 b2) 9 | (clear b1) 10 | ) 11 | (:goal 12 | (and 13 | (on b2 b3) 14 | (on b3 b1)) 15 | ) 16 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-4) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b3) 7 | (on-table b2) 8 | (on b3 b2) 9 | (on-table b4) 10 | (clear b1) 11 | (clear b4) 12 | ) 13 | (:goal 14 | (and 15 | (on b2 b1) 16 | (on b3 b4)) 17 | ) 18 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-4) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b4) 7 | (on-table b2) 8 | (on b3 b1) 9 | (on b4 b2) 10 | (clear b3) 11 | ) 12 | (:goal 13 | (and 14 | (on b1 b2) 15 | (on b2 b3) 16 | (on b3 b4)) 17 | ) 18 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-5) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b2) 7 | (on b2 b3) 8 | (on b3 b5) 9 | (on b4 b1) 10 | (on-table b5) 11 | (clear b4) 12 | ) 13 | (:goal 14 | (and 15 | (on b1 b3) 16 | (on b3 b5)) 17 | ) 18 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-5) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b2 b1) 8 | (on b3 b4) 9 | (on b4 b2) 10 | (on b5 b3) 11 | (clear b5) 12 | ) 13 | (:goal 14 | (and 15 | (on b1 b2) 16 | (on b3 b5) 17 | (on b4 b1)) 18 | ) 19 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem7.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-6) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on b2 b3) 8 | (on b3 b1) 9 | (on-table b4) 10 | (on b5 b2) 11 | (on-table b6) 12 | (clear b4) 13 | (clear b5) 14 | (clear b6) 15 | ) 16 | (:goal 17 | (and 18 | (on b3 b5) 19 | (on b4 b3)) 20 | ) 21 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-6) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 ) 4 | (:init 5 | (arm-empty) 6 | (on b1 b3) 7 | (on-table b2) 8 | (on b3 b2) 9 | (on b4 b5) 10 | (on b5 b1) 11 | (on b6 b4) 12 | (clear b6) 13 | ) 14 | (:goal 15 | (and 16 | (on b1 b6) 17 | (on b3 b5) 18 | (on b6 b2)) 19 | ) 20 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/blockworld/problem9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem BW-rand-7) 2 | (:domain blocksworld-4ops) 3 | (:objects b1 b2 b3 b4 b5 b6 b7 ) 4 | (:init 5 | (arm-empty) 6 | (on-table b1) 7 | (on-table b2) 8 | (on b3 b6) 9 | (on b4 b7) 10 | (on-table b5) 11 | (on-table b6) 12 | (on b7 b3) 13 | (clear b1) 14 | (clear b2) 15 | (clear b4) 16 | (clear b5) 17 | ) 18 | (:goal 19 | (and 20 | (on b1 b2) 21 | (on b2 b6) 22 | (on b3 b7) 23 | (on b5 b3) 24 | (on b6 b5) 25 | (on b7 b4)) 26 | ) 27 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/doors.pddl: -------------------------------------------------------------------------------- 1 | (define (domain doors) 2 | (:requirements :strips :typing) 3 | (:types location room key) 4 | (:predicates 5 | (at ?loc - location) 6 | (unlocked ?room - room) 7 | (locinroom ?loc - location ?room - room) 8 | (keyat ?key - key ?loc - location) 9 | (keyforroom ?key - key ?room - room) 10 | (moveto ?loc - location) 11 | (pick ?key - key) 12 | ) 13 | 14 | ; (:actions moveto pick) 15 | 16 | (:action moveto 17 | :parameters (?sloc - location ?eloc - location ?eroom - room) 18 | :precondition (and (moveto ?eloc) 19 | (at ?sloc) 20 | (unlocked ?eroom) 21 | (locinroom ?eloc ?eroom) 22 | ) 23 | :effect (and (not (at ?sloc)) 24 | (at ?eloc) 25 | ) 26 | ) 27 | 28 | (:action pick 29 | :parameters (?loc - location ?key - key ?room - room) 30 | :precondition (and (pick ?key) 31 | (at ?loc) 32 | (keyat ?key ?loc) 33 | (keyforroom ?key ?room) 34 | ) 35 | :effect (and (not (keyat ?key ?loc)) 36 | (unlocked ?room) 37 | ) 38 | ) 39 | 40 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/elevator/problem1.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem mixed-f2-p1-u0-v0-g0-a0-n0-a0-b0-n0-f0-r0) (:domain miconic) 3 | (:objects 4 | f0 - floor 5 | f1 - floor 6 | p0 - passenger 7 | ) 8 | (:goal (and 9 | (served p0))) 10 | (:init 11 | (above f0 f1) 12 | (board f0 p0) 13 | (board f1 p0) 14 | (depart f0 p0) 15 | (depart f1 p0) 16 | (destin p0 f0) 17 | (down f0) 18 | (down f1) 19 | (lift-at f0) 20 | (origin p0 f1) 21 | (up f0) 22 | (up f1) 23 | )) 24 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem0.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | pawn-0 - moveable 7 | robot - moveable 8 | loc-0-0 - static 9 | loc-0-1 - static 10 | loc-0-2 - static 11 | loc-0-3 - static 12 | loc-1-0 - static 13 | loc-1-1 - static 14 | loc-1-2 - static 15 | loc-1-3 - static 16 | loc-2-0 - static 17 | loc-2-1 - static 18 | loc-2-2 - static 19 | loc-2-3 - static 20 | ) 21 | 22 | (:init 23 | 24 | (ispawn pawn-0) 25 | (isrobot robot) 26 | (at pawn-0 loc-1-2) 27 | (at robot loc-0-3) 28 | (handsfree robot) 29 | 30 | ; action literals 31 | 32 | (pick pawn-0) 33 | (place pawn-0) 34 | (moveto loc-0-0) 35 | (moveto loc-0-1) 36 | (moveto loc-0-2) 37 | (moveto loc-0-3) 38 | (moveto loc-1-0) 39 | (moveto loc-1-1) 40 | (moveto loc-1-2) 41 | (moveto loc-1-3) 42 | (moveto loc-2-0) 43 | (moveto loc-2-1) 44 | (moveto loc-2-2) 45 | (moveto loc-2-3) 46 | ) 47 | 48 | (:goal (and (holding pawn-0) )) 49 | ) 50 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem11.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | pawn-0 - moveable 7 | robot - moveable 8 | loc-0-0 - static 9 | loc-0-1 - static 10 | loc-0-2 - static 11 | loc-0-3 - static 12 | loc-1-0 - static 13 | loc-1-1 - static 14 | loc-1-2 - static 15 | loc-1-3 - static 16 | loc-2-0 - static 17 | loc-2-1 - static 18 | loc-2-2 - static 19 | loc-2-3 - static 20 | loc-3-0 - static 21 | loc-3-1 - static 22 | loc-3-2 - static 23 | loc-3-3 - static 24 | ) 25 | 26 | (:init 27 | 28 | (ispawn pawn-0) 29 | (isrobot robot) 30 | (at pawn-0 loc-0-3) 31 | (at robot loc-0-3) 32 | (handsfree robot) 33 | 34 | ; action literals 35 | 36 | (pick pawn-0) 37 | (place pawn-0) 38 | (moveto loc-0-0) 39 | (moveto loc-0-1) 40 | (moveto loc-0-2) 41 | (moveto loc-0-3) 42 | (moveto loc-1-0) 43 | (moveto loc-1-1) 44 | (moveto loc-1-2) 45 | (moveto loc-1-3) 46 | (moveto loc-2-0) 47 | (moveto loc-2-1) 48 | (moveto loc-2-2) 49 | (moveto loc-2-3) 50 | (moveto loc-3-0) 51 | (moveto loc-3-1) 52 | (moveto loc-3-2) 53 | (moveto loc-3-3) 54 | ) 55 | 56 | (:goal (and (at pawn-0 loc-0-1) )) 57 | ) 58 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem13.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | monkey-0 - moveable 7 | monkey-1 - moveable 8 | robot - moveable 9 | loc-0-0 - static 10 | loc-0-1 - static 11 | loc-0-2 - static 12 | loc-0-3 - static 13 | loc-1-0 - static 14 | loc-1-1 - static 15 | loc-1-2 - static 16 | loc-1-3 - static 17 | loc-2-0 - static 18 | loc-2-1 - static 19 | loc-2-2 - static 20 | loc-2-3 - static 21 | ) 22 | 23 | (:init 24 | 25 | (ismonkey monkey-0) 26 | (ismonkey monkey-1) 27 | (isrobot robot) 28 | (at monkey-0 loc-1-2) 29 | (at monkey-1 loc-1-1) 30 | (at robot loc-1-1) 31 | (handsfree robot) 32 | 33 | ; action literals 34 | 35 | (pick monkey-0) 36 | (place monkey-0) 37 | (pick monkey-1) 38 | (place monkey-1) 39 | (moveto loc-0-0) 40 | (moveto loc-0-1) 41 | (moveto loc-0-2) 42 | (moveto loc-0-3) 43 | (moveto loc-1-0) 44 | (moveto loc-1-1) 45 | (moveto loc-1-2) 46 | (moveto loc-1-3) 47 | (moveto loc-2-0) 48 | (moveto loc-2-1) 49 | (moveto loc-2-2) 50 | (moveto loc-2-3) 51 | ) 52 | 53 | (:goal (and (at monkey-1 loc-1-0) )) 54 | ) 55 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | pawn-0 - moveable 7 | monkey-1 - moveable 8 | robot - moveable 9 | loc-0-0 - static 10 | loc-0-1 - static 11 | loc-0-2 - static 12 | loc-0-3 - static 13 | loc-0-4 - static 14 | loc-1-0 - static 15 | loc-1-1 - static 16 | loc-1-2 - static 17 | loc-1-3 - static 18 | loc-1-4 - static 19 | loc-2-0 - static 20 | loc-2-1 - static 21 | loc-2-2 - static 22 | loc-2-3 - static 23 | loc-2-4 - static 24 | ) 25 | 26 | (:init 27 | 28 | (ispawn pawn-0) 29 | (ismonkey monkey-1) 30 | (isrobot robot) 31 | (at pawn-0 loc-0-4) 32 | (at monkey-1 loc-2-0) 33 | (at robot loc-0-3) 34 | (handsfree robot) 35 | 36 | ; action literals 37 | 38 | (pick pawn-0) 39 | (place pawn-0) 40 | (pick monkey-1) 41 | (place monkey-1) 42 | (moveto loc-0-0) 43 | (moveto loc-0-1) 44 | (moveto loc-0-2) 45 | (moveto loc-0-3) 46 | (moveto loc-0-4) 47 | (moveto loc-1-0) 48 | (moveto loc-1-1) 49 | (moveto loc-1-2) 50 | (moveto loc-1-3) 51 | (moveto loc-1-4) 52 | (moveto loc-2-0) 53 | (moveto loc-2-1) 54 | (moveto loc-2-2) 55 | (moveto loc-2-3) 56 | (moveto loc-2-4) 57 | ) 58 | 59 | (:goal (and (at pawn-0 loc-1-3) (at monkey-1 loc-0-2) )) 60 | ) 61 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem15.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | bear-0 - moveable 7 | robot - moveable 8 | loc-0-0 - static 9 | loc-0-1 - static 10 | loc-0-2 - static 11 | loc-1-0 - static 12 | loc-1-1 - static 13 | loc-1-2 - static 14 | loc-2-0 - static 15 | loc-2-1 - static 16 | loc-2-2 - static 17 | ) 18 | 19 | (:init 20 | 21 | (isbear bear-0) 22 | (isrobot robot) 23 | (at bear-0 loc-0-1) 24 | (at robot loc-0-2) 25 | (handsfree robot) 26 | 27 | ; action literals 28 | 29 | (pick bear-0) 30 | (place bear-0) 31 | (moveto loc-0-0) 32 | (moveto loc-0-1) 33 | (moveto loc-0-2) 34 | (moveto loc-1-0) 35 | (moveto loc-1-1) 36 | (moveto loc-1-2) 37 | (moveto loc-2-0) 38 | (moveto loc-2-1) 39 | (moveto loc-2-2) 40 | ) 41 | 42 | (:goal (and (at bear-0 loc-0-2) )) 43 | ) 44 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem18.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | pawn-0 - moveable 7 | pawn-1 - moveable 8 | pawn-2 - moveable 9 | monkey-3 - moveable 10 | robot - moveable 11 | loc-0-0 - static 12 | loc-0-1 - static 13 | loc-0-2 - static 14 | loc-1-0 - static 15 | loc-1-1 - static 16 | loc-1-2 - static 17 | loc-2-0 - static 18 | loc-2-1 - static 19 | loc-2-2 - static 20 | ) 21 | 22 | (:init 23 | 24 | (ispawn pawn-0) 25 | (ispawn pawn-1) 26 | (ispawn pawn-2) 27 | (ismonkey monkey-3) 28 | (isrobot robot) 29 | (at pawn-0 loc-0-0) 30 | (at pawn-1 loc-1-2) 31 | (at pawn-2 loc-0-2) 32 | (at monkey-3 loc-1-1) 33 | (at robot loc-0-0) 34 | (handsfree robot) 35 | 36 | ; action literals 37 | 38 | (pick pawn-0) 39 | (place pawn-0) 40 | (pick pawn-1) 41 | (place pawn-1) 42 | (pick pawn-2) 43 | (place pawn-2) 44 | (pick monkey-3) 45 | (place monkey-3) 46 | (moveto loc-0-0) 47 | (moveto loc-0-1) 48 | (moveto loc-0-2) 49 | (moveto loc-1-0) 50 | (moveto loc-1-1) 51 | (moveto loc-1-2) 52 | (moveto loc-2-0) 53 | (moveto loc-2-1) 54 | (moveto loc-2-2) 55 | ) 56 | 57 | (:goal (and (at pawn-0 loc-2-1) )) 58 | ) 59 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem19.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | bear-0 - moveable 7 | monkey-1 - moveable 8 | pawn-2 - moveable 9 | robot - moveable 10 | loc-0-0 - static 11 | loc-0-1 - static 12 | loc-0-2 - static 13 | loc-1-0 - static 14 | loc-1-1 - static 15 | loc-1-2 - static 16 | loc-2-0 - static 17 | loc-2-1 - static 18 | loc-2-2 - static 19 | ) 20 | 21 | (:init 22 | 23 | (isbear bear-0) 24 | (ismonkey monkey-1) 25 | (ispawn pawn-2) 26 | (isrobot robot) 27 | (at bear-0 loc-2-2) 28 | (at monkey-1 loc-1-1) 29 | (at pawn-2 loc-2-0) 30 | (at robot loc-0-2) 31 | (handsfree robot) 32 | 33 | ; action literals 34 | 35 | (pick bear-0) 36 | (place bear-0) 37 | (pick monkey-1) 38 | (place monkey-1) 39 | (pick pawn-2) 40 | (place pawn-2) 41 | (moveto loc-0-0) 42 | (moveto loc-0-1) 43 | (moveto loc-0-2) 44 | (moveto loc-1-0) 45 | (moveto loc-1-1) 46 | (moveto loc-1-2) 47 | (moveto loc-2-0) 48 | (moveto loc-2-1) 49 | (moveto loc-2-2) 50 | ) 51 | 52 | (:goal (and (holding bear-0) (at pawn-2 loc-1-2) )) 53 | ) 54 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | monkey-0 - moveable 7 | bear-1 - moveable 8 | robot - moveable 9 | loc-0-0 - static 10 | loc-0-1 - static 11 | loc-0-2 - static 12 | loc-0-3 - static 13 | loc-1-0 - static 14 | loc-1-1 - static 15 | loc-1-2 - static 16 | loc-1-3 - static 17 | loc-2-0 - static 18 | loc-2-1 - static 19 | loc-2-2 - static 20 | loc-2-3 - static 21 | ) 22 | 23 | (:init 24 | 25 | (ismonkey monkey-0) 26 | (isbear bear-1) 27 | (isrobot robot) 28 | (at monkey-0 loc-0-2) 29 | (at bear-1 loc-1-2) 30 | (at robot loc-0-1) 31 | (handsfree robot) 32 | 33 | ; action literals 34 | 35 | (pick monkey-0) 36 | (place monkey-0) 37 | (pick bear-1) 38 | (place bear-1) 39 | (moveto loc-0-0) 40 | (moveto loc-0-1) 41 | (moveto loc-0-2) 42 | (moveto loc-0-3) 43 | (moveto loc-1-0) 44 | (moveto loc-1-1) 45 | (moveto loc-1-2) 46 | (moveto loc-1-3) 47 | (moveto loc-2-0) 48 | (moveto loc-2-1) 49 | (moveto loc-2-2) 50 | (moveto loc-2-3) 51 | ) 52 | 53 | (:goal (and (holding bear-1) (at bear-1 loc-2-2) )) 54 | ) 55 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | monkey-0 - moveable 7 | robot - moveable 8 | loc-0-0 - static 9 | loc-0-1 - static 10 | loc-0-2 - static 11 | loc-1-0 - static 12 | loc-1-1 - static 13 | loc-1-2 - static 14 | loc-2-0 - static 15 | loc-2-1 - static 16 | loc-2-2 - static 17 | loc-3-0 - static 18 | loc-3-1 - static 19 | loc-3-2 - static 20 | ) 21 | 22 | (:init 23 | 24 | (ismonkey monkey-0) 25 | (isrobot robot) 26 | (at monkey-0 loc-1-2) 27 | (at robot loc-0-0) 28 | (handsfree robot) 29 | 30 | ; action literals 31 | 32 | (pick monkey-0) 33 | (place monkey-0) 34 | (moveto loc-0-0) 35 | (moveto loc-0-1) 36 | (moveto loc-0-2) 37 | (moveto loc-1-0) 38 | (moveto loc-1-1) 39 | (moveto loc-1-2) 40 | (moveto loc-2-0) 41 | (moveto loc-2-1) 42 | (moveto loc-2-2) 43 | (moveto loc-3-0) 44 | (moveto loc-3-1) 45 | (moveto loc-3-2) 46 | ) 47 | 48 | (:goal (and (at monkey-0 loc-3-0) )) 49 | ) 50 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | bear-0 - moveable 7 | robot - moveable 8 | loc-0-0 - static 9 | loc-0-1 - static 10 | loc-0-2 - static 11 | loc-0-3 - static 12 | loc-1-0 - static 13 | loc-1-1 - static 14 | loc-1-2 - static 15 | loc-1-3 - static 16 | loc-2-0 - static 17 | loc-2-1 - static 18 | loc-2-2 - static 19 | loc-2-3 - static 20 | ) 21 | 22 | (:init 23 | 24 | (isbear bear-0) 25 | (isrobot robot) 26 | (at bear-0 loc-2-1) 27 | (at robot loc-1-3) 28 | (handsfree robot) 29 | 30 | ; action literals 31 | 32 | (pick bear-0) 33 | (place bear-0) 34 | (moveto loc-0-0) 35 | (moveto loc-0-1) 36 | (moveto loc-0-2) 37 | (moveto loc-0-3) 38 | (moveto loc-1-0) 39 | (moveto loc-1-1) 40 | (moveto loc-1-2) 41 | (moveto loc-1-3) 42 | (moveto loc-2-0) 43 | (moveto loc-2-1) 44 | (moveto loc-2-2) 45 | (moveto loc-2-3) 46 | ) 47 | 48 | (:goal (and (at bear-0 loc-1-2) )) 49 | ) 50 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/glibrearrangement/problem9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem rearrangement) 2 | (:domain glibrearrangement) 3 | 4 | (:objects 5 | 6 | monkey-0 - moveable 7 | monkey-1 - moveable 8 | pawn-2 - moveable 9 | pawn-3 - moveable 10 | robot - moveable 11 | loc-0-0 - static 12 | loc-0-1 - static 13 | loc-0-2 - static 14 | loc-1-0 - static 15 | loc-1-1 - static 16 | loc-1-2 - static 17 | loc-2-0 - static 18 | loc-2-1 - static 19 | loc-2-2 - static 20 | ) 21 | 22 | (:init 23 | 24 | (ismonkey monkey-0) 25 | (ismonkey monkey-1) 26 | (ispawn pawn-2) 27 | (ispawn pawn-3) 28 | (isrobot robot) 29 | (at monkey-0 loc-0-1) 30 | (at monkey-1 loc-2-0) 31 | (at pawn-2 loc-2-0) 32 | (at pawn-3 loc-1-2) 33 | (at robot loc-1-1) 34 | (handsfree robot) 35 | 36 | ; action literals 37 | 38 | (pick monkey-0) 39 | (place monkey-0) 40 | (pick monkey-1) 41 | (place monkey-1) 42 | (pick pawn-2) 43 | (place pawn-2) 44 | (pick pawn-3) 45 | (place pawn-3) 46 | (moveto loc-0-0) 47 | (moveto loc-0-1) 48 | (moveto loc-0-2) 49 | (moveto loc-1-0) 50 | (moveto loc-1-1) 51 | (moveto loc-1-2) 52 | (moveto loc-2-0) 53 | (moveto loc-2-1) 54 | (moveto loc-2-2) 55 | ) 56 | 57 | (:goal (and (at pawn-3 loc-1-1) (at monkey-1 loc-1-1) )) 58 | ) 59 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper.pddl: -------------------------------------------------------------------------------- 1 | (define (domain gripper-strips) 2 | (:predicates (room ?r) 3 | (ball ?b) 4 | (gripper ?g) 5 | (at-robby ?r) 6 | (at ?b ?r) 7 | (free ?g) 8 | (carry ?o ?g)) 9 | 10 | (:action move 11 | :parameters (?from ?to) 12 | :precondition (and (room ?from) (room ?to) (at-robby ?from)) 13 | :effect (and (at-robby ?to) 14 | (not (at-robby ?from)))) 15 | 16 | 17 | 18 | (:action pick 19 | :parameters (?obj ?room ?gripper) 20 | :precondition (and (ball ?obj) (room ?room) (gripper ?gripper) 21 | (at ?obj ?room) (at-robby ?room) (free ?gripper)) 22 | :effect (and (carry ?obj ?gripper) 23 | (not (at ?obj ?room)) 24 | (not (free ?gripper)))) 25 | 26 | 27 | (:action drop 28 | :parameters (?obj ?room ?gripper) 29 | :precondition (and (ball ?obj) (room ?room) (gripper ?gripper) 30 | (carry ?obj ?gripper) (at-robby ?room)) 31 | :effect (and (at ?obj ?room) 32 | (free ?gripper) 33 | (not (carry ?obj ?gripper))))) 34 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob01.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-1) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball4) 7 | (ball ball3) 8 | (ball ball2) 9 | (ball ball1) 10 | (at-robby rooma) 11 | (free left) 12 | (free right) 13 | (at ball4 rooma) 14 | (at ball3 rooma) 15 | (at ball2 rooma) 16 | (at ball1 rooma) 17 | (gripper left) 18 | (gripper right)) 19 | (:goal (and (at ball4 roomb) 20 | (at ball3 roomb) 21 | (at ball2 roomb) 22 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob02.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-2) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball6 ball5 ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball6) 7 | (ball ball5) 8 | (ball ball4) 9 | (ball ball3) 10 | (ball ball2) 11 | (ball ball1) 12 | (at-robby rooma) 13 | (free left) 14 | (free right) 15 | (at ball6 rooma) 16 | (at ball5 rooma) 17 | (at ball4 rooma) 18 | (at ball3 rooma) 19 | (at ball2 rooma) 20 | (at ball1 rooma) 21 | (gripper left) 22 | (gripper right)) 23 | (:goal (and (at ball6 roomb) 24 | (at ball5 roomb) 25 | (at ball4 roomb) 26 | (at ball3 roomb) 27 | (at ball2 roomb) 28 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob03.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-3) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball8 ball7 ball6 ball5 ball4 ball3 ball2 4 | ball1 left right) 5 | (:init (room rooma) 6 | (room roomb) 7 | (ball ball8) 8 | (ball ball7) 9 | (ball ball6) 10 | (ball ball5) 11 | (ball ball4) 12 | (ball ball3) 13 | (ball ball2) 14 | (ball ball1) 15 | (at-robby rooma) 16 | (free left) 17 | (free right) 18 | (at ball8 rooma) 19 | (at ball7 rooma) 20 | (at ball6 rooma) 21 | (at ball5 rooma) 22 | (at ball4 rooma) 23 | (at ball3 rooma) 24 | (at ball2 rooma) 25 | (at ball1 rooma) 26 | (gripper left) 27 | (gripper right)) 28 | (:goal (and (at ball8 roomb) 29 | (at ball7 roomb) 30 | (at ball6 roomb) 31 | (at ball5 roomb) 32 | (at ball4 roomb) 33 | (at ball3 roomb) 34 | (at ball2 roomb) 35 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob06.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-6) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball4) 7 | (ball ball3) 8 | (ball ball2) 9 | (ball ball1) 10 | (at-robby rooma) 11 | (free left) 12 | (free right) 13 | (at ball4 roomb) 14 | (at ball3 roomb) 15 | (at ball2 rooma) 16 | (at ball1 rooma) 17 | (gripper left) 18 | (gripper right)) 19 | (:goal (and (at ball4 rooma) 20 | (at ball3 rooma) 21 | (at ball2 roomb) 22 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob07.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-7) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball6 ball5 ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball6) 7 | (ball ball5) 8 | (ball ball4) 9 | (ball ball3) 10 | (ball ball2) 11 | (ball ball1) 12 | (at-robby rooma) 13 | (free left) 14 | (free right) 15 | (at ball6 roomb) 16 | (at ball5 roomb) 17 | (at ball4 rooma) 18 | (at ball3 rooma) 19 | (at ball2 roomb) 20 | (at ball1 rooma) 21 | (gripper left) 22 | (gripper right)) 23 | (:goal (and (at ball6 rooma) 24 | (at ball5 rooma) 25 | (at ball4 roomb) 26 | (at ball3 roomb) 27 | (at ball2 rooma) 28 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob08.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-8) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball6 ball5 ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball6) 7 | (ball ball5) 8 | (ball ball4) 9 | (ball ball3) 10 | (ball ball2) 11 | (ball ball1) 12 | (at-robby rooma) 13 | (free left) 14 | (free right) 15 | (at ball6 roomb) 16 | (at ball5 roomb) 17 | (at ball4 rooma) 18 | (at ball3 rooma) 19 | (at ball2 roomb) 20 | (at ball1 roomb) 21 | (gripper left) 22 | (gripper right)) 23 | (:goal (and (at ball6 rooma) 24 | (at ball5 rooma) 25 | (at ball4 roomb) 26 | (at ball3 roomb) 27 | (at ball2 rooma) 28 | (at ball1 rooma)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob12.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-12) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball4) 7 | (ball ball3) 8 | (ball ball2) 9 | (ball ball1) 10 | (at-robby roomb) 11 | (free left) 12 | (free right) 13 | (at ball4 rooma) 14 | (at ball3 rooma) 15 | (at ball2 rooma) 16 | (at ball1 rooma) 17 | (gripper left) 18 | (gripper right)) 19 | (:goal (and (at ball4 roomb) 20 | (at ball3 roomb) 21 | (at ball2 roomb) 22 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob13.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-13) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball4) 7 | (ball ball3) 8 | (ball ball2) 9 | (ball ball1) 10 | (at-robby rooma) 11 | (free left) 12 | (free right) 13 | (at ball4 roomb) 14 | (at ball3 rooma) 15 | (at ball2 rooma) 16 | (at ball1 rooma) 17 | (gripper left) 18 | (gripper right)) 19 | (:goal (and (at ball4 rooma) 20 | (at ball3 roomb) 21 | (at ball2 roomb) 22 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-14) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball4) 7 | (ball ball3) 8 | (ball ball2) 9 | (ball ball1) 10 | (at-robby rooma) 11 | (free left) 12 | (free right) 13 | (at ball4 roomb) 14 | (at ball3 roomb) 15 | (at ball2 roomb) 16 | (at ball1 rooma) 17 | (gripper left) 18 | (gripper right)) 19 | (:goal (and (at ball4 rooma) 20 | (at ball3 rooma) 21 | (at ball2 rooma) 22 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob18.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-18) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball6 ball5 ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball6) 7 | (ball ball5) 8 | (ball ball4) 9 | (ball ball3) 10 | (ball ball2) 11 | (ball ball1) 12 | (at-robby roomb) 13 | (free left) 14 | (free right) 15 | (at ball6 rooma) 16 | (at ball5 rooma) 17 | (at ball4 rooma) 18 | (at ball3 rooma) 19 | (at ball2 rooma) 20 | (at ball1 rooma) 21 | (gripper left) 22 | (gripper right)) 23 | (:goal (and (at ball6 roomb) 24 | (at ball5 roomb) 25 | (at ball4 roomb) 26 | (at ball3 roomb) 27 | (at ball2 roomb) 28 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper/prob19.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-19) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball6 ball5 ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball6) 7 | (ball ball5) 8 | (ball ball4) 9 | (ball ball3) 10 | (ball ball2) 11 | (ball ball1) 12 | (at-robby roomb) 13 | (free left) 14 | (free right) 15 | (at ball6 roomb) 16 | (at ball5 rooma) 17 | (at ball4 roomb) 18 | (at ball3 rooma) 19 | (at ball2 roomb) 20 | (at ball1 rooma) 21 | (gripper left) 22 | (gripper right)) 23 | (:goal (and (at ball6 rooma) 24 | (at ball5 roomb) 25 | (at ball4 rooma) 26 | (at ball3 roomb) 27 | (at ball2 rooma) 28 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper_old/prob01.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-1) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball4) 7 | (ball ball3) 8 | (ball ball2) 9 | (ball ball1) 10 | (at-robby rooma) 11 | (free left) 12 | (free right) 13 | (at ball4 rooma) 14 | (at ball3 rooma) 15 | (at ball2 rooma) 16 | (at ball1 rooma) 17 | (gripper left) 18 | (gripper right)) 19 | (:goal (and (at ball4 roomb) 20 | (at ball3 roomb) 21 | (at ball2 roomb) 22 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper_old/prob02.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-2) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball6 ball5 ball4 ball3 ball2 ball1 left right) 4 | (:init (room rooma) 5 | (room roomb) 6 | (ball ball6) 7 | (ball ball5) 8 | (ball ball4) 9 | (ball ball3) 10 | (ball ball2) 11 | (ball ball1) 12 | (at-robby rooma) 13 | (free left) 14 | (free right) 15 | (at ball6 rooma) 16 | (at ball5 rooma) 17 | (at ball4 rooma) 18 | (at ball3 rooma) 19 | (at ball2 rooma) 20 | (at ball1 rooma) 21 | (gripper left) 22 | (gripper right)) 23 | (:goal (and (at ball6 roomb) 24 | (at ball5 roomb) 25 | (at ball4 roomb) 26 | (at ball3 roomb) 27 | (at ball2 roomb) 28 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/gripper_old/prob03.pddl: -------------------------------------------------------------------------------- 1 | (define (problem strips-gripper-x-3) 2 | (:domain gripper-strips) 3 | (:objects rooma roomb ball8 ball7 ball6 ball5 ball4 ball3 ball2 4 | ball1 left right) 5 | (:init (room rooma) 6 | (room roomb) 7 | (ball ball8) 8 | (ball ball7) 9 | (ball ball6) 10 | (ball ball5) 11 | (ball ball4) 12 | (ball ball3) 13 | (ball ball2) 14 | (ball ball1) 15 | (at-robby rooma) 16 | (free left) 17 | (free right) 18 | (at ball8 rooma) 19 | (at ball7 rooma) 20 | (at ball6 rooma) 21 | (at ball5 rooma) 22 | (at ball4 rooma) 23 | (at ball3 rooma) 24 | (at ball2 rooma) 25 | (at ball1 rooma) 26 | (gripper left) 27 | (gripper right)) 28 | (:goal (and (at ball8 roomb) 29 | (at ball7 roomb) 30 | (at ball6 roomb) 31 | (at ball5 roomb) 32 | (at ball4 roomb) 33 | (at ball3 roomb) 34 | (at ball2 roomb) 35 | (at ball1 roomb)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi.pddl: -------------------------------------------------------------------------------- 1 | (define (domain hanoi) 2 | (:requirements :strips) 3 | (:predicates 4 | (clear ?x) 5 | (on ?x ?y) 6 | (smaller ?x ?y) 7 | (move ?disc ?to) 8 | ) 9 | 10 | ; (:actions move) 11 | 12 | (:action move 13 | :parameters (?disc ?from ?to) 14 | :precondition (and (move ?disc ?to) (smaller ?to ?disc) (on ?disc ?from) 15 | (clear ?disc) (clear ?to)) 16 | :effect (and (clear ?from) (on ?disc ?to) (not (on ?disc ?from)) 17 | (not (clear ?to)))) 18 | ) 19 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi/problem0.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi0) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2 d3) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) (smaller peg1 d3) 6 | (smaller peg2 d1) (smaller peg2 d2) (smaller peg2 d3) 7 | (smaller peg3 d1) (smaller peg3 d2) (smaller peg3 d3) 8 | (smaller d2 d1) (smaller d3 d1) (smaller d3 d2) 9 | (clear peg2) (clear peg3) (clear d1) 10 | (on d3 peg1) (on d2 d3) (on d1 d2) 11 | (move d1 d2) 12 | (move d1 d3) 13 | (move d1 peg1) 14 | (move d1 peg2) 15 | (move d1 peg3) 16 | (move d2 d1) 17 | (move d2 d3) 18 | (move d2 peg1) 19 | (move d2 peg2) 20 | (move d2 peg3) 21 | (move d3 d1) 22 | (move d3 d2) 23 | (move d3 peg1) 24 | (move d3 peg2) 25 | (move d3 peg3) 26 | ) 27 | (:goal (and (on d3 peg3) (on d2 d3) (on d1 d2))) 28 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi/problem1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi1) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2 d3 d4) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) (smaller peg1 d3) (smaller peg1 d4) 6 | (smaller peg2 d1) (smaller peg2 d2) (smaller peg2 d3) (smaller peg2 d4) 7 | (smaller peg3 d1) (smaller peg3 d2) (smaller peg3 d3) (smaller peg3 d4) 8 | (smaller d2 d1) (smaller d3 d1) (smaller d3 d2) (smaller d4 d1) 9 | (smaller d4 d2) (smaller d4 d3) 10 | (clear peg2) (clear peg3) (clear d1) 11 | (on d4 peg1) (on d3 d4) (on d2 d3) (on d1 d2) 12 | (move d1 d2) 13 | (move d1 d3) 14 | (move d1 d4) 15 | (move d1 peg1) 16 | (move d1 peg2) 17 | (move d1 peg3) 18 | (move d2 d1) 19 | (move d2 d3) 20 | (move d2 d4) 21 | (move d2 peg1) 22 | (move d2 peg2) 23 | (move d2 peg3) 24 | (move d3 d1) 25 | (move d3 d2) 26 | (move d3 d4) 27 | (move d3 peg1) 28 | (move d3 peg2) 29 | (move d3 peg3) 30 | (move d4 d1) 31 | (move d4 d2) 32 | (move d4 d3) 33 | (move d4 peg1) 34 | (move d4 peg2) 35 | (move d4 peg3) 36 | ) 37 | (:goal (and (on d4 peg3) (on d3 d4) (on d2 d3) (on d1 d2))) 38 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi2) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) 6 | (smaller peg2 d1) (smaller peg2 d2) 7 | (smaller peg3 d1) (smaller peg3 d2) 8 | (smaller d2 d1) 9 | (clear peg2) (clear peg3) (clear d1) 10 | (on d1 d2) (on d2 peg1) 11 | (move d1 d2) 12 | (move d1 peg1) 13 | (move d1 peg2) 14 | (move d1 peg3) 15 | (move d2 d1) 16 | (move d2 peg1) 17 | (move d2 peg2) 18 | (move d2 peg3) 19 | ) 20 | (:goal (and (on d2 peg3) (on d1 d2))) 21 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi/problem3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi3) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 d1 d2) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) 6 | (smaller peg2 d1) (smaller peg2 d2) 7 | (smaller d2 d1) 8 | (clear d1) (clear d2) 9 | (on d1 peg1) (on d2 peg2) 10 | (move d1 d2) 11 | (move d1 peg1) 12 | (move d1 peg2) 13 | (move d2 d1) 14 | (move d2 peg1) 15 | (move d2 peg2) 16 | ) 17 | (:goal (and (on d1 d2))) 18 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi_operator_actions.pddl: -------------------------------------------------------------------------------- 1 | (define (domain hanoi) 2 | (:requirements :strips) 3 | (:predicates 4 | (clear ?x) 5 | (on ?x ?y) 6 | (smaller ?x ?y) 7 | ) 8 | 9 | (:action move 10 | :parameters (?disc ?from ?to) 11 | :precondition (and (smaller ?to ?disc) (on ?disc ?from) 12 | (clear ?disc) (clear ?to)) 13 | :effect (and (clear ?from) (on ?disc ?to) (not (on ?disc ?from)) 14 | (not (clear ?to)))) 15 | ) 16 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi_operator_actions/problem0.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi0) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2 d3) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) (smaller peg1 d3) 6 | (smaller peg2 d1) (smaller peg2 d2) (smaller peg2 d3) 7 | (smaller peg3 d1) (smaller peg3 d2) (smaller peg3 d3) 8 | (smaller d2 d1) (smaller d3 d1) (smaller d3 d2) 9 | (clear peg2) (clear peg3) (clear d1) 10 | (on d3 peg1) (on d2 d3) (on d1 d2) 11 | ) 12 | (:goal (and (on d3 peg3) (on d2 d3) (on d1 d2))) 13 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi_operator_actions/problem1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi1) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2 d3 d4) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) (smaller peg1 d3) (smaller peg1 d4) 6 | (smaller peg2 d1) (smaller peg2 d2) (smaller peg2 d3) (smaller peg2 d4) 7 | (smaller peg3 d1) (smaller peg3 d2) (smaller peg3 d3) (smaller peg3 d4) 8 | (smaller d2 d1) (smaller d3 d1) (smaller d3 d2) (smaller d4 d1) 9 | (smaller d4 d2) (smaller d4 d3) 10 | (clear peg2) (clear peg3) (clear d1) 11 | (on d4 peg1) (on d3 d4) (on d2 d3) (on d1 d2) 12 | ) 13 | (:goal (and (on d4 peg3) (on d3 d4) (on d2 d3) (on d1 d2))) 14 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi_operator_actions/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi2) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) 6 | (smaller peg2 d1) (smaller peg2 d2) 7 | (smaller peg3 d1) (smaller peg3 d2) 8 | (smaller d2 d1) 9 | (clear peg2) (clear peg3) (clear d1) 10 | (on d1 d2) (on d2 peg1) 11 | ) 12 | (:goal (and (on d2 peg3) (on d1 d2))) 13 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi_operator_actions/problem3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi3) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 d1 d2) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) 6 | (smaller peg2 d1) (smaller peg2 d2) 7 | (smaller d2 d1) 8 | (clear d1) (clear d2) 9 | (on d1 peg1) (on d2 peg2) 10 | ) 11 | (:goal (and (on d1 d2))) 12 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi_operator_actions/problem4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi3) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2 d3 d4 d5 d6) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) (smaller peg1 d3) (smaller peg1 d4) 6 | (smaller peg1 d5) (smaller peg1 d6) 7 | (smaller peg2 d1) (smaller peg2 d2) (smaller peg2 d3) (smaller peg2 d4) 8 | (smaller peg2 d5) (smaller peg2 d6) 9 | (smaller peg3 d1) (smaller peg3 d2) (smaller peg3 d3) (smaller peg3 d4) 10 | (smaller peg3 d5) (smaller peg3 d6) 11 | (smaller d2 d1) (smaller d3 d1) (smaller d3 d2) (smaller d4 d1) 12 | (smaller d4 d2) (smaller d4 d3) (smaller d5 d1) (smaller d5 d2) 13 | (smaller d5 d3) (smaller d5 d4) (smaller d6 d1) (smaller d6 d2) 14 | (smaller d6 d3) (smaller d6 d4) (smaller d6 d5) 15 | (clear peg2) (clear peg3) (clear d1) 16 | (on d6 peg1) (on d5 d6) (on d4 d5) (on d3 d4) (on d2 d3) (on d1 d2) 17 | ) 18 | (:goal (and (on d6 peg3) (on d5 d6) (on d4 d5) (on d3 d4) (on d2 d3) 19 | (on d1 d2))) 20 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/hanoi_operator_actions/problem5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem hanoi2) 2 | (:domain hanoi) 3 | (:objects peg1 peg2 peg3 d1 d2 d3 d4 d5) 4 | (:init 5 | (smaller peg1 d1) (smaller peg1 d2) (smaller peg1 d3) 6 | (smaller peg1 d4) (smaller peg1 d5) 7 | (smaller peg2 d1) (smaller peg2 d2) (smaller peg2 d3) 8 | (smaller peg2 d4) (smaller peg2 d5) 9 | (smaller peg3 d1) (smaller peg3 d2) (smaller peg3 d3) 10 | (smaller peg3 d4) (smaller peg3 d5) 11 | (smaller d2 d1) (smaller d3 d1) (smaller d3 d2) (smaller d4 d1) 12 | (smaller d4 d2) (smaller d4 d3) (smaller d5 d1) (smaller d5 d2) 13 | (smaller d5 d3) (smaller d5 d4) 14 | (clear peg2) (clear peg3) (clear d1) 15 | (on d5 peg1) (on d4 d5) (on d3 d4) (on d2 d3) (on d1 d2) 16 | ) 17 | (:goal (and (on d5 peg3) (on d4 d5) (on d3 d4) (on d2 d3) (on d1 d2))) 18 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/newspapers/problem0.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem newspaper) (:domain newspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | paper-0 - paper 8 | paper-1 - paper 9 | paper-2 - paper 10 | paper-3 - paper 11 | paper-4 - paper 12 | paper-5 - paper 13 | paper-6 - paper 14 | paper-7 - paper 15 | paper-8 - paper 16 | ) 17 | (:init 18 | (at loc-0) 19 | (ishomebase loc-0) 20 | (unpacked paper-0) 21 | (unpacked paper-1) 22 | (unpacked paper-2) 23 | (unpacked paper-3) 24 | (unpacked paper-4) 25 | (unpacked paper-5) 26 | (unpacked paper-6) 27 | (unpacked paper-7) 28 | (unpacked paper-8) 29 | (wantspaper loc-1) 30 | (wantspaper loc-2) 31 | ) 32 | (:goal (and 33 | (satisfied loc-1) 34 | (satisfied loc-2))) 35 | ) 36 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/newspapers/problem1.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem newspaper) (:domain newspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | paper-0 - paper 9 | paper-1 - paper 10 | paper-2 - paper 11 | paper-3 - paper 12 | paper-4 - paper 13 | ) 14 | (:init 15 | (at loc-0) 16 | (ishomebase loc-0) 17 | (unpacked paper-0) 18 | (unpacked paper-1) 19 | (unpacked paper-2) 20 | (unpacked paper-3) 21 | (unpacked paper-4) 22 | (wantspaper loc-1) 23 | (wantspaper loc-2) 24 | (wantspaper loc-3) 25 | ) 26 | (:goal (and 27 | (satisfied loc-1) 28 | (satisfied loc-2) 29 | (satisfied loc-3))) 30 | ) 31 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/newspapers/problem2.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem newspaper) (:domain newspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | loc-4 - loc 9 | paper-0 - paper 10 | paper-1 - paper 11 | paper-2 - paper 12 | paper-3 - paper 13 | paper-4 - paper 14 | paper-5 - paper 15 | paper-6 - paper 16 | paper-7 - paper 17 | paper-8 - paper 18 | ) 19 | (:init 20 | (at loc-0) 21 | (ishomebase loc-0) 22 | (unpacked paper-0) 23 | (unpacked paper-1) 24 | (unpacked paper-2) 25 | (unpacked paper-3) 26 | (unpacked paper-4) 27 | (unpacked paper-5) 28 | (unpacked paper-6) 29 | (unpacked paper-7) 30 | (unpacked paper-8) 31 | (wantspaper loc-1) 32 | (wantspaper loc-2) 33 | (wantspaper loc-3) 34 | (wantspaper loc-4) 35 | ) 36 | (:goal (and 37 | (satisfied loc-1) 38 | (satisfied loc-2) 39 | (satisfied loc-3) 40 | (satisfied loc-4))) 41 | ) 42 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/newspapers/problem3.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem newspaper) (:domain newspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | loc-4 - loc 9 | loc-5 - loc 10 | paper-0 - paper 11 | paper-1 - paper 12 | paper-2 - paper 13 | paper-3 - paper 14 | paper-4 - paper 15 | paper-5 - paper 16 | paper-6 - paper 17 | paper-7 - paper 18 | paper-8 - paper 19 | paper-9 - paper 20 | ) 21 | (:init 22 | (at loc-0) 23 | (ishomebase loc-0) 24 | (unpacked paper-0) 25 | (unpacked paper-1) 26 | (unpacked paper-2) 27 | (unpacked paper-3) 28 | (unpacked paper-4) 29 | (unpacked paper-5) 30 | (unpacked paper-6) 31 | (unpacked paper-7) 32 | (unpacked paper-8) 33 | (unpacked paper-9) 34 | (wantspaper loc-1) 35 | (wantspaper loc-2) 36 | (wantspaper loc-3) 37 | (wantspaper loc-4) 38 | (wantspaper loc-5) 39 | ) 40 | (:goal (and 41 | (satisfied loc-1) 42 | (satisfied loc-2) 43 | (satisfied loc-3) 44 | (satisfied loc-4) 45 | (satisfied loc-5))) 46 | ) 47 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/newspapers/problem4.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem newspaper) (:domain newspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | loc-4 - loc 9 | loc-5 - loc 10 | loc-6 - loc 11 | paper-0 - paper 12 | paper-1 - paper 13 | paper-10 - paper 14 | paper-11 - paper 15 | paper-12 - paper 16 | paper-13 - paper 17 | paper-14 - paper 18 | paper-2 - paper 19 | paper-3 - paper 20 | paper-4 - paper 21 | paper-5 - paper 22 | paper-6 - paper 23 | paper-7 - paper 24 | paper-8 - paper 25 | paper-9 - paper 26 | ) 27 | (:init 28 | (at loc-0) 29 | (ishomebase loc-0) 30 | (unpacked paper-0) 31 | (unpacked paper-10) 32 | (unpacked paper-11) 33 | (unpacked paper-12) 34 | (unpacked paper-13) 35 | (unpacked paper-14) 36 | (unpacked paper-1) 37 | (unpacked paper-2) 38 | (unpacked paper-3) 39 | (unpacked paper-4) 40 | (unpacked paper-5) 41 | (unpacked paper-6) 42 | (unpacked paper-7) 43 | (unpacked paper-8) 44 | (unpacked paper-9) 45 | (wantspaper loc-1) 46 | (wantspaper loc-2) 47 | (wantspaper loc-3) 48 | (wantspaper loc-4) 49 | (wantspaper loc-5) 50 | (wantspaper loc-6) 51 | ) 52 | (:goal (and 53 | (satisfied loc-1) 54 | (satisfied loc-2) 55 | (satisfied loc-3) 56 | (satisfied loc-4) 57 | (satisfied loc-5) 58 | (satisfied loc-6))) 59 | ) 60 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem0.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 0) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 - spanner 4 | nut1 - nut 5 | location1 location2 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location2) 10 | (useable spanner1) 11 | (at spanner2 location2) 12 | (useable spanner2) 13 | (loose nut1) 14 | (at nut1 gate) 15 | (link shed location1) 16 | (link location2 gate) 17 | (link location1 location2) 18 | ) (:goal 19 | (and 20 | (tightened nut1) 21 | ))) 22 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem1.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 1) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 - spanner 4 | nut1 - nut 5 | location1 location2 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (loose nut1) 12 | (at nut1 gate) 13 | (link shed location1) 14 | (link location2 gate) 15 | (link location1 location2) 16 | ) (:goal 17 | (and 18 | (tightened nut1) 19 | ))) 20 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 10) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 - spanner 4 | nut1 nut2 nut3 nut4 - nut 5 | location1 location2 location3 location4 location5 location6 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (at spanner2 location2) 12 | (useable spanner2) 13 | (at spanner3 location2) 14 | (useable spanner3) 15 | (at spanner4 location4) 16 | (useable spanner4) 17 | (loose nut1) 18 | (at nut1 gate) 19 | (loose nut2) 20 | (at nut2 gate) 21 | (loose nut3) 22 | (at nut3 gate) 23 | (loose nut4) 24 | (at nut4 gate) 25 | (link shed location1) 26 | (link location6 gate) 27 | (link location1 location2) 28 | (link location2 location3) 29 | (link location3 location4) 30 | (link location4 location5) 31 | (link location5 location6) 32 | ) (:goal 33 | (and 34 | (tightened nut1) 35 | (tightened nut2) 36 | (tightened nut3) 37 | (tightened nut4) 38 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem11.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 11) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 - spanner 4 | nut1 nut2 nut3 nut4 nut5 - nut 5 | location1 location2 location3 location4 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location4) 10 | (useable spanner1) 11 | (at spanner2 location4) 12 | (useable spanner2) 13 | (at spanner3 location3) 14 | (useable spanner3) 15 | (at spanner4 location4) 16 | (useable spanner4) 17 | (at spanner5 location3) 18 | (useable spanner5) 19 | (loose nut1) 20 | (at nut1 gate) 21 | (loose nut2) 22 | (at nut2 gate) 23 | (loose nut3) 24 | (at nut3 gate) 25 | (loose nut4) 26 | (at nut4 gate) 27 | (loose nut5) 28 | (at nut5 gate) 29 | (link shed location1) 30 | (link location4 gate) 31 | (link location1 location2) 32 | (link location2 location3) 33 | (link location3 location4) 34 | ) (:goal 35 | (and 36 | (tightened nut1) 37 | (tightened nut2) 38 | (tightened nut3) 39 | (tightened nut4) 40 | (tightened nut5) 41 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem12.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 12) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 - spanner 4 | nut1 nut2 nut3 nut4 nut5 - nut 5 | location1 location2 location3 location4 location5 location6 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location6) 10 | (useable spanner1) 11 | (at spanner2 location3) 12 | (useable spanner2) 13 | (at spanner3 location6) 14 | (useable spanner3) 15 | (at spanner4 location1) 16 | (useable spanner4) 17 | (at spanner5 location4) 18 | (useable spanner5) 19 | (loose nut1) 20 | (at nut1 gate) 21 | (loose nut2) 22 | (at nut2 gate) 23 | (loose nut3) 24 | (at nut3 gate) 25 | (loose nut4) 26 | (at nut4 gate) 27 | (loose nut5) 28 | (at nut5 gate) 29 | (link shed location1) 30 | (link location6 gate) 31 | (link location1 location2) 32 | (link location2 location3) 33 | (link location3 location4) 34 | (link location4 location5) 35 | (link location5 location6) 36 | ) (:goal 37 | (and 38 | (tightened nut1) 39 | (tightened nut2) 40 | (tightened nut3) 41 | (tightened nut4) 42 | (tightened nut5) 43 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem13.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 13) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 spanner6 - spanner 4 | nut1 nut2 nut3 nut4 nut5 - nut 5 | location1 location2 location3 location4 location5 location6 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location6) 10 | (useable spanner1) 11 | (at spanner2 location1) 12 | (useable spanner2) 13 | (at spanner3 location2) 14 | (useable spanner3) 15 | (at spanner4 location2) 16 | (useable spanner4) 17 | (at spanner5 location3) 18 | (useable spanner5) 19 | (at spanner6 location3) 20 | (useable spanner6) 21 | (loose nut1) 22 | (at nut1 gate) 23 | (loose nut2) 24 | (at nut2 gate) 25 | (loose nut3) 26 | (at nut3 gate) 27 | (loose nut4) 28 | (at nut4 gate) 29 | (loose nut5) 30 | (at nut5 gate) 31 | (link shed location1) 32 | (link location6 gate) 33 | (link location1 location2) 34 | (link location2 location3) 35 | (link location3 location4) 36 | (link location4 location5) 37 | (link location5 location6) 38 | ) (:goal 39 | (and 40 | (tightened nut1) 41 | (tightened nut2) 42 | (tightened nut3) 43 | (tightened nut4) 44 | (tightened nut5) 45 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem14.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 14) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 spanner6 - spanner 4 | nut1 nut2 nut3 nut4 - nut 5 | location1 location2 location3 location4 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (at spanner2 location4) 12 | (useable spanner2) 13 | (at spanner3 location3) 14 | (useable spanner3) 15 | (at spanner4 location1) 16 | (useable spanner4) 17 | (at spanner5 location2) 18 | (useable spanner5) 19 | (at spanner6 location2) 20 | (useable spanner6) 21 | (loose nut1) 22 | (at nut1 gate) 23 | (loose nut2) 24 | (at nut2 gate) 25 | (loose nut3) 26 | (at nut3 gate) 27 | (loose nut4) 28 | (at nut4 gate) 29 | (link shed location1) 30 | (link location4 gate) 31 | (link location1 location2) 32 | (link location2 location3) 33 | (link location3 location4) 34 | ) (:goal 35 | (and 36 | (tightened nut1) 37 | (tightened nut2) 38 | (tightened nut3) 39 | (tightened nut4) 40 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem15.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 15) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 spanner6 - spanner 4 | nut1 nut2 nut3 nut4 nut5 nut6 - nut 5 | location1 location2 location3 location4 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location2) 10 | (useable spanner1) 11 | (at spanner2 location3) 12 | (useable spanner2) 13 | (at spanner3 location4) 14 | (useable spanner3) 15 | (at spanner4 location3) 16 | (useable spanner4) 17 | (at spanner5 location1) 18 | (useable spanner5) 19 | (at spanner6 location1) 20 | (useable spanner6) 21 | (loose nut1) 22 | (at nut1 gate) 23 | (loose nut2) 24 | (at nut2 gate) 25 | (loose nut3) 26 | (at nut3 gate) 27 | (loose nut4) 28 | (at nut4 gate) 29 | (loose nut5) 30 | (at nut5 gate) 31 | (loose nut6) 32 | (at nut6 gate) 33 | (link shed location1) 34 | (link location4 gate) 35 | (link location1 location2) 36 | (link location2 location3) 37 | (link location3 location4) 38 | ) (:goal 39 | (and 40 | (tightened nut1) 41 | (tightened nut2) 42 | (tightened nut3) 43 | (tightened nut4) 44 | (tightened nut5) 45 | (tightened nut6) 46 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem16.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 16) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 - spanner 4 | nut1 nut2 nut3 nut4 - nut 5 | location1 location2 location3 location4 location5 location6 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location4) 10 | (useable spanner1) 11 | (at spanner2 location4) 12 | (useable spanner2) 13 | (at spanner3 location5) 14 | (useable spanner3) 15 | (at spanner4 location1) 16 | (useable spanner4) 17 | (loose nut1) 18 | (at nut1 gate) 19 | (loose nut2) 20 | (at nut2 gate) 21 | (loose nut3) 22 | (at nut3 gate) 23 | (loose nut4) 24 | (at nut4 gate) 25 | (link shed location1) 26 | (link location6 gate) 27 | (link location1 location2) 28 | (link location2 location3) 29 | (link location3 location4) 30 | (link location4 location5) 31 | (link location5 location6) 32 | ) (:goal 33 | (and 34 | (tightened nut1) 35 | (tightened nut2) 36 | (tightened nut3) 37 | (tightened nut4) 38 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem17.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 17) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 - spanner 4 | nut1 nut2 nut3 nut4 nut5 - nut 5 | location1 location2 location3 location4 location5 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location4) 10 | (useable spanner1) 11 | (at spanner2 location3) 12 | (useable spanner2) 13 | (at spanner3 location3) 14 | (useable spanner3) 15 | (at spanner4 location5) 16 | (useable spanner4) 17 | (at spanner5 location4) 18 | (useable spanner5) 19 | (loose nut1) 20 | (at nut1 gate) 21 | (loose nut2) 22 | (at nut2 gate) 23 | (loose nut3) 24 | (at nut3 gate) 25 | (loose nut4) 26 | (at nut4 gate) 27 | (loose nut5) 28 | (at nut5 gate) 29 | (link shed location1) 30 | (link location5 gate) 31 | (link location1 location2) 32 | (link location2 location3) 33 | (link location3 location4) 34 | (link location4 location5) 35 | ) (:goal 36 | (and 37 | (tightened nut1) 38 | (tightened nut2) 39 | (tightened nut3) 40 | (tightened nut4) 41 | (tightened nut5) 42 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem18.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 18) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 - spanner 4 | nut1 nut2 nut3 nut4 nut5 - nut 5 | location1 location2 location3 location4 location5 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (at spanner2 location5) 12 | (useable spanner2) 13 | (at spanner3 location5) 14 | (useable spanner3) 15 | (at spanner4 location2) 16 | (useable spanner4) 17 | (at spanner5 location5) 18 | (useable spanner5) 19 | (loose nut1) 20 | (at nut1 gate) 21 | (loose nut2) 22 | (at nut2 gate) 23 | (loose nut3) 24 | (at nut3 gate) 25 | (loose nut4) 26 | (at nut4 gate) 27 | (loose nut5) 28 | (at nut5 gate) 29 | (link shed location1) 30 | (link location5 gate) 31 | (link location1 location2) 32 | (link location2 location3) 33 | (link location3 location4) 34 | (link location4 location5) 35 | ) (:goal 36 | (and 37 | (tightened nut1) 38 | (tightened nut2) 39 | (tightened nut3) 40 | (tightened nut4) 41 | (tightened nut5) 42 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem19.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 19) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 spanner4 spanner5 - spanner 4 | nut1 nut2 nut3 nut4 nut5 - nut 5 | location1 location2 location3 location4 location5 location6 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location2) 10 | (useable spanner1) 11 | (at spanner2 location6) 12 | (useable spanner2) 13 | (at spanner3 location2) 14 | (useable spanner3) 15 | (at spanner4 location3) 16 | (useable spanner4) 17 | (at spanner5 location2) 18 | (useable spanner5) 19 | (loose nut1) 20 | (at nut1 gate) 21 | (loose nut2) 22 | (at nut2 gate) 23 | (loose nut3) 24 | (at nut3 gate) 25 | (loose nut4) 26 | (at nut4 gate) 27 | (loose nut5) 28 | (at nut5 gate) 29 | (link shed location1) 30 | (link location6 gate) 31 | (link location1 location2) 32 | (link location2 location3) 33 | (link location3 location4) 34 | (link location4 location5) 35 | (link location5 location6) 36 | ) (:goal 37 | (and 38 | (tightened nut1) 39 | (tightened nut2) 40 | (tightened nut3) 41 | (tightened nut4) 42 | (tightened nut5) 43 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 2) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 - spanner 4 | nut1 - nut 5 | location1 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (at spanner2 location1) 12 | (useable spanner2) 13 | (loose nut1) 14 | (at nut1 gate) 15 | (link shed location1) 16 | (link location1 gate) 17 | ) (:goal 18 | (and 19 | (tightened nut1) 20 | ))) 21 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem3.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 3) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 - spanner 4 | nut1 nut2 - nut 5 | location1 location2 location3 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location3) 10 | (useable spanner1) 11 | (at spanner2 location3) 12 | (useable spanner2) 13 | (at spanner3 location3) 14 | (useable spanner3) 15 | (loose nut1) 16 | (at nut1 gate) 17 | (loose nut2) 18 | (at nut2 gate) 19 | (link shed location1) 20 | (link location3 gate) 21 | (link location1 location2) 22 | (link location2 location3) 23 | ) (:goal 24 | (and 25 | (tightened nut1) 26 | (tightened nut2) 27 | ))) 28 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem4.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 4) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 - spanner 4 | nut1 - nut 5 | location1 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (loose nut1) 12 | (at nut1 gate) 13 | (link shed location1) 14 | (link location1 gate) 15 | ) (:goal 16 | (and 17 | (tightened nut1) 18 | ))) 19 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem5.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 5) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 - spanner 4 | nut1 nut2 - nut 5 | location1 location2 location3 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location3) 10 | (useable spanner1) 11 | (at spanner2 location3) 12 | (useable spanner2) 13 | (loose nut1) 14 | (at nut1 gate) 15 | (loose nut2) 16 | (at nut2 gate) 17 | (link shed location1) 18 | (link location3 gate) 19 | (link location1 location2) 20 | (link location2 location3) 21 | ) (:goal 22 | (and 23 | (tightened nut1) 24 | (tightened nut2) 25 | ))) 26 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem6.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 6) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 - spanner 4 | nut1 - nut 5 | location1 location2 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (loose nut1) 12 | (at nut1 gate) 13 | (link shed location1) 14 | (link location2 gate) 15 | (link location1 location2) 16 | ) (:goal 17 | (and 18 | (tightened nut1) 19 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem7.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 7) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 - spanner 4 | nut1 nut2 - nut 5 | location1 location2 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (at spanner2 location2) 12 | (useable spanner2) 13 | (loose nut1) 14 | (at nut1 gate) 15 | (loose nut2) 16 | (at nut2 gate) 17 | (link shed location1) 18 | (link location2 gate) 19 | (link location1 location2) 20 | ) (:goal 21 | (and 22 | (tightened nut1) 23 | (tightened nut2) 24 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem8.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 8) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 - spanner 4 | nut1 nut2 - nut 5 | location1 location2 location3 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (at spanner2 location3) 12 | (useable spanner2) 13 | (loose nut1) 14 | (at nut1 gate) 15 | (loose nut2) 16 | (at nut2 gate) 17 | (link shed location1) 18 | (link location3 gate) 19 | (link location1 location2) 20 | (link location2 location3) 21 | ) (:goal 22 | (and 23 | (tightened nut1) 24 | (tightened nut2) 25 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/spannerlearning/problem9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem 9) (:domain spanner) (:objects 2 | bob - man 3 | spanner1 spanner2 spanner3 - spanner 4 | nut1 - nut 5 | location1 - location 6 | shed gate - location 7 | ) (:init 8 | (at bob shed) 9 | (at spanner1 location1) 10 | (useable spanner1) 11 | (at spanner2 location1) 12 | (useable spanner2) 13 | (at spanner3 location1) 14 | (useable spanner3) 15 | (loose nut1) 16 | (at nut1 gate) 17 | (link shed location1) 18 | (link location1 gate) 19 | ) (:goal 20 | (and 21 | (tightened nut1) 22 | ))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/storage/p01.pddl: -------------------------------------------------------------------------------- 1 | ; Domain designed by Alfonso Gerevini and Alessandro Saetti 2 | ; This file has been automatically generated by the generator available from 3 | ; http://zeus.ing.unibs.it/ipc-5/generators/index.html 4 | ; 5 | ; Map of the Depots: 6 | ; * 7 | ;-- 8 | ; 48: depot48 area 9 | ; *: Depot access point 10 | ; =: Transit area 11 | 12 | (define (problem storage-1) 13 | (:domain Storage-Propositional) 14 | (:objects 15 | depot48-1-1 container-0-0 - storearea 16 | hoist0 - hoist 17 | crate0 - crate 18 | container0 - container 19 | depot48 - depot 20 | loadarea - transitarea) 21 | 22 | (:init 23 | (in depot48-1-1 depot48) 24 | (on crate0 container-0-0) 25 | (in crate0 container0) 26 | (in container-0-0 container0) 27 | (connected loadarea container-0-0) 28 | (connected container-0-0 loadarea) 29 | (connected depot48-1-1 loadarea) 30 | (connected loadarea depot48-1-1) 31 | (at hoist0 depot48-1-1) 32 | (available hoist0)) 33 | 34 | (:goal (and 35 | (in crate0 depot48))) 36 | ) 37 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/storage/p02.pddl: -------------------------------------------------------------------------------- 1 | ; Domain designed by Alfonso Gerevini and Alessandro Saetti 2 | ; This file has been automatically generated by the generator available from 3 | ; http://zeus.ing.unibs.it/ipc-5/generators/index.html 4 | ; 5 | ; Map of the Depots: 6 | ; *0 7 | ;--- 8 | ; 48: depot48 area 9 | ; *: Depot access point 10 | ; =: Transit area 11 | 12 | (define (problem storage-2) 13 | (:domain Storage-Propositional) 14 | (:objects 15 | depot48-1-1 depot48-1-2 container-0-0 - storearea 16 | hoist0 hoist1 - hoist 17 | crate0 - crate 18 | container0 - container 19 | depot48 - depot 20 | loadarea - transitarea) 21 | 22 | (:init 23 | (connected depot48-1-1 depot48-1-2) 24 | (connected depot48-1-2 depot48-1-1) 25 | (in depot48-1-1 depot48) 26 | (in depot48-1-2 depot48) 27 | (on crate0 container-0-0) 28 | (in crate0 container0) 29 | (in container-0-0 container0) 30 | (connected loadarea container-0-0) 31 | (connected container-0-0 loadarea) 32 | (connected depot48-1-1 loadarea) 33 | (connected loadarea depot48-1-1) 34 | (at hoist0 depot48-1-1) 35 | (available hoist0) 36 | (at hoist1 depot48-1-2) 37 | (available hoist1)) 38 | 39 | (:goal (and 40 | (in crate0 depot48))) 41 | ) 42 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/storage/p12.pddl: -------------------------------------------------------------------------------- 1 | ; Domain designed by Alfonso Gerevini and Alessandro Saetti 2 | ; This file has been automatically generated by the generator available from 3 | ; http://zeus.ing.unibs.it/ipc-5/generators/index.html 4 | ; 5 | ; Map of the Depots: 6 | ; * 7 | ;-- 8 | ; 48: depot48 area 9 | ; *: Depot access point 10 | ; =: Transit area 11 | 12 | (define (problem storage-12) 13 | (:domain Storage-Propositional) 14 | (:objects 15 | depot48-1-1 container-0-0 - storearea 16 | hoist0 - hoist 17 | crate0 - crate 18 | container0 - container 19 | depot48 - depot 20 | loadarea - transitarea) 21 | 22 | (:init 23 | (in depot48-1-1 depot48) 24 | (on crate0 container-0-0) 25 | (in crate0 container0) 26 | (in container-0-0 container0) 27 | (connected loadarea container-0-0) 28 | (connected container-0-0 loadarea) 29 | (connected depot48-1-1 loadarea) 30 | (connected loadarea depot48-1-1) 31 | (at hoist0 depot48-1-1) 32 | (available hoist0)) 33 | 34 | (:goal (and 35 | (in crate0 depot48))) 36 | ) 37 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/storage/p13.pddl: -------------------------------------------------------------------------------- 1 | ; Domain designed by Alfonso Gerevini and Alessandro Saetti 2 | ; This file has been automatically generated by the generator available from 3 | ; http://zeus.ing.unibs.it/ipc-5/generators/index.html 4 | ; 5 | ; Map of the Depots: 6 | ; 0* 7 | ;--- 8 | ; 48: depot48 area 9 | ; *: Depot access point 10 | ; =: Transit area 11 | 12 | (define (problem storage-13) 13 | (:domain Storage-Propositional) 14 | (:objects 15 | depot48-1-1 depot48-1-2 container-0-0 - storearea 16 | hoist0 hoist1 - hoist 17 | crate0 - crate 18 | container0 - container 19 | depot48 - depot 20 | loadarea - transitarea) 21 | 22 | (:init 23 | (connected depot48-1-1 depot48-1-2) 24 | (connected depot48-1-2 depot48-1-1) 25 | (in depot48-1-1 depot48) 26 | (in depot48-1-2 depot48) 27 | (on crate0 container-0-0) 28 | (in crate0 container0) 29 | (in container-0-0 container0) 30 | (connected loadarea container-0-0) 31 | (connected container-0-0 loadarea) 32 | (connected depot48-1-2 loadarea) 33 | (connected loadarea depot48-1-2) 34 | (at hoist0 depot48-1-2) 35 | (available hoist0) 36 | (at hoist1 depot48-1-1) 37 | (available hoist1)) 38 | 39 | (:goal (and 40 | (in crate0 depot48))) 41 | ) 42 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tireworld_test/problem9.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tireworld-9) 2 | (:domain tireworld) 3 | (:objects 4 | l-1-1 - location 5 | l-1-2 - location 6 | l-1-3 - location 7 | l-2-1 - location 8 | l-2-2 - location 9 | l-3-1 - location 10 | ) 11 | (:init 12 | (vehicle-at l-1-1) 13 | (road l-1-1 l-1-2) 14 | (road l-1-2 l-1-3) 15 | (road l-1-1 l-2-1) 16 | (road l-1-2 l-2-2) 17 | (road l-2-1 l-1-2) 18 | (road l-2-2 l-1-3) 19 | (road l-2-1 l-3-1) 20 | (road l-3-1 l-2-2) 21 | (spare-in l-2-1) 22 | (spare-in l-2-2) 23 | (spare-in l-3-1) 24 | (not-flattire) 25 | 26 | (movecar l-1-1) 27 | (changetire l-1-1) 28 | (movecar l-1-2) 29 | (changetire l-1-2) 30 | (movecar l-1-3) 31 | (changetire l-1-3) 32 | (movecar l-2-1) 33 | (changetire l-2-1) 34 | (movecar l-2-2) 35 | (changetire l-2-2) 36 | (movecar l-3-1) 37 | (changetire l-3-1) 38 | ) 39 | (:goal (and (vehicle-at l-1-3)))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/trapnewspapers/problem0.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem trapnewspaper) (:domain trapnewspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | paper-0 - paper 9 | paper-1 - paper 10 | paper-2 - paper 11 | paper-3 - paper 12 | paper-4 - paper 13 | paper-5 - paper 14 | paper-6 - paper 15 | ) 16 | (:init 17 | (at loc-0) 18 | (ishomebase loc-0) 19 | (safe loc-0) 20 | (safe loc-1) 21 | (safe loc-2) 22 | (unpacked paper-0) 23 | (unpacked paper-1) 24 | (unpacked paper-2) 25 | (unpacked paper-3) 26 | (unpacked paper-4) 27 | (unpacked paper-5) 28 | (unpacked paper-6) 29 | (wantspaper loc-1) 30 | (wantspaper loc-2) 31 | ) 32 | (:goal (and 33 | (satisfied loc-1) 34 | (satisfied loc-2))) 35 | ) 36 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/trapnewspapers/problem1.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem trapnewspaper) (:domain trapnewspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | paper-0 - paper 9 | paper-1 - paper 10 | paper-2 - paper 11 | paper-3 - paper 12 | paper-4 - paper 13 | paper-5 - paper 14 | paper-6 - paper 15 | ) 16 | (:init 17 | (at loc-0) 18 | (ishomebase loc-0) 19 | (safe loc-0) 20 | (safe loc-2) 21 | (unpacked paper-0) 22 | (unpacked paper-1) 23 | (unpacked paper-2) 24 | (unpacked paper-3) 25 | (unpacked paper-4) 26 | (unpacked paper-5) 27 | (unpacked paper-6) 28 | (wantspaper loc-2) 29 | ) 30 | (:goal (and 31 | (satisfied loc-2))) 32 | ) 33 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/trapnewspapers/problem2.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem trapnewspaper) (:domain trapnewspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | paper-0 - paper 9 | paper-1 - paper 10 | paper-2 - paper 11 | paper-3 - paper 12 | paper-4 - paper 13 | paper-5 - paper 14 | paper-6 - paper 15 | ) 16 | (:init 17 | (at loc-0) 18 | (ishomebase loc-0) 19 | (safe loc-0) 20 | (safe loc-1) 21 | (unpacked paper-0) 22 | (unpacked paper-1) 23 | (unpacked paper-2) 24 | (unpacked paper-3) 25 | (unpacked paper-4) 26 | (unpacked paper-5) 27 | (unpacked paper-6) 28 | (wantspaper loc-1) 29 | ) 30 | (:goal (and 31 | (satisfied loc-1))) 32 | ) 33 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/trapnewspapers/problem3.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem trapnewspaper) (:domain trapnewspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | loc-4 - loc 9 | loc-5 - loc 10 | paper-0 - paper 11 | paper-1 - paper 12 | paper-10 - paper 13 | paper-2 - paper 14 | paper-3 - paper 15 | paper-4 - paper 16 | paper-5 - paper 17 | paper-6 - paper 18 | paper-7 - paper 19 | paper-8 - paper 20 | paper-9 - paper 21 | ) 22 | (:init 23 | (at loc-0) 24 | (ishomebase loc-0) 25 | (safe loc-0) 26 | (safe loc-1) 27 | (safe loc-4) 28 | (unpacked paper-0) 29 | (unpacked paper-10) 30 | (unpacked paper-1) 31 | (unpacked paper-2) 32 | (unpacked paper-3) 33 | (unpacked paper-4) 34 | (unpacked paper-5) 35 | (unpacked paper-6) 36 | (unpacked paper-7) 37 | (unpacked paper-8) 38 | (unpacked paper-9) 39 | (wantspaper loc-1) 40 | (wantspaper loc-4) 41 | ) 42 | (:goal (and 43 | (satisfied loc-1) 44 | (satisfied loc-4))) 45 | ) 46 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/trapnewspapers/problem4.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem trapnewspaper) (:domain trapnewspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | loc-4 - loc 9 | loc-5 - loc 10 | loc-6 - loc 11 | paper-0 - paper 12 | paper-1 - paper 13 | paper-10 - paper 14 | paper-2 - paper 15 | paper-3 - paper 16 | paper-4 - paper 17 | paper-5 - paper 18 | paper-6 - paper 19 | paper-7 - paper 20 | paper-8 - paper 21 | paper-9 - paper 22 | ) 23 | (:init 24 | (at loc-0) 25 | (ishomebase loc-0) 26 | (safe loc-0) 27 | (safe loc-2) 28 | (safe loc-3) 29 | (safe loc-4) 30 | (safe loc-5) 31 | (safe loc-6) 32 | (unpacked paper-0) 33 | (unpacked paper-10) 34 | (unpacked paper-1) 35 | (unpacked paper-2) 36 | (unpacked paper-3) 37 | (unpacked paper-4) 38 | (unpacked paper-5) 39 | (unpacked paper-6) 40 | (unpacked paper-7) 41 | (unpacked paper-8) 42 | (unpacked paper-9) 43 | (wantspaper loc-2) 44 | (wantspaper loc-3) 45 | (wantspaper loc-4) 46 | (wantspaper loc-5) 47 | (wantspaper loc-6) 48 | ) 49 | (:goal (and 50 | (satisfied loc-2) 51 | (satisfied loc-3) 52 | (satisfied loc-4) 53 | (satisfied loc-5) 54 | (satisfied loc-6))) 55 | ) 56 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/trapnewspapers/problem7.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem trapnewspaper) (:domain trapnewspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-2 - loc 7 | loc-3 - loc 8 | loc-4 - loc 9 | loc-5 - loc 10 | loc-6 - loc 11 | loc-7 - loc 12 | loc-8 - loc 13 | loc-9 - loc 14 | paper-0 - paper 15 | paper-1 - paper 16 | paper-10 - paper 17 | paper-11 - paper 18 | paper-12 - paper 19 | paper-13 - paper 20 | paper-2 - paper 21 | paper-3 - paper 22 | paper-4 - paper 23 | paper-5 - paper 24 | paper-6 - paper 25 | paper-7 - paper 26 | paper-8 - paper 27 | paper-9 - paper 28 | ) 29 | (:init 30 | (at loc-0) 31 | (ishomebase loc-0) 32 | (safe loc-0) 33 | (safe loc-1) 34 | (safe loc-4) 35 | (safe loc-6) 36 | (safe loc-7) 37 | (unpacked paper-0) 38 | (unpacked paper-10) 39 | (unpacked paper-11) 40 | (unpacked paper-12) 41 | (unpacked paper-13) 42 | (unpacked paper-1) 43 | (unpacked paper-2) 44 | (unpacked paper-3) 45 | (unpacked paper-4) 46 | (unpacked paper-5) 47 | (unpacked paper-6) 48 | (unpacked paper-7) 49 | (unpacked paper-8) 50 | (unpacked paper-9) 51 | (wantspaper loc-1) 52 | (wantspaper loc-4) 53 | (wantspaper loc-6) 54 | (wantspaper loc-7) 55 | ) 56 | (:goal (and 57 | (satisfied loc-1) 58 | (satisfied loc-4) 59 | (satisfied loc-6) 60 | (satisfied loc-7))) 61 | ) 62 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/trapnewspapers/problem8.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem trapnewspaper) (:domain trapnewspapers) 3 | (:objects 4 | loc-0 - loc 5 | loc-1 - loc 6 | loc-10 - loc 7 | loc-2 - loc 8 | loc-3 - loc 9 | loc-4 - loc 10 | loc-5 - loc 11 | loc-6 - loc 12 | loc-7 - loc 13 | loc-8 - loc 14 | loc-9 - loc 15 | paper-0 - paper 16 | paper-1 - paper 17 | paper-10 - paper 18 | paper-11 - paper 19 | paper-12 - paper 20 | paper-13 - paper 21 | paper-14 - paper 22 | paper-2 - paper 23 | paper-3 - paper 24 | paper-4 - paper 25 | paper-5 - paper 26 | paper-6 - paper 27 | paper-7 - paper 28 | paper-8 - paper 29 | paper-9 - paper 30 | ) 31 | (:init 32 | (at loc-0) 33 | (ishomebase loc-0) 34 | (safe loc-0) 35 | (safe loc-2) 36 | (safe loc-4) 37 | (safe loc-8) 38 | (unpacked paper-0) 39 | (unpacked paper-10) 40 | (unpacked paper-11) 41 | (unpacked paper-12) 42 | (unpacked paper-13) 43 | (unpacked paper-14) 44 | (unpacked paper-1) 45 | (unpacked paper-2) 46 | (unpacked paper-3) 47 | (unpacked paper-4) 48 | (unpacked paper-5) 49 | (unpacked paper-6) 50 | (unpacked paper-7) 51 | (unpacked paper-8) 52 | (unpacked paper-9) 53 | (wantspaper loc-2) 54 | (wantspaper loc-4) 55 | (wantspaper loc-8) 56 | ) 57 | (:goal (and 58 | (satisfied loc-2) 59 | (satisfied loc-4) 60 | (satisfied loc-8))) 61 | ) 62 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p01.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-1) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 - hub 6 | nuts1 - nut 7 | boot - container 8 | r1 w1 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (on w1 the-hub1) 20 | (on-ground the-hub1) 21 | (tight nuts1 the-hub1) 22 | (fastened the-hub1) 23 | ) 24 | (:goal 25 | (and 26 | (on r1 the-hub1) 27 | (inflated r1) 28 | (in w1 boot) 29 | ) 30 | ) 31 | ) 32 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p03.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-3) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 - hub 6 | nuts1 nuts2 nuts3 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (not-inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (on w1 the-hub1) 26 | (on-ground the-hub1) 27 | (tight nuts1 the-hub1) 28 | (fastened the-hub1) 29 | (on w2 the-hub2) 30 | (on-ground the-hub2) 31 | (tight nuts2 the-hub2) 32 | (fastened the-hub2) 33 | (on w3 the-hub3) 34 | (on-ground the-hub3) 35 | (tight nuts3 the-hub3) 36 | (fastened the-hub3) 37 | ) 38 | (:goal 39 | (and 40 | (on r1 the-hub1) 41 | (inflated r1) 42 | (in w1 boot) 43 | (on r2 the-hub2) 44 | (inflated r2) 45 | (in w2 boot) 46 | (on r3 the-hub3) 47 | (inflated r3) 48 | (in w3 boot) 49 | ) 50 | ) 51 | ) 52 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p04.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-4) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 the-hub4 - hub 6 | nuts1 nuts2 nuts3 nuts4 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 r4 w4 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (not-inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (intact r4) 26 | (in r4 boot) 27 | (not-inflated r4) 28 | (on w1 the-hub1) 29 | (on-ground the-hub1) 30 | (tight nuts1 the-hub1) 31 | (fastened the-hub1) 32 | (on w2 the-hub2) 33 | (on-ground the-hub2) 34 | (tight nuts2 the-hub2) 35 | (fastened the-hub2) 36 | (on w3 the-hub3) 37 | (on-ground the-hub3) 38 | (tight nuts3 the-hub3) 39 | (fastened the-hub3) 40 | (on w4 the-hub4) 41 | (on-ground the-hub4) 42 | (tight nuts4 the-hub4) 43 | (fastened the-hub4) 44 | ) 45 | (:goal 46 | (and 47 | (on r1 the-hub1) 48 | (inflated r1) 49 | (in w1 boot) 50 | (on r2 the-hub2) 51 | (inflated r2) 52 | (in w2 boot) 53 | (on r3 the-hub3) 54 | (inflated r3) 55 | (in w3 boot) 56 | (on r4 the-hub4) 57 | (inflated r4) 58 | (in w4 boot) 59 | ) 60 | ) 61 | ) 62 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p05.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-5) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 - hub 6 | nuts1 - nut 7 | boot - container 8 | r1 w1 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (isopen boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (inflated r1) 19 | (on w1 the-hub1) 20 | (on-ground the-hub1) 21 | (loose nuts1 the-hub1) 22 | (fastened the-hub1) 23 | ) 24 | (:goal 25 | (and 26 | (on r1 the-hub1) 27 | (in w1 boot) 28 | ) 29 | ) 30 | ) 31 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p06.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-6) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 - hub 6 | nuts1 nuts2 nuts3 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (not-inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (on w1 the-hub1) 26 | (on-ground the-hub1) 27 | (tight nuts1 the-hub1) 28 | (fastened the-hub1) 29 | (on w2 the-hub2) 30 | (on-ground the-hub2) 31 | (tight nuts2 the-hub2) 32 | (fastened the-hub2) 33 | (on w3 the-hub3) 34 | (on-ground the-hub3) 35 | (tight nuts3 the-hub3) 36 | (fastened the-hub3) 37 | ) 38 | (:goal 39 | (and 40 | (inflated r1) 41 | (inflated r2) 42 | (inflated r3) 43 | ) 44 | ) 45 | ) 46 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p07.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-7) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 - hub 6 | nuts1 nuts2 nuts3 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (not-inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (on w1 the-hub1) 26 | (on-ground the-hub1) 27 | (tight nuts1 the-hub1) 28 | (fastened the-hub1) 29 | (on w2 the-hub2) 30 | (on-ground the-hub2) 31 | (tight nuts2 the-hub2) 32 | (fastened the-hub2) 33 | (on w3 the-hub3) 34 | (on-ground the-hub3) 35 | (tight nuts3 the-hub3) 36 | (fastened the-hub3) 37 | ) 38 | (:goal 39 | (and 40 | (in w1 boot) 41 | (in w2 boot) 42 | (inflated r3) 43 | ) 44 | ) 45 | ) 46 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p08.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-8) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 - hub 6 | nuts1 nuts2 nuts3 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (on w1 the-hub1) 26 | (on-ground the-hub1) 27 | (tight nuts1 the-hub1) 28 | (fastened the-hub1) 29 | (on w2 the-hub2) 30 | (on-ground the-hub2) 31 | (tight nuts2 the-hub2) 32 | (fastened the-hub2) 33 | (on w3 the-hub3) 34 | (on-ground the-hub3) 35 | (tight nuts3 the-hub3) 36 | (fastened the-hub3) 37 | ) 38 | (:goal 39 | (and 40 | (in w1 boot) 41 | (in w2 boot) 42 | ) 43 | ) 44 | ) 45 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p09.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-9) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 the-hub4 - hub 6 | nuts1 nuts2 nuts3 nuts4 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 r4 w4 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (not-inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (intact r4) 26 | (in r4 boot) 27 | (not-inflated r4) 28 | (on w1 the-hub1) 29 | (on-ground the-hub1) 30 | (tight nuts1 the-hub1) 31 | (fastened the-hub1) 32 | (on w2 the-hub2) 33 | (on-ground the-hub2) 34 | (tight nuts2 the-hub2) 35 | (fastened the-hub2) 36 | (on w3 the-hub3) 37 | (on-ground the-hub3) 38 | (tight nuts3 the-hub3) 39 | (fastened the-hub3) 40 | (on w4 the-hub4) 41 | (on-ground the-hub4) 42 | (tight nuts4 the-hub4) 43 | (fastened the-hub4) 44 | ) 45 | (:goal 46 | (and 47 | (in w3 boot) 48 | (in w4 boot) 49 | ) 50 | ) 51 | ) 52 | 53 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld/p10.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-10) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 - hub 6 | nuts1 nuts2 nuts3 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (not-inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (on w1 the-hub1) 26 | (on-ground the-hub1) 27 | (tight nuts1 the-hub1) 28 | (fastened the-hub1) 29 | (on w2 the-hub2) 30 | (on-ground the-hub2) 31 | (tight nuts2 the-hub2) 32 | (fastened the-hub2) 33 | (on w3 the-hub3) 34 | (on-ground the-hub3) 35 | (tight nuts3 the-hub3) 36 | (fastened the-hub3) 37 | ) 38 | (:goal 39 | (and 40 | (inflated r1) 41 | (inflated r2) 42 | (on r3 the-hub3) 43 | (inflated r3) 44 | (in w3 boot) 45 | ) 46 | ) 47 | ) 48 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld_old/p01.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-1) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 - hub 6 | nuts1 - nut 7 | boot - container 8 | r1 w1 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (on w1 the-hub1) 20 | (on-ground the-hub1) 21 | (tight nuts1 the-hub1) 22 | (fastened the-hub1) 23 | ) 24 | (:goal 25 | (and 26 | (on r1 the-hub1) 27 | (inflated r1) 28 | (tight nuts1 the-hub1) 29 | (in w1 boot) 30 | (in wrench boot) 31 | (in jack boot) 32 | (in pump boot) 33 | (closed boot) 34 | ) 35 | ) 36 | ) 37 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/pddl/tyreworld_old/p03.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tyreworld-3) 2 | (:domain tyreworld) 3 | (:objects 4 | wrench jack pump - tool 5 | the-hub1 the-hub2 the-hub3 - hub 6 | nuts1 nuts2 nuts3 - nut 7 | boot - container 8 | r1 w1 r2 w2 r3 w3 - wheel 9 | ) 10 | (:init 11 | (in jack boot) 12 | (in pump boot) 13 | (in wrench boot) 14 | (unlocked boot) 15 | (closed boot) 16 | (intact r1) 17 | (in r1 boot) 18 | (not-inflated r1) 19 | (intact r2) 20 | (in r2 boot) 21 | (not-inflated r2) 22 | (intact r3) 23 | (in r3 boot) 24 | (not-inflated r3) 25 | (on w1 the-hub1) 26 | (on-ground the-hub1) 27 | (tight nuts1 the-hub1) 28 | (fastened the-hub1) 29 | (on w2 the-hub2) 30 | (on-ground the-hub2) 31 | (tight nuts2 the-hub2) 32 | (fastened the-hub2) 33 | (on w3 the-hub3) 34 | (on-ground the-hub3) 35 | (tight nuts3 the-hub3) 36 | (fastened the-hub3) 37 | ) 38 | (:goal 39 | (and 40 | (on r1 the-hub1) 41 | (inflated r1) 42 | (tight nuts1 the-hub1) 43 | (in w1 boot) 44 | (on r2 the-hub2) 45 | (inflated r2) 46 | (tight nuts2 the-hub2) 47 | (in w2 boot) 48 | (on r3 the-hub3) 49 | (inflated r3) 50 | (tight nuts3 the-hub3) 51 | (in w3 boot) 52 | (in wrench boot) 53 | (in jack boot) 54 | (in pump boot) 55 | (closed boot) 56 | ) 57 | ) 58 | ) 59 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_ferry/ferry: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_ferry/ferry -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_ferry/ferry.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_ferry/ferry.o -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_ferry/makefile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | ####### FLAGS 5 | 6 | TYPE = 7 | ADDONS = 8 | 9 | CC = gcc 10 | 11 | CFLAGS = -O6 -Wall -g -ansi $(TYPE) $(ADDONS) 12 | # -g -pg 13 | 14 | LIBS = -lm 15 | 16 | 17 | SOURCES = ferry.c 18 | 19 | OBJECTS = $(SOURCES:.c=.o) 20 | 21 | ####### Implicit rules 22 | 23 | .SUFFIXES: 24 | 25 | .SUFFIXES: .c .o 26 | 27 | .c.o:; $(CC) -c $(CFLAGS) $< 28 | 29 | ####### Build rules 30 | 31 | 32 | miconic: $(OBJECTS) 33 | $(CC) -o ferry $(OBJECTS) $(CFLAGS) $(LIBS) 34 | 35 | # misc 36 | clean: 37 | rm -f *.o *.bak *~ *% core *_pure_p9_c0_400.o.warnings \ 38 | \#*\# $(RES_PARSER_SRC) $(PDDL_PARSER_SRC) 39 | 40 | veryclean: clean 41 | rm -f ferry H* J* K* L* O* graph.* *.symbex gmon.out \ 42 | $(PDDL_PARSER_SRC) \ 43 | lex.fct_pddl.c lex.ops_pddl.c lex.probname.c \ 44 | *.output 45 | 46 | lint: 47 | lclint -booltype Bool $(SOURCES) 2> output.lint 48 | 49 | # DO NOT DELETE 50 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_ferry/script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # for i in {0..39} 3 | # do 4 | # let "LOCS=10+($RANDOM%5)" 5 | # let "CARS=3+($RANDOM%5)" 6 | # ./ferry -l $LOCS -c $CARS > ../../pddl/manyferry/problem$i.pddl 7 | # echo "Generated ferry problem with $LOCS locations, $CARS cars." 8 | # done 9 | 10 | for i in {40..49} 11 | do 12 | let "LOCS=250+($RANDOM%20)" 13 | let "CARS=50+($RANDOM%20)" 14 | ./ferry -l $LOCS -c $CARS > ../../pddl/manyferry_test/problem$i.pddl 15 | echo "Generated ferry problem with $LOCS locations, $CARS cars." 16 | done 17 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_grid/grid: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_grid/grid -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_grid/grid.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_grid/grid.o -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_grid/makefile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | 5 | ####### FLAGS 6 | 7 | TYPE = 8 | ADDONS = 9 | 10 | CC = gcc 11 | 12 | CFLAGS = -O6 -Wall -g -ansi $(TYPE) $(ADDONS) 13 | # -g -pg 14 | 15 | LIBS = -lm 16 | 17 | 18 | SOURCES = grid.c 19 | 20 | OBJECTS = $(SOURCES:.c=.o) 21 | 22 | ####### Implicit rules 23 | 24 | .SUFFIXES: 25 | 26 | .SUFFIXES: .c .o 27 | 28 | .c.o:; $(CC) -c $(CFLAGS) $< 29 | 30 | ####### Build rules 31 | 32 | 33 | miconic: $(OBJECTS) 34 | $(CC) -o grid $(OBJECTS) $(CFLAGS) $(LIBS) 35 | 36 | # misc 37 | clean: 38 | rm -f *.o *.bak *~ *% core *_pure_p9_c0_400.o.warnings \ 39 | \#*\# $(RES_PARSER_SRC) $(PDDL_PARSER_SRC) 40 | 41 | veryclean: clean 42 | rm -f grid H* J* K* L* O* graph.* *.symbex gmon.out \ 43 | $(PDDL_PARSER_SRC) \ 44 | lex.fct_pddl.c lex.ops_pddl.c lex.probname.c \ 45 | *.output 46 | 47 | lint: 48 | lclint -booltype Bool $(SOURCES) 2> output.lint 49 | 50 | # DO NOT DELETE 51 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_grid/notes.txt: -------------------------------------------------------------------------------- 1 | The command used to generate problems for manygrid: 2 | 3 | ./grid -x 12 -y 12 -t 5 -k 55555 -l 55555 -p 25 -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_grid/script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in {0..39} 3 | do 4 | ./grid -x 12 -y 12 -t 5 -k 55555 -l 55555 -p 25 > ../../pddl/manygrid/problem$i.pddl 5 | done 6 | 7 | for i in {40..49} 8 | do 9 | ./grid -x 12 -y 12 -t 5 -k 55555 -l 55555 -p 25 > ../../pddl/manygrid_test/problem$i.pddl 10 | done 11 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_logistics/logistics: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_logistics/logistics -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_logistics/logistics.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_logistics/logistics.o -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_logistics/makefile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | 5 | ####### FLAGS 6 | 7 | TYPE = 8 | ADDONS = 9 | 10 | CC = gcc 11 | 12 | CFLAGS = -O6 -Wall -g -ansi $(TYPE) $(ADDONS) 13 | # -g -pg 14 | 15 | LIBS = -lm 16 | 17 | 18 | SOURCES = logistics.c 19 | 20 | OBJECTS = $(SOURCES:.c=.o) 21 | 22 | ####### Implicit rules 23 | 24 | .SUFFIXES: 25 | 26 | .SUFFIXES: .c .o 27 | 28 | .c.o:; $(CC) -c $(CFLAGS) $< 29 | 30 | ####### Build rules 31 | 32 | 33 | miconic: $(OBJECTS) 34 | $(CC) -o logistics $(OBJECTS) $(CFLAGS) $(LIBS) 35 | 36 | # misc 37 | clean: 38 | rm -f *.o *.bak *~ *% core *_pure_p9_c0_400.o.warnings \ 39 | \#*\# $(RES_PARSER_SRC) $(PDDL_PARSER_SRC) 40 | 41 | veryclean: clean 42 | rm -f logistics H* J* K* L* O* graph.* *.symbex gmon.out \ 43 | $(PDDL_PARSER_SRC) \ 44 | lex.fct_pddl.c lex.ops_pddl.c lex.probname.c \ 45 | *.output 46 | 47 | lint: 48 | lclint -booltype Bool $(SOURCES) 2> output.lint 49 | 50 | # DO NOT DELETE 51 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_logistics/notes.txt: -------------------------------------------------------------------------------- 1 | The command used to generate problems for manylogistics: 2 | 3 | ./logistics -a 50 -c 50 -s 2 -p 20 4 | 5 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_logistics/script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in {0..39} 3 | do 4 | let "AIRS=5+($RANDOM%5)" 5 | let "CARS=2+($RANDOM%5)" 6 | let "CITY=1+($RANDOM%3)" 7 | let "PACKS=2+($RANDOM%5)" 8 | ./logistics -a $AIRS -c $CARS -s $CITY -p $PACKS > ../../pddl/manylogistics/problem$i.pddl 9 | echo "Generated logistics problem with $AIRS airplanes, $CARS cars, $CITY size cities, $PACKS packages." 10 | done 11 | 12 | for i in {40..49} 13 | do 14 | let "AIRS=50+($RANDOM%5)" 15 | let "CARS=20+($RANDOM%5)" 16 | let "CITY=1+($RANDOM%3)" 17 | let "PACKS=20+($RANDOM%5)" 18 | ./logistics -a $AIRS -c $CARS -s $CITY -p $PACKS > ../../pddl/manylogistics_test/problem$i.pddl 19 | echo "Generated logistics problem with $AIRS airplanes, $CARS cars, $CITY size cities, $PACKS packages." 20 | done 21 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_miconic/makefile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Makefile for basic miconic examples 4 | # 5 | 6 | 7 | ####### FLAGS 8 | 9 | TYPE = 10 | ADDONS = 11 | 12 | CC = gcc 13 | 14 | CFLAGS = -O6 -Wall -g -ansi $(TYPE) $(ADDONS) 15 | # -g -pg 16 | 17 | LIBS = -lm 18 | 19 | 20 | SOURCES = miconic.c 21 | 22 | OBJECTS = $(SOURCES:.c=.o) 23 | 24 | ####### Implicit rules 25 | 26 | .SUFFIXES: 27 | 28 | .SUFFIXES: .c .o 29 | 30 | .c.o:; $(CC) -c $(CFLAGS) $< 31 | 32 | ####### Build rules 33 | 34 | 35 | miconic: $(OBJECTS) 36 | $(CC) -o miconic $(OBJECTS) $(CFLAGS) $(LIBS) 37 | 38 | # misc 39 | clean: 40 | rm -f *.o *.bak *~ *% core *_pure_p9_c0_400.o.warnings \ 41 | \#*\# $(RES_PARSER_SRC) $(PDDL_PARSER_SRC) 42 | 43 | veryclean: clean 44 | rm -f miconic H* J* K* L* O* graph.* *.symbex gmon.out \ 45 | $(PDDL_PARSER_SRC) \ 46 | lex.fct_pddl.c lex.ops_pddl.c lex.probname.c \ 47 | *.output 48 | 49 | lint: 50 | lclint -booltype Bool $(SOURCES) 2> output.lint 51 | 52 | # DO NOT DELETE 53 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_miconic/miconic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_miconic/miconic -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_miconic/miconic.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_miconic/miconic.o -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_miconic/notes.txt: -------------------------------------------------------------------------------- 1 | The command used to generate problems for manymiconic: 2 | 3 | ./miconic -f 250 -p 80 4 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/procedural_generation/hoffmann_miconic/script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | for i in {0..39} 3 | do 4 | let "FLOORS=5+($RANDOM%25)" 5 | let "PASSES=3+($RANDOM%8)" 6 | ./miconic -f $FLOORS -p $PASSES > ../../pddl/manymiconic/problem$i.pddl 7 | echo "Generated miconic problem fill with $FLOORS floors and $PASSES passengers" 8 | done 9 | 10 | # for i in {40..49} 11 | # do 12 | # ./miconic -f 250 -p 80 > ../../pddl/manymiconic_test/problem$i.pddl 13 | # done 14 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/__init__.py: -------------------------------------------------------------------------------- 1 | from .minecraft import render as minecraft_render 2 | from .rearrangement import render as rearrangement_render 3 | from .sokoban import render as sokoban_render 4 | from .hanoi import render as hanoi_render 5 | from .blocks import render as blocks_render 6 | from .explodingblocks import render as exploding_blocks_render 7 | from .doors import render as doors_render 8 | from .tsp import render as tsp_render 9 | from .slidetile import render as slidetile_render 10 | from .tireworld import render as tireworld_render 11 | from .snake import render as snake_render 12 | from .searchandrescue import render as sar_render 13 | from .slow_searchandrescue import render as slow_sar_render 14 | from .posar import render as posar_render 15 | from .myopic_posar import render as myopic_posar_render 16 | from .sar_render_from_string_grid import sar_render_from_string_grid 17 | from .hiking import render as hiking_render 18 | from .maze import render as maze_render 19 | from .navigation import render as navigation_render 20 | from .visit_all import render as visit_all_render -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/bear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/bear.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_boundary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_boundary.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_key.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_key.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_locked_room.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_locked_room.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_player.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_unlocked_room.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/doors_unlocked_room.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/goal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/goal.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_goal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_goal.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_hill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_hill.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_path.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_goal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_goal.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_hill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_hill.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_path.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_rock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_rock.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_water.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_player_on_water.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_rock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_rock.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_water.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/hiking_water.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_agent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_agent.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_background.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_frame.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_grass.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_grass.jpg -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_log.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_log.jpg -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_plank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/minecraft_plank.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/monkey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/monkey.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/pawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/pawn.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/robot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/robot.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/robot_holding_bear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/robot_holding_bear.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/robot_holding_monkey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/robot_holding_monkey.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/robot_holding_pawn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/robot_holding_pawn.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_chicken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_chicken.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_clear.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_fire.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_fire.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_hidden.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_hidden.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_hospital.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_hospital.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_person.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_person.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_robot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_robot.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_robot_holding_person.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_robot_holding_person.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_robot_xray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_robot_xray.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_smoke.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_smoke.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sar_wall.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_1.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_2.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_3.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_4.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_5.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_6.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_7.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_8.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_empty.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/slidetile_empty.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_clear.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_clear.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_goal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_goal.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_player.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_stone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_stone.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_stone_at_goal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_stone_at_goal.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_wall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/rendering/assets/sokoban_wall.png -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/rendering/sar_render_from_string_grid.py: -------------------------------------------------------------------------------- 1 | from .utils import get_asset_path, render_from_layout 2 | 3 | import matplotlib.pyplot as plt 4 | import numpy as np 5 | 6 | NUM_OBJECTS = 4 7 | ROBOT, PERSON, WALL, FIRE = range(NUM_OBJECTS) 8 | 9 | TOKEN_IMAGES = { 10 | ROBOT : plt.imread(get_asset_path('sar_robot.png')), 11 | PERSON : plt.imread(get_asset_path('sar_person.png')), 12 | WALL : plt.imread(get_asset_path('sar_wall.png')), 13 | FIRE : plt.imread(get_asset_path('sar_fire.png')), 14 | } 15 | 16 | def get_token_images(obs_cell): 17 | images = [] 18 | for token in TOKEN_IMAGES: 19 | if obs_cell[token]: 20 | images.append(TOKEN_IMAGES[token]) 21 | return images 22 | 23 | def sar_render_from_string_grid(grid): 24 | layout = np.zeros((grid.shape[0], grid.shape[1], NUM_OBJECTS), dtype=bool) 25 | layout[grid == 'robot', ROBOT] = True 26 | layout[grid == 'person', PERSON] = True 27 | layout[grid == 'wall', WALL] = True 28 | layout[grid == 'fire', FIRE] = True 29 | return render_from_layout(layout, get_token_images, dpi=150) 30 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/environment/pddl_env/pddlgym/tests/__init__.py -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/derivedblocks/test_problem.pddl: -------------------------------------------------------------------------------- 1 | 2 | (define (problem prob) (:domain derivedblocks) 3 | (:objects 4 | block1 - obj 5 | block2 - obj 6 | gripper - robot 7 | table - loc 8 | ) 9 | (:goal (and 10 | (gripper_empty gripper) 11 | (on_loc block1 table) 12 | (on_obj block2 block1))) 13 | (:init 14 | (on_loc block2 table) 15 | (on_obj block1 block2) 16 | )) 17 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/easyblocks/problem2.pddl: -------------------------------------------------------------------------------- 1 | (define (problem easyblocks) 2 | (:domain easyblocks) 3 | (:objects 4 | A - block 5 | B - block 6 | robot - robot 7 | ) 8 | (:init 9 | (clear A) 10 | (clear B) 11 | (ontable A) 12 | (ontable B) 13 | (handempty robot) 14 | 15 | ; Action literals 16 | (PickUp A) 17 | (PutDown A) 18 | (Unstack A) 19 | (Stack A B) 20 | (PickUp B) 21 | (PutDown B) 22 | (Unstack B) 23 | (Stack B A) 24 | 25 | ) 26 | (:goal (and (on B A))) 27 | ) 28 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/hierarchical_type_test_domain.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (domain test-domain) 3 | (:requirements :typing ) 4 | (:types dog cat - animal 5 | block cylinder - object 6 | jindo corgi - dog 7 | animal object - entity 8 | ) 9 | (:predicates (isfurry ?x - animal) 10 | (ishappy ?x - animal) 11 | (islight ?x - object) 12 | (attending ?x - animal ?y - object) 13 | (pet ?x - animal) 14 | (throw ?x - object) 15 | (ispresent ?x - entity) 16 | ) 17 | 18 | ; (:actions pet throw) 19 | 20 | (:action pet 21 | :parameters (?x - animal) 22 | :precondition (and (pet ?x) 23 | (isfurry ?x) 24 | ) 25 | :effect (and (ishappy ?x) 26 | ) 27 | ) 28 | 29 | (:action throw 30 | :parameters (?x - object ?y - animal) 31 | :precondition (and (throw ?x) 32 | (islight ?x) 33 | (ishappy ?y) 34 | ) 35 | :effect (and (attending ?x ?y) 36 | ) 37 | ) 38 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/hierarchical_type_test_domain/hierarchical_type_test_problem.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (problem test-problem) 3 | (:domain test-domain) 4 | (:objects 5 | nomsy - jindo 6 | rover - corgi 7 | rene - cat 8 | block1 - block 9 | block2 - block 10 | cylinder1 - cylinder 11 | ) 12 | 13 | (:init 14 | (ispresent nomsy) 15 | (ispresent rover) 16 | (ispresent rene) 17 | (ispresent block1) 18 | (ispresent block2) 19 | (ispresent cylinder1) 20 | (islight block1) 21 | (islight cylinder1) 22 | (isfurry nomsy) 23 | ) 24 | 25 | (:goal (and 26 | (attending nomsy cylinder1) 27 | )) 28 | ) 29 | s -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_domain.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (domain test-domain) 3 | (:requirements :typing ) 4 | (:types type1 type2) 5 | (:predicates (pred1 ?x - type1) 6 | (pred2 ?x - type2) 7 | (pred3 ?x - type1 ?y - type2 ?z - type2) 8 | (actionpred ?x - type1) 9 | ) 10 | 11 | ; (:actions actionpred) 12 | 13 | (:action action1 14 | :parameters (?a - type1 ?b - type1 ?c - type2 ?d - type2) 15 | :precondition (and (actionpred ?b) 16 | (pred1 ?b) 17 | (pred3 ?a ?c ?d) 18 | (pred2 ?c) 19 | ) 20 | :effect (and (not (pred2 ?c)) 21 | (pred3 ?b ?d ?c) 22 | ) 23 | ) 24 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_domain/test_problem.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (problem test-problem) 3 | (:domain test-domain) 4 | (:objects 5 | a1 - type1 6 | a2 - type1 7 | b1 - type1 8 | b2 - type1 9 | b3 - type1 10 | c1 - type2 11 | c2 - type2 12 | d1 - type2 13 | d2 - type2 14 | d3 - type2 15 | ) 16 | 17 | (:init 18 | (pred1 b2) 19 | (pred2 c1) 20 | (pred3 a1 c1 d1) 21 | (pred3 a2 c2 d2) 22 | (actionpred a1) 23 | (actionpred a2) 24 | (actionpred b1) 25 | (actionpred b2) 26 | (actionpred b3) 27 | ) 28 | 29 | (:goal (and 30 | (pred2 c2) 31 | (pred3 b1 c1 d1) 32 | )) 33 | ) 34 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (domain test-probabilistic-domain) 3 | (:requirements :typing :probabilistic-effects) 4 | (:types type1 type2) 5 | (:predicates (pred1 ?x - type1) 6 | (pred2 ?x - type2) 7 | (pred3 ?x - type1 ?y - type2 ?z - type2) 8 | (actionpred ?x - type1) 9 | ) 10 | 11 | ; (:actions actionpred) 12 | 13 | (:action action1 14 | :parameters (?a - type1 ?b - type1 ?c - type2 ?d - type2) 15 | :precondition (and (actionpred ?b) 16 | (pred1 ?b) 17 | (pred3 ?a ?c ?d) 18 | (pred2 ?c) 19 | ) 20 | :effect (and 21 | (pred3 ?b ?d ?c) 22 | (probabilistic 0.3 (and (not (pred2 ?c))))) 23 | ) 24 | ) 25 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain/test_problem.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (problem test-problem) 3 | (:domain test-probabilistic-domain) 4 | (:objects 5 | a1 - type1 6 | a2 - type1 7 | b1 - type1 8 | b2 - type1 9 | b3 - type1 10 | c1 - type2 11 | c2 - type2 12 | d1 - type2 13 | d2 - type2 14 | d3 - type2 15 | ) 16 | 17 | (:init 18 | (pred1 b2) 19 | (pred2 c1) 20 | (pred3 a1 c1 d1) 21 | (pred3 a2 c2 d2) 22 | (actionpred a1) 23 | (actionpred a2) 24 | (actionpred b1) 25 | (actionpred b2) 26 | (actionpred b3) 27 | ) 28 | 29 | (:goal (and 30 | (pred2 c2) 31 | (pred3 b1 c1 d1) 32 | )) 33 | ) 34 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain_alt.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (domain test-probabilistic-domain-alt) 3 | (:requirements :typing :probabilistic-effects) 4 | (:types type1 type2) 5 | (:predicates (pred1 ?x - type1) 6 | (pred2 ?x - type2) 7 | (pred3 ?x - type1 ?y - type2 ?z - type2) 8 | (actionpred ?x - type1) 9 | ) 10 | 11 | ; (:actions actionpred) 12 | (and 13 | (:action action1 14 | :parameters (?a - type1 ?b - type1 ?c - type2 ?d - type2) 15 | :precondition (and (actionpred ?b) 16 | (pred1 ?b) 17 | (pred3 ?a ?c ?d) 18 | (pred2 ?c) 19 | ) 20 | :effect (and 21 | (probabilistic 0.25 (and (pred3 ?b ?d ?c))) 22 | (probabilistic 0.3 (and (not (pred2 ?c))))) 23 | ) 24 | ) 25 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain_alt/test_problem.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (problem test-problem) 3 | (:domain test-probabilistic-domain-alt) 4 | (:objects 5 | a1 - type1 6 | a2 - type1 7 | b1 - type1 8 | b2 - type1 9 | b3 - type1 10 | c1 - type2 11 | c2 - type2 12 | d1 - type2 13 | d2 - type2 14 | d3 - type2 15 | ) 16 | 17 | (:init 18 | (pred1 b2) 19 | (pred2 c1) 20 | (pred3 a1 c1 d1) 21 | (pred3 a2 c2 d2) 22 | (actionpred a1) 23 | (actionpred a2) 24 | (actionpred b1) 25 | (actionpred b2) 26 | (actionpred b3) 27 | ) 28 | 29 | (:goal (and 30 | (pred2 c2) 31 | (pred3 b1 c1 d1) 32 | )) 33 | ) 34 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain_alt_2.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (domain test-probabilistic-domain-alt-2) 3 | (:requirements :typing :probabilistic-effects) 4 | (:types type1 type2) 5 | (:predicates (pred1 ?x - type1) 6 | (pred2 ?x - type2) 7 | (pred3 ?x - type1 ?y - type2 ?z - type2) 8 | (actionpred ?x - type1) 9 | ) 10 | 11 | ; (:actions actionpred) 12 | (and 13 | (:action action1 14 | :parameters (?a - type1 ?b - type1 ?c - type2 ?d - type2) 15 | :precondition (and (actionpred ?b) 16 | (pred1 ?b) 17 | (pred3 ?a ?c ?d) 18 | (pred2 ?c) 19 | ) 20 | :effect (and 21 | (probabilistic 22 | 0.5 (and (not (pred2 ?c))) 23 | 0.4 (and (not (pred1 ?b))) 24 | 0.1 (and (pred3 ?b ?d ?c)))) 25 | ) 26 | ) 27 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain_alt_2/test_problem.pddl: -------------------------------------------------------------------------------- 1 | ; this is a comment 2 | (define (problem test-problem) 3 | (:domain test-probabilistic-domain-alt-2) 4 | (:objects 5 | a1 - type1 6 | a2 - type1 7 | b1 - type1 8 | b2 - type1 9 | b3 - type1 10 | c1 - type2 11 | c2 - type2 12 | d1 - type2 13 | d2 - type2 14 | d3 - type2 15 | ) 16 | 17 | (:init 18 | (pred1 b2) 19 | (pred2 c1) 20 | (pred3 a1 c1 d1) 21 | (pred3 a2 c2 d2) 22 | (actionpred a1) 23 | (actionpred a2) 24 | (actionpred b1) 25 | (actionpred b2) 26 | (actionpred b3) 27 | ) 28 | 29 | (:goal (and 30 | (pred2 c2) 31 | (pred3 b1 c1 d1) 32 | )) 33 | ) 34 | -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain_alt_3.pddl: -------------------------------------------------------------------------------- 1 | ; See https://github.com/tomsilver/pddlgym/issues/73 2 | 3 | (define (domain tireworld) 4 | (:requirements :typing :strips :probabilistic-effects) 5 | (:types location) 6 | (:predicates 7 | (a) 8 | (b) 9 | (c) 10 | (test1) 11 | (test2) 12 | ) 13 | 14 | ; (:actions test1 test2) 15 | 16 | (:action test1 17 | :parameters () 18 | :precondition (and (a) (test1)) 19 | :effect (and 20 | (probabilistic 0.8 (and (not (a)) (b)) 21 | 0.2 (and (not (a)) (c))) 22 | )) 23 | 24 | (:action test2 25 | :parameters () 26 | :precondition (and (a) (test2)) 27 | :effect (and 28 | (not (a)) 29 | (probabilistic 0.8 (and (b)) 0.2 (and (c))) 30 | )) 31 | ) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/pddl/test_probabilistic_domain_alt_3/test_problem.pddl: -------------------------------------------------------------------------------- 1 | (define (problem tireworld-3) 2 | (:domain tireworld) 3 | (:objects 4 | x - location 5 | ) 6 | (:init 7 | (a) 8 | 9 | ) 10 | (:goal (and (c))))) -------------------------------------------------------------------------------- /agentboard/environment/pddl_env/pddlgym/tests/test_system.py: -------------------------------------------------------------------------------- 1 | from pddlgym.demo import run_all 2 | 3 | import gym 4 | import pddlgym 5 | 6 | import unittest 7 | 8 | 9 | class TestSystem(unittest.TestCase): 10 | def test_system(self): 11 | print("WARNING: this test may take around a minute...") 12 | run_all(render=False, verbose=False) 13 | print("Test passed.") 14 | 15 | 16 | if __name__ == '__main__': 17 | unittest.main() 18 | -------------------------------------------------------------------------------- /agentboard/llm/__init__.py: -------------------------------------------------------------------------------- 1 | from .openai_gpt import OPENAI_GPT 2 | from .azure_gpt import OPENAI_GPT_AZURE 3 | from .claude import CLAUDE 4 | from .vllm import VLLM 5 | from common.registry import registry 6 | from .huggingface import HgModels 7 | 8 | __all__ = [ 9 | "OPENAI_GPT", 10 | "OPENAI_GPT_AZURE", 11 | "VLLM", 12 | "CLAUDE", 13 | "HgModels" 14 | ] 15 | 16 | 17 | 18 | 19 | 20 | def load_llm(name, config): 21 | 22 | llm = registry.get_llm_class(name).from_config(config) 23 | 24 | return llm 25 | 26 | -------------------------------------------------------------------------------- /agentboard/prompts/VanillaAgent/game24_vanilla_prompt.json: -------------------------------------------------------------------------------- 1 | { 2 | "examples": ["Goal is to get 24. Observation: Numbers left: 1, 2, 3, 4\n Action: 1 * 2 \n Observation: Numbers left: 3, 4, 2\n Action: 3 * 4 \n Observation: Numbers left: 2, 12\n Action: 2 * 12 \n Observation: Numbers left: 24 .Goal reached!"], 3 | "instruction": "You are given a set of numbers and you have to combine them using the four basic operations (+, -, *, /) to get a given goal number. You can only use each number once. Every time you use two numbers, you get a new number, which must be an integer. You would use this number along with other unused number to proceed the process. Each action must follow this format:\n + : add two intergers a and b, substitute a, b for available number. \n * : multiple two intergers a and b, substitute a, b for available number. \n / : divide a by b, substitute a, b for available number.\n - : minus b from a, substitute a, b for available number. \n", 4 | "system_msg": "You are an master in math." 5 | } 6 | -------------------------------------------------------------------------------- /agentboard/tasks/__init__.py: -------------------------------------------------------------------------------- 1 | from .webshop import EvalWebshop 2 | from .alfworld import Evalalfworld 3 | from .webbrowse import EvalWebBrowse 4 | from .babyai import EvalBabyai 5 | from .pddl import EvalPddl 6 | from .scienceworld import EvalScienceworld 7 | from .jericho import EvalJericho 8 | from .tool import EvalTool 9 | 10 | from common.registry import registry 11 | 12 | __all__ = [ 13 | "Evalalfworld", 14 | "EvalBabyai", 15 | "EvalPddl", 16 | "EvalWebBrowse", 17 | "EvalWebshop", 18 | "EvalJericho", 19 | "EvalTool", 20 | "EvalWebshop", 21 | "EvalScienceworld" 22 | ] 23 | 24 | 25 | def load_task(name, run_config, llm_config, agent_config, env_config, llm=None): 26 | task = registry.get_task_class(name).from_config(run_config, llm_config, agent_config, env_config, llm=llm) 27 | 28 | return task 29 | 30 | -------------------------------------------------------------------------------- /agentboard/tasks/base_task.py: -------------------------------------------------------------------------------- 1 | import abc 2 | 3 | class BaseTask: 4 | def __int__(self): 5 | super().__int__() 6 | 7 | ''' 8 | initialize llm and agent here for evaluation 9 | 10 | self.llm = load_llm(...) 11 | self.agent = load_agent(...) 12 | ''' 13 | 14 | def evaluate_env(self, env_id): 15 | ''' 16 | evaluate problem {env_id} 17 | 18 | ''' 19 | return 20 | 21 | def evaluate(self): 22 | ''' 23 | evaluate all problems 24 | 25 | num_envs = ... 26 | for id in range(num_envs): 27 | evaluate_env(id) 28 | ... 29 | ''' 30 | return 31 | 32 | @classmethod 33 | def from_config(cls, 34 | run_config, 35 | llm_config, 36 | agent_config, 37 | env_config, 38 | llm = None 39 | ): 40 | ''' 41 | Intialize task object from configs 42 | ''' 43 | return cls() -------------------------------------------------------------------------------- /agentboard/utils/common_exception.py: -------------------------------------------------------------------------------- 1 | class PageNumberError(Exception): 2 | pass 3 | -------------------------------------------------------------------------------- /agentboard/utils/sheet/Test Sheet-For Copy.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/agentboard/utils/sheet/Test Sheet-For Copy.xlsx -------------------------------------------------------------------------------- /assets/agentboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/agentboard.png -------------------------------------------------------------------------------- /assets/code_structure.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/code_structure.png -------------------------------------------------------------------------------- /assets/figure01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/figure01.png -------------------------------------------------------------------------------- /assets/main_graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/main_graph.png -------------------------------------------------------------------------------- /assets/sheet_step01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/sheet_step01.png -------------------------------------------------------------------------------- /assets/sheet_step02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/sheet_step02.png -------------------------------------------------------------------------------- /assets/sheet_step03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/sheet_step03.png -------------------------------------------------------------------------------- /assets/sheet_step04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hkust-nlp/AgentBoard/bb7255e2daf1989069a186dad9e53f70680961db/assets/sheet_step04.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | gymnasium 2 | playwright==1.32.1 3 | Pillow 4 | evaluate 5 | openai==0.28.1 6 | types-tqdm 7 | tiktoken 8 | prompt_toolkit 9 | aiolimiter 10 | beartype==0.12.0 11 | minigrid==2.3.0 12 | nltk 13 | tenacity 14 | timeout-decorator 15 | gradio 16 | gym==0.24.0 17 | werkzeug==2.2.2 18 | gspread 19 | imageio 20 | scikit-image 21 | geopy 22 | jsonlines 23 | vllm 24 | torch==2.0.1 # vllm 0.2.1.post1 requires 25 | python-dotenv 26 | bs4 27 | deepspeed 28 | scienceworld 29 | torchvision==0.15.2 30 | wandb 31 | plotly 32 | accelerate 33 | 34 | beautifulsoup4==4.11.1 35 | cleantext==1.1.4 36 | env==0.1.0 37 | Flask==2.1.2 38 | gdown 39 | gradio 40 | gym==0.24.0 41 | numpy==1.22.4 42 | pandas==1.4.2 43 | pyserini==0.17.0 44 | pydantic==1.10.8 45 | pytest 46 | PyYAML==6.0 47 | rank_bm25==0.2.2 48 | requests==2.27.1 49 | requests_mock 50 | rich==12.4.4 51 | scikit_learn==1.1.1 52 | selenium==4.2.0 53 | spacy==3.4.4 54 | thefuzz==0.19.0 55 | # torch==1.11.0 # vllm need torch 2.0.1 / claude need torch 1.11.0 56 | tqdm==4.64.0 57 | train==0.0.5 58 | # transformers==4.23.1 # claude need transformers 4.23.1 / transformers 4.34.1 59 | typing_extensions==4.5.0 60 | typing-inspect==0.8.0 61 | anthropic==0.6.0 62 | -------------------------------------------------------------------------------- /scripts/evaluate.sh: -------------------------------------------------------------------------------- 1 | CUDA_VISIBLE_DEVICES=0,1,2,3 python agentboard/eval_main.py --cfg eval_configs/main_results_all_tasks.yaml \ 2 | --tasks alfworld \ 3 | --model lemur-70b \ 4 | --log_path results/lemur-70b \ 5 | --wandb \ 6 | --project_name evaluate-lemur-70b \ 7 | --baseline_dir data/baseline_results \ -------------------------------------------------------------------------------- /scripts/prepare_webbrowse.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # prepare the evaluation 4 | # re-validate login information 5 | rm -rf agentboard/.auth 6 | mkdir -p agentboard/.auth 7 | python3 agentboard/environment/browser_env/auto_login.py --auth_folder agentboard/.auth 8 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | 2 | if [ $INSTALL_WEBARENA = false ]; then 3 | ## Tool/game24/babyi/pddl 4 | pip install -r requirements.txt 5 | 6 | ## jericho 7 | #apt update 8 | #apt install -y build-essential libffi-dev curl 9 | #export CC=/usr/bin/gcc 10 | #export CXX=/usr/bin/g++ 11 | 12 | pip install https://github.com/MarcCote/downward/archive/faster_replan.zip 13 | pip install https://github.com/MarcCote/TextWorld/archive/handcoded_expert_integration.zip 14 | python -m spacy download en_core_web_lg 15 | python -m spacy download en_core_web_sm 16 | ## 17 | 18 | ## alfworld 19 | git clone https://github.com/leoozy/alfworld.git alfworld 20 | cd alfworld 21 | pip install -r requirements.txt 22 | pip install . 23 | cd .. 24 | ## 25 | 26 | ## Webshop 27 | # Install Environment Dependencies via `conda` 28 | conda install mkl=2021 29 | 30 | conda install -c pytorch faiss-cpu 31 | 32 | conda install -c conda-forge openjdk=11 33 | 34 | # Build search engine index 35 | cd ./agentboard/environment/WebShop/search_engine 36 | mkdir -p resources resources_100 resources_1k resources_100k 37 | python convert_product_file_format.py # convert items.json => required doc format 38 | mkdir -p indexes 39 | ./run_indexing.sh 40 | cd ../../../ 41 | ## 42 | 43 | 44 | else 45 | ## Webarena 46 | playwright install 47 | Xvfb :99 -screen 0 1280x720x24 & 48 | export DISPLAY=:99 49 | fi 50 | --------------------------------------------------------------------------------