Master Studio Examples |
NOTE: You must own the AIBO Master Studio program (version 1.1) to examine and modify these examples.
This section discusses creating custom personalities for the ERS-210 AIBO using Master Studio. These personalities can be converted to work with the ERS-220 or ERS-31x.
Pre-requisites
Before going any further you must:- Own an ERS-210 AIBO
- Own a copy of the AIBO Master Studio 1.1 (ERF-PC03)
- If you have an AIBO LAN card, already have it setup and working
- Be familiar with the basics of Master Studio by working through the tutorials
Conventions
There are several conventions used for these examples. All the Rcode is created with the Behavior Arranger ("BA"). All performance data is editable with the Action Composer ("AC"). Performance data is also editable with the AiboPet Editor (AEditor23). A simple naming convention is used for the actions. For any action, the same base name is used. For the "SKITFOO" action:- In the BA, the Action box that plays back the performance is called "SKITFOO"
- In the AC, the action that is played back is called "SKITFOO", and is stored in file "SKITFOO.ACT"
- The performance files also use the same base filename: SKITFOO.MTN, SKITFOO.WAV (or SKITFOO.MID) and SKITFOO.LED.
For laying out the flowchart, two sizes of boxes are used. Small boxes are used for very simple actions (usually just a single "PLAY:ACTION" or "PLAY:ACTION+"). If you install Master Studio Plus, you will get the small bitmaps.
Example 1: Bender AIBO (Bender 2.0)
Bender AIBO (ERS-210) is a entertainment personality. It is a port of the ERS-11x personality with a few small changes. Many of the new ERS-210 features are not exploited.How does it work?
Bender is a simple personality that reacts to inputs (head pat, hit, obstacle etc). Bender 2.0 does not respond to sounds or voice commands. Bender will perform skits (both short and long) at random after several seconds of inactivity. Lastly, it has a special mode (by pressing his back) to specifically select one of six of the longer skits.Interesting Actions
Most of the actions are simple, consisting of a single MTN, WAV and LED performance.Interesting Branch Logic
The main loop starts with "Clear_Inputs" which zeros out all interesting input variables (eg: "Head_Pat"). The main loop goes through several input checks (eg: Head_Hit?, Head_ON? etc) and then does a timeout check. The Idle_Timeout? check will check for a period of inactivity.Interesting Groups (subroutines)
There are some general purpose groups.Example 2: Obey Cat [RCode Plus]
Obey Cat (ERS-210) is a demo personality. It requires the RCode Plus. To edit using Master Studio, you should install the Master Studio Plus extensions.How does it work?
Obey Cat has a simple structure. Most of the logic is just in handling input sensors. Obey Cat does react to voice commands and sound controller commands (through RCode Plus extensions).Most of the logic is handled in the "Main_Not_Walking" routine. When AIBO is walking (either forward or backwards), it has a more specialized routine "Main_Walking".