Move target mapping to 2023
Now that we have the camera calibration code in 2023, it makes more
sense to just move it here. Also added json with the target poses from
the field diagrams (already was in frc971/vision for a test).
Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: I305d235df0b62f41fbe0db94e134fe1309e3c9c4
diff --git a/y2023/vision/BUILD b/y2023/vision/BUILD
index e51ed0b..56f4eba 100644
--- a/y2023/vision/BUILD
+++ b/y2023/vision/BUILD
@@ -70,3 +70,26 @@
"//third_party:opencv",
],
)
+
+cc_binary(
+ name = "target_mapping",
+ srcs = [
+ "target_mapping.cc",
+ ],
+ data = [
+ "//y2023:aos_config",
+ ],
+ target_compatible_with = ["@platforms//os:linux"],
+ visibility = ["//y2023:__subpackages__"],
+ deps = [
+ ":calibration_data",
+ "//aos:init",
+ "//aos/events:simulated_event_loop",
+ "//aos/events/logging:log_reader",
+ "//frc971/control_loops:pose",
+ "//frc971/vision:calibration_fbs",
+ "//frc971/vision:charuco_lib",
+ "//frc971/vision:target_mapper",
+ "//third_party:opencv",
+ ],
+)