Download downloading - Interactive Intelligence group
Transcript
Contents Preface 7 1 Getting Started with GOAL 1.1 A “Hello World” Agent . . . . . 1.2 Creating a Multi-Agent System . 1.3 A Cognitive “Hello World” Agent 1.4 Adding an Event Module . . . . 1.5 Adding an Environment . . . . . 1.6 A Simple Script Printing Agent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 9 10 10 12 13 16 2 Cognitive Agents 2.1 What is an Agent? . . . . . . . . . . 2.2 The Intentional Stance . . . . . . . . 2.3 What is Folk Psychology? . . . . . . 2.3.1 Rational Agents? . . . . . . . 2.3.2 First-Order and Higher-Order 2.4 Notes . . . . . . . . . . . . . . . . . 2.5 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Intentional Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 19 21 22 23 24 25 26 3 Mental States 3.1 Representing Knowledge, Beliefs and 3.1.1 Example: The Blocks World 3.1.2 Mental States . . . . . . . . . 3.2 Inspecting an Agent’s Mental State . 3.2.1 Mental Atoms . . . . . . . . 3.2.2 Mental State Conditions . . . 3.3 Notes . . . . . . . . . . . . . . . . . 3.4 Exercises . . . . . . . . . . . . . . . Goals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 29 30 33 38 38 41 43 44 4 Actions and Change 4.1 Action Specifications . . . . 4.1.1 Preconditions . . . . 4.1.2 Postconditions . . . 4.1.3 Updating an Agent’s 4.2 Built-in Actions . . . . . . . 4.3 Notes . . . . . . . . . . . . 4.4 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 47 50 52 53 55 58 59 5 Agent Programs 5.1 Programming with Mental States . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 On Deciding What to Do Next in the Blocks World . . . . . . . . . . . . . . . . . . 5.3 Action Rules: Deciding Which Action to Perform Next . . . . . . . . . . . . . . . . 61 61 62 64 . . . . . . . . . . . . . . . . . . Goals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .