Sei sulla pagina 1di 5

AiboPet's AiboHack Site http://aibopet.com, http://aibohack.

com

Programming
AIBO with:

YART, RCodePlus
OpenR SDK
ERS-110, 111 ERS7
ERS-210[A], ERS-311[B],
220[A] 312[B], 31L

Home PDAs: CLIE ( Panel Zipit ) Email:


aibopet@aibohack.com
Movies (all) Lesser Robots: Pleo ( RoboSapien ICybie )
Game Hacks: Nintendo Wii Nintendo DS ( PSP )

YART Tutorial (includes YART_APG)

This is my short tutorial for using YART and YART_APG.


First install RCodePlus and YART as described in the main YART page.

'Dance when you hear your name'


If not already running, run the program "\CUSTOM\YART" on the memory stick.

Expand the "AIBO voice command" group and pick the first one ("'AIBO' or {dog's name}").
For the default personality, when AIBO hears the word "AIBO" or his registered name, he will
perform this RCODE:
PLAY ACTION KICK 30 1000
WAIT

AIBO will kick his paw. The "WAIT" statement makes AIBO wait for the action to complete.

This is a rather poor default, so let's change it so he will Dance when he hears his name.

Editing Steps

One at a time, grab the two RCODE statements with the mouse, and drag them out of the
window (this deletes them).
The code window is now empty -- it should say "empty (drag parts from below to here)"

In "Available Actions" dropdown, change from "Standard" to "System: Play Alone"


You will see the list of actions change.
Pick "DANCE1_SIT" from the bottom list and drag it to the code window. This is a simple
little dance.
It will expand to two RCODE statements, "PLAY ACTION ALONE_DANCE1_SIT" and
"WAIT"

You have now customized your first RCODE program by writing these two lines of RCODE. Let's
save the results and try it out on AIBO.

Testing Steps

Press the "Save RCODE program to memory stick" on the bottom of the YART window.
YART should report "Changes saved" and go away.
Take out the memory stick from your PC, and put it in your AIBO, and start him up.
After he boots up, try saying "AIBO" a few times (the first few voice commands may not
work). Eventually he will do his little dance while sitting down.
If you say "Stand up" he will stand up (part of the default personality you can also
customize). If you then say "AIBO" he will first sit down, then perform his sitting dance
(ALONE_DANCE1_SIT).
NOTE: if you say "Name Registration" and record a new name, that name will also start the
little dance.

Well, those are the basics. Even in this simple form, there are a lot of things you can do with
YART programs.

'Show Time'
Remove the memory stick from your AIBO (you don't need to press the chest button unless you
recorded something with Name Registration).
Put the stick back into your PC. Run the "\CUSTOM\YART" program again.

This time we are going to do a little more complicated logic. Select the "AIBO voice commands"
again, but this time pick 'Show Time'. The code window should be empty (there is nothing in the
default personality).

Pick the "System: Physiological" category and the "EXCRETE0_STD" action (peeing).
Drag it to the code window.
Pick the "System: Guard" category and the "ATTACK0_SIT2" action (karate pose). Drag it
to the code window.
Pick the "Subroutines" category (at the bottom of the list) and the "Wait until head pressed"
subroutine. Drag it to the code window.
In the same category, pick the "Take a picture" subroutine. Drag it to the code window.
Finally, pick the "Standard" category (at the top of the list) and the "Lie Down" action. Drag
it to the code window.

This is only an example, almost anything is possible. For this case, AIBO that will react to the
phrase "Show Time" by peeing and karate chopping, then wait for you to press his head before
taking a picture and laying down.

Save to memory stick and try it out (say "Show Time" to the dog a few times).
When you are done take out the memory stick from AIBO, and put it back in the PC. You can
view any photos taken by looking at the "\PHOTOS" folder on the memory stick.

What next ?
Try it out! Go Crazy !
You can drag and drop other actions from the lower list to the code window. There are over 300
built-in system actions you can use. Browse the existing default personality and you will see many
places to customize. It is very simple.

Simple Audio Personality - Adding


Cartman's Voice

Currently the "User Action" category in YART is empty. Now we are going to add some custom
audio files and create some "User Actions".
To help us get started, you can install some already formatted WAV files containg wisdom from
Eric Cartman.

Download this file yarttut_audio.zip


Unzip it and install it in the recommended folder (extract to "C:\" and it will put it into
"C:\AIBO\MY_CARTMAN" on your PC)
If you like, you can open up the "C:\AIBO\MY_CARTMAN" folder and double click on
any of the WAV files to hear them on your PC first.

Now run the "\CUSTOM\YART_APG" program on the memory stick.

First check to make sure the drive letter for the memory stick is correct (it should be). Next,
change the "Audio Data Path" to point the Cartman samples ("C:\AIBO\MY_CARTMAN").

There are 11 .WAV files that we are going to add to the memory stick. Press the "Save To Stick"
button. It should take a few seconds and eventually report "Memory Stick Update Complete" (if
not please check the installation and the path you typed in)

Using those new User Actions


After YART_APG has saved the new actions, run the YART program again (\CUSTOM\YART).
This time you can pick the "User Actions" category and see the new words AIBO can speak:
You can use these actions in response to any conditions just like you have done before.
Some suggestions:

when you say "Cheer Up", have AIBO say "SUCKEDASS"


when you say "That's wrong", have AIBO say "BLACKASS"
when you say "Don't do that", have AIBO say "BUTMOM"
when you say "Sing a song", have AIBO say "STUPID"
when you say "I'm here", have AIBO say "COURTLOVE"
when he sees the Pink Ball, have AIBO say "CRAP"
(it is all up to you)

Adding your own .WAV files


TO BE WRITTEN.

This part of the tutorial will show how you can use CoolEdit to convert WAVE files you record
yourself or find on the Internet to 8kHz, 8 bit mono .WAV files, and how you update the stick
accordingly.
If you are already familiar with WAVE file editing, you can dive right in. Just make sure the files
are in the correct format, and stored in the right folder before running YART_APG. YART_APG
will warn you if the format is incorrect or the file names are improper (ie. no spaces or funny
symbols in the file names). NOTE: you only have to re-run YART_APG if you change the .WAV
files.

Potrebbero piacerti anche