blob: 724bdc0b45e7be287889e10ce0f04f9c9d057f89 [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(
40 name = "target_mapping",
41 srcs = [
42 "target_mapping.cc",
43 ],
44 data = [
45 "//y2023:aos_config",
milind-uc5a494f2023-02-24 15:39:22 -080046 "//y2023/constants:constants.json",
47 "//y2023/vision:maps",
milind-u16e3a082023-01-21 13:53:43 -080048 ],
49 target_compatible_with = ["@platforms//os:linux"],
50 visibility = ["//y2023:__subpackages__"],
51 deps = [
milind-u09fb1252023-01-28 19:21:41 -080052 ":aprilrobotics_lib",
milind-u16e3a082023-01-21 13:53:43 -080053 "//aos:init",
54 "//aos/events:simulated_event_loop",
55 "//aos/events/logging:log_reader",
James Kuszmauld67f6d22023-02-05 17:37:25 -080056 "//frc971/constants:constants_sender_lib",
milind-u16e3a082023-01-21 13:53:43 -080057 "//frc971/control_loops:pose",
58 "//frc971/vision:calibration_fbs",
59 "//frc971/vision:charuco_lib",
60 "//frc971/vision:target_mapper",
61 "//third_party:opencv",
James Kuszmauld67f6d22023-02-05 17:37:25 -080062 "//y2023/constants:constants_fbs",
milind-uc5a494f2023-02-24 15:39:22 -080063 "//y2023/constants:simulated_constants_sender",
James Kuszmauld67f6d22023-02-05 17:37:25 -080064 ],
65)
66
67cc_library(
68 name = "vision_util",
69 srcs = ["vision_util.cc"],
70 hdrs = ["vision_util.h"],
71 deps = [
milind-uf2a4e322023-02-01 19:33:10 -080072 "//third_party:opencv",
James Kuszmauld67f6d22023-02-05 17:37:25 -080073 "//y2023/constants:constants_fbs",
74 "@com_github_google_glog//:glog",
milind-u16e3a082023-01-21 13:53:43 -080075 ],
76)
Maxwell Hendersonfebee252023-01-28 16:53:52 -080077
Ravago Jonesb84f2062023-01-29 13:46:59 -080078cc_library(
79 name = "aprilrobotics_lib",
Maxwell Hendersonfebee252023-01-28 16:53:52 -080080 srcs = [
81 "aprilrobotics.cc",
82 "aprilrobotics.h",
83 ],
84 target_compatible_with = ["@platforms//os:linux"],
85 visibility = ["//y2023:__subpackages__"],
86 deps = [
James Kuszmauld67f6d22023-02-05 17:37:25 -080087 ":vision_util",
Maxwell Hendersonfebee252023-01-28 16:53:52 -080088 "//aos:init",
89 "//aos/events:shm_event_loop",
James Kuszmauld67f6d22023-02-05 17:37:25 -080090 "//frc971/constants:constants_sender_lib",
Maxwell Hendersonfebee252023-01-28 16:53:52 -080091 "//frc971/vision:calibration_fbs",
92 "//frc971/vision:charuco_lib",
93 "//frc971/vision:target_map_fbs",
94 "//frc971/vision:target_mapper",
95 "//frc971/vision:vision_fbs",
96 "//third_party:opencv",
97 "//third_party/apriltag",
James Kuszmauld67f6d22023-02-05 17:37:25 -080098 "//y2023/constants:constants_fbs",
Maxwell Hendersonfebee252023-01-28 16:53:52 -080099 ],
100)
Ravago Jonesb84f2062023-01-29 13:46:59 -0800101
102cc_binary(
103 name = "aprilrobotics",
104 srcs = [
105 "aprilrobotics_main.cc",
106 ],
107 target_compatible_with = ["@platforms//os:linux"],
108 visibility = ["//y2023:__subpackages__"],
109 deps = [
110 ":aprilrobotics_lib",
111 "//aos:init",
112 "//aos/events:shm_event_loop",
113 ],
114)
James Kuszmaul77d536c2023-02-11 17:30:59 -0800115
milind-u8e98cb92023-02-05 16:07:10 -0800116filegroup(
117 name = "image_streamer_start",
118 srcs = ["image_streamer_start.sh"],
119 visibility = ["//visibility:public"],
120)
121
James Kuszmaul77d536c2023-02-11 17:30:59 -0800122cc_binary(
123 name = "foxglove_image_converter",
124 srcs = ["foxglove_image_converter.cc"],
125 visibility = ["//y2023:__subpackages__"],
126 deps = [
127 "//aos:init",
128 "//aos/events:shm_event_loop",
129 "//frc971/vision:foxglove_image_converter_lib",
130 ],
131)
James Kuszmauld6199be2023-02-11 19:56:28 -0800132
133cc_binary(
134 name = "calibrate_extrinsics",
135 srcs = [
136 "calibrate_extrinsics.cc",
137 ],
138 target_compatible_with = ["@platforms//os:linux"],
139 deps = [
140 "//aos:init",
141 "//aos/events/logging:log_reader",
142 "//frc971/constants:constants_sender_lib",
143 "//frc971/control_loops:profiled_subsystem_fbs",
144 "//frc971/vision:extrinsics_calibration",
145 "//third_party:opencv",
146 "//y2023/constants:constants_fbs",
147 "//y2023/vision:vision_util",
148 ],
149)