75
Tech-Design Artificial Intelligence Beginning, Advanced, Comprehensive Levels Module Guide Edition 2 37678-E0

Beginning, Advanced, Comprehensive Levels

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Beginning, Advanced, Comprehensive Levels

Tech-Design

Artificial Intelligence Beginning, Advanced, Comprehensive Levels

Module Guide

Edition 2 37678-E0

Page 2: Beginning, Advanced, Comprehensive Levels
Page 3: Beginning, Advanced, Comprehensive Levels

HIS

SECOND EDITION

First Printing, April 2006

Copyright 2005, 2006 Lab-Volt Systems, Inc.

All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form by any means, electronic, mechanical, photocopied, recorded, or otherwise, without prior written permission from Lab-Volt Systems, Inc. Information in this document is subject to change without notice and does not represent a commitment on the part of Lab-Volt Systems, Inc. The multimedia Tech-Design software and other materials described in this document are furnished under a license agreement or a nondisclosure agreement. The software may be used or copied only in accordance with the terms of the agreement.

ISBN 0-86657-878-1 ISBN 978-0-86657-878-3

Lab-Volt® and Tech-Design® are registered trademarks of Lab-Volt Systems, Inc. Windows™ and Works™ are trademarks of Microsoft Corp. IBM® is a registered trademark of International Business Machines Corporation. Family Game Pack Entertainment Pack for Windows 95 is a registered trademark of New World Computing, Inc. Cye™ is a registered trademark of Educational Robot Co. (ERC). All other trademarks belong to their respective owners.

Page 4: Beginning, Advanced, Comprehensive Levels

Lab-Volt License Agreement By using the software in this package, you are agreeing to become bound by the terms of this License Agreement, Limited Warranty, and Disclaimer. This License Agreement constitutes the complete agreement between you and Lab-Volt. If you do not agree to the terms of this agreement, do not use the software. Promptly return the software and all other materials that are part of Lab-Volt's multimedia Career & Technical Education product within ten days to Lab-Volt for a full refund or credit. 1. License Grant. In consideration of payment of the license fee, which is part of the price you paid for this Lab-Volt product, Lab-Volt, as Licensor, grants to you, the Licensee, a nonexclusive, nontransferable license to use this copy of the software with the corresponding curriculum resources. Lab-Volt reserves all rights not expressly granted to the Licensee. 2. Ownership. As the Licensee, you own the physical media on which the software is originally or subsequently recorded or fixed, but Lab-Volt retains title to and ownership of the software programs recorded on the original compact disc and any subsequent copies of the software, regardless of the form or media in or on which the original and other copies may exist. This license is not a sale of the original software program of Lab-Volt's software or any portion or copy of it. 3. Copy Restrictions. The software and the accompanying materials are copyrighted and contain proprietary information and trade secrets of Lab-Volt. Unauthorized copying of the software even if modified, merged, or included with other software or with written materials is expressly forbidden. You may be held legally responsible for any infringement of Lab-Volt's intellectual property rights that is caused or encouraged by your failure to abide by the terms of this agreement. You may make copies of the software solely for backup purposes provided the copyright notice is reproduced in its entirety on the backup copy. 4. Permitted Uses. This software and all accompanying documentation is licensed to you, the Licensee, and may not be transferred to any third party for any length of time without the prior written consent of Lab-Volt. You may not modify, adapt, translate, reverse engineer, decompile, disassemble, or create derivative works based on the Lab-Volt product without the prior written permission of Lab-Volt. Written materials provided to you may not be modified, adapted, translated, or used to create derivative works without the prior written consent of Lab-Volt. 5. Termination. This agreement is effective until terminated. It will terminate automatically without notice from Lab-Volt if you fail to comply with any provisions contained herein. Upon termination you shall destroy the written materials, Lab-Volt's software, and all copies of them, in part or in whole, including modified copies, if any. 6. Registration. Lab-Volt may from time to time update the software. Updates can be made available to you only if a properly signed registration card is filed with Lab-Volt or an authorized registration card recipient.

7. Miscellaneous. This agreement is governed by the laws of the State of New Jersey. Limited Warranty and Disclaimer This software has been designed to assure correct operation when used in the manner and within the limits described in the Tech-Lab® Multimedia Installation & User’s Guide. As a highly advanced software product, it is quite complex; thus, it is possible that if it is used in hardware configurations with characteristics other than those specified in Tech-Lab® Multimedia Installation & User’s Guide or in environments with non-specified, unusual, or extensive other software products, problems may be encountered by a user. In such cases, Lab-Volt will make reasonable efforts to assist the user to properly operate the software but without guaranteeing its proper performance in any hardware or software environment other than as described in the Tech-Lab® Multimedia Installation & User’s Guide. This software is warranted to conform to the descriptions of its functions and performance as outlined in the courseware documentation. Upon proper notification and within a period of one year from the date of installation and/or customer acceptance, Lab-Volt, at its sole and exclusive option, will remedy any nonconformity or replace any defective compact disc free of charge. Any substantial revisions of this product, made for purposes of correcting software deficiencies within the warranty period, will be made available, also on a licensed basis, to registered owners free of charge. Warranty support for this product is limited, in all cases, to software errors. Errors caused by hardware malfunctions or the use of non-specified hardware or other software are not covered. LICENSOR MAKES NO OTHER WARRANTIES OF ANY KIND CONCERNING THIS PRODUCT, INCLUDING WARRANTIES OR MERCHANTABILITY OR OF FITNESS FOR A PARTICULAR PURPOSE. LICENSOR DISCLAIMS ALL OBLIGATIONS AND LIABILITIES ON THE PART OF LICENSOR FOR DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR IN CONNECTION WITH THE USE OF THE SOFTWARE PRODUCT LICENSED UNDER THIS AGREEMENT. Questions concerning this agreement and warranty and all requests for product repairs should be directed to Lab-Volt field representative in your area. LAB-VOLT SYSTEMS, INC. P.O. Box 686 Farmingdale, NJ 07727 Attention: Program Development Phone: (732) 938-2000 or (800) LAB-VOLT Fax: (732) 774-8573 Technical Support: (800) 522-4436 Technical Support E-Mail: [email protected]

Page 5: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Table of Contents

Module Guide i

Introduction ................................................................................................................... 1

Directions....................................................................................................................... 3

Artificial Intelligence – Beginning Level...................................................................... 3 Lesson 2, How to Play Hoyle Board Games......................................................... 3 Lesson 3, The Map & Zap Environment ............................................................... 4 Lesson 4, Creating Hot Points .............................................................................. 6 Lesson 5, Creating a Visual Expert System ......................................................... 9 Lesson 5, Line Path Activity ............................................................................... 14 Lesson 6, Cartesian & Polar Coordinates Activity .............................................. 16 Lesson 7, Remote Vision Activity ....................................................................... 17

Artificial Intelligence – Advanced Level.................................................................... 19 Lesson 2, Playing Hoyle Board Games .............................................................. 19 Lesson 3, Reviewing The Map & Zap Environment............................................ 20 Lesson 4, Making a Floor Plan ........................................................................... 24 Lesson 5, Creating an Expert System ................................................................ 27 Lesson 5, Programming the Robot ..................................................................... 29 Lesson 6, Creating Your Own Expert System .................................................... 33 Lesson 6, Creating a Timing Program ................................................................ 38 Lesson 7, Manufacturing Applications ................................................................ 39 Lesson 8, Remote Vision & Advanced Mapping................................................. 40

Artificial Intelligence – Comprehensive Level........................................................... 41 Lesson 2, Playing Hoyle Board Games .............................................................. 41 Lesson 3, The Map & Zap Environment ............................................................. 42 Lesson 4, Creating Hot Points ............................................................................ 44 Lesson 5, Creating a Visual Expert System ....................................................... 47 Lesson 5, Line Path Activity ............................................................................... 52 Lesson 6, Cartesian & Polar Coordinates Activity .............................................. 54 Lesson 7, Making a Floor Plan ........................................................................... 55 Lesson 8, Creating Zap Programs...................................................................... 58 Lesson 8, Creating Your Own Expert System .................................................... 62 Lesson 9, Manufacturing Applications ................................................................ 67 Lesson 10, Remote Vision & Advanced Mapping............................................... 68

Page 6: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Table of Contents

2 Module Guide

Page 7: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Introduction

Module Guide 1

INTRODUCTION This Module Guide contains the directions that you will use when you are completing lesson activities. The multimedia curriculum will direct you to this guide and a specific activity. The directions are titled and are organized by Lesson. The table of contents will guide you to the appropriate page.

Page 8: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Introduction

2 Module Guide

Page 9: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 3

DIRECTIONS Artificial Intelligence – Beginning Level

Lesson 2, How to Play Hoyle Board Games 1. Click on Play Holye Board Games. If this is your first time playing Hoyle Board

Games you will need to have your instructor add your/your partner's name to the Sign In sheet. If your name is already on the player list, just click on your/your partner's name and click on OK. (If a window appears asking you to choose characters, select Done).

2. On the main menu of Hoyle Board Games there are many different games pieces to

choose from. Click on the checkers icon. 3. A Getting Started window appears. Click on the Play button. This will bring up the

checker board and you are ready to play. 4. When you have completed playing the game, exit the Hoyle Board Game by

selecting File and then Exit Board Games. A window pops up asking you "Are you sure you want to quit?" Click Yes.

Go to the next section in the presentation.

Page 10: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

4 Module Guide

Lesson 3, The Map & Zap Environment Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Locate the Drag Robot icon in the upper left corner in the Robot Tools toolbar. This

icon must be selected to move Cye on the screen.

4. You will see a bird’s eye view of Cye and its surroundings on the screen. To

navigate Cye, click, hold, and drag the robot icon. When you release the mouse button, Cye will stop. Both the real Cye on the floor and the robot icon on the screen will move.

5. Click on an area on the map to observe Cye move toward the selected point. You

will notice that a white wake forms behind the robot icon on the screen. When Cye navigates through an area and learns that the space is not occupied, the map on the screen is painted white. When the robot encounters an obstacle, the corresponding space on the screen is painted black. Gray areas on the screen represent spaces that are unknown to Cye.

6. You will notice a yellow halo surrounding the robot icon. This represents Cye's

uncertainty of the area. The farther Cye travels from Home Base, the larger the halo becomes.

