Errors in my Program !

The program was giving me four errors. I had devised a machine learning program for my robotics team. We had to present the robot that we were making for an event that might take us to IIT-Bombay and eventually to Stanford University ! My team-mates were students of the Electronics branch. We had divided work among ourselves so as to not strain a single person with the task of doing the whole thing. Mine, was the last job. All the circuitry had been completed. All that I had to do was to program the robot so that it learnt on it's own how to respond to the path in front of it. Such type of a program is known as a machine learning program. My robot was to run on a path without any remote control, learning the path and where to avoid obstacles. These errors were only declaration errors i.e. errors in which variables in a program have been left undeclared  before they are being called in the program. It took me another five minutes to correct those errors. I looked at my watch. It was three in the morning. I was almost done, or so it seemed. I went up to my robot which was kept right beside my watch on my working table. Two wires had been connected to my computer to upload the program that I had been developing. The wires were coated white and had multiple thin wires connected together to form the bigger one. At both ends were plastic connectors which had to be exactly fitted into the ports made on the robot and the computer. The robot's base had a green colored chip. On it, I could see a number of resisters, transistors and other electronics equipment. This green base had long pipes fitted parallely to both sides so as to allow free movement of the wheels. The base was supported by a plastic envelope on the bottom and had hundreds of wires coming out of it from the sides where the pipes were not present. A few of those wires were connected to a sensor system. A sensor system helps in sensing the path in front of the robot. It throws a particular type of light in front of the robot and if the light is reflected back, the sensor determines it as an obstacle in its path. The sensor system had been logically placed on top of the fore-wheel. There were two other green chips, the same color as that of the base, connected in a juxtaposed manner to each other. These were one-third the size of the base and had been placed right on top of it. I had opened the robot from its top. The top had been simply made in the shape of a truck or an SUV. I put down the robot and went back to my program. I re-compiled the code and what I saw next woke me up from my half-sleep. The compiler displayed forty-two errors, or i must say, another day's work for me now !

Comments

Popular posts from this blog

The end ? | Heart and Brain in conflict | Part 1

My Best Friend...

Honesty Is The Best Policy ?