Quote:
Originally Posted by AriMindell
I have some experience from last year converting a target location in pixels to an offset in degrees using the FOV of the camera, but I am not sure how to apply that to this year's vision challenge. We are looking to align with the gear peg laterally using vision. Is there a similar equation for converting pixels to translational distance? (Distance we need to slide laterally to get lined up with the peg)
Sent from my iPhone using Tapatalk
|
In order to compute the translational distance, you will need to know how far away from the target you are. Assuming you can compute the distance, one way to compute the translational movement needed would be like this: compute the angle offset in degrees the way you did last year, compute the distance, then use some trigonometry to calculate the "translational distance" (tan(theta) = translation / distance)