Prototype for phase 1
Hi,
So here is the basic design I sketched up ; the basic X asis turret which will hold the vision cam tied to phidget interface kit via USB, which is also connected to PC via USB.
From another angle:
« April 2007 | Main | January 2008 »
Hi,
So here is the basic design I sketched up ; the basic X asis turret which will hold the vision cam tied to phidget interface kit via USB, which is also connected to PC via USB.
From another angle:
Hi,
I wanted to get away for a bit with the computer vision work I am doing for my home brewed robot, and try some things that I had in the corner of my mind recently.
One of these things was to see the suggested distance diffrences between google maps, and yahoo maps. Which service is more efficient, and which can suggest the shortest routes?
For this, all I need was a set of addresses I can use for the test, and luckly t-Mobile hotspot finder
has many addresses per state that I could use: t-mobile store locations
I specifcly picked NY, because the search can be done per state, and that is the one with the most locations for this test.
Next, I needed a script to parse out the addresses from that site, and create"From" and "To" objects
which I can pass to the google, yahoo http requests and parse out the total distance between trips.
What better tool can be their for such a script then to use python, and beautiful soup which is a excelent html parser, just what I need.
My test script's source code is here
I picked 220 addresses from NY T-Mobile store list, and created 110 route's, which I was able to use with :
-googleQuery = "http://maps.google.co.uk/maps?q=from:"+From+"+to:"+To
-yahooQuery = "http://maps.yahoo.com/dd_result?newaddr="+From+"&taddr="+To
Yahoo, recenlty changed its maps layout with Ajax, but luckly I can still use the old version as in the example above
After parsing each distance for yahoo, and google for the 110 route's and adding them together; the result I got was quite interesting:
Total distance for 110 route's for:
- google maps : 4138.9 miles
- yahoo maps : 4203.2 miles
So, in overall for google was able to suggest the shortest path for this test array.
I also tried a couple other states for this test, and the outcome was similar in overall.