Page 24 - The Definitive Guide to Building Java Robots
P. 24

Preston_5564C01.fm  Page 5  Friday, September 16, 2005  6:36 AM



                                                                                 CHAPTER 1  ■  A PRIMER   5









































                        Figure 1-5. A CubeBot

                        Summary
                        Hopefully you have everything you need to get started. I’m now going to start by explaining the
                        thought process behind robotics programming (in other words, getting your robot to do stuff).
                        Then I’ll talk about some concepts in Java you should know about before embarking on a
                        robotics project. Finally, I’ll show you an example of how to begin modeling your software in
                        a way that’s both easy to use and effective.


                        1.1 Organizing Your Behavior

                        What does your robot do? This is the number one question people ask when I tell them I have
                        a robot. My answer five years ago would be something like, “It moves around a room and
                        avoids the furniture.” Then people would say “Oh…,” and I would afterward talk about the
                        technology or the software, which never kept their attention.
                            Thus, I wanted something for my robot to do besides these basic things. I wanted it to do
                        something that would be cool, something like a simple human task, something I could tell
                        people about and not get blank stares in return. So, I picked the chore of getting a beverage
                        from the refrigerator.
   19   20   21   22   23   24   25   26   27   28   29