Re: Balance between theory and practice
- From: Andy P <itsasecret@xxxxxxxxxxxxx>
- Date: Mon, 27 Jun 2005 11:07:50 -0400
The PatrolBot relies mainly on a laser range-finder to build floor plans, navigate, avoid obstacles and monitor movement.
Sounds cool.
And a laser range-finder sounds expensive?
Actually, you could integrate it into your vision system. (if youll have one) and it wont cost any more than a pocket laser pointer!
Use a webcam for your vision system...a good one 50-100 dollars.
Get yourself a green laser pointer (you can use red, but green not only looks cooler, it's more intense and the beam is usually more coherent for a given amount of power).
Mount the laser point underneath (or above) the webcam perfectly in line with the webcam so that the centerline of the lense is on the same plane and parallel with the laser.
Angle the laser upwards (or downwards if mounted above) so that the minimum distance you want to be able to measure just makes it into the field of view of the webcam. I.E.- if you want to start measuring at a minimum distance of 4 feet, place the apparatus 4 feet away from a flat wall, and adjust the laser so it's barely into the FOV of the webcam.
Then in your software, take a picture and scan it for the brightest pixel in the color your looking for (or the brightest pixel period, green lasers are WAYYY bright and often swamp the detector unless it's very well filtered).
The higher up the pixel is on the picture, the farther away the object is. You could even get fancy and use the shape and intensity of the resultant beam reflection to determine alot of information about the object it's reflecting off of.
I've done this with a logitech webcam (I've got a logitech 3000 pro I think, but anything "should" work) using the logitech SDK which is free to download, and has samples for C and VB. I used VB cause basic is the only language I REALLY know (ok, commence the picking on of me! :-) ).
I wish I could claim this idea for my own but I believe it was developed by a student at MIT or carnegie melon. I found it on the web, dont remember where, and my bookmarks for it are long gone (mozilla has a tendancy to eat my goddamned bookmarks). A google search should turn up good info.
I used it to augment my sonar, and used it sparingly due to the power consumption of the laser and the danger of a super bright green laser whipping around and possibly hitting people in the eye (bad juju). The chip in my webcam is particularly sensitive to IR, so an IR laser would have been cool and a hell of alot more eye safe, but man are they $$$.
You could even externally adjust the position of the laser with steppers o servos to give a good scan, and come up with a 3d model in the 'bots "brain" of what's going on around it to a very fine extent. Alot more difficult for sure, but still possible.
Anywhoo, just an idea (since you'll have a vision system anyways!)
---Andy P .
- Follow-Ups:
- Re: Balance between theory and practice
- From: mlw
- Re: Balance between theory and practice
- From: mlw
- Re: Balance between theory and practice
- References:
- Balance between theory and practice
- From: mlw
- Re: Balance between theory and practice
- From: JGCASEY
- Re: Balance between theory and practice
- From: mlw
- Re: Balance between theory and practice
- From: JGCASEY
- Balance between theory and practice
- Prev by Date: Re: Balance between theory and practice
- Next by Date: Handicapped Golfball Launcher
- Previous by thread: Re: Balance between theory and practice
- Next by thread: Re: Balance between theory and practice
- Index(es):
Relevant Pages
|