Open MFaisalZaki opened 1 year ago
@MFaisalZaki can you attach the PDDL files?
Sure, here are the files. freecell-strips-typed.zip
Try with this code:
from unified_planning.shortcuts import get_environment
get_environment().error_used_name = False
@MFaisalZaki Does it solve your problem?
@alvalentini sorry I did not have time to check it, but I plan to check your suggestion this week, and I'll keep you posted.
@alvalentini, sorry for the late reply. Yeah, this flag works.
Hi @alvalentini,
I'm sorry for reopening this issue again. But I still get this error even after setting the flag to False.
from unified_planning.io import PDDLReader
from unified_planning.shortcuts import *
up.shortcuts.get_environment().error_used_name = False
domainfile = 'domain.pddl'
problemfile = 'problem.pddl'
task = PDDLReader().parse_problem(domainfile, problemfile)
Here are the files to reproduce: bug.zip
Thanks.
Hi @MFaisalZaki! In this case you have the name p3
used for multiple Objects
. This is not allowed even if you set the flag error_used_name
to False
.
With the flag set to False
is only possible to use the same name for different elements of the problem (e.g. an Object
and an Action
).
How to clear the environment after each loop to avoid having this error:
All that I do is iterate on a dictionary containing planning problems:
I tried disabling the flag using the following:
and the script stopped running.