def parse_domain(domain_pddl): if isinstance(domain_pddl, Domain): return domain_pddl domain = Domain(*parse_domain_pddl(parse_lisp(domain_pddl))) #for action in domain.actions: # if (action.cost is not None) and isinstance(action.cost, pddl.Increase) and isinstance(action.cost.expression, pddl.NumericConstant): # action.cost.expression.value = scale_cost(action.cost.expression.value) return domain
def parse_domain(domain_pddl): return Domain(*parse_domain_pddl(parse_lisp(domain_pddl)))