Checking whether variables have types before accessing them in the PDDL translator.

This commit is contained in:
2016-06-13 16:37:35 +02:00
parent 2b55d156ae
commit da85e5dd9b
2 changed files with 24 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
(define (domain tsp)
(:requirements :negative-preconditions)
(:predicates
(at ?x)
(visited ?x)
(connected ?x ?y))
(:action move
:parameters (?x ?y)
:precondition (and (at ?x) (not (visited ?y)) (connected ?x ?y))
:effect (and (at ?y) (visited ?y) (not (at ?x)))))