ent situations in which the precondition of the HTN
method is possibly-derivable. In all cases Room1 is
substituted with lab and Room2 is substituted with
kitchen. Furthermore, in the first situation D is sub-
stituted with door1 and the precondition is possibly-
derivable with respect to the agents domain model
and the set of open-ended literals {}. In the second
case, D is substituted with door2 and the precondi-
tion is possibly-derivable with respect to the set of
open-ended literals {open(door2)}. In the last case,
D is not instantiated and the precondition is possibly-
derivable with respect to the set of open-ended literals
{connect(lab,D,kitchen),open(D)}. Thus, in
this example the open-ended domain model ACogDM
can tell the robot agent that it can cross door1, or cross
door2 if it can find out that door2 is open, or cross an-
other door D if it finds another door D that connects the
lab and the kitchen and is open. In this way, ACogDM
can enable a planner to reason about possible and rel-
evant extensions of its domain model.
2.3 Planning Algorithm
In this section we present the key conceptualizations
and the algorithm of the proposed planning system.
2.3.1 Preliminaries
If we want agents to acquire additional instances of a
set of open-ended literals, then it should be consid-
ered that there might be dependencies between lit-
erals. For example, for the set of open-ended lit-
erals {mug(X),color(X, red)} one cannot indepen-
dently acquire an instance of mug(X) and an instance
of color(X, red), because one needs to find an in-
stance of X which represents a mug as well as a red
object. Let l
1
,l
2
be literals that are part of a precon-
dition p in disjunctive normal form and var(l) denote
the set of variables of a literal l. l
1
and l
2
are called de-
pendent (denoted as l
1
↔ l
2
) iff l
1
and l
2
are part of the
same conjunctive clause and ((var(l
1
) ∩ var(l
2
) 6=
/
0)
or l
1
and l
2
are identical or (∃
l
3
l
1
↔ l
3
∧ l
3
↔ l
2
)).
Agents (e.g., robots) can usually acquire informa-
tion from a multitude of sources. These sources are
called external knowledge sources. While submitting
questions to external databases or reasoning compo-
nents might be “simply” achieved by calling external
procedures, submitting questions to other sources
(e.g., perception), however, involves additional
planning and execution. For the purpose of enabling
ACogPlan to generate knowledge acquisition plans
we use a particular kind of task, namely a knowledge
acquisition task. A Knowledge acquisition task has
the form det(l,I,C,ks) where l is a literal, I is the set
of all derivable instances of l, C is a set of literals that
are dependent on l, and ks is a knowledge source. In
other words, det(l,I,C, ks) is the task of acquiring an
instance lσ of l from the knowledge source ks such
that lσ /∈ I (i.e., lσ is not already derivable) and for
all c ∈ C an instance of cσ is derivable. For example,
det(open(kitchen door),
/
0,
/
0, percept) is the task
of determining whether the kitchen door is open
by means of perception. Furthermore, det(mug(X),
[mug(bobs mug)],[in room(X,r1), red(X)],hri(bob))
constitutes the task of finding a red mug which is
located in the room r1 and is not Bob’s mug by
means of human robot interaction with Bob. Like for
other tasks, we can define HTN methods that describe
how to perform a knowledge acquisition task. For
example, Figure 2 shows a method for the acquisition
task of determining whether a door is open. Every
method has an expected cost that describes how
expensive it is to perform a task as described by the
method. In this example the cost is “hard-coded”, but
it is also possible to calculate a situation dependent
cost.
method( d et ( op e n ( Door ) ,I , C , per c e pt ) ,
( door ( Door )) ,
% prec o n d i t i on
[ a pp r o ac h ( Door ) , % s ub t a sk s
sense ( open ( D o o r ), perc e p t )] ,
50). % c o s t
Figure 2: Example HTN method for an acquisition task.
Knowledge acquisition tasks enable the planner to
reason about possible knowledge acquisitions since
they describe (1) what knowledge acquisitions are
possible under what conditions, (2) how expensive it
is to acquire information from a specific knowledge
source, and (3) how to perform a knowledge acquisi-
tion task.
It might be possible that the same information
can be acquired from different external knowledge
sources and the expected cost to acquire the same
information can be completely different for each
source. Thus, in order to acquire additional in-
stances for each literal of a set of open-ended liter-
als, a planner needs to decide for each literal from
which knowledge source it should try to acquire
an additional instance. The result of this decision
process is called a knowledge acquisition scheme.
A knowledge acquisition scheme is a set of tu-
ples (l,ks) where l is a literal and ks is an exter-
nal knowledge source. It represents one possible
combination of trying to acquire a non-derivable in-
stance for each open-ended literal by an adequate
knowledge source. For example, the knowledge
acquisition scheme {(on table(bobs mug), percept),
(white coffee(bob),hri(bob))} represents the fact that
CONTINUAL HTN PLANNING AND ACTING IN OPEN-ENDED DOMAINS - Considering Knowledge Acquisition
Opportunities
19