Sensors
First of all: Sorry it took so long, I finally put up [a PDF version of the slides][slides] of my presentation on March 27th, 2010 about my bachelor thesis. The movie in there won’t play, this being PDF and all, but it really is just the same as in [my last blog entry about this][last], minus the “real” part because that just didn’t look good enough to be projected with a huge beamer.
Now, about my current status. There are a number of official milestones, which are listed in the slides and the proposal, but I think just as important, if not more, are the informal milestones. This simulator just hit the most important one for me: It is fun to play with it. This is such an important step because “This really annoys me” is a far more precise and useful sentiment than “I guess I could do it that way as well”, and you won’t get it if you don’t play with the program.
The important piece was to implement sensors, which are now fully supported. Let me give you a short overview:
</p></object> <!--[if gt IE 6]><!--></object> <!--<![endif]-->
In the first part, the robot follows the black line, which is achieved by driving straight as long as the light sensor (pointed down here) senses “black” and turning right as long as it senses “white”. In the second portion, the robot drives straight ahead until it hits a wall, where it backs up and turns away from that wall. Finally, in the last example the robot is trying to maintain a constant distance to whatever is in front of its ultrasound sensor.
All three programs run just the same on a real robot. What I did not implement yet is the sound sensor, because there is currently no sound in there at all. I also do not plan to implement the separate color sensor, because there is only gray scale here after all. However, I think the light sensor ought to work if used as a color sensor in light sensor mode (which sounds slightly weird, I know). The next step now is to implement sound.
Written on May 3rd, 2010 at 04:37 pm