#| ******************************************************************************* 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 *OPERATORS* '( (POLISH (params ( )) (preconds (and (is-object ) (or (clampable POLISHER) (shape RECTANGULAR)) ; (~ (painted )) (last-scheduled ) (later ) (idle POLISHER ))) (effects ( (del (surface-condition <*7-p>)) (add (surface-condition POLISHED)) (del (last-scheduled )) (add (last-scheduled )) (add (scheduled POLISHER ))))) (ROLL (params ( )) (preconds (and (is-object ) (last-scheduled ) (later ) (idle ROLLER ))) (effects ( (del (shape )) (del (temperature )) (del (last-scheduled )) (del (surface-condition <*1-r>)) (del (painted <*2-r>)) (del (has-hole <*3-r> <*4-r>>)) (add (temperature HOT)) (add (shape CYLINDRICAL)) (add (last-scheduled )) (add (scheduled ROLLER ))))) (LATHE (params ( )) (preconds (exists () (is-time ) (and (is-object ) (last-scheduled ) (later ) (idle LATHE ) (shape )))) (effects ( (del (shape )) (del (surface-condition <*3-l>)) (add (surface-condition ROUGH)) (del (painted <*4-l>)) (del (last-scheduled )) (add (shape CYLINDRICAL)) ; <---take this out for failure (add (last-scheduled )) (add (scheduled LATHE ))))) (GRIND (params ( )) (preconds (and (is-object ) (last-scheduled ) (later ) (idle GRINDER ))) (effects ( (del (surface-condition <*1-g>)) (add (surface-condition SMOOTH)) (del (painted <*2-g>)) (del (last-scheduled )) (add (last-scheduled )) (add (scheduled GRINDER ))))) (PUNCH (params ( )) (preconds (and (is-object ) (is-punchable ) (clampable PUNCH) (last-scheduled ) (later ) (idle PUNCH ) )) (effects ( (add (has-hole )) (del (surface-condition <*33-u>)) (add (surface-condition ROUGH)) (del (last-scheduled )) (add (last-scheduled )) (add (scheduled PUNCH ))))) (DRILL-PRESS (params ( )) (preconds (and (is-object ) (is-drillable ) ; franz bug here, so commented out ; (~ (surface-condition polished)) (last-scheduled ) (later ) (idle DRILL-PRESS ) (have-bit ) )) (effects ( (add (has-hole )) (del (last-scheduled )) (add (last-scheduled )) (add (scheduled DRILL-PRESS ))))) (BOLT (params ( )) (preconds (and (is-object ) (is-object ) (can-be-bolted ) (is-bolt ) (is-width ) (has-hole ) (has-hole ) (last-scheduled ) (last-scheduled ) (later ) (later ) (idle BOLTING-MACHINE ) (composite-object ))) ; (shape ) ; (shape ) ; (composite-shape ) (effects ( (del (last-scheduled )) (del (last-scheduled )) (add (last-scheduled )) ; (del (shape )) ; (add (shape )) (add (is-object )) (del (is-object )) (del (is-object )) (add (joined )) (add (scheduled BOLTING-MACHINE ))))) (WELD (params ( )) (preconds (and (is-object ) (is-object ) (can-be-welded ) (last-scheduled ) (last-scheduled ) (later ) (later ) (idle WELDER ) (composite-object ))) ; (shape ) ; (shape ) ; (composite-shape ) (effects ( (del (last-scheduled )) (del (last-scheduled )) (add (last-scheduled )) ; (del (shape )) ; (add (shape )) (del (temperature )) (add (temperature HOT)) (add (is-object )) (del (is-object )) (del (is-object )) (add (joined )) (add (scheduled WELDER ))))) (SPRAY-PAINT (params ( )) (preconds (and (sprayable ) (is-object ) (shape ) (regular-shape ) ; (primed ) (clampable SPRAY-PAINTER) (last-scheduled ) (later ) (idle SPRAY-PAINTER ))) (effects ( (add (painted )) (del (surface-condition <*2-s>)) (del (last-scheduled )) (add (last-scheduled )) (add (scheduled SPRAY-PAINTER ))))) (IMMERSION-PAINT (params ( )) (preconds (and (is-object ) ; (primed ) (have-paint-for-immersion ) (last-scheduled ) (later ) (idle IMMERSION-PAINTER ))) (effects ( (add (painted )) (del (last-scheduled )) (add (last-scheduled )) (add (scheduled IMMERSION-PAINTER ))))) )) (setq *INFERENCE-RULES* '( ; steve - add size restrictions... (IS-CLAMPABLE (params ( )) (preconds (and (has-clamp ) (temperature COLD))) (effects ((add (clampable ))))) (INFER-IDLE ; (params ( )) (params ( )) (preconds (forall ( ) (scheduled ) (not-equal ))) ; (~ (exists () (scheduled ))) (effects ( (add (idle ))))) ))