def parse_domain(domain_pddl): try: return parse_sequential_domain(domain_pddl) except AssertionError as e: if str(e) == DURATIVE_ACTIONS: return parse_temporal_domain(domain_pddl) raise e
def translate_and_write_pddl(domain_pddl, problem_pddl, temp_dir, verbose): domain = parse_sequential_domain(domain_pddl) problem = parse_problem(domain, problem_pddl) task = task_from_domain_problem(domain, problem) sas_task = sas_from_pddl(task) write_sas_task(sas_task, temp_dir) return task
def parse_domain(domain_pddl): try: return parse_sequential_domain(domain_pddl) except AssertionError as e: if str(e) == ':durative-actions': return parse_temporal_domain(domain_pddl) raise e