Page 11: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 5

7. Begin to navigate Cye around the room by dragging and driving the robot icon. Find the Speed Slide and change the rate the robot moves. Take notice of the map changing from gray (unknown) to white (free area) and to black (obstacle).

8. Once Cye has traveled far enough from the Home Base, and the uncertainty halo

enlarges around the robot icon, it needs help in navigating around the room. You will now construct Check Points for Cye to orient itself.

9. Navigate Cye up to a wall and select the Check Point icon located on the Map Tools

toolbar.

10. The Create Check Point window appears. Enter an appropriate Check Point Name

which best describes that particular point. Then select the flooring style. If the wall has a corner, it will aid in a more precise orientation of the robot, however, it is not necessary. Select OK. A Measuring Carpet Density dialog box may appear, select OK.

11. Now that the Check Point has been created, you can click on it and observe Cye

driving to it. 12. Click on the Home Base icon on the map to send Cye home. Once Cye has found

the Home Base, have it return to the Check Point. 13. When you are finished, send Cye back home. Exit the software and go to the next section in the presentation.

Page 12: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

6 Module Guide

Lesson 4, Creating Hot Points Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Select the Drag Robot icon in the upper left corner in the Robot Tools toolbar.

4. Navigate Cye around the room by dragging and driving the robot icon.

Page 13: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 7

5. You will now create destinations by selecting the Hot Point icon from the Map Tools toolbar. By creating Hot Points, you can mark additional positions, stations, or areas of a room, without the assistance of a wall. After selecting the Hot Point icon, an “X” will appear with the cursor. You can then drag the “X” to mark any area of the map you want to make a destination for Cye to travel.

6. The Edit Hot Point Properties dialog box appears once the “X” has been placed on

the map. Enter a name in the Hot Point Name box for the destination, i.e., entrance of room. Then select the Floor Type. Do not select the Number of Claps - you will do that later. Click on OK.

7. You will now see a green “X” and its label on the map. Click on the Drag Robot icon

then click on the Hot Point you created and you will see Cye go to the point and stop. If you click on the Home Base, Cye will go home.

8. You can create a Check Point, like you did in the previous lesson, and Cye can use

the Hot Point, the Check Point, and the Home Base as destinations to travel to. Cye will automatically calculate the best path from its current location to the next selected location. If there are any Check Points between selected locations, Cye will use those to check his position.

9. Now you will create another Hot Point that will use the Sound Response sensor.

Select the Hot Point icon and drag the “X” to mark an area of the map you want to make a destination. In the Edit Hot Point Properties dialog box, enter a name for the Hot Point, i.e., rear exit, 3 claps. The Number of Claps option is a Sound Response sensor which will associate that point with a specific number of claps. You can clap once for Cye’s attention, then it will wait for 2 to 5 claps for an assigned point then calculate the best path the that particular Hot Point. Select the number of claps. Select the Floor Type and then click on OK.

Page 14: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

8 Module Guide

10. Clap your hands once to get Cye’s attention. Then clap your hands the number of claps you selected for the Hot Point.

11. If you want to move a Hot Point, click on the Relocate\Resize Objects button on the

Map Tools toolbar. Place the tip of the arrow on the Hot Point and click on it to select it. The Hand arrow turns into a target pointer. Drag the target pointer on the Hot Point icon to its new location. Release the mouse. Move the target pointer off the Hot Point icon and it will return to the Hand arrow. Click the mouse to unselect the Hot Point.

12. When you are finished, send Cye home. 13. Save your program by selecting File and then Save As. Make sure you are in the

Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON #’.

14. Exit the software and go to the next section in the presentation.

Page 15: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 9

Lesson 5, Creating a Visual Expert System 1. Click on File and then New. Click on Process, and then click on Topic. The Enter

Topic window appears. You will create an expert system on transportation, so type "Travel" and press Enter (or click on OK).

2. Look at the Topic box. The word appears exactly as you type it. If you notice a

mistake, call up the Enter Topic window again (by clicking on Process and then Topic) and correct the error.

3. Now you need to enter your possible outcomes. Again click on Process, then click

on Outcomes. The Outcomes window appears. Since you want to keep this expert system simple, you will enter only four possible outcomes. In a more complex system, there could be many possible outcomes. To add the first possible outcome, type "Jet Plane" and either press Enter or click on Add.

4. Type "Diesel Bus" and press Enter or click on Add. 5. Type "Sailboat" and press Enter or click on Add. 6. Type "Passenger Train" and press Enter or click on Add. 7. If you made a mistake in typing and didn't notice it until after you pressed Enter or

clicked on Add, click on the outcome so that it is highlighted, and then click on Delete. Type in the outcome (make sure you spell it right this time), and press Enter or click on Add.

8. When you are finished entering your four possible outcomes, click on OK. You will

see exactly what you typed in the Outcomes box. (If, at this point, you notice a mistake, call up the enter Outcomes window again and fix it by following the step above. However, you must have the four outcomes in the sequence listed above since Directions windows steps that follow are based upon that order.)

Now you are ready to enter your questions. The questions are given to you in this activity, but when you create your own expert system in the next section, you will have to create your own questions. For now, you will enter eight given questions, two about each vehicle listed in the Possible Outcomes window. Remember, this is a very simple system. More complicated expert systems could have hundreds or even thousands of questions to help a user pinpoint the solution to a problem. 9. Click on Process and then Questions. The Questions window appears. Type "Do

you leave dry ground?" and press Enter or click on Add. Notice that this questions was created with a jet plane in mind.

Page 16: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

10 Module Guide

10. Type "Do you ever wear a seat belt?" and press Enter or click on Add. 11. Type "Do you travel on rubber wheels?" and press Enter or click on Add. 12. Type "Do you travel on roads?" and press Enter or click on Add. 13. Type "Does the wind provide motive power?" and press Enter or click on Add.

Notice that this question was created with a sailboat in mind. 14. Type "Does the vehicle normally move on wheels?" and press Enter or click on Add. 15. Type "Does the vehicle move on steel wheels?" and press Enter or click on Add.

Notice that this question was created with a passenger train in mind. 16. Type "Does someone steer the vehicle?" and press Enter or click on Add. 17. Check your spelling and correct any mistakes by using the Delete button and then

retyping the question. However, you must have the eight questions in the sequence listed above since the remaining Directions window steps are based upon that order. When you have finished entering the eight questions, click on OK.

All of the questions now appear in the Questions box, but they are not active. To make them active, you need to add the knowledge of the knowledge engineer, you. How? By answering the questions! 18. To answer the questions, click on Process, then click on Answers. The Answers

window appears. The first line shows your topic, which is Travel. The second line shows your first possible outcome, Jet Plane. The third line shows the first question, Do you leave dry ground? A jet plane can leave the ground, so click on Yes.

19. The enter Answers window will stay up as long as there are questions for you to

answer. The first line, Travel, will remain the same throughout. The second line, Jet Plane, will remain the same until you have answered all eight questions with a jet plane in mind. The third line now shows the second question, Do you ever wear a seat belt? A jet plane does indeed have seat belts, so click on Yes.

20. The third question, Do you travel on rubber wheels?, now appears. A jet plane does,

if on the ground, so click on Maybe. 21. The fourth question, Do your travel on roads? Now appear. A jet plane does not, so

enter No. 22. The fifth question, Does the wind provide motive power?, now appears. Jet engines

power the airplane, so click on No.

Page 17: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 11

23. The sixth question, Does the vehicle normally move on wheels?, now appears. Jet planes have wheels, but they are not normally used in flight, so click No.

24. The seventh question, Does the vehicle move on steel wheels?, now appears.

Trains not planes have steel wheels, so click on No. 25. The eighth question, Does someone steer the vehicle?, now appears. A jet plane is

controlled by a pilot, so click on Yes. 26. Notice now that the second line no longer displays Jet Plane but Diesel Bus. Now

you must answer the eight questions with a diesel bus in mind. A diesel bus does not fly or float, so click on No for the first question.

27. Diesel buses sometimes have seat belts, so click on Maybe in response to the

second question. 28. Diesel buses have rubber wheels, so click on Yes in response to the third question. 29. You travel on roads in a diesel bus, so click on Yes in answer to the fourth question. 30. Wind does not drive a diesel bus, so click on No for the fifth question. 31. Buses roll on wheels, so click on Yes. 32. Trains, not buses, have steel wheels, so click on No. 33. The bus driver is in complete command of a bus, so click on Yes. 34. Notice how the second line no longer displays Diesel Bus but Sailboat? Time to

answer the eight questions with reference to a sailboat. Sailboats do not run well on dry ground, so click on Yes.

35. There are normally no seat belts in sailboats, so click on No. 36. The second question, Do you travel on rubber wheels? , was created with a diesel

bus in mind, so click on No. 37. A sailboat could be hauled on a trailer, but that isn't the normal way a boat is used,

so click on No in response to the fourth question. 38. A sailboat definitely needs wind to move, so click on Yes. 39. A sailboat is not a wheeled vehicle, so click on No. 40. Sailboats are not trains, so click on No.

Page 18: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

12 Module Guide

41. Sailboats do indeed have a captain or pilot who steers the boat, so click on Yes. 42. Notice now that the second line no longer displays Sailboat but Passenger Train.

You will now answer the eight questions with a passenger train in mind. A train does not float or fly, so click on No.

43. Passenger trains do not have seat belts, so click on No. 44. Passenger trains do not have rubber wheels, so click on No. 45. Passenger trains need tracks, so click on No. 46. Passenger trains are pulled by engines, so click on No. 47. Passenger trains are wheeled vehicles, so click on Yes. 48. Trains use steel wheels on steel rails, so click on Yes. 49. Trains follow the track, so click on No. You have now answered all of the questions with every possible outcome in mind. The Answers window disappeared, and you can now see that the question in the Questions window are active (they are black instead of gray). You may scroll down to see all the questions. 50. Now is the time for you to save the data that makes up your expert system. Click on

File and then Save As. 51. In the file name box, type "TRAVEL.VXP" as the name of your file. Then click on

Save.

Page 19: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 13

