Bob the Pleo Forums

Pleo Stuff => Pleo Hardware/Software => PDK, Programming, and code => Topic started by: GreatestCaution on May 21, 2012, 11:53:50 AM

Title: Can't make a .urf file for PLEOrb
Post by: GreatestCaution on May 21, 2012, 11:53:50 AM
Hi to all!

Can't make a .urf  file for my PLEOrb.

I follow this instruccions:

We will be beginning with the Pleo Development Kit (PDK). Download this (http://e104.cogs.indiana.edu/
PleoDevelopmentKit.zip), unzip it, and open /examples/touch_test/sensors.p in a text editor (Applications/TextEdit).

A. Find where it says:
case SENSOR_BACK:
if (value == 0)
{
sound_play(snd_growl);
}

B. Compile the program to create the .urf file that will run on the robot.
        1. Open a terminal (Applications/Utilities/Terminal).
        2. Go to the “touch_test” directory we are working on. Use “cd” (change directory), thus:
            cd desktop/PDK/examples/touch_test
        3. Type this:
                ../build.sh touch_test
        4. This should create a folder /build, among other things, with a .urf file inside. Copy this .urf file onto a SD
            card.
        5. Insert this card into the robot (while closed). Turn the robot on, and test.
        4. The Pleo should now make the specified sound when the specified sensor is stimulated. Try this again with a
different sensor.

My console doesn't recognise the ".." like an external or internal command, program or archive for executable batch.

Can you help me please?

Thank you!
Title: Re: Can't make a .urf file for PLEOrb
Post by: PleoPet on May 22, 2012, 10:36:53 AM
What operating system are you using?

Those instructions are written for a Mac.
The Mac Terminal/console program should run the "../build.sh" shell script.
  [note: use a forward slash, and no space between the ".." and the "/"]
If it is failing, please post the error message.

For Windows, from a command shell (from All Programs - Accessories - Command Prompt), type in:
   ..\build touch_test
   [note: use the backslash for Windows/MSDOS]

Title: Re: Can't make a .urf file for PLEOrb
Post by: GreatestCaution on May 22, 2012, 02:40:55 PM
Yeah! Thanks!

I discovered yesterday trying&trying, I found a PDF guide that explain the build options for each O.S.

Sorry about my ignorance, I have PLEO since yesterday only...jeje

Thank U equally!  ;D

P.D.: Yesterday I makde my sounds for a sensors response, now I try to make movement...hope... XD
SimplePortal 2.3.5 © 2008-2012, SimplePortal