Page 247 - The Ultimate Palm Robot
P. 247
Color profile: Generic CMYK printer profile
Composite Default screen
Bots / The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 8
Bots
8
/ The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter
230 The Ultimate Palm Robot
download and install the Java Communications API now. The other re-
source you need is the BrainStem Java classes from Acroname. Those files
can be found in the Acroname Java.zip archive or the Acroname sdk.zip ar-
chive. You can get these files from the Acroname web site or on the CD-ROM
in the \Other Applications\BrainStem directory.
Set your classpath to include the comm.jar file and the \aJava directory of
the BrainStem software. Also, the classpath needs to include the path to the
AbstractBrainStem class. Now compiling is as simple as issuing this command:
javac ToFro.java
After the class is compiled, connect your BrainStem to the computer using
a serial cable. You can get a serial cable for this from Acroname. Turn the
BrainStem on and execute the ToFro program. If all goes well, you should see
the robot start moving back and forth. It will continue to do so until you turn
the BrainStem off or the batteries run down.
The Robot Geek Says
BrainStem and Java Tools
All of the software tools for creating, programming, and running
TEA programs can be found on the CD-ROM for this book. The TEA
software and the tools to compile, load, and launch TEA programs are
from Acroname. If you want to search for the latest versions and other
information, you should go to Acroname’s web site, www.acroname.com.
The tools for writing, compiling, and running Java code can be found
at java.sun.com.
We would like to thank the following organizations for making this
chapter possible:
✖ Acroname Corporation, for the BrainStem controller, the TEA language,
and SDKs
✖ Carnegie Mellon, PPRK project, for the original PPRK
The software that is included on the CD-ROM is copyrighted and
licensed by their respective developers or owners. Please consult the
documentation for each package for the software rights granted to you
with each package or application.
P:\010Comp\Bots\880-6\ch08.vp
Monday, May 12, 2003 1:16:48 PM