52. This expert system is now ready to be used. You can try it out now. Pretend you are an alien who has just landed on Earth. You land in an ocean-side city and come across a vehicle, but you don't know what kind it is. You see the vehicle receive passengers, then let out a loud roar as it accelerates down a road. You jump back into your spaceship. To identify what kind of vehicle you just saw, you go to the expert system onboard your ship's computer. Based on the scenario just presented, answer the questions in the Visual Expert.

53. Remember, to answer the questions, click on them until the answer you want

appears. Was diesel bus your result? You probably guessed that the vehicle was a diesel bus just from the description. That's because your human brain works so efficiently, pulling information into the conscious mind when it is called for. But an alien who never saw or heard a bus before might have need of the expert system you just created. 54. When you are finished, select File and then Exit. Go to the next section in the

presentation.

Page 20: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

14 Module Guide

Lesson 5, Line Path Activity Cye should be at Home Base. If it is not, see your instructor before starting the activity.

1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. You are now going to layout on the screen the precise route that you want Cye to

take by using the Line Path tool. The Line Path is a connect-the-dots path Cye can follow.

4. Select the Line Path tool on the Map Tools toolbar. Click once with the mouse at the

location of the start of the new line path. Move your mouse to the location of the next elbow of the path. Click once to set the point. Repeat this as many times as needed. When you reach the end of the line path, double-click. A window appears asking you to name your Line Path.

5. Enter a name for your Line Path. Click on OK. 6. To return to robot navigation mode, click on the Drag Robot button on the Robot

Tools toolbar. 7. If Cye gets lost, pick up Cye and place it on the charger. Click on the end of the Line

Path you just created and Cye will move the entire length of the path.

Page 21: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 15

8. Try adding a Line Path to your map that you created in the previous Lesson. Open the Map & Zap file you saved in Lesson 4 by selecting File and then Open. You will be asked to save the changes you just made, select No. When you are finished adding a Line Path to your Lesson 4 map, save your work by selecting File and then Save As. Make sure you are in the Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON #’.

Send Cye home and exit the software. Go to the next section in the presentation.

Page 22: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

16 Module Guide

Lesson 6, Cartesian & Polar Coordinates Activity Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Locate the robot’s Home Base origin point. The intersection of the red crosshair’s

indicates point 0,0. 4. Click on View and then select Coordinate Movement. The Coordinate Movement

dialog box appears. 5. You can manipulate the robot by entering distances in the X and Y boxes in the

Cartesian Coordinates box, for example, X: -4, 0 Y: -8,0. Click the Go To button after you enter the distances.

6. Move Cye to several other locations using the Cartesian Coordinates. 7. Now click in the box next to Relative Coordinates. The red crosshairs moved to the

intersection on top of the robot’s current location. 8. Enter distances in the X and Y boxes in the Cartesian Coordinates box with the

Relative Coordinates box checked. Move Cye to a position that is free of obstacles. Click on the Go To button.

9. Now manipulate the robot by inputting the desired angle and the desired distance in

the Polar Coordinates box. Click on the Rotate To and Move Distance buttons. 10. Move Cye around the room using all of the coordinate systems. Continue to map the

entire room parameter. Turn on the Bread Crumb Trail by first clicking on View and then on Map Objects and finally select Bread Crumb Trail. A ‘checkmark’ now appears next to Bread Crumb Trail. The Bread Crumb Trail will create a colored line to display the robot’s traveled path. The line will display arrows for direction and change color on occasion to distinguish tight paths. Drag the robot icon to see the trail that Cye travels.

11. When you are finished, turn the Bread Crumb Trail off by clicking on View and then

on Map Objects and finally select Bread Crumb Trail. The ‘checkmark’ is removed. When you are finished, send Cye home, exit the software (do not save changes) and go to the next section in the presentation.

Page 23: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 17

Lesson 7, Remote Vision Activity Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Make sure the camera is plugged in and installed. 3. Click on Load Old. Open the map you created and saved from Lesson # 5. 4. Click on the Live Video button on the Robot Tools toolbox. The Live display window

appears. You’ll notice a Snapshot button in the upper right corner and the Record Video button in the lower right corner of the window.

5. To control the image parameters, click on View and select Settings. Click on the

Camera tab in the Settings dialog box. You can control the image parameters, such as the image size, frame rate, brightness, contrast, etc. from this dialog box. Click on Cancel.

6. Click in the Live display window and drive the robot by clicking and holding the

mouse to drag the robot around. Clicking in the top half of the window moves the robot forward. Clicking in the bottom half of the window moves the robot backwards. Clicking in the left half of the window turns the robot to the left, and clicking in the right half turns the robot to the right.

Page 24: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

18 Module Guide

7. Using your map, click on several Check Points and Hot Points to have Cye navigate around the parameters of the area and watch the video of what the robot is observing.

8. To take a snap shot from the Live display window, click on the Snapshot button in

the upper right corner of the window. A window will appear with the stored image. To record video click on the Record Video button in the lower right corner of the window. Click on the button again to stop recording. You will be asked where you want to save the movie. Save your movie and snap shots.

9. If the robot icon does not appear on the area of the screen you would like, select the

Center Robot button on the Map Tools toolbar to move the view of robot to the middle of the screen.

When you are finished, send Cye home and exit the software. Go to the next section in the presentation.

Page 25: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 19

Artificial Intelligence – Advanced Level

Lesson 2, Playing Hoyle Board Games 1. Click on Play Holye Board Games. If this is your first time playing Hoyle Board

Games you will need to have your instructor add your/your partner's name to the Sign In sheet. If your name is already on the player list just click on your/your partner's name and click on OK. (If a window appears asking you to choose characters, select Done).

2. On the main menu of Hoyle Board Games there are many different games pieces to

choose from, select a game to play. 3. A Getting Started window appears. If you do not know how to play the game you

selected, click on Rules. Read the rules and then play the game. Otherwise, click on the Play button.

4. When you have completed playing the game, exit the Hoyle Board Game by

selecting File and then Exit Board Games. A window pops up asking you "are you sure you want to quit?" Click Yes.

5. Go to the next section in the presentation.

Page 26: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

20 Module Guide

Lesson 3, Reviewing The Map & Zap Environment Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Locate the Drag Robot icon in the upper left corner in the Robot Tools toolbar. This

icon must be selected to move Cye on the screen.

4. You will see a bird’s eye view of Cye and its surroundings on the screen. To

navigate Cye, click, hold, and drag the robot icon. When you release the mouse, button Cye will stop. Both the real Cye on the floor and the robot icon on the screen will move.

5. Click on an area on the map to observe Cye move toward the selected point. You

will notice that a white wake forms behind the robot icon on the screen. When Cye navigates through an area and learns that the space is not occupied, the map on the screen is painted white. When the robot encounters an obstacle, the corresponding space on the screen is painted black. Gray areas on the screen represent spaces that are unknown to Cye.

Page 27: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 21

6. You will notice a yellow halo surrounding the robot icon. This represents Cyes uncertainty of the area. The further Cye travels from Home Base; the halo enlarges around the robot icon on the screen.

7. Begin to navigate Cye a round the room by dragging and driving the robot icon. Find

the Speed Slide and change the rate the robot moves. Take notice to the map changing from gray (unknown) to white (free area) and to black (obstacle).

8. Once Cye has traveled for enough from the Home Base, and the uncertainty halo

enlarges around the robot icon, it needs help in navigating around the room. You will now construct Check Points for Cye to orient itself.

9. Navigate Cye up to a wall and select the Check Point icon located on the Map Tools

toolbar. The Create Check Point window appears. Enter an appropriate Check Point Name which bests describes that particular point. Then select the flooring style. If the wall has a corner, it will aid in a more precise orientation of the robot, however, it is not necessary. Select OK.

10. Now that the Check Point has been created, you can click on it and observe Cye

driving to it. 11. Click on the Home Base icon on the map to send Cye home. Once Cye has found

the Home Base, have it return to the Check Point. 12. When you are finished, send Cye back home.

Page 28: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

22 Module Guide

13. You will now create destinations by selecting the Hot Point icon from the Map Tools toolbar. By creating Hot Points, you can mark additional positions, stations, or areas of a room, without the assistance of a wall. After selecting the Hot Point icon, an “X” will appear with the cursor. You can then drag the “X” to mark any area of the map you want to make a destination for Cye to travel.

14. The Edit Hot Point Properties dialog box appears once the “X” has been placed on

the map. Enter a name in the Hot Point Name box for the destination, i.e., entrance of room. Then select the Floor Type. Do not select the Number of Claps - you will do that later. Click on OK.

15. You will now see a green “X” and its label on the map. Click on the Hot Point you

crated and you will see Cye go to the point and stop. If you click on the Home Base, Cye will go home.

16. You can create a Check Point, like you did in the previous lesson, and Cye can use

the Hot Point, the Check Point, and the Home Base as destinations to travel to. Cye will automatically calculate the best path from its current location to the next selected location. If there are any Check Points between selected locations, Cye will use those to check his position.

Page 29: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 23

17. Now you will create another Hot Point that will use the Sound Response sensor. Select the Hot Point icon and drag the “X” to mark an area of the map you want to make a destination. In the Edit Hot Point Properties dialog box, enter a name for the Hot Point, i.e., rear exit, 3 claps. The Number of Claps option is a Sound Response sensor which will associate that point with a specific number of claps. You can clap once for Cye’s attention, then it will wait for 2 to 5 claps for an assigned point then calculate the best path the that particular Hot Point. Select the number of claps. Select the Floor Type and then click on OK.

18. Clap your hands once to get Cye’s attention. Then clap your hands the number of

claps you selected for the Hot Point. 19. If you want to move a Hot Point, click on the Relocate\Resize Objects button on the

Map Tools toolbar. Place the tip of the arrow on the Hot Point and click on it to select it. The Hand arrow turns into a target pointer. Drag the target pointer on the Hot Point icon to its new location. Release the mouse. Move the target pointer off the Hot Point icon and it will return to the Hand arrow. Click the mouse to unselect the Hot Point.

20. When you are finished, send Cye home. 21. Save your program by selecting File and then Save As. Make sure you are in the

Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON#’.

Exit the software and go to the next section in the presentation

Page 30: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

24 Module Guide

Lesson 4, Making a Floor Plan Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. You will create a floor plan of your classroom that has clear areas, obstacles, walls,

doorways, destinations, Line Paths, places to avoid, Hot Points, and Check Points. 4. The first thing to do is to create dark areas to indicate the location and approximate

