; (c) 1993,1994 Copyright (c) University of Washington ; Written by Tony Barrett. ; All rights reserved. Use of this software is permitted for non-commercial ; research purposes, and it may be copied only for that use. All copies must ; include this copyright message. This software is made available AS IS, and ; neither the authors nor the University of Washington make any warranty about ; the software or its performance. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; Blocks world domain (others moved to domainNN.pddl) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (define (domain blocks-world-domain) (:requirements :strips :equality :conditional-effects) (:constants Table) (:predicates (on ?x ?y) (clear ?x) (block ?b) ) ;; Define step for placing one block on another. (:action puton :parameters (?X ?Y ?Z) :precondition (and (on ?X ?Z) (clear ?X) (clear ?Y) (not (= ?Y ?Z)) (not (= ?X ?Z)) (not (= ?X ?Y)) (not (= ?X Table))) :effect (and (on ?X ?Y) (not (on ?X ?Z)) (when (not (= ?Z Table)) (clear ?Z)) (when (not (= ?Y Table)) (not (clear ?Y))))))