6. Hierarchical Task Network (HTN) Planning Principle: complex tasks are decomposed into simpler tasks. The goal is to decompose compound tasks into primitive tasks, which define actions changing the world. alternative methods Travel from Lehigh to NRL Travel(Lehigh,NRL) Fly(Newark, BWI) Travel(BWI, NRL) Travel(Lehigh,Newark Airport) Travel by car Enough money for gasoline Roads are passable Seats available Travel by plane Enough money for air fare available Drive(Lehigh, Newark Park) Bus(Newark Park,airport) Taxi(BWI, NRL)
7.
8.
9.
10.
11.
12. Example A B C HTN Method Head : Domination Preconditions : LocsGeographTogether(P,RP) Divide3Groups(T1,T2,T3) Subtasks: CoverLocations(T1,P) PatrolLocations (T2,P) HarrassLocations(T3,RP) The HTNs are represented in XML P RP