dimensions of 2 of the 4 walls of the room. Locate the Drawing Tools toolbar and click on the Draw Rectangle tool. Using the black setting, draw a rectangle, extending the wall on which you have Home Base. Remember that each grid square represents 2 feet of floor space.

5. You now have to establish where the third wall is located. Move Cye towards the

wall in your classroom opposite Home Base. Try to be 2 grid-squares away from the wall you are trying to mark on the floor plan. Make sure the robot icon and the Cye are facing the wall.

Page 31: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 25

6. Click on the Check Point button on the Map Tools toolbar. When the Create Check Point dialog box appears on the screen, enter “Check Point 1” in the correct box. If your Check Point wall has a corner, enter the requested information. Select OK. Cye should now move ahead until it hits the wall and establishes a Check Point.

7. Extend the wall in both directions using the Draw Rectangle tool. You now have 3

walls. 8. To create the 4th wall, move the robot icon towards where you believe the fourth wall

is located. Try to be 2 grid squares away from the wall you are trying to mark on the floor plan.

9. Make sure the robot icon and Cye are facing the wall. 10. Click on the Check Point button. When the Create Check Point dialog box appears

on the screen, enter “Check Point 2” in the correct box. If your Check Point wall has a corner, provide the required information. Select OK. Cye will now move ahead until it hits the wall.

11. Extend the wall in both directions using the Draw Rectangle tool. Make any

adjustments that are necessary to the wall based on the Home Base.

Page 32: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

26 Module Guide

12. Now you will mark doorways, obstacles, and other features. Advance the robot icon to position directly in front of the place on your map that you think the doorway is located.

13. Click on the Draw Rectangle tool. Using the white setting, white-out the section of

the wall corresponding to the doorway. Adjust the opening accordingly – adding black or white areas using the Draw Rectangle tool if necessary.

14. Now you can begin to create obstacles for Cye. You need to outline the furniture that

stands in the way of Cye moving freely. Use the following steps to draw obstacles: a. Position Cye as close as you can to one end or corner of an obstacle. b. Click on any drawing tool . Using the black setting, click at one endpoint of the

obstacle. This will produce a click-mark (a small black square that will indicate on the screen the endpoint is located). Move the robot to another endpoint corner of the obstacle and click-mark this end or corner. Repeat until you have enough endpoints or corners to define the obstacle. You need only three for an obstruction in the form of a square or rectangle.

15. After the entire map has been constructed, begin to manipulate Cye by clicking on a

variety of Check Points. 16. Save your program by selecting File and then Save As. Make sure you are in the

Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON#’.

17. Send Cye home and exit the software. Go to the next section in the presentation.

Page 33: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 27

Lesson 5, Creating an Expert System On your screen is the Visual Expert window. You need to load a data file into the system, just as you might load a document into a word processor program. 1. Click on File and Open. 2. Double-click on ATHLETE2.VXP, or click on it once and then select Open. 3. You have just loaded a very simple expert system that helps to identify athletes.

Look at the Topic box at the top of the window. This box indicates that the topic of this expert system is Athletes.

Suppose you know a little bit about sports, but you are unable to identify one type of athlete from another. This simple expert system allows you to identify either a baseball player, a basketball player, a football player, or a tennis player based on your answers to the questions in the Questions box at the bottom of the window. The Possible Outcomes box indicates these four possibilities. The percentages next to each possible outcome, presently all at 0.0%, change based on your answers to the questions in the Questions box. (You may scroll down through the questions to read each one.) The Result box shows the possible outcomes, but as you answer the questions in the Questions box, the result will change based on your answers. Right now, all four possible outcomes are shown in the Result box. Pretend you are watching a sporting event on television and you want to identify what type of game it is by identifying the players. Remember, you know a little bit about sports, but not enough to know what types of players are playing the game. To identify the players, you need to answer the questions in the Question box. 4. To answer the first question, click on it. The question becomes highlighted, and the

word Yes appears next to it. Notice that when you clicked on the question, the percentages in the Possible Outcomes box changed and the result in the Result box changed. The percentages indicate the percentage of possibility that a particular outcome is the result. They are based on your answers to the questions. For example, with only one question answered and with the answer being Yes, there is a 50% chance that the players you are "watching" are basketball players and a 50% chance that they are tennis players. Every time you answer a question or change an answer, these percentages and the result will change accordingly.

Page 34: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

28 Module Guide

5. Do the athletes wear sneakers? Let's say they all have cleats on, so click on the question until you see the word No appear. (Other choices are Yes or Maybe. If you miss the answer that you want, just keep clicking and the cycle of answers will repeat. Try it if you want, but make sure you use No as your final answer.)

6. Let's say you see one player wears protective items. Click on the next question so

that Yes appears next to it. 7. Now pretend that you see one of the players throwing a ball, and then you see

another player hit the ball with a long object. Answer Yes to the next two questions. 8. You "noticed" before that the players were all wearing cleats, so click on the next

question so that Yes appears. 9. Suppose you don't see any of the players dunking or dribbling a ball. Answer No to

the next two questions. 10. Pretend that none of the players serve a ball or run with a ball. Answer No to the

last two questions. 11. Well, you have answered all the questions. What does the expert system tell you?

Look at the result in the Result box. The expert system tells you that you have been watching a group of baseball players engaged in a baseball game.

12. Now it's time for you to play a game with your partner. No, not a baseball game!

Have your partner choose one of the four possible outcomes and write his or her choice down on a sheet of scrap paper without showing you. Then ask your partner the questions in the Questions box and select his or her answers in Visual Expert. After you have asked and answered all the questions, look at the result and compare it to the choice written on the scrap paper. They should be the same (as long as your partner answered the questions truthfully, of course).

13. If time permits, you choose one of the four possible outcomes, write it down, and

have your partner ask you the questions. Again, the expert system's result should show what you have written on the piece of paper.

14. When you are finished, click on File and then Exit. Go to the next section in the

presentation.

Page 35: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 29

Lesson 5, Programming the Robot Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Locate the Zap! Control toolbar. Click on the Show Zap Window icon. The Zap

window appears.

Page 36: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

30 Module Guide

4. There is a palette of tasks at the top of the Zap window. The tasks are inserted between the Start program panel and the Stop program panel by dragging the selected icon from the palette into the list. Once you have inserted the task, you can change its settings. When you drag the task into the list, the arrows in the list will turn red to help you see where the task will be inserted. When you release the mouse, the task will be displayed in the program list in the desired location.

5. Before you can create a Zap program, you have to define the map. For example,

you must create the check points, hot points, or line paths. Exit the Zap window by selecting File and then Exit to return to the Map-N-Zap screen.

Page 37: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 31

6. For this activity, you will need to create 2 check points, 2 hot points, and 1 line path. Do you remember how to do this? To create a check point, first navigate Cye up to a wall and select the Check Point icon located on the Map Tools toolbar.

7. The Create Check Point window appears. Enter an appropriate Check Point Name

which bests describes that particular point. Then select the flooring style. If the wall has a corner, it will aid in a more precise orientation of the robot, however, it is not necessary. Select OK. A Measuring Carpet Density dialog box may appear, select OK. Do this again to create another check point.

8. To create a hot point, navigate Cye to the desired destination and select the Hot

Point icon from the Map Tools toolbar. By creating Hot Points, you can mark additional positions, stations, or areas of a room, without the assistance of a wall. After selecting the Hot Point icon, an “X” will appear with the cursor. You can then drag the “X” to mark any area of the map you want to make a destination for Cye to travel.

Page 38: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

32 Module Guide

9. The Edit Hot Point Properties dialog box appears once the “X” has been placed on the map. Enter a name in the Hot Point Name box for the destination, i.e., entrance of room. Then select the Floor Type. Do not select the Number of Claps - you will do that later. Click on OK. Repeat this process and create another hot point.

10. To create a line path, select the Line Path tool on the Map Tools toolbar. Click once

with the mouse at the location of the start of the new line path. Move your mouse to the location of the next elbow of the path. Click once to set the point. Repeat this as many times as needed. When you reach the end of the line path, double-click. A window appears asking you to name your Line Path.

11. Enter a name for your Line Path. Click on OK. 12. Using the hotpoint, checkpoint, line path, and stop tasks, complete a program that

will manipulate Cye around the room by leaving the Home Base and traveling to 2 Check Points, 2 Hot Points, and 1 Line Path. You must provide the name of the points and paths that you created for each task panel in the program.

13. Save your program by selecting File and then Save. Make sure you are in the Map-

N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Save the program as LESSON#’your initials’. Then select File and then Exit to return to the Map-N-Zap screen. Send Cye Home.

14. To run your program, first select it from the Zap!Control toolbar by clicking on the

down arrow. Then click on the Play Zap icon. 15. When you are finished, send Cye Home and exit the software. Go to the next section

in the presentation.

Page 39: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 33

Lesson 6, Creating Your Own Expert System 1. Click on File and then New. Click on Process, and then click on Topic. The Enter

Topic window appears. You will create an expert system on mammals, so type "Mammals" and press Enter (or click on OK).

2. Look at the Topic box. The word appears exactly as you type it. If you notice a

mistake, call up the Enter Topic window again (by clicking on Process and then Topic) and correct it.

3. Now you need to enter your possible outcomes. Again click on Process, then click

on Outcomes. The Outcomes window appears. Since you want to keep this expert system simple, you will enter only four possible outcomes. In a more complex system, there could be many possible outcomes. To add the first possible outcome, type "Dog" and either press Enter or click on Add.

4. Type "Horse" and press Enter or click on Add. 5. Type "Lion" and press Enter or click on Add. 6. Type "Rat" and press Enter or click on Add. 7. If you made a mistake in typing and didn't notice it until after you pressed Enter or

clicked on Add, click on the outcome so that it is highlighted, and then click on Delete. Type in the outcome (make sure you spell it right this time), and press Enter or click on Add.

8. When you are finished entering your four possible outcomes, click on OK. You will

see exactly what you typed in the Outcomes box. (If, at this point, you notice a mistake, call up the enter Outcomes window again and fix it by following the step above. However, you must have the four outcomes in the sequence listed above since Directions windows steps that follow are based upon that order.)

