IEEERobotics / bot

Robot code for 2014.
BSD 2-Clause "Simplified" License
18 stars 11 forks source link

QRCode Displacement readings are not matching valid units #453

Closed BrettGoldbach closed 8 years ago

BrettGoldbach commented 8 years ago

The solvePnP function for opencv outputs vectors to qr codes in units that do not match the input units. However they seem to be able to linearly fit to an actual unit, in this case inches.

I mapped out a grid of measured and calculated values (distance and Z) to google sheets in the link below, where it show a strong linear fit following the function: Arbitrary units = 2.309 *(Actual inches) + .797

https://docs.google.com/spreadsheets/d/1kCn6Amgc0mpk455qh3CeFzDHTatWdrZuWhXfCstFoQQ/edit?usp=drive_web

AhmedSamara commented 8 years ago

We've now mapped this out.

They don't match real units but they're linear so it's trivial to deal with.