blob: bb8348906c39ebc63e8de753ab675c289e9702ef [file] [log] [blame]
Austin Schuhdb2ed9d2022-12-26 14:02:26 -08001cc_binary(
2 name = "camera_reader",
3 srcs = [
4 "camera_reader.cc",
Ravago Jonese8700072023-01-14 19:41:56 -08005 "rkisp1-config.h",
Austin Schuhdb2ed9d2022-12-26 14:02:26 -08006 ],
Ravago Jonese8700072023-01-14 19:41:56 -08007 target_compatible_with = [
8 "@platforms//os:linux",
9 "//tools/platforms/hardware:raspberry_pi",
10 ],
Austin Schuhdb2ed9d2022-12-26 14:02:26 -080011 visibility = ["//y2023:__subpackages__"],
12 deps = [
13 "//aos:init",
14 "//aos/events:shm_event_loop",
15 "//frc971/vision:media_device",
16 "//frc971/vision:v4l2_reader",
17 ],
18)
19
20cc_binary(
21 name = "viewer",
22 srcs = [
23 "viewer.cc",
24 ],
25 target_compatible_with = ["@platforms//os:linux"],
26 visibility = ["//y2023:__subpackages__"],
27 deps = [
28 "//aos:init",
Ravago Jones17e13a22023-01-28 17:12:11 -080029 "//aos:json_to_flatbuffer",
Austin Schuhdb2ed9d2022-12-26 14:02:26 -080030 "//aos/events:shm_event_loop",
milind-uc3cf9752023-02-20 23:07:30 -080031 "//frc971/constants:constants_sender_lib",
Austin Schuhdb2ed9d2022-12-26 14:02:26 -080032 "//frc971/vision:vision_fbs",
33 "//third_party:opencv",
milind-uc3cf9752023-02-20 23:07:30 -080034 "//y2023/vision:vision_util",
Ravago Jones17e13a22023-01-28 17:12:11 -080035 "@com_google_absl//absl/strings",
Austin Schuhdb2ed9d2022-12-26 14:02:26 -080036 ],
37)
milind-u16e3a082023-01-21 13:53:43 -080038
39cc_binary(
milind-ud4051fe2023-02-25 18:00:05 -080040 name = "localization_verifier",
41 srcs = [
42 "localization_verifier.cc",
43 ],
44 target_compatible_with = ["@platforms//os:linux"],
45 visibility = ["//y2023:__subpackages__"],
46 deps = [
47 "//aos:init",
48 "//aos/events:shm_event_loop",
49 "//frc971/constants:constants_sender_lib",
50 "//frc971/control_loops/drivetrain/localization:localizer_output_fbs",
51 "//frc971/vision:vision_fbs",
52 "//y2023/localizer",
53 "//y2023/vision:vision_util",
54 "@com_google_absl//absl/strings",
55 ],
56)
57
58cc_binary(
milind-u16e3a082023-01-21 13:53:43 -080059 name = "target_mapping",
60 srcs = [
61 "target_mapping.cc",
62 ],
63 data = [
64 "//y2023:aos_config",
milind-uc5a494f2023-02-24 15:39:22 -080065 "//y2023/constants:constants.json",
66 "//y2023/vision:maps",
milind-u16e3a082023-01-21 13:53:43 -080067 ],
68 target_compatible_with = ["@platforms//os:linux"],
69 visibility = ["//y2023:__subpackages__"],
70 deps = [
milind-u09fb1252023-01-28 19:21:41 -080071 ":aprilrobotics_lib",
milind-u16e3a082023-01-21 13:53:43 -080072 "//aos:init",
73 "//aos/events:simulated_event_loop",
74 "//aos/events/logging:log_reader",
James Kuszmauld67f6d22023-02-05 17:37:25 -080075 "//frc971/constants:constants_sender_lib",
milind-u16e3a082023-01-21 13:53:43 -080076 "//frc971/control_loops:pose",
77 "//frc971/vision:calibration_fbs",
78 "//frc971/vision:charuco_lib",
79 "//frc971/vision:target_mapper",
80 "//third_party:opencv",
James Kuszmauld67f6d22023-02-05 17:37:25 -080081 "//y2023/constants:constants_fbs",
milind-uc5a494f2023-02-24 15:39:22 -080082 "//y2023/constants:simulated_constants_sender",
James Kuszmauld67f6d22023-02-05 17:37:25 -080083 ],
84)
85
86cc_library(
87 name = "vision_util",
88 srcs = ["vision_util.cc"],
89 hdrs = ["vision_util.h"],
90 deps = [
milind-uf2a4e322023-02-01 19:33:10 -080091 "//third_party:opencv",
James Kuszmauld67f6d22023-02-05 17:37:25 -080092 "//y2023/constants:constants_fbs",
93 "@com_github_google_glog//:glog",
milind-u16e3a082023-01-21 13:53:43 -080094 ],
95)
Maxwell Hendersonfebee252023-01-28 16:53:52 -080096
Ravago Jonesb84f2062023-01-29 13:46:59 -080097cc_library(
98 name = "aprilrobotics_lib",
Maxwell Hendersonfebee252023-01-28 16:53:52 -080099 srcs = [
100 "aprilrobotics.cc",
101 "aprilrobotics.h",
102 ],
103 target_compatible_with = ["@platforms//os:linux"],
104 visibility = ["//y2023:__subpackages__"],
105 deps = [
James Kuszmauld67f6d22023-02-05 17:37:25 -0800106 ":vision_util",
Maxwell Hendersonfebee252023-01-28 16:53:52 -0800107 "//aos:init",
108 "//aos/events:shm_event_loop",
James Kuszmauld67f6d22023-02-05 17:37:25 -0800109 "//frc971/constants:constants_sender_lib",
Maxwell Hendersonfebee252023-01-28 16:53:52 -0800110 "//frc971/vision:calibration_fbs",
111 "//frc971/vision:charuco_lib",
112 "//frc971/vision:target_map_fbs",
113 "//frc971/vision:target_mapper",
114 "//frc971/vision:vision_fbs",
115 "//third_party:opencv",
116 "//third_party/apriltag",
James Kuszmauld67f6d22023-02-05 17:37:25 -0800117 "//y2023/constants:constants_fbs",
Maxwell Hendersonfebee252023-01-28 16:53:52 -0800118 ],
119)
Ravago Jonesb84f2062023-01-29 13:46:59 -0800120
121cc_binary(
122 name = "aprilrobotics",
123 srcs = [
124 "aprilrobotics_main.cc",
125 ],
126 target_compatible_with = ["@platforms//os:linux"],
127 visibility = ["//y2023:__subpackages__"],
128 deps = [
129 ":aprilrobotics_lib",
130 "//aos:init",
131 "//aos/events:shm_event_loop",
132 ],
133)
James Kuszmaul77d536c2023-02-11 17:30:59 -0800134
milind-u8e98cb92023-02-05 16:07:10 -0800135filegroup(
136 name = "image_streamer_start",
137 srcs = ["image_streamer_start.sh"],
138 visibility = ["//visibility:public"],
139)
140
James Kuszmaul77d536c2023-02-11 17:30:59 -0800141cc_binary(
142 name = "foxglove_image_converter",
143 srcs = ["foxglove_image_converter.cc"],
144 visibility = ["//y2023:__subpackages__"],
145 deps = [
146 "//aos:init",
147 "//aos/events:shm_event_loop",
148 "//frc971/vision:foxglove_image_converter_lib",
149 ],
150)
James Kuszmauld6199be2023-02-11 19:56:28 -0800151
152cc_binary(
153 name = "calibrate_extrinsics",
154 srcs = [
155 "calibrate_extrinsics.cc",
156 ],
157 target_compatible_with = ["@platforms//os:linux"],
158 deps = [
159 "//aos:init",
160 "//aos/events/logging:log_reader",
161 "//frc971/constants:constants_sender_lib",
162 "//frc971/control_loops:profiled_subsystem_fbs",
163 "//frc971/vision:extrinsics_calibration",
164 "//third_party:opencv",
165 "//y2023/constants:constants_fbs",
166 "//y2023/vision:vision_util",
167 ],
168)