Now you are ready to enter your questions. The questions are given to you in this activity, but when you create your own expert system in the next section, you will have to create your own questions. For now, you will enter eight given questions, two about each vehicle listed in the Possible Outcomes window. Remember, this is a very simple system. More complicated expert systems could have hundreds or even thousands of questions to help a user pinpoint the solution to a problem. 9. Click on Process and then Questions. The Questions window appears. Type "Can

the mammal be a house pet?" and press Enter or click on Add. Notice that this questions was created with a dog in mind.

Page 40: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

34 Module Guide

10. Type "Does the mammal bark?" and press Enter or click on Add. Notice that this question was also created with a dog in mind.

11. Type "Does the mammal have a mane?" and press Enter or click on Add. Notice

that this question was created with a horse in mind. 12. Type "Can you ride the mammal?" and press Enter or click on Add. Notice that this

question also was created with a horse in mind. 13. Type "Does the mammal roar?" and press Enter or click on Add. Notice that this

question was created with a lion in mind. 14. Type "Is the mammal a member of the cat family?" and press Enter or click on Add.

Notice that this question was also created with a lion in mind. 15. Type "Is the mammal a rodent?" and press Enter or click on Add. Notice that this

question was created with a rat in mind. 16. Type "Does the mammal have whiskers?" and press Enter or click on Add. 17. Check your spelling and correct any mistakes by using the Delete button and then

retyping the question. When you have finished entering the eight questions, click on OK.

All of the questions now appear in the Questions box, but they are not active. To make them active, you need to add the knowledge of the knowledge engineer, you. How? By answering the questions! 18. To answer the questions, click on Process, then click on Answers. The Answers

window appears. The first line shows your topic, which is Mammals. The second line shows your first possible outcome, Dog. The third line shows the first question, Can the mammal be a house pet? A dog can be a house pet, so click on Yes.

19. The enter Answers window will stay up as long as there are questions for you to

answer. The first line, Mammals, will remain the same throughout. The second line, Dog, will remain the same until you have answered all eight questions with a dog in mind. The third line now shows the second question, Does the mammal bark? A dog does indeed bark, so click on Yes.

20. The third question, Does the mammal have a mane?, now appears. A dog does not

have a mane, so click on No.

Page 41: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 35

21. The fourth question, Can you ride the mammal?, now appears. While it is possible that you can try to ride a very big dog, it is not likely that a dog would be ridden, so click on No. Do you see where the knowledge of the engineer comes into play in answering these questions?

22. The fifth question, Does the mammal road?, now appears. Dogs do not roar, so

click on No. 23. The sixth question, Is the mammal a member of the cat family?, now appears. Dogs

are not members of the cat family, so click No. 24. The seventh question, Is the mammal a rodent?, now appears. A dog is not a

rodent, so click on No. 25. Finally, the last question, Does the mammal have whiskers?, appears. Even though

this question was created in reference to a rat (two questions per mammal, remember?), a dog does have whiskers, so click on Yes.

26. Notice now that the second line no longer displays Dog but Horse. Now you must

answer the eight questions with a horse in mind. A horse can be a pet, but it is not a house pet, so click on No for the first question.

27. Horses do not bark, so click on No in response to the second question. 28. Horses have manes, so click on Yes for the third question. 29. You can ride a horse, so click on Yes in answer to the fourth question. 30. Horses do not roar, so click on No for the fifth question. 31. Horses are not members of the cat family, so click on No. 32. Horses are not rodents, so click on No. 33. Horses do not have whiskers, so click on Yes. 34. Notice now that the second line no longer displays Horse but Lion. Time to answer

the eight questions with reference to a lion. Lions do not make good house pets, so click on No.

35. Lions do not bark, so click on No.

Page 42: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

36 Module Guide

36. Although the third question, Does the mammal have a mane?, was created with a horse in mind, lions do indeed have manes, so click on Yes.

37. An expert circus performer might ride a lion, even though most people would not, so

click on Maybe in response to the fourth question. 38. A lion definitely roars, so click on Yes. 39. A lion is a member of the cat family, so click on Yes. 40. Lions are not rodents, so click on No. 41. Although the eighth question, Does the mammal have whiskers?, was created with

a rat in mind, lions do indeed have whiskers, so click on Yes. 42. Notice now that the second line no longer displays Lion but Rat. You will now

answer the eight questions with a rat in mind. It is very uncommon, but some people might have a rat as a house pet, so click on Maybe.

43. Rats do not bark, so click on No. 44. Rats don't have manes, so click on No. 45. No one can ride a rat, so click on No. 46. Rats don't roar, so click on No. 47. Rats aren't cats, so click on No. 48. Rats are rodents, so click on Yes. 49. Rats do have whiskers, so click on Yes. You have now answered all of the questions with every possible outcome in mind. The Answers window disappeared, and you can now see that the questions in the Questions window are active (they are black instead of gray). 50. Now it is time for you to save the data that makes up your expert system. Click on

File and then Save As. 51. In the File name box, type "MAMMALS.VXP" as the name of your file. Then click on

Save.

Page 43: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 37

52. This expert system is now ready to be used. You can try it out now. Pretend you are an alien again. You land in a jungle and come across a sleeping mammal, but you don't know what kind of mammal it is. You see the mammal stand up and run toward you, letting out a loud roar as it does so. You get a closer look at the mammal, maybe too close for your liking, so you jump back into your spaceship. The mammal settles back down to sleep under a tree. To identify what kind of mammal you just saw, you go to the expert system onboard your ship's computer. Based on the scenario just presented, answer the questions in the Visual Expert.

Was Lion your result? You probably guessed that the mammal was a lion just from the description. That's because your human brain works so efficiently, pulling information into the conscious mind when it is called for. But an alien who never saw or heard a lion before might have need of the expert system you just created. In the last section, you were given step-by-step instructions on how to create a simple expert system on mammals. In this section, you can build your own expert system in any area where you feel you have a reasonable degree of knowledge. After all, you will be the knowledge engineer now. Keep your expert system simple. Use only four possible outcomes, and limit the number of your questions to ten. Create at least two questions for each possible outcome (so you will have from eight to ten questions). Use the following steps as a general guide to help you in creating your expert system. 1. Click on File, then New. 2. Click on Process to enter your Topic, Possible Outcomes (limit to four), Questions

(between eight and ten), and Answers. 3. Save your system by using the file name MYSYSTEM.VXP. If this file name already

exists, select Yes to replace the existing file. 4. Try using your expert system. 5. When you are finished, click on File and then Exit. Go to the next section in this Module Guide, Creating a Timing Program.

Page 44: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

38 Module Guide

Lesson 6, Creating a Timing Program 1. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

2. Using the Line Path tool, create a Line Path that is 2 grid spaces in length. Double

click to end the line. Name the Line Path and click OK. Place a Start Line and Finish Line at the beginning and end of the Line.

3. Click on the Drag Robot icon. 4. You are ready to time a path. Ask your instructor for the Timing Program Results

worksheet if it is not at your workstation. To start the timers, drag the robot icon over the start line. Click on the Line Path to time Cye. Record your results on the Timing Program Results worksheet. Change the speed of Cye by dragging the ball in the Speed Control tool and repeat. Record your results.

5. If you have time, try this: using the Start and Finish Lines and your problem solving

skills, construct a Zap program that will move Cye around the room and return it back to the Home Base in the quickest amount of time. Change the speed to improve time and accuracy. Record your trials on the Timing Program Results worksheet.

6. When you are finished, save your program by selecting File and then Save As. Make

sure you are in the Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON#’.

7. Send Cye Home. Exit the software and go to the next section in the presentation.

Page 45: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 39

Lesson 7, Manufacturing Applications 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. In this activity, you will create a Zap program to simulate a manufacturing line. The

specifics are as follows: Cye must depart from a Home Point, go to Station 1 to “pick up” parts. Cye will then transport the parts to the assembly area where Cye must be programmed to WAIT while the parts are being assembled. Cye then needs to be NUDGED (by you or your partner) when the assembly process is complete to transport the finished product to the Completed Parts Bin, then Cye must return to Home Point. Insert a Start Line after Cye departs from the Home Point and a Finish Line before Cye returns. Time your run. Use the lapse timer located in the View menu to track the time between each area. Review the Programming the Robot activity in this module, or any other activity, if you need help.

4. Ask your instructor for the Manufacturing Line Results worksheet if it is not at your

workstation and record your results. 5. When you are finished, select File and then Save As. Save your program as

“Lesson#your initials”. 6. Send Cye Home. Exit the software and go to the next section in the presentation.

Page 46: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

40 Module Guide

Lesson 8, Remote Vision & Advanced Mapping 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Make sure the camera is plugged in and installed. If you have a problem, see your

instructor. 4. Click on the Live Video button on the Robot Tools toolbar. The Live display window

appears. 5. If you click in the Live display window you can drive the robot by dragging the

mouse. 6. Manipulate Cye around the entire area of the classroom, touching everything to

construct the map. The map should be accurate, but do not include chairs, or other students. You can designate an area on your map to be a Danger Zone. The Danger one button is located on the Map Tools toolbar. You can use this tool to designate the top of staircases, plants, etc. If you drag the robot into a danger zone, it will stop. You can add a danger zone where other students sit. If you need help creating your map or creating walls and obstacles, refer to the Making a Floor Plan activity in this guide.

7. After the map has been constructed, save it, and then begin to manipulate Cye by

clicking on a variety of Hot Points and Check Points. 8. When you are finished, send Cye Home, exit the software and go to the next section

in the presentation.

Page 47: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 41

Artificial Intelligence – Comprehensive Level

Lesson 2, Playing Hoyle Board Games 1. Click on Play Holye Board Games. If this is your first time playing Hoyle Board

Games you will need to have your instructor add your/your partner's name to the Sign In sheet. If your name is already on the player list just click on your/your partner's name and click on OK. (If a window appears asking you to choose characters, select Done).

2. On the main menu of Hoyle Board Games there are many different games pieces to

choose from, select a game to play. 3. A Getting Started window appears. If you do not know how to play the game you

selected, click on Rules. Read the rules and then play the game. Otherwise, click on the Play button.

4. When you have completed playing the game, exit the Hoyle Board Game by

selecting File and then Exit Board Games. A window pops up asking you "are you sure you want to quit?" Click Yes.

5. Go to the next section in the presentation.

Page 48: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

42 Module Guide

