Files
SkillCompiler/data/skills-bench/tasks/pddl-tpp-planning/environment/skills/pddl-skills/load_problem.skill
T
2026-09-04 14:58:42 +08:00

14 lines
421 BLFS
Plaintext

name: load-problem
description: Load a PDDL problem file and return a problem object.
inputs:
- path: path to problem file
outputs:
- problem_object: unified_planning problem object
implementation: python
script: |
def skill(domain_file, problem_file):
from unified_planning.io import PDDLReader
reader = PDDLReader()
problem = reader.parse_problem(domain_file, problem_file)
return problem