Programming AI with Leaf/Installing

From Wikibooks, open books for an open world
Jump to: navigation, search

Getting and Installing the Software[edit]

Since Leaf is open source, his required software applications and miscellaneous files are not all in one place. Getting everything you need installed can take some time, but is well worth it. Below you will find both the web addresses of the required software as well instructions for installing it.

It is important to note that Leaf has several options to choose from and that even if you are not going to use one or more of those options, you still MUST install the software that supports all options. The ONLY exception to this is that if you do not plan to give your Leaf an animated head, you do not need to install the CU animate software.

Leaf's Quick Install for Windows XP[edit]

Note: This installation does not include x10 software or CU animate face.


1. Downloads


1.1 Download and install the latest copy of Lispworks from

   http://www.lispworks.com/downloads/ take all defaults offered.

1.5 Download and install Microsoft Speech SDK 5.1 (SpeechSDK51.exe) taking all defaults.

   http://www.microsoft.com/downloads/details.aspx?FamilyID=5e86ec97-40a7-453f-b0ee-6583171b4530&DisplayLang=enLeaf Directory 

1.2 Download and unzip "Nav and Control exe 5-3-09.zip"

   http://www.leafproject.org/software/n_c/Nav%20and%20Control%20exe%205-3-09.zip

1.3 Download and unzip the rcomm.dll file

   http://www.leafproject.org/software/rcomm/rcomm.zip

1.4 Download and unzip the Leaf lisp code

   http://www.leafproject.org/software/Lisp/Leaf%2001-01-07z.zip


2. Installations


2.1 Create a Leaf directory on your computer:

   C:\Program Files\Leaf 

and move the following files and folders into it:

    LISP files : Leaf.lisp Test.lisp, and LeafInterfaces.lisp.
    Folders : LeafFaces, LeafFeelings, LeafSetting, LeafSounds, Sequences, and AnimationImages.
    Note: LeafSounds can be found in the Files section of the group site.
    Misc. files : speech.xml, server.tcl, vcredist_x86.exe, "Nav and Control.exe" and sysinfo.exe
    Ini files : RoboChat.ini, Animation.ini, NavAndControl.ini, MicroConfig.ini, MicroController.ini, Sensors.ini, 


2.2 Move (do not copy) the following files to System32 Directory => C:\Windows\System32

    DLL files: lwsapi5.dll, lwcuanim.dll, Phidget.dll, LeafX10.dll, LeafWiFiClient.dll, FaceRecog.dll, FTD2XX.dll, and RComm.dll.


3. Setup


3.1 Plug in a microphone into your PC if you don't have one already. A good quality microphone is recommended.



Leaf's Quick Install for Windows 7 32 and 64 Bit[edit]

Note: This installation does not include x10 software or CU animate face.


1. Downloads


1.1 Download and install the latest copy of Lispworks from

   http://www.lispworks.com/downloads/ take all defaults offered.

(DO NOT install Microsoft Speech SDK. The Speech SDK installation is only for Windows XP)

1.2 Download and unzip "Nav and Control exe 5-3-09.zip"

   http://www.leafproject.org/software/n_c/Nav%20and%20Control%20exe%205-3-09.zip

1.3 Download and unzip the rcomm.dll file

   http://www.leafproject.org/software/rcomm/rcomm.zip

1.4 Download and unzip the Leaf lisp code

   http://www.leafproject.org/software/Lisp/Leaf%2001-01-07z.zip


2. Installations

2.1 Create a Leaf directory on your computer:

32 bit PC:
 C:\Program Files\Leaf 
64 bit PC: 
 C:\Program Files (x86)\Leaf 

and move the following files and folders into it:

    LISP files : Leaf.lisp Test.lisp, and LeafInterfaces.lisp.
    Folders : LeafFaces, LeafFeelings, LeafSetting, LeafSounds, Sequences, and AnimationImages.
    Misc. files : speech.xml, server.tcl, vcredist_x86.exe, "Nav and Control.exe" and sysinfo.exe
    Ini files : RoboChat.ini, Animation.ini, NavAndControl.ini, MicroConfig.ini, MicroController.ini, Sensors.ini, 


2.2 Move (do not copy) the following files to System32 Directory => C:\Windows\SysWOW64

    DLL files: lwsapi5.dll, lwcuanim.dll, Phidget.dll, LeafX10.dll, LeafWiFiClient.dll, FaceRecog.dll, FTD2XX.dll, and RComm.dll.

2.3 SPECIAL WORK-A-ROUND INSTRUCTIONS FOR SAPI DLL

The original lwsapi5.dll that is in the Leaf 01-01-07 folder won't work on a Win7 PC. You need to download the newer 2007 dll from the Leaf group. Use the one listed as "Sapi 5 dll for Windows 7-64". It will work for both 32 and 64 bit versions of Windows.

Sign into the Leaf Yahoo Group and download the newer lwsapi5.dll from here:

    http://tech.groups.yahoo.com/group/leaf_an_AI_robot/files/ 
and put it into: 
32 bit PC:
 C:\Program Files\Leaf 
64 bit PC: 
 C:\Program Files (x86)\Leaf 


Next Create a folder:

32 bit PC:
    C:\Program Files\Leaf\LeafSettings
64 bit PC: 
    C:\Program Files (x86)\Leaf\LeafSettings

and installation is complete.


3. Setup


3.1 Plug in a microphone into your PC if you don't have one already. A good quality microphone is recommended.

3.2 Plug in a headset into your PC if you don't have one already.

3.3 Train your speech recognition software with a least one session. This is done from your Control Panel, then choose Speech.


3.2 Plug in a headset into your PC if you don't have one already.

3.3 Train your speech recognition software with a least one session. This is done from your Control Panel, then choose Speech.

Leaf's Optional Applications[edit]

    X10 Household lamp and appliance control software: 
        http://www.x10.com/
    CU Animate Face
    CU Animate Face seems to not work with Windows7 very well. Leaf works fine without the face.