#| ******************************************************************************* PRODIGY Version 2.01 Copyright 1989 by Steven Minton, Craig Knoblock, Dan Kuokka and Jaime Carbonell The PRODIGY System was designed and built by Steven Minton, Craig Knoblock, Dan Kuokka and Jaime Carbonell. Additional contributors include Henrik Nordin, Yolanda Gil, Manuela Veloso, Robert Joseph, Santiago Rementeria, Alicia Perez, Ellen Riloff, Michael Miller, and Dan Kahn. The PRODIGY system is experimental software for research purposes only. This software is made available under the following conditions: 1) PRODIGY will only be used for internal, noncommercial research purposes. 2) The code will not be distributed to other sites without the explicit permission of the designers. PRODIGY is available by request. 3) Any bugs, bug fixes, or extensions will be forwarded to the designers. Send comments or requests to: prodigy@cs.cmu.edu or The PRODIGY PROJECT, School of Computer Science, Carnegie Mellon University, Pittsburgh, PA 15213. *******************************************************************************|# (setq *WORLD-X-SIZE* 5 *WORLD-Y-SIZE* 5 *WORLD-Z-SIZE* 5) (setq *RMG-reach* 2) ; Operators (setq *OPERATORS* '( (PICK-UP (params ( )) ; (vars ( )) (preconds (exists ( ) (object ) (exists () (at ) (exists () (next-to ) (and (at RMG ) (within-height *RMG-reach*) (clear ) (arm-empty) ))))) (effects ( (del (at )) (add (holding ))))) ; Temporarily hacked to use next-to as a generator ; note: plenty of ordering problems (PUT-DOWN (params ( )) ; (vars ( )) (preconds (exists () (vacant-loc ) (exists ( ) (object ) (exists () (next-to ) (and (exists () (location-size ) (equal-p )) (supported-loc ) (supported-loc ) (holding ) (at RMG ) (within-height *RMG-reach*)))))) (effects ( (del (holding )) (add (at ))))) (MOVE (params ( )) ; (vars ( )) (preconds (exists () (is-type location) (and (supported-loc ) (vacant-loc ) (exists () (t-adjacent-locs ) (at RMG ))))) (effects ( (del (at RMG )) (add (at RMG ))))) )) (setq *INFERENCE-RULES* '( (INFER-VACANT-LOC (params ()) ; (vars ( )) (preconds (forall () (is-type location) (forall ( ) (at ) (disjoint )))) (effects ( (add (vacant-loc ))))) ;Dont need this rule because the INFER-SUPPORTED-LOC handles this ;just fine. ;(INFER-SUPPORTED-LOC-BASE ; (params ()) ; (vars ()) ; (preconds ; (forall ()(is-type location) ; (ground-loc ))) ; (effects ( ; (add (supported-loc ))))) (INFER-SUPPORTED-LOC (params ()) ; (vars ( )) (preconds (forall () (supporting-sqlocs ) (occupied-sqloc ))) (effects ( (add (supported-loc ))))) ; This rule is hacked to deal with the 'at-in' problem (might be solved by ; the ability to set up a failed exists generator as a goal) ; (INFER-OCCUPIED-SQLOC (params ( )) ; (vars ( )) (preconds (exists ( ) (object ) (exists () (covers ) (at )))) (effects ( (add (occupied-sqloc ))))) (INFER-CLEAR (params ()) ; (vars ( )) (preconds (exists () (at ) (exists () (above-loc ) (vacant-loc )))) (effects ( (add (clear ))))) (INFER-ARM-EMPTY (params nil) ; (vars ()) (preconds (~ (exists () (holding )))) (effects ( (add (arm-empty))))) ))