Lesson 3, The Map & Zap Environment Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Locate the Drag Robot icon in the upper left corner in the Robot Tools toolbar. This

icon must be selected to move Cye on the screen.

4. You will see a bird’s eye view of Cye and its surroundings on the screen. To

navigate Cye, click, hold, and drag the robot icon. When you release the mouse button Cye will stop. Both the real Cye on the floor and the robot icon on the screen will move.

5. Click on an area on the map to observe Cye move toward the selected point. You

will notice that a white wake forms behind the robot icon on the screen. When Cye navigates through an area and learns that the space is not occupied, the map on the screen is painted white. When the robot encounters an obstacle, the corresponding space on the screen is painted black. Gray areas on the screen represent spaces that are unknown to Cye.

6. You will notice a yellow halo surrounding the robot icon. This represents Cyes

uncertainty of the area. The further Cye travels from Home Base; the halo enlarges around the robot icon on the screen.

Page 49: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 43

7. Begin to navigate Cye around the room by dragging and driving the robot icon. Find the Speed Slide and change the rate the robot moves. Take notice to the map changing from gray (unknown) to white (free area) and to black (obstacle).

8. Once Cye has traveled far enough from the Home Base, and the uncertainty halo

enlarges around the robot icon, it needs help in navigating around the room. You will now construct Check Points for Cye to orient itself.

9. Navigate Cye up to a wall and select the Check Point icon located on the Map Tools

toolbar.

10. The Create Check Point window appears. Enter an appropriate Check Point Name

which bests describes that particular point. Then select the flooring style. If the wall has a corner, it will aid in a more precise orientation of the robot, however, it is not necessary. Select OK. A Measuring Carpet Density dialog box may appear, select OK.

11. Now that the Check Point has been created, you can click on it and observe Cye

driving to it. 12. Click on the Home Base icon on the map to send Cye home. Once Cye has found

the Home Base, have it return to the Check Point. 13. When you are finished, send Cye back home. 14. Exit the software and go to the next section in the presentation.

Page 50: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

44 Module Guide

Lesson 4, Creating Hot Points Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Select the Drag Robot icon in the upper left corner in the Robot Tools toolbar.

4. Navigate Cye around the room by dragging and driving the robot icon.

Page 51: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 45

5. You will now create destinations by selecting the Hot Point icon from the Map Tools toolbar. By creating Hot Points, you can mark additional positions, stations, or areas of a room, without the assistance of a wall. After selecting the Hot Point icon, an “X” will appear with the cursor. You can then drag the “X” to mark any area of the map you want to make a destination for Cye to travel.

6. The Edit Hot Point Properties dialog box appears once the “X” has been placed on

the map. Enter a name in the Hot Point Name box for the destination, i.e., entrance of room. Then select the Floor Type. Do not select the Number of Claps - you will do that later. Click on OK.

7. You will now see a green “X” and its label on the map. Click on the Drag Robot icon

then click on the Hot Point you created and you will see Cye go to the point and stop. If you click on the Home Base, Cye will go home.

8. You can create a Check Point, like you did in the previous lesson, and Cye can use

the Hot Point, the Check Point, and the Home Base as destinations to travel to. Cye will automatically calculate the best path from its current location to the next selected location. If there are any Check Points between selected locations, Cye will use those to check his position.

Page 52: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

46 Module Guide

9. Now you will create another Hot Point that will use the Sound Response sensor. Select the Hot Point icon and drag the “X” to mark an area of the map you want to make a destination. In the Edit Hot Point Properties dialog box, enter a name for the Hot Point, i.e., rear exit, 3 claps. The Number of Claps option is a Sound Response sensor which will associate that point with a specific number of claps. You can clap once for Cye’s attention, then it will wait for 2 to 5 claps for an assigned point then calculate the best path the that particular Hot Point. Select the number of claps. Select the Floor Type and then click on OK.

10. Clap your hands once to get Cye’s attention. Then clap your hands the number of

claps you selected for the Hot Point. 11. If you want to move a Hot Point, click on the Relocte\Resize Objects button on the

Map Tools toolbar. Place the tip of the arrow on the Hot Point and click on it to select it. The Hand arrow turns into a target pointer. Drag the target pointer on the Hot Point icon to its new location. Release the mouse. Move the target pointer off the Hot Point icon and it will return to the Hand arrow. Click the mouse to unselect the Hot Point.

12. When you are finished, send Cye home. 13. Save your program by selecting File and then Save As. Make sure you are in the

Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON #’.

14. Exit the software and go to the next section in the presentation

Page 53: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 47

Lesson 5, Creating a Visual Expert System 1. Click on File and then New. Click on Process, and then click on Topic. The Enter

Topic window appears. You will create an expert system on transportation, so type "Travel" and press Enter (or click on OK).

2. Look at the Topic box. The word appears exactly as you type it. If you notice a

mistake, call up the Enter Topic window again (by clicking on Process and then Topic) and correct the error.

3. Now you need to enter your possible outcomes. Again click on Process, then click

on Outcomes. The Outcomes window appears. Since you want to keep this expert system simple, you will enter only four possible outcomes. In a more complex system, there could be many possible outcomes. To add the first possible outcome, type "Jet Plane" and either press Enter or click on Add.

4. Type "Diesel Bus" and press Enter or click on Add. 5. Type "Sailboat" and press Enter or click on Add. 6. Type "Passenger Train" and press Enter or click on Add. 7. If you made a mistake in typing and didn't notice it until after you pressed Enter or

clicked on Add, click on the outcome so that it is highlighted, and then click on Delete. Type in the outcome (make sure you spell it right this time), and press Enter or click on Add.

8. When you are finished entering your four possible outcomes, click on OK. You will

see exactly what you typed in the Outcomes box. (If, at this point, you notice a mistake, call up the enter Outcomes window again and fix it by following the step above. However, you must have the four outcomes in the sequence listed above since Directions windows steps that follow are based upon that order.)

Now you are ready to enter your questions. The questions are given to you in this activity, but when you create your own expert system in the next section, you will have to create your own questions. For now, you will enter eight given questions, two about each vehicle listed in the Possible Outcomes window. Remember, this is a very simple system. More complicated expert systems could have hundreds or even thousands of questions to help a user pinpoint the solution to a problem. 9. Click on Process and then Questions. The Questions window appears. Type "Do

you leave dry ground?" and press Enter or click on Add. Notice that this questions was created with a jet plane in mind.

Page 54: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

48 Module Guide

10. Type "Do you ever wear a seat belt?" and press Enter or click on Add. 11. Type "Do you travel on rubber wheels?" and press Enter or click on Add. 12. Type "Do you travel on roads?" and press Enter or click on Add. 13. Type "Does the wind provide motive power?" and press Enter or click on Add.

Notice that this question was created with a sailboat in mind. 14. Type "Does the vehicle normally move on wheels?" and press Enter or click on Add. 15. Type "Does the vehicle move on steel wheels?" and press Enter or click on Add.

Notice that this question was created with a passenger train in mind. 16. Type "Does someone steer the vehicle?" and press Enter or click on Add. 17. Check your spelling and correct any mistakes by using the Delete button and then

retyping the question. However, you must have the eight questions in the sequence listed above since the remaining Directions window steps are based upon that order. When you have finished entering the eight questions, click on OK.

All of the questions now appear in the Questions box, but they are not active. To make them active, you need to add the knowledge of the knowledge engineer, you. How? By answering the questions! 18. To answer the questions, click on Process, then click on Answers. The Answers

window appears. The first line shows your topic, which is Travel. The second line shows your first possible outcome, Jet Plane. The third line shows the first question, Do you leave dry ground? A jet plane can leave the ground, so click on Yes.

19. The enter Answers window will stay up as long as there are questions for you to

answer. The first line, Travel, will remain the same throughout. The second line, Jet Plane, will remain the same until you have answered all eight questions with a jet plane in mind. The third line now shows the second question, Do you ever wear a seat belt? A jet plane does indeed have seat belts, so click on Yes.

20. The third question, Do you travel on rubber wheels?, now appears. A jet plane does,

if on the ground, so click on Maybe. 21. The fourth question, Do your travel on roads? Now appear. A jet plane does not, so

enter No.

Page 55: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 49

22. The fifth question, Does the wind provide motive power?, now appears. Jet engines power the airplane, so click on No.

23. The sixth question, Does the vehicle normally move on wheels?, now appears. Jet

planes have wheels, but they are not normally used in flight, so click No. 24. The seventh question, Does the vehicle move on steel wheels?, now appears.

Trains not planes have steel wheels, so click on No. 25. The eighth question, Does someone steer the vehicle?, now appears. A jet plane is

controlled by a pilot, so click on Yes. 26. Notice now that the second line no longer displays Jet Plane but Diesel Bus. Now

you must answer the eight questions with a diesel bus in mind. A diesel bus does not fly or float, so click on No for the first question.

27. Diesel buses sometimes have seat belts, so click on Maybe in response to the

second question. 28. Diesel buses have rubber wheels, so click on Yes in response to the third question. 29. You travel on roads in a diesel bus, so click on Yes in answer to the fourth question. 30. Wind does not drive a diesel bus, so click on No for the fifth question. 31. Buses roll on wheels, so click on Yes. 32. Trains, not buses, have steel wheels, so click on No. 33. The bus driver is in complete command of a bus, so click on Yes. 34. Notice how the second line no longer displays Diesel Bus but Sailboat? Time to

answer the eight questions with reference to a sailboat. Sailboats do not run well on dry ground, so click on Yes.

35. There are normally no seat belts in sailboats, so click on No. 36. The second question, Do you travel on rubber wheels?, was created with a diesel

bus in mind, so click on No. 37. A sailboat could be hauled on a trailer, but that isn't the normal way a boat is used,

so click on No in response to the fourth question. 38. A sailboat definitely needs wind to move, so click on Yes.

Page 56: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

50 Module Guide

39. A sailboat is not a wheeled vehicle, so click on No. 40. Sailboats are not trains, so click on No. 41. Sailboats do indeed have a captain or pilot who steers the boat, so click on Yes. 42. Notice now that the second line no longer displays Sailboat but Passenger Train.

You will now answer the eight questions with a passenger train in mind. A train does not float or fly, so click on No.

