Issue171

Title support predicates that have the same name as types
Priority wish Status resolved
Superseder Nosy List erez, gabi, malte
Assigned To malte Keywords
Optional summary

Created on 2010-12-25.23:27:47 by erez, last changed by malte.

Files
File name Uploaded Type Edit Remove
freecell.pddl erez, 2010-12-25.23:28:14 text/plain
target01-f4-c4-s2-010-110-210-310-i4.pddl erez, 2010-12-25.23:28:22 text/plain
Messages
msg3255 (view) Author: malte Date: 2014-07-31.14:16:05
Merged. Thanks for the review, Gabi!
msg3247 (view) Author: malte Date: 2014-07-28.03:44:42
I've added a draft implementation on the issue171 branch on
https://bitbucket.org/malte/downward. Gabi, does it look OK to you? (Still have
to do more tests.)
msg3244 (view) Author: malte Date: 2014-07-27.08:15:52
See also issue446.
msg3238 (view) Author: malte Date: 2014-07-25.08:41:22
See also msg1881 and the testcase that goes with issue413.
msg927 (view) Author: erez Date: 2010-12-26.09:57:29
I will contact the organizers and let them know.
msg926 (view) Author: malte Date: 2010-12-26.00:00:51
The domain is buggy. It uses "suit" both as the name of a type and as the name
of a binary predicate. According to the PDDL spec, types can also be used as
unary predicates, so there's a conflict between "suit" being a predicate of
arities 1 and 2. I guess this should be reported to the conference organizers.
Erez, can you do this? (Feel free to CC me if more explanations should be
necessary -- I think this is discussed in the original PDDL document by Drew
McDermott.)

If you want, we can try to
1) support this even though it's not legal, or
2) improve the error message,
but I don't think this should have a high priority.
msg925 (view) Author: erez Date: 2010-12-25.23:27:47
The translator fails on a freecell problem provided by IPC organizers (attached)

The error message:

Traceback (most recent call last):
  File "downward/FD/src/translate/translate.py", line 590, in <module>
    sas_task = pddl_to_sas(task)
  File "downward/FD/src/translate/translate.py", line 423, in pddl_to_sas
    relaxed_reachable, atoms, actions, axioms = instantiate.explore(task)
  File 
"/IBM_STORAGE/USERS_DATA/batman/downward/FD/src/translate/instantiate.py", line 
67, in explore
    model = build_model.compute_model(prog)
  File 
"/IBM_STORAGE/USERS_DATA/batman/downward/FD/src/translate/build_model.py", line 
325, in compute_model
    rule.fire(next_atom, cond_index, queue.push)
  File "/storage12/batman/python/lib/python2.6/contextlib.py", line 34, in 
__exit__
    self.gen.throw(type, value, traceback)
  File "/IBM_STORAGE/USERS_DATA/batman/downward/FD/src/translate/timers.py", 
line 32, in timing
    yield
  File 
"/IBM_STORAGE/USERS_DATA/batman/downward/FD/src/translate/build_model.py", line 
324, in compute_model
    rule.update_index(next_atom, cond_index)
  File 
"/IBM_STORAGE/USERS_DATA/batman/downward/FD/src/translate/build_model.py", line 
96, in update_index
    for position in self.common_var_positions[cond_index]]
IndexError: tuple index out of range
History
Date User Action Args
2014-07-31 14:16:06maltesetstatus: chatting -> resolved
messages: + msg3255
2014-07-28 03:44:42maltesetmessages: + msg3247
2014-07-27 11:42:00maltesetassignedto: malte
2014-07-27 08:15:52maltesetmessages: + msg3244
2014-07-25 08:41:22maltesetmessages: + msg3238
2010-12-29 18:43:12maltesettitle: Translator Fails with - IndexError: tuple index out of range -> support predicates that have the same name as types
2010-12-26 09:57:30erezsetmessages: + msg927
2010-12-26 00:00:51maltesetpriority: bug -> wish
messages: + msg926
2010-12-25 23:28:22erezsetfiles: + target01-f4-c4-s2-010-110-210-310-i4.pddl
2010-12-25 23:28:14erezsetfiles: + freecell.pddl
2010-12-25 23:27:47erezcreate