Add y2023 camera definition
For now, just adding box of pis calibration from 2022.
We'll add the robots later.
Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: I71a80ef4a25e6181a2263e25670e7f7297a233ae
diff --git a/y2023/vision/BUILD b/y2023/vision/BUILD
index 2f93b16..e51ed0b 100644
--- a/y2023/vision/BUILD
+++ b/y2023/vision/BUILD
@@ -1,3 +1,46 @@
+py_binary(
+ name = "create_calib_file",
+ srcs = [
+ "create_calib_file.py",
+ ],
+ args = [
+ "calibration_data.h",
+ ],
+ data = glob(["calib_files/*.json"]),
+ target_compatible_with = ["@platforms//os:linux"],
+ visibility = ["//visibility:public"],
+ deps = [
+ "//frc971/vision:create_calib_file",
+ ],
+)
+
+genrule(
+ name = "run_calibration_data",
+ outs = [
+ "calibration_data.h",
+ ],
+ cmd = " ".join([
+ "$(location :create_calib_file)",
+ "$(location calibration_data.h)",
+ ]),
+ target_compatible_with = ["@platforms//os:linux"],
+ tools = [
+ ":create_calib_file",
+ ],
+)
+
+cc_library(
+ name = "calibration_data",
+ hdrs = [
+ "calibration_data.h",
+ ],
+ target_compatible_with = ["@platforms//os:linux"],
+ visibility = ["//visibility:public"],
+ deps = [
+ "@com_google_absl//absl/types:span",
+ ],
+)
+
cc_binary(
name = "camera_reader",
srcs = [