You are on page 1of 5

[AiboHack - Boneyard] SapBench - PDA workbench for RoboSapien co... http://www.aibohack.com/robosap/sapbench.

htm

AiboPet's BoneYard http://aibopet.com, http://aibohack.com

WARNING: contents of this page are very old. Email: aibopet@aibohack.com


Click here for the home page

SapBench - PDA workbench for RoboSapien


control scripting

SapBench is a Palm/CLIE program provides that provides three main features:


A replacement to the regular remote, using a textual palm interface, including access to secret IR codes.
Aim the PDA at the robot and select an IR code.
A simple tool for scripting, editing and downloading your RoboSapien logic. There are several samples
that can automatically be downloaded to the robot and run (and more to come). Edit your own. Aim the PDA
at the robot during download, then run the program on the robot.
NOT YET FINISHED: A more powerful remote macro tool. In this case the PDA is serving as the brain,
controlling the robot using IR control. Right now it is a simple scripting language with simple GOTO,
random and LOOP primitives (but can be easily extended since everything is running on the PDA). The PDA
must be aimed at the robot all the time the macro is running (the PDA must have a powerful IR emitter for
this to work).

(starting screen)

Requirements

1 of 5 4/1/2018, 1:36 AM
[AiboHack - Boneyard] SapBench - PDA workbench for RoboSapien co... http://www.aibohack.com/robosap/sapbench.htm

You should already be familiar with how the robot works and have tried at least a little bit of simple
programming (ie. work through the manual).

Hardware Requirements

a RoboSapien robot
a consumer IR capable Palm PDA

Software Requirements

the free SapBench program


the OrLib library (provided version is a 15 day trial from OmniRemote)
optionally install the full OmniRemote program (for testing and registration)

If you don't know if your Palm PDA is consumer IR friendly, try installing SapBench and see if it works. The
current version relies on the OrLib library (part of OmniRemote). If OmniRemote works on your PDA,
SapBench should work. If OmniRemote gives you an error during startup (eg: with the UX or TH CLIEs),
SapBench will not work. If OmniRemote appears to work, but fails to record new macros, SapBench may
work.

NOTE: future versions may support the CLIE IR API (like PerfectRemote) and perhaps even a PocketPC
version depending on interest (consumer IR on PocketPC is a pain as well). If you are a developer who has
written PDA software before and want to help out, please send me an email.

Installation
Download this ZIP file SapBench_101.zip
Unzip and install the two files to your PDA:
SapBench.prc - is the actual program
OrLib.prc - is OmniRemote library (15 day trial version, version 1.59) -- same as on the official
website.
NOTE: for older black-and-white Palms, please use the NoIcons version: SapBench_noicons.prc
Run the "SapBench" program on your Palm. The first time it runs it will report "WARNING: no script
database - filling with samples". That's ok.
See below for the different things you can do.

OmniRemote trial version

A company called Pacific Neo-Tek makes a general purpose Palm PDA remote. In addition they have a
programmer API for people to write their own programs. That's what SapBench uses and it saves me a lot of
time (OmniRemote Library V1.59 part of OmniRemote Professional V2.13).

After the 15 day trial period, SapBench and OmniRemote will stop functioning. SapBench doesn't have a nag
screen to remind you before the 15 days are up, however it will tell you after time is up (ie. after 15 days). If
you are still using this after 15 days, I suggest you register ($25, BTW: I see none of this money). Install the
full OmniRemote (Remote.prc) from their website and enter your registration code. After registering
OmniRemote you can go back to SapBench and it will work again.

2 of 5 4/1/2018, 1:36 AM
[AiboHack - Boneyard] SapBench - PDA workbench for RoboSapien co... http://www.aibohack.com/robosap/sapbench.htm

Usage - part 1 - Remote Control


This is the easy case of using SapBench as a remote control. First pick one of the categories on the buttons in
the top right (eg: "M" for move commands):

