#| ******************************************************************************* 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 SCR-NODE-SELECT-RULES nil) (setq SCR-GOAL-SELECT-RULES '((SELECT-FIRST-GOAL (lhs (and (current-node ) (not-top-level-node ) (primary-candidate-goal ))) (rhs (select goal ))))) (setq SCR-OP-SELECT-RULES '( ; (DRILL-IF-HOT ; (lhs (and (current-node ) ; (current-goal (has-hole )) ; (candidate-op DRILL-PRESS) ; (known (temperature HOT)))) ; (rhs (select operator DRILL-PRESS))) ; ; (IMMERSION-PAINT-IF-HOT ; (lhs (and (current-node ) ; (current-goal (painted )) ; (candidate-op IMMERSION-PAINTER) ; (known (temperature HOT)))) ; (rhs (select operator IMMERSION-PAINTER))) )) (setq SCR-BINDINGS-SELECT-RULES nil) (setq SCR-NODE-REJECT-RULES '( (CHECK-FOR-IMPOSSIBLE-PAINTING (lhs (and (candidate-node ) (is-top-level-goal (painted )) (known (and (~ (sprayable )) (~ (have-paint-for-immersion )))))) (rhs (reject node ))) (CHECK-FOR-IMPOSSIBLE-PAINTING-WHEN-ALREADY-PAINTED (lhs (and (candidate-node ) (in-goal-exp (painted )) (or (is-top-level-goal (shape CYLINDRICAL)) (is-top-level-goal (surface-condition SMOOTH))) (known (and (~ (sprayable )) (~ (have-paint-for-immersion )))))) (rhs (reject node ))) (CHECK-FOR-IMPOSSIBLE-HOLING (lhs (and (candidate-node ) (is-top-level-goal (has-hole )) (known (and (or (~ (is-drillable )) (~ (have-bit ))) (~ (is-punchable )))))) (rhs (reject node ))) (CHECK-FOR-IMPOSSIBLE-JOINING (lhs (and (candidate-node ) (is-top-level-goal (joined )) (known (~ (can-be-welded ))) (known (forall () (is-bolt ) (and (is-width ) (or (and (or (~ (is-drillable )) (~ (have-bit ))) (~ (is-punchable ))) (and (or (~ (is-drillable )) (~ (have-bit ))) (~ (is-punchable ))))) )))) (rhs (reject node ))) (CHECK-FOR-IMPOSSIBLE-JOINING-AND-POLISHING1 (lhs (and (candidate-node ) (is-top-level-goal (joined )) (known (~ (can-be-welded ))) (or (is-top-level-goal (surface-condition POLISHED)) (is-top-level-goal (surface-condition SMOOTH))) (known (or (~ (is-drillable )) (forall () (is-bolt ) (and (is-width ) (~ (have-bit )))))))) (rhs (reject node ))) (CHECK-FOR-IMPOSSIBLE-JOINING-AND-POLISHING2 (lhs (and (candidate-node ) (is-top-level-goal (joined )) (known (~ (can-be-welded ))) (or (is-top-level-goal (surface-condition POLISHED)) (is-top-level-goal (surface-condition SMOOTH))) (known (or (~ (is-drillable )) (forall () (is-bolt ) (and (is-width ) (~ (have-bit )))))))) (rhs (reject node ))) )) (setq SCR-GOAL-REJECT-RULES '( (DONT-CHANGE-SURFACE-CONDITION-BEFORE-SHAPE (lhs (and (current-node ) (is-top-level-node ) (candidate-goal (shape )) (candidate-goal (surface-condition )))) (rhs (reject goal (surface-condition )))) (DONT-CHANGE-SHAPE-BEFORE-PAINTING (lhs (and (current-node ) (is-top-level-node ) (candidate-goal (shape )) (candidate-goal (painted )))) (rhs (reject goal (painted )))) (PAINT-BEFORE-SMOOTH (lhs (and (current-node ) (is-top-level-node ) (candidate-goal (surface-condition SMOOTH)) (candidate-goal (painted )))) (rhs (reject goal (painted )))) (SMOOTH-BEFORE-HOLE (lhs (and (current-node ) (is-top-level-node ) (candidate-goal (has-hole )) (candidate-goal (surface-condition )))) (rhs (reject goal (surface-condition )))) (DO-JOINS-LAST (lhs (and (current-node ) (is-top-level-node ) (candidate-goal (joined )) (candidate-goal ) (predicate

) (not-equal

joined))) (rhs (reject goal (joined )))) )) (setq SCR-OP-REJECT-RULES '( ; (DONT-ROLL-IF-YOU-WANT-POLISH ; (lhs (and (current-node ) ; (is-top-level-goal (surface-condition POLISHED)) ; (current-goal (shape CYLINDRICAL)) ; (candidate-op ROLL))) ; (rhs (reject operator ROLL))) (DONT-ROLL (lhs (and (current-node ) (candidate-op ROLL))) (rhs (reject operator ROLL))) (DONT-POLISH-TO-UNPOLISH (lhs (and (current-node ) (current-goal (~ (surface-condition POLISHED))) (candidate-op POLISH))) (rhs (reject operator POLISH))) (DONT-MAKE-OBJ1 (lhs (and (current-node ) (current-goal (is-object )) (candidate-op WELD))) (rhs (reject operator WELD))) (DONT-MAKE-OBJ2 (lhs (and (current-node ) (current-goal (is-object )) (candidate-op BOLT))) (rhs (reject operator BOLT))))) (setq SCR-BINDINGS-REJECT-RULES nil) (setq SCR-NODE-PREFERENCE-RULES nil) (setq SCR-GOAL-PREFERENCE-RULES nil) ; '((RTEST ; (lhs (and (current-node ) ; (candidate-goal (shape CYLINDRICAL)) ; (candidate-goal (polished )))) ; (rhs (perfer (shape CYLINDRICAL) (polished )))))) (setq SCR-OP-PREFERENCE-RULES '((PREFER-WELD-TO-BOLT (lhs (and (current-node ) (current-goal (joined )) (candidate-op BOLT) (candidate-op WELD))) (priority 1) (rhs (prefer operator WELD BOLT))))) (setq SCR-BINDINGS-PREFERENCE-RULES nil)