So LL’s priorityTag setup allows me to set a desired tag to retrieve 2D values from, tx, ty, ta, etc.
Everything is from the camera’s perspective at the end.
So to get the Camera space Transform3d I need
x, y, z, roll, pitch, yaw.
-tx is yaw
-ty is pitch
I need the distance to the camera using (targetHeight - cameraHeight) / Tan(camera pitch + targetPitch) all in SI units of course.
From the distance I can get x from distance * cos(yaw) and y from distance * sin(yaw).
So I have x, y, pitch, and yaw. I’m missing z and roll.
I can get z from targetHeight - cameraHeight.
So that leaves roll. What I would have to rotate the camera to see the AprilTag square (rect?) head on. Do I need corner data to get that. If so what would the formula be?
Note: You’ll often see me post about both LL and PhotonVision. We’re going to use PhotonVision for the first time this year, but we also plan on using our LL3 because well it’s a camera. We aren’t going to throw away $400.