Robot Planning, Execution, and Monitoring in an Uncertain Environment
Proceedings of the Second International Joint Conference on Artificial Intelligence. Pages 338-348.
© 1971 International Joint Conferences on Artificial Intelligence
Abstract
An intelligent robot, operatin g in an external environment that cannot be fully modeled in the rob o t's software, must be able to monitor the success of its execution of a previously generated plan. This paper outlines a unified formalism for describing and relating the various functions of a robot operating in such an environment. After exploring the distinction between the external world and the robot's internal mod el of it, and the distincti on between actions that interact with the world and the rob o t's descriptions of those actions, we formalize the concepts of a plan and of its execution. Current developments at Stanford Research Institute, and the benchmark idea of an "ultimate" rational rob ot, are both analyzed in this framework.
- G. Ernst and A. Newell, GPS : A Case Study in Generality and Problem Solving, ACM Monograph Series (Academic Press, 1969).
- c. C. Green, "The Application of Theorem- Proving to Question-Answering Systems," Ph.D. Dissertation, Stanford University, Electrical Engineering Department (June 1969) .
- L. A. Zadeh, "Fuzzy Sets," Information and Control, pp. 338-353 (June 1965).
- R. C. T. Lee and C. L. Chang, "some Properties of Fuzzy Logic," Department of Health, Educa- tion, and Welfare, Division of Computer Research and -Technology, National Institutes of Health, Bethesda, ~!aryl and (1969) .
- R. Feys, ~lodal Logics, Coll. de Logique Math., Series B, Louvain (1965).
- R. E. Fikes and N. J. Nilsson, "sTRIPS: A New Approach to the Application of Theorem Pro v ing to Problem Solving," presented at the Second International Joint Conference on Artificial Intelligence, London, England, September 1-3, 1971.
- C. C. Green, •~heorem-Proving by Resolution as a Basis for Question-Answering Systems," Machine Intelligence 4, B. Meltzer et al. (Eds.) (American Elsevier, New Yo rk, 1969).
- R. E. Fikes , '}toni tored Execution of Robot Plans Produced by STRIPs," presented at IFIP Congress 71, Ljubljana, Yugoslavia, August 23-28' 1971.
- J. Von Neumann and 0. Morgenstern, Theory of Games and Economic Behavior (John Wiley and Sons, New York, Science Editions, 3rd Ed., paper, 1964).
- P. E. Hart et al., "A Formal Basis for the Heuristic Determination of Minimum Cost P a ths, " IEEE Trans. on Svstems Science and Cvbernetics, Vol. SSC-4, No. 2, pp. 100-107 (July 1968) .
- N. J . Nilsson, Problem-S olv ing Methods in Artificial Intelligence (McGraw-Hill, New York, 1971).
- J . H. ~lunson, "A Cost-Effectiveness Basis for Ro bot Problem Solving and Execution," Arti- ficial Intelligence Group Technical Note 29, Stanford Research Institute, Menlo Park, California (January 1970). Available from the author.
- L. S. Coles, "Talking with a Robot in English," Proc. First International Joint Conf. on Artificial Intelligence, Washington, B.C., May 7-9, 1969, Donald Walker (Ed.) (The MITRE Corporation, Bedford, Massachusetts, 1969). IJCAI
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
ROBOT Pl.Ml\ING, EXECUTION, A~ MONITORING II' A.>; UNCERTAn> ENVIRONMEl'\T
John H. Munson Stanford Research Institute Menl o Park, Californi a, U.S.A.
ABSTRACT
An intelligent robot, operating in an external environment that cannot be fully modeled in the robo t's software, must be able to monitor the suc cess of its execution of a previously generated plan. This paper outlines a unified formalism for describing and relating the various functions of a robot operating in such an environment. After exploring the distinction between the external world and the robot's internal model of it, and the distincti on between actions that interact with the world and the robot's descriptions of those actions, we formalize the concepts of a plan and of its execution. Current developments at Stanford Research Institute, and the benchmark idea of an "ultimate" rational robot, are both analyzed in this framework.
INTRODUCTIO:> AND MOTIVATIO:K
We can describe r obotry as that subfield of Artificial Intelligence (AI) in which the intel ligent system in the computer deals directly with a real, external env ironment. As a part of AI, robo try potentiall y partakes of all the problem areas of AI : We want t o develop r obots capable of problem sol ving, pattern recogni ti on, language comprehension, and s o on. However , interaction with an external environment that cannot be fully modeled in the computer emphasizes a new set of problems largely unique to robot ry. These problems center on the robot 's execution, in an uncertain em·ironment, of previously generated plans.
In any AI problem formulation there is an infor mation structure within the computer that consti tutes a model of the problem domain. Given the present state of the art, the models tend to be reasonably simple. Puzzles and board games have been very popular problem domains for AI because the domains can be fully represented by relatively simple and unambiguous models, freeing the experi menter to concentrate on the problem-solving issues. Other domains, which reflect real-world problems , are typically abstracted and limited to simple models that serve as vehicles for problem-solving studies. An excellent example of this approach is the monkey-and-bananas problem. (1,2) The states of the model are few, and the actions of the opera tors that can affect the model are considered to be unequivocal.
ln such an approach, the test for successful operation of the problem-sol\·ing system is inher ently based on the model itself. If the system finds what it reports t o be a s o lution to a problem (and if the system is logically sound), the experi menter is satisfied .
In robotry, however, a different situation obtains. The system must interact with the real environment, or world , which is represented inter nally by the robot's model. In general. for a number of reasons, this representation will be neither comprehensive nor exact :
- (1} Real-valued quantities cannot be measured , nor represented, with infinite precision:
- (2} Many physical objects and situations do not admit of complete description . (for example, a human, or a complex piece of equipment) ;
- Sensory or perceptual activities, used t o update the model in accordance with the world, are subject to accuracy limitations and also to gross errors ;
- (4} Effector acti~ities that affect the wor l d are subject to inaccuracies (e.g., distance moved) and also to gross failures ;
- The state-of-the-art may not permi t a model large enough or sophisticated enough t o represent fully the pertinent aspects of the world, even ignoring the other diffi culties listed.·
By assumption, the model constitutes the surr: total of knowledge about its environment on the basis of which the robot must make its plans. The acid test of the plans occurs, however, when they are executed by the physical robot acting in the world. This distinction between the internal and external environments introduces new issues of execu tion and monitoring that are characteristic of robotry.
This paper deals, then, with the beg i nnings of a theo ry relating robot planning, executi on . and monitoring in an uncertain environment . We are concerned with forma lizing the robot's uncertainty about world-states and the consequences o f its actions, and its ability t o deal with a planning tree whose branches have measures of probability or uncertainty associated with them.
It is too early t o say what directions the feasible implementations of such theory will take, since the territory is a part of AI that is largely unexplored. Because of the almost universal occur rence of uncertainty in realistic environments, research in robotry is likely to be led ultimately to new formulations incorporating the ideas of probability theory, "fuzzy" sets, (3,4) or modal logic,(5) in contrast to the two-valued deductive l ogic characteristic of current work in problem solving and theorem proving.
· We recognize that this fifth point could apply , and the considerations of this paper be applicable , to cases in which a computer deals with an "external environment" that is not physical--for example, another computer program or human belief structure. For simplicity , however, and in keeping with the initial motivation of this work at SRI, we shall continue to refer to the domain of our inquiry as "robotry.
ROBOT WORLD STATES AND MODEL STATES
As a general framework, we adopt the familiar terminology of state spaces and transiti.ons induced therein by various operators. We define W, the robot's ~space, as the collection of possible s tates of the environment of the robot, W = twi}. At a given point in time, the world is in . some state wi, We associate wi with the experimenter's (presumably omniscient) view of the robot and its surroundings, so that w. includes "all there is to know" abou·t the enviro~ent. Clearly, given the present status of our capabilities in information representation, we cannot reduce W to an explicit
f o rmulation ,
We define ~!, the robot's model space, as the s et ( mi ; o f possible states ~distinguished data structure in the robot's computer , i.e., the model.* By assumption, the model comprises all o f the robot's information about the current s t atus of itself and its surroundings. At a fiven po int in time, the model is in some statP mi.
In keeping with the reasons listed in the intro ducti on , there is no simple relationship between the elements of W and the elements of M , In particular, there is no unique functional mapping in either direction. Present-day models are neces s arily very simple and crude relative to the worlds they represent, so that a given state of the model will represent many states of the world. Conversely , when the world is in a given state, the model may be in any state. Intuitively , we feel that some state o r states of the model are c orrect descriptions of a given world state, whereas o thers are incorrect. Formally, one can postulate a modeling relation R:I\H~1, which maps world states int u the model states that · co rrect ly ( or best) represent them .
In general, the modeling relation R cannot be a function in the mathematical sense, uniquely defined at every point in W, If, for example, the world c onsists of a single doorway, there will be not only states of W that clearly map into mopen and mclosed· but also marginal states for which the "correct " state of M is ambiguous. Further mo re, the marginal region is context-sensitive:
*The states of the robot 's model, denoted by mi herein, are the same as the states denoted by S, si' etc., in the paper describing the STRIPS plan ner.(6) Also, o ur "model " is called the "world model therein, and there are other minor differ ences in notation.
tAlthough the experimenter's "omniscient view" may include knowledge of the robot's model and its prog ram , these are not contained in wi; wi includes only the external, o r "physical" robot and surround
ings.
it differs depending whether we are modeling the ability of the doorway to let the robot pass, to shut out a draft of air, etc.
One approach to this difficulty is to define R as a partial function, defined only where the map ping is unambiguous, but this prohibits the model ing of marginal states. A better alternative is to include both mappings wm- mopen and wm-mclosed · where wm is a marginal state. One might further try to refine the mapping by attaching probability or confidence assignments to both branches of the mapping, but it is questionable whether the idea of probability captures the desired spirit in this situation. Perhaps a more appealing approach is the introduction of "fuzzy sets" and "fuzzy func tions" developed by Zadeh, (3) Chang, (4) and others, in which various mathematical concepts (e.g,, set membership) are broadened to include nonbinary alternatives. It is beyond the scope of this paper t o explore this issue further. We merely point out that this is an unsolved problem that arises at e very turn in the modeling of real environments.
ACTIONS AND OPERATORS
Included in the robot svstem is a set Q = ( Q .} of actions, through which th;robot interacts wit~ its world, causing changes in its environment and / or gathering perceptual information therefrom. We may think of each action as being embodied in an action routine in the robot's software, which can be invoked as desired by the robot's overall executive routine . From our viewpoint (that of the "omni scient experimenter '), the anticipated outcome of the application of Qj when the world is in some state Wi and the model is in some state mi is a change to new states in both the world and the model; thus, the action may be described by a functional relation mapping the world-and-model Cartesian product space into itself .

We distinguish sharply between the robot's ~ctions and its operators, 0 = (oj } . Whereas an action Q . is a routine the robot can execute in order t o i~ter act with the world, the corresponding operator Oj is the description of the expected results of that action that is available within the robot system . We might call the operator the r obot's "model" of the action,
Because the robot's software (except for the action routines) can only deal with the model, and not the world, an operator can only be a relation among states of the model,

We can think of each operator as being embodied in an operator description, a routine (or data for driving an.interpretive routine) that yields the desired functional transformation when applied to the model. We shall use the terms "operator" and operator description" interchangeably, and the s;~bol Oj to refer to both.
Actions and their Possible Outcomes
In developing and describing actions and opera tors for a robot, we tend to think of them accord in>: to their desired outcome: "roll ahead x feet " 0 go to the next room," 11 plan a route," and ~o on.' We must pay heed, however, to the fact that various outcomes are possible and that the experimenter's estimates of the possible outcomes of actions and their likelihoods differ from the estimates made by the robot (i.e., contained in the operators).
An "omniscient" experimenter might report the behavior of a robot like the SRI robot, executing ;.he action "roll ahead~ feet," as follows: Usually, the full roll is completed. Experience shows that, for a given x, the actual distance rolled is described by a-Gaussian distribution with mean 0.98 ~and standard deviation 0.04 x. The robot's position coordinates in the model-will be incremented by X COS 5 and X sin 6, where e is the current angula; position of the robot in the model (not in the world). If, however, there is an obstacle in the robot 's path, it will bump that obstacle, stop, update the model with the new robot position and also with the entrv of a new object, and terminate the action. On. the other hand, we have programmed the robot to check the model before moving, and if it finds a modeled obstacle in the path (whether there in reality or not) it will terminate the action without moving and will report the cause of its failure."
Several points may be made about this description. Although it describes one of the robot's primitive actions , it is already somewhat complex. Even so, it is far from being comprehensive: The experimenter has neglected to describe additional "failure" modes of the action that mav occur in reality, such
as slippage of the robot's ~heels.
Even among the modes he has described, the experimenter cannot predict the exact outcome of a motion, and he has quantified his degree of ignorance among the infinity of possible outcomes with a probabilistic relation Q · containing a (Gaussian) probability density iunction. In other cases, a "fuzzy" or "modal" form of Q . might be deemed to best express the human's ma~ner of esti mation.
In practice, one models the outcome of a com pleted robot motion with a single outcome specifi cation. One would like to dispense with the tedious mechanics of error analysis, but it is a fact that such motions lead to cumulative error that must be dealt with ultimately. This seems to be a basic problem of robotry in a physical environment. The natural solution is to use perceptual feedback on ~orne sort of periodic basis, perhaps governed by accumulated anticipated error," to correct the errors in the robot's dead reckoning.
In the illustrative action description given above, we observe that the final states of the world and the model depend in a significant way on the initial states of both. That is, factoring Qj into its components, we have in which the dependence of qj,w on mi and of Qj,m on "'i cannot in general be ignored.

We further observe that what we have called a single action Qj is in fact a (theo retically infinite) family or schema of actions, generated by the parameter~· the nominal distance the rob0t is to move. We loosely refer to such a p~rameter ized family as a single action, using Q as a shorthand notation for the family Qj ;z ·Jwhere z is the set of parameters defining the familv. Note that the functional dependence of Qj ;z o~ z together wl th wi and mi may be arbitrarily complex. J n an actual robot system, of course, a single act ion routine implements such a family of actions , re ceiving the parameters as arguments when called.
Operators and their Possible Outcomes
We have just seen that there are three possible sources of variation in the final states of M and W resulting from an action Qj : the implicit de pendence of Qj on a parameter, its functional dependence on the initial states , and the possibility that Qj is a probabilistic relation , rather than a Slngle-valued function. Correspondingly , an operator o . has the form of a familv of functional relations irom M to M, generated by. a set of param eters z. It is reasonable to take the parameter set for an operator as being identical to those for the corresponding action.
We distinguish different types of operators according to the number and nature of their speci fied outcomes. A simple operator is single-valued , i.e., a function : Oj(mi)=mf . A compound ·operator 1s a multiple-valued relation over part or all of its domain: 0 j (mi) = ( mfl , mf 2 , . . ., mfn} . A compound operator expresses the robot system's anticipation that, when action Qj is applied with the model in state mi, the resulting state wi 11 be mfl £.!:. mf2 £.!:. · · · £.!:. mfn, without attaching any measures of likelihood to the alternate outcomes. A complex operator is a multiple-valued relation for which likelihood estimates have been attached to the alternate outcomes, using a probabilistic (or fuzzy
or modal) formalism.
Furthermore, the operator functions and relations may be partial functions and relations, defined over proper subsets of M. The domain over which a given operator is defined represents the set of states of the model in which the robot considers that operator to be applicable. We shall subse quently observe the use of such criteria of appli cability in the planning process.·
· The domain-defining formulas are called preconditions in Ref. 6.
Just as there is no simple relationship inherent between states of the world and states of the model, so there is none between the functional form of an action and that of its associated operator. On one hand, operators will tend to be quite crude in rep resenting actions, given the present state of the art, just as models will be crude in representing the world. On the other hand, by way of example, consider an action that might be represented as a simple function (if we do not scrutinize it too closely)--for example, an action "go straight to location L." In the experimenter's view, this action has a fully predictable outcome: it will succeed for states of the world in which there is no obstacle on the straight-line path from the robot's current location Lc to L, and will fail when there is an obstacle. We can consider several possible operator forms, any of which might reason ably be used in practice to represent this action:
- A simple operator, whose outcome merely specifies that the robot is at L (thus, it always predicts success) ;
- A compound operator, specifying that the robot ends up either at Lor at some un known location U;*
- A simple operator, more complicated than (l) above, that places the robot at L or at U according to whether there is an obstacle on the path in the model ;
- A complex operator that estimates the like lihood of the robot's encountering an obstacle. This estimate might be based on both information from the model,and .! prio;.i estimates of the likelihood of surprises. For example, if the model indicates no obstacle, the operator might place the robot at L with 90~ probability and at U with 10~ probability.
Clearly, an important question is that of the ftdelitv of an operator in representing its associ ated action. Ideally, we want the transitions in M generated by the operator to mirror the transitions in W generated by the action. This idea can be expressed f o rmally, as follows. Let us make the simplifying assumption that the action's effects on the world do no t depend on the model--i.e., we consider that Qj,w is equivalent to a function
Then the modeling relation R :w M, together with the relation Qj,w in w, induces a relation in M. To the extent that 0 . agrees with this induced relation--i.e. , to t~e extent that Oj = RQj,wR-1
· The operator description might specify that U is constrlnned to be of the form [::rLc + (l -a) L] , 0,;; ::r s l , if the robot system can handle such infor mation.
throughout M--we may consider that Oj faithfully represents Qj in the context of the modeling rela tion R. Perfect agreement would mean that Oj tells the robot as best it can, confined to the language of M, what Qj will do in w.*
(The foregoing is merely the nucleus of a formal theory of computer representation of actions, and we have skipped over the details. To properly develop such a theory would require the treatment of several topics, including the proper definition of the inverse of R, the establishment of measures and metrics in W, and the extension of all the pertinent concepts to the probabilistic--or fuzzy or modal--case. We suggest that the development of such a theory of representations of the world may be an interesting and rewarding endeavor. To carry it further here would be beyond the scope and aims of this paper).
The Fo rm of an Operator Description
The foregoing discussion of an operator as a mathematical relation possesses full generality. It fails, however, to take into account the practicalities of computer implementation of oper ators. To this end, we redescribe the operator description in more convenient operational terms.
It is convenient to break the operator descrip tion into the following components :
- The name of the operator (and, synonymously, of its associated action) ;
- Its parameters, if any (in which case the "operator" is actually a schema);
- Specification of the domain of applicability of the operator ;
- Specification of the value of the operator at each point (state) in the domain. If the operator has multiple outcomes, this becomes a multiple specification, with appropriate measures of probability (in the case of a complex operator) attached to each branch.
The output specification(s) may have an explicit functional dependence on the domain, and bo th of them may depend explicitly on the parameters.
In the present development of the SRI robot system, the model is an unstructured collection of relatively simple entries--namely, axi oms in the first-order predicate calculus. The specifi cation of the domain of an operator takes the form of a statement in the predicate c a lculus, which we call the "precondition(s) . " The domain of the operator then consists of all states (axiom sets) in the model space in which the precondition state ment is provable as a theorem.
* Ideally, in addition, the effect Q . of the J,m ,_ -1 action on the model would also equal RQj,wR . That is , at execution time the action would up date the model t o keep it correctly describing the world, exactly as predicted by the ideal operator.
An (individual) outcome of an operator is expressed as a set of changes to be made in the model, in the form of an add list and a delete list, describing the addi~n~ and deletions from the model. The reader is referred to Ref. 6 for examples of model entries, precondition expres sions, and add- and delete-expressions.
PLANS AND PLANNERS
A planner is a robot system component that, in its normal mode of operation, takes three inputs :
- An initial state of the model, rna (often the current state of the robot's model);
- A set of operator descriptions ;
- A goal specificat i on, g 0 ·
The goal specification defines or induces a set Mg of model states, the goal ~· in which the specification g 0 is valid. (For example, the goal specification may be a formula in the predicate calculus, and Mg is the set of states--i.e., axiom sets--in which g 0 is deri vable as a theorem.)
The output of a planner is a~· Intuitively , we think of a plan as a sequence of operators (0 1 , ····Oo) with instantiated parameters, causing state transitions in the model space M leading from the initial state rna to a goal state :

However, our actual definition of a plan general izes this intuitive concept in several ways : a plan need not "begin" in the specified initial state; it may not succeed in reaching a goal state; it may consist of a tree or a more complicated directed-graph structure ; it may include operators with multiple outcomes ; and the nodes of a plan are not single states of the model , but subsets of M.
The definition that follows is assumed to be taken in the context of a given model space, M, and a given set of operators , 0.
A plan is a colored , directed graph* that satis fies the following four conditions :
- Each arc of the graph is colored (labeled) with an operator Oj £0, or a parameterized operator schema .
- To each node nk of the graph is attached a formula Fk which in turn specifies a subset Mk of the model space M.
- Only arcs of a single color e~anate from a single node.
- The state SP.t Mk at a node is contained in the domain of the operator Oj coloring the arc(s) emanating from the node; or, equivalently, Fk implies the preconditions of oj.
Condition (1) allows steps of a plan (arcs) t o be fully specified or t o have free variables , wh i ch may reflect either don't-care conditions . or general izations of an instantiated plan. Plan generaliza tion is a fundamental and important process for "learning" in a robot system . We hope t o give t he SRI robot the ability, once it has generated a plan for a specific situation , to generalize the plan to refer to arbitrary objects, locations , etc . and to store the generalized plan in the form of a ne~ meta-action routine and meta-operator with an appropriate operator description.
As an illustration of Conditions (1) and (2), consider a plan for the SRI robo t that includes the fragment

where the operator schema 0 . indicates the robot pushing any object ob from ~ny location x t o anY location ~· Then the predicate-calculus-formul ~ Fk induces a set of states M in M; namely, those states (i.e., sets of axioms~ in which an instance of Fk can be deduced. These are just the states in which the robot and some object are af the same place. Note that the state set Mk is generalized from a single state in two important ways. Firs t , Fk has parameters (~, ~) corresponding to the parameters of OJ, so tha t the plan is generalized and can be appl1ed to any object at any location . Second, the bulk of the state-defining information is treated as don't-care information : the applic ability of the plan does not depend on whether the robot's TV camera is on , etc. Thus , in general, Mk is an (infinite) family of states reflecting the expansion of all the don't-care conditions .
*A directed graph is a collection of nodes (vertices ) , connected by arcs (edges) each of which can onlv be traversed in one direction, defined as "forward·." If a label from a set of labels (here, the robot operators) is attached to each arc, we call the graph colored and call the labels the colors . Pro ceeding in the forward direct ion , we say an arc emanates from its predecessor node and points to its successor node. Node ns in the directed graph is accessible from node nr if there exists a con nected path of forward traversals along arcs leading from nr to ns·
Condition (3) means that at any point (node) in a plan, the plan will unambiguously specify to a robot executive what action to invoke next. If an operator is parameterized--i.e., an operator schema- it is assumed that the parameters will be bound to specific values in the model at the time of execu tion. Multiple arcs emanating from a node signify multiple possible outcomes of the operator that labels the arcs:

These characterize "compound" and "complex" plans, described below.
Condition (4) constitutes a basic check on the semantics of the plan. If the robot's model is in a state m that is a member of a state set Mk' so that we could say the robot is "at" node nk in the plan, this condition guarantees that the operator 0; emanating from node nk is applicable to the state m.
Transiated into execution-time terms, this means the following : If a robot executive is at point nk in the execution of a plan, and if the state of the robot model at that time is a member of Mk' then insofar as the robot can tell, it should be proper to invoke the action routine Qj corresponding to Oj. More precisely, assuming that the model state correctly represents the world state, and assuming that the operator description faithfully represents the action routine, then the conditions for success ful application of the action routine should be met.
The robot's executive can thus monitor the execu tion of a plan by comparing the robot's model after each action against the appropriate state set(s) Mk in the plan. For this reason, the Mk's are called monitor~· and the Fk's, monitor formulas.
Complete and Incomplete Plans
The foregoing definition of a plan has been made quite broad, in anticipation of the day when a robot might maintain large, complicated plans, of which only fragments might be required in specific instan ces at execution time. Our main interest, however, is in the use of a plan (or an appropriate fragment of a larger plan)· to carry the robot from a specific initial state to a specific goal. We say that P is a complete plan from state ma to goal g 0 1f P contains a subgraph P~c~t:-
- (l) P' is a plan;
- All of P' is accessible from a node nr such that ma £ Mr;
· Note that a well-formed subgraph of a plan is itself a plan.
- For at least one node ns of P', Fs implies g 0 ·
A plan P that does not satisfy these conditions is incomplete (in the context of a given initial state and goal) ·
Typically, a planner is provided with an initial state and a goal, and its objective is to create a complete plan. The output of the planner, however, may fail to satisfy either or both of (2) and (3) above. Such an incomplete plan may still have value; in particular, the robot executive may be able to proceed with an incomplete plan that has a node nr that includes the initial state. This topic is resumed in a subsequent section on the robot execu tive.
Simple, Compound, and Complex Plans
We define a simple plan as one containing only simple operators--hence, a graph with only a single arc emanating from each nonterminal node. A compound plan is one including compound operators (and, possibly, simple operators); hence, multiple arcs of a single color may emanate from a node. Finally, a complex plan is one that also includes complex operators , in which estimates of likelihood are attached to the arcs representing multiple out comes.
(In diagramming a plan, it may be more convenient to introduce auxiliary nodes on the compound and complex operators, so that a single arc of a given color emanates from each state node :

The state-transition graph then takes on the appearance of a game graph, in which "chance" or the "unknown" makes a play at the auxiliary nodes.)
In most problem-solving work to date, the task presented to the planner has been to produce a simple, complete plan. The QA3 theorem prover(2, 7) at SRI, when used as a robot planner, reports success only when it has produced a complete plan- i.e., proved the theorem representing the goal. QA3 does have a rudimentary capability to act as a compound planner by using operator-description axioms of the form (Oj applied to mi implies mf £r mf') and to proceed from both resultant states to the goal.
The STRIPS Planner for the SRI Robot
The STRIPS planner(G) is currently the corner stone of our software implementation efforts for the SRI robot. STRIPS works in a model space of the type described herein, using a GPS-like stra tegy.(!) Given operator descriptions, an initial model rna· and a goal statement g 0 , STRIPS uses theorem-proving rnethods(2,7) to find "differences" between g 0 and rna. Selecting an operator that may be "relevant" to reducing such a difference, STRIPS attempts to show (again using theorem-proving methods) that part or all of the difference can be eliminated by the application of the operator. Success in this endeavor allows STRIPS to postulate the preconditions of the operator as a subgoal to be achieved from the initial state.
STRIPS iterates the foregoing process, dealing at any time with a problem composed of a goal (the original goal or a subgoal) together with a model state, and maintaining a "planning tree" of such subproblems. New model states appear in the plan ning tree when STRIPS finds that a preconditions subgoal is realized in a state. STRIPS applies the associated operator to that state, generating a new state which (together with the next-most-recent subgoal established along that branch of the plan ning tree) constitutes a new subproblem. (Space does not permit a fuller description of STRIPS here; the reader is referred to Ref. 6 for a description and examples.)
If STRIPS succeeds in advancing the initial state, by successive application of operators, tn a state satisfying the goal, it has achieved a complete plan. The arcs of the plan are labeled with the operators that were applied. The nodes of the plan, hov.·ever, are not the successive states calculated along the solution path. Rather, associ ated with each node is a monitor formula Fk generated as follows.
Remember that an operator Oj appears in the plan only when its preconditions have been proved from the axiom set representing a particular state. Let sj denote the support of the preconditions of oj- i .e., the conjunction of all the axioms actually required in the proof. Then Sj is included in Fk' the monitor formula for the node from which Oj emanates.
The foregoing is a minimal prescription for Fk' since it merely satisfies Condition (4) in the definition of a plan. An Fk can be made much stronger (more restrictive) by "backing up" axioms from other Sj's downstream in the plan and con joining them to the Fk in question. The developers of STRIPS plan to incorporate such a procedure. It is described in detail in Ref. 8. Basically, every axiom appearing in every Sj is backed up, node by node, toward the beginning of the plan as long as the axiom was not added to the model by the operator (arc) being traversed.
The result of this accumulation of axioms is to create Fk's that guarantee not merely the applic ability of the forthcoming operator, but the applic ability of all subsequent operators and the attain ~ent of the goal, as long as the intervening operators (or actions) make the predicted changes to the model.
In this sense, the augmented Fk's (called kernel~ in Ref. 8) serve as comprehensive tesis for the applicability of a plan, beginning at any node. When a plan is stored away as a meta-operator, the Fk for the initial node (or for each node con sidered as a potential entry po int) can act as its preconditions.
STRIPS currently runs until it produces complete plans (or until it has exhausted all possibilities , or is cut offl. It should not be rlifficult, how ever, to introduce termination criteria en abling STRIPS to produce incomplete plans compatible with various executive structures , such as are dis cussed below.
THE EXECUTIVE
We now consider robot systems in which the top level of the control hierarchy is represented by a system component called the executiye. The executive can call on the planner, as a subroutine ; the executive can also execute a plan by calling on actions (corresponding to operators in the plan) that cause the robot to act in the world.
In practice, the executive may communicate in various ways with an experimenter at a conso le attached to the robot system. For the present, however, we assume simply that the executive has had presented to it a goal statement in a problem language (e.g., the predicate calculus) that it shares with the planner. We shall distinguish several levels of executive capability according to the sophistication with which the executive monitors the behavior of the robot and chooses between planning and action.
A Classification of Executives
We may catalog the various classes of robot systems according to the nature of the plans that the executive can accept from the planner--i.e. , whether complete or incomplete, and whether simple , compound, or complex--and according to whether the executive checks the model for "feedback" after each step of execution. This categorization is shown in the following table.
| Complete plans only | Complete or incomplete plans | |
|---|---|---|
| No feedback (Simple plans only) | A | B |
| Feedback | ||
| Simple | c | D |
| Compound | E | F |
| Complex | G | H |
The letter identifiers are used in the subsequent discussion. We shall refer to a "Type A system," etc., or to a "Type A executive," although the basis for the distinction often lies as much in the planner as in the executive itself. Generally speaking, the systems increase in complexity as their identifiers advance through the alphabet.
The Tvpe ~ executive receives a simple, complete plan and acts on it with no feedback from the actual operation of the robot. More precisely, remember ing that a (simple) plan is a sequence of instanti ated operators interleaved with monitor formulas, we can define a Type A executive as one that ignores the monitor formulas and blindly executes the actions corresponding to the operators in sequence. Assum ing only that each action terminates within a finite amount of time and returns control to the executive , the executive will run through the entire list, implicitly assuming that the result of each action leaves the world ready for the next one. As far as a Type A executive can tell, it has successfully carried out the plan.
It should be noted that we have not prohibited an action routine working under control of a Type A executive from employing feedback in its own internal workings. An action routine may cause the robot to move, may take pictures or utilize other sensory inputs for navigation, etc., and may update the model with any amount of information that it has acquired from the world. Our definition merely prescribes that at the end of an action the Type A executive does not access the updated model to determine whether the conditions for applying the next action are met.
Although Type A executives may seem needlessly crude within the framework of this paper, they occur naturally in robot research programs because they are the easiest to implement. Having created a planner (e.g., QA3) , one merely needs to make the instantiated operator list comprising a plan avail able to a minimal executive routine that will call the associated action routines in order. This allows the experimenter to see the robot in action without developing the more complex intercommunica tions demanded by more sophisticated executives. Early experiments with the SRI robot were carried out in this fashion.
We define a Tvpe ~ executive as one that can accept incomplete plans from the planner but which, like a Type A executive, executes each .accepted plan without feedback. A Type B system is interest ing because, with a very simple executive, it can achieve a crude monitoring ability by relying on the abilities of the planner. The planner can pre sent an incomplete plan that only attempts to achieve a portion of the original goal (for example, a single clause in a formula representing the goal) . Alternatively , the plan might only specify the first operation to be applied to the initial state, or the operations up to and including the first one with a multiple outcome. After blindly executing the actions corresponding to the incomplete plan, the executive returns to the planner, presenting the new current state of the model and the initial goal as a new problem.
Assuming that the planner takes the new problem and solves it "from scratch," it will effectively reestablish the validity of any unused portion of its former planning tree that it has to regenerate. If, on the other hand, unplanned outcomes of the executed actions have affected the model so as to invalidate the previous work, the planner will automatically have a revised problem to work on. In the extreme case, in which the incomplete plans on which the executive acts have only one step each, the planner has in effect taken over the job of checking the monitor sets at each step during actual execution. This mode of operation is conservative, in that the robot does not plan to execute actions that are not properly applicable. It is grossly inefficient, in that the planner will typically be redoing much of its previous computation at every step. (However, the Type B executi~e. like Type A, can be a worthwhile experimental approach, in view of the human labor involved in setting up more complex executives.)
It is apparent that one could remove the major inefficiency of a Type B system by allowing the planner to retain the planning trees from its pre vious attempts and reestablish the validity of unused segments . This would have the same effect as some of the more sophisticated executives to be described below. In general , it may be an arbitrary matter whether a particular calculation or decision is described as being performed in the planner or in the executive, since they communicate directly with each other .
A~£ executive receives a complete , simple plan, and proceeds to execute the plan step by step . After each execution step , however, the executive stops to see whether the monitor formula for the next step is satisfied before proceeding with it. (As suggested above, the executive might actually call upon the deductive machinery of the planner to perform this check.) As long as the checks are satisfied, the execution of the plan proceeds. If the plan is completed, the executive checks for satisfaction of the goal condition and, if it. is satisfied, reports success.
If at any point the monitor check fails, it implies that the execution of an action resulted in an unplanned model state not prescribed by the simple plan. The simplest Type C executive would merely start afresh with the now-current state and the initial goal as a new problem to be solved by the planner, and execute the resultant plan. It is evident, however , that some portion of the planner's previous work may still be valuable. In particular, the successive monitor f ormulas of the former plan serve as inviting target goals for "getting back on the track" of the plan , since it is plausible on heuristic grounds that the new state of the robot may be quite close to satisfying at least one of the monitor formulas. Thus, the planner could be called again and given an initial planning tree whose nodes contain the former ·monitor formulas as "subgoals." If the planner can make a plan from the new state to any monitor formula, the old plan will carry the rest of the way to the goal. A procedure of this sort, for replanning with the kernels (monitor formulas) produced by STRIPS, is described in Ref. 8.
An executive that checks the model after per forming each action is able to deal with alternate outcomes , hence with compound or complex plans. Type Q (and !LP! !l executives are such; after each execution step, a Type G executive refers to the model and the plan . As long as the new model state agrees with the monitor formula at any of the suc cessor nodes of the arc just "executed," execution proceeds. If this check fails, the executive behaves as described under Type C.
Because executives of Types C, E, and G require complete plans l;>y definition , the question of when to plan and when to act is simple for these classes (as we have seen) . Since a complete plan promises to carry the robot all the way to its goal--at least, assuming the right outcomes occur when several are possible--there is little point in further planning as long as the checks at every step show that the next action can be applied along a path to a goal state.
Executives Acting with Incomplete Plans
If, however, we allow incomplete plans that do not extend all the way to the goal,* appropriate to executives of Types D, F, and H, there is a very real quest ion at times whether it is more efficacious to act on an incomplete plan or to continue planning. There is a risk either way. The risk involved in further planning (which will tend to emphasize the extension of the existing incomplete plan) is that, if unanticipated out comes occurring during subsequent execution render the plan invalid, the effort is wasted. The risk in execution is that it may be leading up a blind alley in terms of attainment of the final goal. Further planning might have exposed the futility
of the incomplete plan.
Thus, we are led to a formulation for TypeD, F, and H executives in which planning and execution are competing activities that can be engaged in by the executive. It is assumed that both activities have associated, finite costs. Planning costs real time or computer time (if it were free, the robot would of course plan everything all the time) . In fact, in the present state of the art, the planning of a step may often take considerably longer than its execution.t Execution also takes time, and in addition may make irreversible, undesirable changes in the world and the model. Thus, at a given point in time, the executive needs to make a cost
effective decision between planning and acting.
In the section that follows, we sketch an abstract cost-effectiveness formulation for treat ing robot planning and execution. It appears that this formulation is general enough to describe a broad class of robot executive systems.
A COST-EFFECTIVENESS FORMULATION FOR ROBOT EXECUTIVES
Game theory, which descends from the work of Von Neumann and Morgenstern, (9) may be characterized as the study of rational decision-making under conditions of uncertainty. Given the "philosophical " assumptions that the benefits and costs of an entity's possible actions relative to an environment can be quantified into units of a common measure (utility) , and that the formalism of probability theory is an adequate vehicle for representing uncertainties about the environment and the outcomes of actions , game theory provides a formalism for investigating optimum strategies for the entity (human, organiza tion, or robot) . A major goal of game-theoretic reasoning can be summarized in the concept of cost effectiveness: choosing strategies that yield~ largest expectation value of effectiveness (positive benefits) minus cost, when the two are related to each other through the measure of utility.
If we make the same philosophical assumptions about the operation of a robot in an uncertain (i.e., imperfectly modeled) environment , game theory is the natural vehicle for finding and describing, in abstract terms at least, the optimum or "ulti mate" behavior strategies for a robot executi ve. It must be quickly admitted that, because of our primitive capabilities in quantifying real environ ments, there seems little hope of using the elegant abstractions of gal!le theory as a guide to the con struction of practical executives. The game theoretic viewpoint , however, does provide a land mark and a conceptual viewpoint for comparing specific executive structures with the "ultimate" rational executive.
Let us sketch a cost-effectiveness-based robot executive. As usual , we distinguish between the world and the model, and between actions a~d oper ators. We still view the model as an assemblage of explicit entries, but observe that some entries may express the level of confidence or degree of uncertainty of others. For example , the robot may model not only its location, x, but the error in its location t:.x , which may be incremented each time the robot moves. The presence of objects, the status of doors, etc., may be assigned levels of confidence that are increased through observations or decre~. sed with the passage of time.
*A plan must always begin with a monitor formula satisfied in the current model state, if executing the first step of the plan is to be a realistic current option .
tThis is in marked contrast to most human activities , in which the comparable "planning" is so rapid and so automatic that it is often carried out on the sub conscious level. At most, the human may devote con scious effort to estimating the likelihood of success along various branches of "spontaneously" generated complex plans.
A goal is still a specification in terms of states of the model, but now a specification of the goal's utility is added. The utility of a goal must also include the concept of timeliness; achiev ing a goal in a minute is clearly preferable, in general, to achieving it in an hour. The time dependence of utility may be explicit in some cases, e.g., "This goal is worthless if not achieved by one o'clock." In general. however, it appears appropriate to attach a cost to the passage of time in all phases of the robot's activities. This cost of the robot's (and the experimenter's) time could be calculated automatically by the robot's execu tive in considering the cost-effectiveness of every action.
Among a family of states constituting a goal, the utility may vary from state to state, reflect ing the concept that some states are "better" attainments of the goal than others. The executive can thus judge when a goal is attained well enough to dispense with further effort. A human often does this--for example, when maneuvering a car into a parking place.
The introduction of utility for goals, with time dependence, provides the mechanism for the treatment' of multiple goals, priorities among goals, urgency, etc. The experimenter can then give the robot goal commands equivalent to "Drop what you're doing and perform this task right away," "If you ha,·e nothing else to do, explore the environment," and so on.
In our terminology, the operators for a cost effective executive are complex, specifying multiple outcomes with probability estimates attached to each. In addition, each operator must be supplied 1.-i th an estimate (or E. priori estimates must be generated) of the time that the corresponding acti on is expected to consume. Other, explicit measures of the cost of the action might be pro v ided , if, for example, the action consumed a valuable resource, such as 'electrical power in the case o f a self-contained robot.
Armed with such goal descriptions and operator descriptions. a planner in a robot system performs a search that is governed by utility, not merely probability. One can env i sion a STRIPS-like planner, f or example, maintaining a complex planning tree but terminating any branch of the tree for which the accumu l a ted c osts of the actions exceed the utility of t he ~oal. ~ore generally, the calculation of expecte cl ut1jity for the portion of plan extant at e ach nod e ·in the planning tree becomes the guiding measure f o r sea rch. This calculation must combine the cos tliness of the partial plan thus far gener a t ed (i.e., the expected cost of executing it) with an estimate of the costli~ess of the remainder of the plan needed to make it complete (see the dis cuss ion of the "A*" search algo rithm in Refs. 10 and 11.) Thus, the cost-effecti ve planner must have some mechanism, however crude. for estimating the nea rness of a plan to completeness and thus esti mating i ts pr,o,; ress at any po int.
This leads us to the major conceptual step in the formulation of a cost-effective executive. If the progress of a planner in generating a plan can, however crudely, be estimated and dealt with as a measurable quantity, just as the progress of the robot across the room can, why not treat the plan ner as a kind of action routine that affects, not the external environment, but a quasi-environment whose states are plans? Furthermore, just as an action routine has an operator description that models it, so we can provide the executive with a quasi-operator description for the planner, that estimates (for a given current model state, goal, and existing accumulation of plan) the outcome of a call to the planner. By using this description to estimate the cost-effectiveness of a call to the planner, and by comparing that with the estimated cost-effectiveness attached to any existing complete or incomplete plans, the executive can make a rational decision whether to plan or to act.
We note that the executive may be able to "buy" differing amounts of effort from the planner, specified in various ways, e.g., ·~roceed to a complete plan (with some time limit) ," "Plan until you encounter the first application of a complex operator," "Plan only along branches with cumula tive probability of occurrence greater than 0.2," "cut off all branches of the plan whose anticipated utility falls below a certain value ," and so on. Thus, a planner may be considered as a family of quasi-actions, parameterized by the conditions governing its effort when called, and the planner description should (however crudely) reflect this variability .·
If we consider the formal space in which a cost effective executive operates, it is apparent that it is at least the product of the space of model states and the space of plans. Actions (not includ ing the planner) cause transitions in this space by changing the state of the model and also by trimming down the plan, i.e. , obsoleting that part of the plan that is no longer relevant to the new model state. The planner, on the other hand, generally augments the plan or creates a plan where none exists, while not affect i ng the state of the model.
Formally, therefore, both the actions and the planner can be described at the meta-level by functional relations in a space whose states incor porate the model state and the state of the plan. We call this space the knowledge spaJe of the robot, K. K has states of the form [mi;P;C , where mi is a state of the model, P is a state of the plan, and C is a set of additional control information re quired to specify fully the state of the executive.
* In any cost-effec ti ve robot executive likel y to be implemented in the foreseeable future, the decision when to plan and when t o ac t will probabl y be implemented by an ad ~ routine t hat calculates the utilities of both sides and makes a simple decision, Abstractly, however, given a complicated planner description or descriptions for a family of planners , the problem of when and how to call a planner in preference to ac t ing c oul d become difficult enough to require the services of a . meta-planner in the executive.
The need for the control information C can be illustrated by the following examples. Suppose that the executive calls a planner, and the planner fails to create any new plan. Again, suppose that a planner is called and yields a plan, which is exe cuted but which leaves the model in its initial state (or, perhaps, by some measure, no "closer" to the goal than the initial state was). In either of these cases, both the model and the state of the plan end up where they were originally. Clearly, to avoid endless looping, the executive must have some infor mation about its recent history; we define this as the control information, C.
In practice, the control information is likely to be buried in the executive routines in the form of program control flags, or even embodied in the progress of the program's location counter. For example, a simple executive might have a flow chart that works as follows: "If there is no plan for the current state, call the planner. If there is still no plan, exit. Otherwise, execute the plan. If the goal is achieved, exit with success. Otherwise, return to the top." From the lofty viewpoint of the knowledge-space abstraction, we can discern in the flow of control an extremely simple form of control information. More important, we have a conceptual framework in which to relate this to other executive structures.
SUMMARY: PRESENT STATUS Al'lD PROBLEMS FOR THE FUTURE
In this paper, we have presented a general for mulation that we believe is appropriate to the planning, execution, and monitoring functions of a robot working in an uncertain (i.e., imperfectly modeled) environment. We feel that this formulation is general enough to encompass the ultimate "rational" robot executive, working under the game theoretic doctrine of cost-effectiveness. At the same time, it has provided a specific framework within which to view the development of the STRIPS problem solver at SRI, and we feel that it will continue to serve as a guide and a check on further
efforts.
STRIPS and the formulation herein grew out of a common impetus, namely, the observed inadequacies of problem solvers confined to the first-order predicate calculus for work in a dynamic problem environment. This issue is discussed by the creators of STRIPS in Ref. 6. Our response in both develop ments has been to choose the formalism of states and operators as the basic problem representation, leading to the use (in STRIPS) of GPS-like search methods, while retaining the calculus as a deductive mechanism within states.
It is the author's opinion, however, that any system confined to crisp, black-and-white reasoning (i.e., logical formalisms in which all formulas ultimately map into the two truth values TRUE and FALSE) will turn out to be inadequate for "intelli gent" behavior in realistic environments. Even in the most menial tasks, the human operates in a perennially inexact and potentially uncertain environ ment, in which "probably" and "maybe" and "might" and "sort of" are constant companions. A robot per forming similar tasks must be prepared to handle comparable c6ntingencies, unless it works in an environment fully "sanitized" by the expensive process of engineering away all the uncertainties. This view motivates the several references herein to probability theory and other logics that are not two-valued, and the portrayal of a cost-effectiveness based robot executive (originally developed in Ref. 12) .
Still, we must walk before we can run. The first implementation of STRIPS, which exists at the time of this writing (early 1971), utilizes two-valued logic. In fact, STRIPS is currently confined to producing simple plans, rather than compound ones. Nonetheless, in combining formal deductive methods with a state-space formalism, STRIPS represents a major advance in our problem-solving capability.
In the future, an attempt may be made to incor porate compound operators and probabilistic out comes in STRIPS. It appears that the most immediate effort, though, will be devoted to further under standing the relationship between the monitor formulas and the plan structure, and using this knowledge to control the revision and generalization of plans.
At this writing, the executive to work with STRIPS and operate the SRI robot has not been codeo. We may expect it to be a Type C or D or F executive, in terms of the classification discussed earlier, and to build on the ideas presented in Ref. 8. A major portion of the effort in creating an "execu tive" for the SRI robot actually lies in establishing communication with an experimenter at a computer console for the transmission of state-defining axioms, goals, responses, and miscellaneous system instruc tions, including the use of a limited subset of natural English. (13) A large, corollary effort is involved in programming the action routines for the robot's navigation and perception, and devising their operator descriptions. Many of these action routines call lower-level routines that control the robot vehicle, and the action routines have to have some problem-solving capability in their own right. We are trying to relate the "plans" or flow charts for these action routines to the concepts developed in Ref. 6 and herein.
We have alluded to certain problem areas that have been skirted in the current implementation efforts. One of these is the role of uncertainty. A second is the problem of representing or model ing complicated environments. A third is the extremely complex issue of human use of language and concepts, and their reflection in the formalisms and routines used in the robot system. (For example, our robot should perhaps "go to" an object to push it, and "go to" it to observe it visually, in quite different ways,) Compounded together--because they interact strongly--these three problem areas might be considered to form the hub of the study of intelli gent behavior, which will attract the efforts of AI workers for many years to come.
@inproceedings{ijcai1971p34,
title = {Robot Planning, Execution, and Monitoring in an Uncertain Environment},
author = {Munson, John H.},
booktitle = {Proceedings of the Second International Joint Conference on
Artificial Intelligence, {IJCAI-71}},
publisher = {International Joint Conferences on Artificial Intelligence},
editor = {D.C. Cooper},
pages = {338--348},
year = {1971},
url = {https://ijcai.org/proceedings/1971/34},
}
TY - CPAPER TI - Robot Planning, Execution, and Monitoring in an Uncertain Environment AU - Munson, John H. T2 - Proceedings of the Second International Joint Conference on Artificial Intelligence, IJCAI-71 PB - International Joint Conferences on Artificial Intelligence PY - 1971 SP - 338 EP - 348 UR - https://ijcai.org/proceedings/1971/34 ER -Copied
Machine-readable versions of this paper, for tools and AI agents:
Welcome
Future Conferences
AI Journal Division
IJCAI Proceedings
About IJCAI
IJCAI Awards