Issue128

Title translator bug when using same variable twice in a PDDL atom
Priority bug Status resolved
Superseder Nosy List erez, malte
Assigned To malte Keywords
Optional summary

Created on 2010-10-13.19:05:39 by erez, last changed by malte.

Messages
msg556 (view) Author: malte Date: 2010-10-13.19:52:33
Fixed in r5005. I didn't test this thoroughly, but it looks reasonably
straight-forward.
msg555 (view) Author: malte Date: 2010-10-13.19:36:43
Yes, this is definitely legal (with or without ":equality").

I did think about cases like that a lot when doing the grounding, but apparently
I still messed up something.
msg554 (view) Author: erez Date: 2010-10-13.19:05:38
Bug from Blai:

The translator fails when parsing the following very simple
domain and problem pddls:

 (define (domain test)
     (:requirements :equality)
     (:predicates (fluent ?x ?y))
     (:action solve
         :parameters (?x ?y)
         :precondition (fluent ?x ?x)
         :effect (fluent ?x ?y)
     )
 )

 (define (problem p1)
     (:domain test)
     (:objects obj1 obj2)
     (:init (fluent obj1 obj1))
     (:goal (fluent obj1 obj2))
 )

 The guilty line is the precondition where fluent receives ?x twice.
 But, this should be legal since :equality is turned on, right? Indeed,
 FF accepts it. Any suggestion or patch?
History
Date User Action Args
2010-10-13 19:52:33maltesetstatus: chatting -> resolved
assignedto: malte
messages: + msg556
2010-10-13 19:51:22maltesettitle: Translator bug with equality -> translator bug when using same variable twice in a PDDL atom
2010-10-13 19:36:43maltesetmessages: + msg555
2010-10-13 19:05:39erezcreate