'ight niggahs time to use your creativity.
I have to create a node-based AI navigation system to make our school's robot kick ass. If you don't understand that, just get this: I need to measure how far the robot has moved from its starting point. I need the x and y components of the difference in position (if the surface of the playing field is the plane)
My robot is configured like this (the black lines are wheel connected to motors. The gray box is the robot's shape. It is a :

Here is an example of a similar drive train (our drive train is a shitton better than this though ofc...)
I have this:
*An optical quad encoder (any number of them)
- They can be used to measure the amount any joint has rotated. I.e, I could attach it to a wheel and measure how far it has traveled.
*A 'line-follower'
- Emits an infared light and measure the intensity of the reflection. Basically, I can use it to measure how white a surface is (how well it reflects light.) Good for checking if I am over a while or black line (hence what it is called a line-follower)
* Ultra-sonic range finder
- Omits an ultrasound wave, measures the time it takes for it to reflect back - can be used to measure the distance between the robot and an obstacle or some bs.
* Analog Accelerometer
- Measures acceleration of body it is attached to in three-axis. Probably my best bet, but it is expensive and probably not that great in terms of accuracy (which I need a lot of.) Anyone use one of these before? How accurate are they?
How can I measure the change in position?
My robot is configured like this (the black lines are wheel connected to motors. The gray box is the robot's shape. It is a :

Here is an example of a similar drive train (our drive train is a shitton better than this though ofc...)
I have this:
*An optical quad encoder (any number of them)
- They can be used to measure the amount any joint has rotated. I.e, I could attach it to a wheel and measure how far it has traveled.
*A 'line-follower'
- Emits an infared light and measure the intensity of the reflection. Basically, I can use it to measure how white a surface is (how well it reflects light.) Good for checking if I am over a while or black line (hence what it is called a line-follower)
* Ultra-sonic range finder
- Omits an ultrasound wave, measures the time it takes for it to reflect back - can be used to measure the distance between the robot and an obstacle or some bs.
* Analog Accelerometer
- Measures acceleration of body it is attached to in three-axis. Probably my best bet, but it is expensive and probably not that great in terms of accuracy (which I need a lot of.) Anyone use one of these before? How accurate are they?
How can I measure the change in position?


ask an asian.
I had the same project except I had an infrared line measurement thing-a-majig (forget the name) that measured the distance to an object directly in front of it, though my test was in a controlled environment.