M - Move commands
L - Left arm/hand commands
R - Right arm/hand commands
K - Skits
O - Other
P - Programming
+ - for Macro mode (do not use - see part 3)

This will fill the right side list with a number of commands. Aim the IR transmitter of your PDA at the head
of the robot and click on one of the commands in the list (eg: "forward step") and it will control the robot.

HAVING PROBLEMS?: if the robot does not respond, check to make sure the regular remote is working. If
SapBench fails to make the robot do anything, your PDA may not be supported. Some PDAs have very weak
IR transmitters, so place the PDA close to the robot's head, and be sure the IR transmitter of the PDA is
facing right at him. (the location of the IR transmitter varies with every PDA, check your manual for how you
are supposed to align two PDAs for 'beaming')
TIP: To access the currently identified (and useful) secret IR codes, select "Secrets" from the "Filter" menu.
TIP: The "Stop" button on the bottom always there for your convenience (it does the same as the Move
command "stop")

Usage - part 2A - Script downloader


The upper left has a drop-down list of available scripts. Select one and you will see the code in the left hand
list. You can edit these if you like (see part 2B). To download them to the robot, aim the PDA at the robot and

3 of 5 4/1/2018, 1:36 AM
[AiboHack - Boneyard] SapBench - PDA workbench for RoboSapien co... http://www.aibohack.com/robosap/sapbench.htm

press the "Downld" button. The robot should make a few noises and perhaps jitter a little. When complete,
the program selected should now be downloaded into the robot's tiny brain.

Test him out as you would normally (eg: to test the sensor programs hit his toes).
To run the main program, press the "Run" button after "Downld". This will start the main program using
"quiet execute with subroutines" (see here for more info)

Sample scripts provided:

Test1, .., Test9 - these are placeholders to store your own scripts [NOTE: use these names for now --
adding, deleting or renaming these is not yet supported]
No-Op - fill the 3 sensor handlers with do-nothing routines (different than the default routines that
make noises and stop the robot from walking)
SimpTurn - the simple "turn when you hit a wall" logic often called an "autonomous" walking routine
VeryLong - an insane example of an 84 step program, running the AllDemo mode 84 times. This
should take approximately 3 hours to execute (the same 2+ minute demo repeated 84 times).
AllSkit1, AllSkit2 - simple demo programs that go through the simple skits (but not the longer demo
modes)
? other

Usage - part 2B - Script editor


You can edit any of the existing scripts. For now, creating and renaming scripts is not supported, so you
should pick one of the Test? scripts from the drop-down list to play with.
Usually it will start with an empty script, with nothing in the 5 sections. Select the section you wish to record
(eg: "[RSENSOR]").
Now find the command you wish to record first using the selection process you used in part 1 (select the
category, then select a command).
When you have found the command you want, press the "<<" button and it will add it to the script (after the
current selection in the left list).

4 of 5 4/1/2018, 1:36 AM
[AiboHack - Boneyard] SapBench - PDA workbench for RoboSapien co... http://www.aibohack.com/robosap/sapbench.htm

Before After

Deleting parts of a script is easy. Select any single command you like and press the "-" button to delete.
To delete the entire handler, select the section you want to delete (eg: "[RSENSOR]", "[LSENSOR]",
"[SSENSOR]", "[MAIN]") and press the "-" button. This makes it easy to start over.

All changes are immediately saved to the PDA as they are made. When you are done with your changes,
press the "Downld" button and try it out on the actual robot.

NOTE: if you come up with some useful scripts that you'd like to contribute for future releases, please send
me an email.

Usage - part 3 - Super Macro Player


Not finished yet.
This will have the ability of writing more complicated scripts (with GOTO, random logic and time delays).
The scripts will run on your PDA and send the necessary commands to the robot where they will be
performed immediately. The strength of your Palm's IR transmitter matters and how well you can orient it to
always reach the robot's head IR receiver.

This is preview version 1.01

5 of 5 4/1/2018, 1:36 AM

You might also like