Thursday, December 11, 2008

Best Project... :)

I forgot to update this here: We did win the Award for the Best Academic Project of Computer Science and Engineering department. The project was officially named "Monoscopic Vision Based Autonomous Ground Vehicle".

The award was presented to us during our convocation.

Here is the link to the newspaper article.

Wednesday, December 10, 2008

More...

See Eohan's homepage for some more details on Project AGV.

Monday, November 17, 2008

AGV : Another Video

Eohan has added this video on Youtube. Here is another glimpse of our AGV :)

Monday, November 12, 2007

Some action :)

This video was taken in April. I have been thinking of posting it for a while now... Thought i shall do it now.. :)

Friday, March 23, 2007

BlogDay 71:Of Serial, Steering and Software Lab

Hmmm... that's a long delay in posting, i agree. But we weren't idle.

The most important thing from my part is the fact that the serial port communication part is now fully operational. I spend a month on it. Really, one whole month. There were all these example code in the net for serial port communication but it seemed to evade me for all these days. The hyperterminal in windows is communicating with the code programmed in the AVR ( by sri raj and eoeo) alright but whatever code i wrote, it seemed to ignore it.

The code wasn't the only difficulty. The laptop provided to us from the department does not have a serial port. So we bought this small smart device which gave us a serial port on one end and a usb port on the other. The driver for the thing is pretty nasty though. ( Lots of blue screens in windows... )

I was pretty stuck at this point and no important coding was done for all these days. Two days back i stumbled upon the idea of searching the sourceforge again. It had given us opencv a few months back. I simply did it and voila! got a bunch of serial port libraries. These were much different from the commercial ones i had been trying... no nag screens, no complex stuff...

It was just like love at first sight! ;) The very first run of the code told me that this would work.
The UI was pretty professional and i was able to send even sentences to the port and read back.
So the next day was spend on integrating the serial port thing into our code. It wasn't easy at first. The code was a good one with MFC and stuff and miranda was a small (?) console application. Then i did the most obvious thing.

Now the serial port code contains miranda. Yes. I put miranda into it rather than putting it into miranda.

Miranda V 0.3 has got a gui now a got a serial communication part and two threads communicating with each other. Professional enough.

Now to the mech side of it.

The 'thing' we ( 'we'...? well i'm just a spectator in the hardware part... read 'we' as eoeo, sri raj, bipin, abhilash, maruthu...) made has got problems with the front wheel and steering.
There isn't enough turning. Either we'll have to fine tune the steering and front wheels or we need a much more powerful motor. Time constraints tell us that ordering a new motor is not feasible. We'll have to find some way of making it work better.

But we have got the rear wheels all fixed. Even a brake. Our AGV is taking shape.

Of software lab? hmmm... its this small thing.. i shifted all my work to the lab again. Working in the room isn't paying off well... At least we got much more computing power there. One month of serial porting here didn't give me anything. I took another session in the lab to make things right. ;)

So almost two weeks to go. I mean, for the evaluation. Will we make it?

Thursday, February 8, 2007

BlogDay 28: Miranda Version 0.2

Finally added a pretty much working model of neural networks onto the code...
The ml libraries are really a boon...they are pretty much optimized and efficient. I was amazed by the the accuracy of predictions.... More abt it later...

I send the whole of yesterday optimizing our code... it runs much faster now...

Tuesday, February 6, 2007

BlogDay 26: CvANN_MLP::train

<update>
If you are looking for sample code for CvANN_MLP, see this
</update>

The Pro work is going on... i was a bit lazy abt filling up the blog...

We decided to try out a small vehicle rather than a full sized automobile. Reasons: Mechanical difficulties, Financial difficulties.


Has been trying out quite a number of stuffs. Interestingly, i'm back to square one in one thing.... ai for the vehicle. Has been exploring a lot of machine learning stuff in openCV... unfortunately most of them are either too complex or pretty much useless for our purpose...
And then i found neural networks in the machine learning libraries....

The difficult part was the implementation. All the documentation stuff were there but that was not enough for making a working example of ANN. Despite a lot of unsuccessful tries , i actually coded a pretty much working artificial network model in OpenCV/ML.

The code is for a simple purpose : Predict the average of two numbers. Its given 15 samples and then asked to find the average of 25 and 35. Here is a run:

Creating matrices..
12.000000 22.000000
56.000000 22.000000
34.000000 18.000000
26.000000 80.000000
23.000000 55.000000
34.000000 56.000000
22.000000 18.000000
26.000000 80.000000
23.000000 78.000000
20.000000 30.000000
45.000000 40.000000
33.000000 35.000000
39.000000 48.000000
27.000000 35.000000
28.000000 42.000000
12.000000 22.000000 17.000000
56.000000 22.000000 39.000000
34.000000 18.000000 26.000000
26.000000 80.000000 53.000000
23.000000 55.000000 39.000000
34.000000 56.000000 45.000000
22.000000 18.000000 20.000000
26.000000 80.000000 53.000000
23.000000 78.000000 50.500000
20.000000 30.000000 25.000000
45.000000 40.000000 42.500000
33.000000 35.000000 34.000000
39.000000 48.000000 43.500000
27.000000 35.000000 31.000000
28.000000 42.000000 35.000000
30.694805 0.000000

As u can see the prediction is 30.69.. yipee!!

I'm excited... But what abt the real thing....?? will it work on a much bigger scale... with all the unpredictable
things the image processing thing is to give the neural layer... well, lets hope it does..