43. Passenger trains do not have seat belts, so click on No. 44. Passenger trains do not have rubber wheels, so click on No. 45. Passenger trains need tracks, so click on No. 46. Passenger trains are pulled by engines, so click on No. 47. Passenger trains are wheeled vehicles, so click on Yes. 48. Trains use steel wheels on steel rails, so click on Yes. 49. Trains follow the track, so click on No. You have now answered all of the questions with every possible outcome in mind. The Answers window disappeared, and you can now see that the question in the Questions window are active (they are black instead of gray). You may scroll down to see all the questions. 50. Now is the time for you to save the data that makes up your expert system. Click on

File and then Save As. 51. In the file name box, type "TRAVEL.VXP" as the name of your file. Then click on

Save. 52. This expert system is now ready to be used. You can try it out now. Pretend you are

an alien who has just landed on Earth. You land in an ocean-side city and come across a vehicle, but you don't know what kind it is. You see the vehicle receive passengers, then let out a loud roar as it accelerates down a road. You jump back into your spaceship. To identify what kind of vehicle you just saw, you go to the expert system onboard your ship's computer. Based on the scenario just presented, answer the questions in the Visual Expert.

Page 57: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 51

53. Remember, to answer the questions, click on them until the answer you want appears.

Was diesel bus your result? You probably guessed that the vehicle was a diesel bus just from the description. That's because your human brain works so efficiently, pulling information into the conscious mind when it is called for. But an alien who never saw or heard a bus before might have need of the expert system you just created. 54. When you are finished, select File and then Exit. Go to the next section in the

presentation.

Page 58: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

52 Module Guide

Lesson 5, Line Path Activity Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. You are now going to layout on the screen the precise route that you want Cye to

take by using the Line Path tool. The Line Path is a connect-the-dots path Cye can follow.

4. Select the Line Path tool on the Map Tools toolbar. Click once with the mouse at the

location of the start of the new line path. Move your mouse to the location of the next elbow of the path. Click once to set the point. Repeat this as many times as needed. When you reach the end of the line path, double-click. A window appears asking you to name your Line Path.

5. Enter a name for your Line Path. Click on OK. 6. To return to robot navigation mode, click on the Drag Robot button on the Robot

Tools toolbar. 7. If Cye gets lost, pick up Cye and place it on the charger. Click on the end of the Line

Path you just created and Cye will move the entire length of the path.

Page 59: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 53

8. Try adding a Line Path to your map that you created in the previous Lesson. Open the Map & Zap file you saved in Lesson 4 by selecting File and then Open. You will be asked to save the changes you just made, select No. When you are finished creating a Line Path, save your work by selecting File and then Save As. Make sure you are in the Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON #’.

9. Send Cye home and exit the software. Go to the next section in the presentation.

Page 60: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

54 Module Guide

Lesson 6, Cartesian & Polar Coordinates Activity Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Locate the robot’s Home Base origin point. The intersection of the red crosshair’s

indicates point 0,0. 4. Click on View and then select Coordinate Movement. The Coordinate Movement

dialog box appears. 5. You can manipulate the robot by entering distances in the X and Y boxes in the

Cartesian Coordinates box, for example, X: -4, 0 Y: -8,0. Click the Go To button after you enter the distances.

6. Move Cye to several other locations using the Cartesian Coordinates. 7. Now click in the box next to Relative Coordinates. The red crosshairs moved to the

intersection on top of the robot’s current location. 8. Enter distances in the X and Y boxes in the Cartesian Coordinates box with the

Relative Coordinates box checked. Move Cye to a position that is free of obstacles. Click on the Go To button.

9. Now manipulate the robot by inputting the desired angle and the desired distance in

the Polar Coordinates box. Click on the Rotate To and Move Distance buttons. 10. Move Cye around the room using all of the coordinate systems. Continue to map the

entire room parameter. Turn on the Bread Crumb Trail by first clicking on View and then on Map Objects and finally select Bread Crumb Trail. A ‘checkmark’ now appears next to Bread Crumb Trail. The Bread Crumb Trail will create a colored line to display the robot’s traveled path. The line will display arrows for direction and change color on occasion to distinguish tight paths. Drag the robot icon to see the trail that Cye travels.

11. When you are finished, turn the Bread Crumb Trail off by clicking on View and then

on Map Objects and finally select Bread Crumb Trail. The ‘checkmark’ is removed. 12. When you are finished, exit the software (do not save changes) and go to the next

section in the presentation.

Page 61: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 55

Lesson 7, Making a Floor Plan Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye

3. You will create a floor plan of your classroom that has clear areas, obstacles, walls,

doorways, destinations, Line Paths, places to avoid, Hot Points, and Check Points. 4. The first thing to do is to create dark areas to indicate the location and approximate

dimensions of 2 of the 4 walls of the room. Locate the Drawing Tools toolbar and click on the Draw Rectangle tool. Using the black setting, draw a rectangle, extending the wall on which you have Home Base. Remember that each grid square represents 2 feet of floor space.

5. You now have to establish where the third wall is located. Move Cye towards the

wall in your classroom opposite Home Base. Try to be 2 grid-squares away from the wall you are trying to mark on the floor plan. Make sure the robot icon and the Cye are facing the wall.

Page 62: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

56 Module Guide

6. Click on the Check Point button on the Map Tools toolbar. When the Create Check Point dialog box appears on the screen, enter “Check Point 1” in the correct box. If your Check Point wall has a corner, enter the requested information. Select OK. Cye should now move ahead until it hits the wall and establishes a Check Point

7. Extend the wall in both directions using the Draw Rectangle tool. You now have 3

walls. 8. To create the 4th wall, move the robot icon towards where you believe the fourth wall

is located. Try to be 2 grid squares away from the wall you are trying to mark on the floor plan.

9. Make sure the robot icon and Cye are facing the wall. 10. Click on the Check Point button. When the Create Check Point dialog box appears

on the screen, enter “Check Point 2” in the correct box. If your Check Point wall has a corner, provide the required information. Select OK. Cye will move ahead until it hits the wall.

11. Extend the wall in both directions using the Draw Rectangle tool. Make any

adjustments that are necessary to the wall based on the Home Base. 12. Now you will mark doorways, obstacles, and other features. Advance the robot icon

to position directly in front of the place on your map that you think the doorway is located.

Page 63: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 57

13. Click on the Draw Rectangle tool. Using the white setting, white-out the section of the wall corresponding to the doorway. Adjust the opening accordingly – adding black or white areas using the Draw Rectangle tool if necessary.

14. Now you can begin to create obstacles for Cye. You need to outline the furniture that

stands in the way of Cye moving freely. Use the following steps to draw obstacles: 15. Position Cye as close as you can to one end or corner of an obstacle. 16. Click on any drawing tool . Using the black setting, click at one endpoint of the

obstacle. This will produce a click-mark (a small black square that will indicate on the screen the endpoint is located). Move the robot to another endpoint corner of the obstacle and click-mark this end or corner. Repeat until you have enough endpoints or corners to define the obstacle. You need only three for an obstruction in the form of a square or rectangle.

17. After the entire map has been constructed, begin to manipulate Cye by clicking on a

variety of Check Points. 18. Save your program by selecting File and then Save As. Make sure you are in the

Map-N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Enter the filename as ‘your initialsLESSON#’.

19. Send Cye home and exit the software. Go to the next section in the presentation.

Page 64: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

58 Module Guide

Lesson 8, Creating Zap Programs Cye should be at Home Base. If it is not, see your instructor before starting the activity. 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Locate the Zap! Control toolbar. Click on the Show Zap Window icon. The Zap

window appears.

Page 65: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 59

4. There is a palette of tasks at the top of the Zap window. The tasks are inserted between the Start program panel and the Stop program panel by dragging the selected icon from the palette into the list. Once you have inserted the task, you can change its settings. When you drag the task into the list, the arrows in the list will turn red to help you see where the task will be inserted. When you release the mouse, the task will be displayed in the program list in the desired location.

5. Before you can create a Zap program, you have to define the map. For example,

you must create the check points, hot points, or line paths. Exit the Zap window by selecting File and then Exit to return to the Map-N-Zap screen.

Page 66: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

60 Module Guide

6. For this activity, you will need to create 2 check points, 2 hot points, and 1 line path. Do you remember how to do this? To create a check point, first navigate Cye up to a wall and select the Check Point icon located on the Map Tools toolbar.

7. The Create Check Point window appears. Enter an appropriate Check Point Name

which bests describes that particular point. Then select the flooring style. If the wall has a corner, it will aid in a more precise orientation of the robot, however, it is not necessary. Select OK. A Measuring Carpet Density dialog box may appear, select OK. Do this again to create another check point.

8. To create a hot point, navigate Cye to the desired destination and select the Hot

Point icon from the Map Tools toolbar. By creating Hot Points, you can mark additional positions, stations, or areas of a room, without the assistance of a wall. After selecting the Hot Point icon, an “X” will appear with the cursor. You can then drag the “X” to mark any area of the map you want to make a destination for Cye to travel.

Page 67: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 61

9. The Edit Hot Point Properties dialog box appears once the “X” has been placed on the map. Enter a name in the Hot Point Name box for the destination, i.e., entrance of room. Then select the Floor Type. Do not select the Number of Claps - you will do that later. Click on OK. Repeat this process and create another hot point.

10. To create a line path, select the Line Path tool on the Map Tools toolbar. Click once

with the mouse at the location of the start of the new line path. Move your mouse to the location of the next elbow of the path. Click once to set the point. Repeat this as many times as needed. When you reach the end of the line path, double-click. A window appears asking you to name your Line Path.

11. Enter a name for your Line Path. Click on OK. 12. Using the hotpoint, checkpoint, line path, and stop tasks, complete a program that

will manipulate Cye around the room by leaving the Home Base and traveling to 2 Check Points, 2 Hot Points, and 1 Line Path. You must provide the name of the points and paths that you created for each task panel in the program.

13. Save your program by selecting File and then Save. Make sure you are in the Map-

N-Zap folder. This folder is in C:\Program Files\ERC, Inc directory. Save the program as LESSON#’your initials’. Then select File and then Exit to return to the Map-N- Zap screen. Send Cye Home.

14. To run your program, first select it from the Zap!Control toolbar by clicking on the

down arrow. Then click on the Play Zap icon. 15. When you are finished, send Cye Home and exit the software. Go to the next section

