Use a solver for hub estimation
Uses ceres to estimate the rotation and distance
from the hub to the camera.
Ready for reviewing
Signed-off-by: Milind Upadhyay <milind.upadhyay@gmail.com>
Change-Id: Idd4fb3334146a0587c713887626cb0abe43cdd4e
diff --git a/y2022/vision/BUILD b/y2022/vision/BUILD
index 4f1c7ff..599b4ed 100644
--- a/y2022/vision/BUILD
+++ b/y2022/vision/BUILD
@@ -153,7 +153,13 @@
deps = [
":calibration_fbs",
":target_estimate_fbs",
+ "//aos/logging",
+ "//aos/time",
+ "//frc971/control_loops:quaternion_utils",
"//third_party:opencv",
+ "@com_google_absl//absl/strings:str_format",
+ "@com_google_ceres_solver//:ceres",
+ "@org_tuxfamily_eigen//:eigen",
],
)