Get your free robot!

If you haven't been to Daniel Roth's site on behavior based robots, you ought to.

formatting link
This is a bunch of fun. Personally, I've gotten about a hundred free virtual robots so far, and learned a great deal about behavior based programming. I've also been reading along in Joe Jones book, Robot Programming, A Practical Guide to Behavior-Based Robotics

formatting link
I'm really enjoying this book, because it is extremely practical. Lots of little tips.

For instance. Joe's sensor returns a 1 or a 0 for detection or nondetection. He wants to change it to a direction for a wheel; 1, -1. What's a really simple way to do it? 2w - 1. So 2* w will give a 2 or a

  1. Then -1 will give a 1 or a -1. Slick.

Now going beyond the book for a moment, a multiply by two is a ASL (arithmetic shift left) in most machine codes, and a -1 is usually a single instruction as well, like SUB #1, or ADD #-1, or what have you. So this technique could compile to an extremely compact two instruction sequence. He doesn't go into that detail, just mentions the conversion.

Now in my systems, I generally get a 0 for false and FFFF or -1 for true. I'd do a 2* and a 1+ to get the same effect (but sense would be inverted).

So again, I think Joe's got a winner here. I'm glad to have the book.

Reply to
Randy M. Dumse
Loading thread data ...

Used to do something similar with joysticks on the Atari 800 button * 2 - 1

formatting link

Reply to
Blueeyedpop

I agree, a really great book. I've been approaching robots from a computer programmer's point of view. This book showed me the eroor of my ways.

chris > If you haven't been to Daniel Roth's site on behavior based robots, you

formatting link

Reply to
chris

Yep - lots of fun. I had minor trouble at first, but Daniel responded to my query very quickly identifying the problem - my Java version was too old. After a quick upgrade to 1.4.1, all was well.

I also got the book, mostly from your earlier posting about it, Randy. I think the book is very good, and I would consider it a "must have" for folks who are experience programmers, but are new to programming robotics, or even for the experienced robot programmer who is perhaps struggling to keep the complexity of his robot code in check. Joseph Jones does a good job of presenting the not only the concepts but also detailed examples of tried and proven techniques.

-Brian

Reply to
Brian Dean

Same with me. I couldn't accept my browser wasn't enabled. But I read in the FAQ's it was probably the Java version, so I downloaded. Things started working and making sense right after that.

To some degree, things aren't as intuitive as they might be. You have to read the whole of the instructions, and I'm a skim and play kinda guy. Instructions are last resort. Took me time to find the Programming Dialog Box, which required double clicking the robot. Double clicking a rolling robot can be tough. So that wasn't obvious to me.

Still, I've learned a great deal from the playing with the behaviors and that's the whole point.

Reply to
Randy M. Dumse

Really? Perhaps you could expand on what you learned. I'm not disagreeing, I'm just curious what they made visible for you. ???

Randy M. Dumse

formatting link
Caution: Objects in mirror are more confused than they appear.

Reply to
Randy M. Dumse

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.