in the presentation.

Page 68: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

62 Module Guide

Lesson 8, Creating Your Own Expert System 1. Click on File and then New. Click on Process, and then click on Topic. The Enter

Topic window appears. You will create an expert system on mammals, so type "Mammals" and press Enter (or click on OK).

2. Look at the Topic box. The word appears exactly as you type it. If you notice a

mistake, call up the Enter Topic window again (by clicking on Process and then Topic) and correct it.

3. Now you need to enter your possible outcomes. Again click on Process, then click

on Outcomes. The Outcomes window appears. Since you want to keep this expert system simple, you will enter only four possible outcomes. In a more complex system, there could be many possible outcomes. To add the first possible outcome, type "Dog" and either press Enter or click on Add.

4. Type "Horse" and press Enter or click on Add. 5. Type "Lion" and press Enter or click on Add. 6. Type "Rat" and press Enter or click on Add. 7. If you made a mistake in typing and didn't notice it until after you pressed Enter or

clicked on Add, click on the outcome so that it is highlighted, and then click on Delete. Type in the outcome (make sure you spell it right this time), and press Enter or click on Add.

8. When you are finished entering your four possible outcomes, click on OK. You will

see exactly what you typed in the Outcomes box. (If, at this point, you notice a mistake, call up the enter Outcomes window again and fix it by following the step above. However, you must have the four outcomes in the sequence listed above since Directions windows steps that follow are based upon that order.)

Now you are ready to enter your questions. The questions are given to you in this activity, but when you create your own expert system in the next section, you will have to create your own questions. For now, you will enter eight given questions, two about each vehicle listed in the Possible Outcomes window. Remember, this is a very simple system. More complicated expert systems could have hundreds or even thousands of questions to help a user pinpoint the solution to a problem. 9. Click on Process and then Questions. The Questions window appears. Type "Can

the mammal be a house pet?" and press Enter or click on Add. Notice that this questions was created with a dog in mind.

Page 69: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 63

10. Type "Does the mammal bark?" and press Enter or click on Add. Notice that this question was also created with a dog in mind.

11. Type "Does the mammal have a mane?" and press Enter or click on Add. Notice

that this question was created with a horse in mind. 12. Type "Can you ride the mammal?" and press Enter or click on Add. Notice that this

question also was created with a horse in mind. 13. Type "Does the mammal roar?" and press Enter or click on Add. Notice that this

question was created with a lion in mind. 14. Type "Is the mammal a member of the cat family?" and press Enter or click on Add.

Notice that this question was also created with a lion in mind. 15. Type "Is the mammal a rodent?" and press Enter or click on Add. Notice that this

question was created with a rat in mind. 16. Type "Does the mammal have whiskers?" and press Enter or click on Add. 17. Check your spelling and correct any mistakes by using the Delete button and then

retyping the question. When you have finished entering the eight questions, click on OK.

All of the questions now appear in the Questions box, but they are not active. To make them active, you need to add the knowledge of the knowledge engineer, you. How? By answering the questions! 18. To answer the questions, click on Process, then click on Answers. The Answers

window appears. The first line shows your topic, which is Mammals. The second line shows your first possible outcome, Dog. The third line shows the first question, Can the mammal be a house pet? A dog can be a house pet, so click on Yes.

19. The enter Answers window will stay up as long as there are questions for you to

answer. The first line, Mammals, will remain the same throughout. The second line, Dog, will remain the same until you have answered all eight questions with a dog in mind. The third line now shows the second question, Does the mammal bark? A dog does indeed bark, so click on Yes.

20. The third question, Does the mammal have a mane?, now appears. A dog does not

have a mane, so click on No.

Page 70: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

64 Module Guide

21. The fourth question, Can you ride the mammal?, now appears. While it is possible that you can try to ride a very big dog, it is not likely that a dog would be ridden, so click on No. Do you see where the knowledge of the engineer comes into play in answering these questions?

22. The fifth question, Does the mammal road?, now appears. Dogs do not roar, so

click on No. 23. The sixth question, Is the mammal a member of the cat family?, now appears. Dogs

are not members of the cat family, so click No. 24. The seventh question, Is the mammal a rodent?, now appears. A dog is not a

rodent, so click on No. 25. Finally, the last question, Does the mammal have whiskers?, appears. Even though

this question was created in reference to a rat (two questions per mammal, remember?), a dog does have whiskers, so click on Yes.

26. Notice now that the second line no longer displays Dog but Horse. Now you must

answer the eight questions with a horse in mind. A horse can be a pet, but it is not a house pet, so click on No for the first question.

27. Horses do not bark, so click on No in response to the second question. 28. Horses have manes, so click on Yes for the third question. 29. You can ride a horse, so click on Yes in answer to the fourth question. 30. Horses do not roar, so click on No for the fifth question. 31. Horses are not members of the cat family, so click on No. 32. Horses are not rodents, so click on No. 33. Horses do not have whiskers, so click on Yes. 34. Notice now that the second line no longer displays Horse but Lion. Time to answer

the eight questions with reference to a lion. Lions do not make good house pets, so click on No.

35. Lions do not bark, so click on No.

Page 71: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 65

36. Although the third question, Does the mammal have a mane?, was created with a horse in mind, lions do indeed have manes, so click on Yes.

37. An expert circuis performer might ride a lion, even though mose people would not,

so click on Maybe in response to the fourth question. 38. A lion definitely roars, so click on Yes. 39. A lion is a member of the cat family, so click on Yes. 40. Lions are not rodents, so click on No. 41. Although the eighth question, Does the mammal have whiskers?, was created with

a rat in mind, lions do indeed have whiskers, so click on Yes. 42. Notice now that the second line no longer displays Lion but Rat. You will now

answer the eight questions with a rat in mind. It is very uncommon, but some people might have a rat as a house pet, so click on Maybe.

43. Rats do not bark, so click on No. 44. Rats don't have manes, so click on No. 45. No one can ride a rat, so click on No. 46. Rats don't roar, so click on No. 47. Rats aren't cats, so click on No. 48. Rats are rodents, so click on Yes. 49. Rats do have whiskers, so click on Yes. You have now answered all of the questions with every possible outcome in mind. The Answers window disappeared, and you can now see that the questions in the Questions window are active (they are black instead of gray). 50. Now it is time for you to save the data that makes up your expert system. Click on

File and then Save As. 51. In the File name box, type "MAMMALS.VXP" as the name of your file. Then click on

Save.

Page 72: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

66 Module Guide

52. This expert system is now ready to be used. You can try it out now. Pretend you are an alien again. You land in a jungle and come across a sleeping mammal, but you don't know what kind of mammal it is. You see the mammal stand up and run toward you, letting out a loud roar as it does so. You get a closer look at the mammal, maybe too close for your liking, so you jump back into your spaceship. The mammal settles back down to sleep under a tree. To identify what kind of mammal you just saw, you go to the expert system onboard your ship's computer. Based on the scenario just presented, answer the questions in the Visual Expert.

Was Lion your result? You probably guessed that the mammal was a lion just from the description. That's because your human brain works so efficiently, pulling information into the conscious mind when it is called for. But an alien who never saw or heard a lion before might have need of the expert system you just created. In the last section, you were given step-by-step instructions on how to create a simple expert system on mammals. In this section, you can build your own expert system in any area where you feel you have a reasonable degree of knowledge. After all, you will be the knowledge engineer now. Keep your expert system simple. Use only four possible outcomes, and limit the number of your questions to ten. Create at least two questions for each possible outcome (so you will have from eight to ten questions). Use the following steps as a general guide to help you in creating your expert system. 1. Click on File, then New. 2. Click on Process to enter your Topic, Possible Outcomes (limit to four), Questions

(between eight and ten), and Answers. 3. Save your system by using the file name MYSYSTEM.VXP. If this file name already

exists, select Yes to replace the existing file. 4. Try using your expert system. 5. When you are finished, click on File and then Exit. Go to the next section in the presentation.

Page 73: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

Module Guide 67

Lesson 9, Manufacturing Applications 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. In this activity, you will create a Zap program to simulate a manufacturing line. The

specifics are as follows: Cye must depart from a Home Point, go to Station 1 to “pick up” parts. Cye will then transport the parts to the assembly area where Cye must be programmed to WAIT while the parts are being assembled. Cye then needs to be NUDGED (by you or your partner) when the assembly process is complete to transport the finished product to the Completed Parts Bin, then Cye must return to Home Point. Insert a Start Line after Cye departs from the Home Point and a Finish Line before Cye returns. Time your run. Use the lapse timer located in the View menu to track the time between each area. Review the Programming the Robot activity in this Module Guide, or any other activity, if you need help.

4. Ask your instructor for the Manufacturing Line Results worksheet if it is not at your

workstation and record your results. 5. When you are finished, select File and then Save As. Save your program as

“Lesson#your initials”. 6. Send Cye Home. Exit the software and go to the next section in the presentation.

Page 74: Beginning, Advanced, Comprehensive Levels

Artificial Intelligence Directions

68 Module Guide

Lesson 10, Remote Vision & Advanced Mapping 1. Click on the Application Launch button and select the Map & Zap software. 2. Click on Load Old. Make sure you are in the Map-N-Zap folder. This folder is in the

C:\Program Files\ERC, Inc directory. Double-click on the HOMEBASE file. This file has been created to establish a Home Base for Cye.

3. Make sure the camera is plugged in and installed. If you have a problem, see your

instructor. 4. Click on the Live Video button on the Robot Tools toolbar. The Live display window

appears. 5. If you click in the Live display window you can drive the robot by dragging the

mouse. 6. Manipulate Cye around the entire area of the classroom, touching everything to

construct the map. The map should be accurate, but do not include chairs, or other students. You can designate an area on your map to be a Danger Zone. The Danger one button is located on the Map Tools toolbar. You can use this tool to designate the top of staircases, plants, etc. If you drag the robot into a danger zone, it will stop. You can add a danger zone where other students sit. If you need help creating your map or creating walls and obstacles, refer to the Making a Floor Plan activity in this guide.

7. After the map has been constructed, save it, and then begin to manipulate Cye by

clicking on a variety of Hot Points and Check Points. 8. When you are finished, send Cye Home, exit the software and go to the next section

in the presentation.

Page 75: Beginning, Advanced, Comprehensive Levels