James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 1 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_py_library") |
Austin Schuh | a1d006e | 2022-09-14 21:50:42 -0700 | [diff] [blame] | 2 | load("@com_github_google_flatbuffers//:typescript.bzl", "flatbuffer_ts_library") |
Austin Schuh | 8f99c82 | 2024-05-05 22:43:40 -0700 | [diff] [blame] | 3 | load("//aos:config.bzl", "aos_config") |
| 4 | load("//aos/flatbuffers:generate.bzl", "static_flatbuffer") |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 5 | |
Yash Maheshwari | 997b331 | 2024-05-18 17:08:44 -0700 | [diff] [blame] | 6 | cc_binary( |
| 7 | name = "modify_extrinsics", |
| 8 | srcs = [ |
| 9 | "modify_extrinsics.cc", |
| 10 | ], |
| 11 | target_compatible_with = ["@platforms//os:linux"], |
| 12 | visibility = ["//visibility:public"], |
| 13 | deps = [ |
| 14 | "//aos:configuration", |
| 15 | "//aos:init", |
| 16 | "//aos/events:event_loop", |
| 17 | "//frc971/vision:calibration_fbs", |
| 18 | "//frc971/vision:vision_util_lib", |
| 19 | "@com_google_absl//absl/strings:str_format", |
| 20 | "@org_tuxfamily_eigen//:eigen", |
| 21 | ], |
| 22 | ) |
| 23 | |
| 24 | cc_binary( |
| 25 | name = "image_replay", |
| 26 | srcs = [ |
| 27 | "image_replay.cc", |
| 28 | ], |
| 29 | target_compatible_with = ["@platforms//os:linux"], |
| 30 | visibility = ["//visibility:public"], |
| 31 | deps = [ |
| 32 | "//aos:configuration", |
| 33 | "//aos:init", |
| 34 | "//aos/events:simulated_event_loop", |
| 35 | "//aos/events/logging:log_reader", |
| 36 | "//frc971/vision:vision_fbs", |
| 37 | "//third_party:opencv", |
| 38 | ], |
| 39 | ) |
| 40 | |
| 41 | cc_binary( |
| 42 | name = "image_logger", |
| 43 | srcs = [ |
| 44 | "image_logger.cc", |
| 45 | ], |
| 46 | target_compatible_with = ["@platforms//os:linux"], |
| 47 | visibility = ["//visibility:public"], |
| 48 | deps = [ |
| 49 | "//aos:configuration", |
| 50 | "//aos:init", |
| 51 | "//aos/events:shm_event_loop", |
| 52 | "//aos/events/logging:log_writer", |
| 53 | "//aos/logging:log_namer", |
| 54 | "//aos/util:filesystem_fbs", |
| 55 | "//frc971/input:joystick_state_fbs", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 56 | "@com_google_absl//absl/flags:flag", |
| 57 | "@com_google_absl//absl/log", |
| 58 | "@com_google_absl//absl/log:check", |
Yash Maheshwari | 997b331 | 2024-05-18 17:08:44 -0700 | [diff] [blame] | 59 | ], |
| 60 | ) |
| 61 | |
| 62 | cc_binary( |
| 63 | name = "foxglove_image_converter", |
| 64 | srcs = ["foxglove_image_converter.cc"], |
| 65 | visibility = ["//visibility:public"], |
| 66 | deps = [ |
| 67 | "//aos:init", |
| 68 | "//aos/events:shm_event_loop", |
| 69 | "//frc971/vision:foxglove_image_converter_lib", |
| 70 | ], |
| 71 | ) |
| 72 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 73 | static_flatbuffer( |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 74 | name = "vision_fbs", |
| 75 | srcs = ["vision.fbs"], |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 76 | target_compatible_with = ["@platforms//os:linux"], |
| 77 | visibility = ["//visibility:public"], |
| 78 | ) |
| 79 | |
| 80 | flatbuffer_ts_library( |
| 81 | name = "vision_ts_fbs", |
| 82 | srcs = ["vision.fbs"], |
| 83 | target_compatible_with = ["@platforms//os:linux"], |
| 84 | visibility = ["//visibility:public"], |
| 85 | ) |
| 86 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 87 | static_flatbuffer( |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 88 | name = "calibration_fbs", |
| 89 | srcs = ["calibration.fbs"], |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 90 | target_compatible_with = ["@platforms//os:linux"], |
| 91 | visibility = ["//visibility:public"], |
| 92 | ) |
| 93 | |
| 94 | flatbuffer_ts_library( |
| 95 | name = "calibration_ts_fbs", |
| 96 | srcs = ["calibration.fbs"], |
| 97 | target_compatible_with = ["@platforms//os:linux"], |
| 98 | visibility = ["//visibility:public"], |
| 99 | ) |
| 100 | |
Milo Lin | 1390657 | 2023-03-15 20:55:22 -0700 | [diff] [blame] | 101 | flatbuffer_ts_library( |
| 102 | name = "target_map_ts_fbs", |
| 103 | srcs = ["target_map.fbs"], |
| 104 | target_compatible_with = ["@platforms//os:linux"], |
| 105 | visibility = ["//visibility:public"], |
| 106 | ) |
| 107 | |
milind-u | 2f101fc | 2023-01-21 12:28:49 -0800 | [diff] [blame] | 108 | flatbuffer_py_library( |
| 109 | name = "calibration_fbs_python", |
| 110 | srcs = [ |
| 111 | "calibration.fbs", |
| 112 | ], |
| 113 | namespace = "frc971.vision.calibration", |
| 114 | tables = [ |
| 115 | "CalibrationData", |
| 116 | "CameraCalibration", |
| 117 | "TransformationMatrix", |
| 118 | ], |
| 119 | target_compatible_with = ["@platforms//os:linux"], |
| 120 | visibility = ["//visibility:public"], |
| 121 | ) |
| 122 | |
milind-u | 959d6bd | 2023-01-21 12:32:52 -0800 | [diff] [blame] | 123 | py_library( |
| 124 | name = "create_calib_file", |
| 125 | srcs = [ |
| 126 | "create_calib_file.py", |
| 127 | ], |
| 128 | target_compatible_with = ["@platforms//os:linux"], |
| 129 | visibility = ["//visibility:public"], |
| 130 | deps = [ |
| 131 | ":calibration_fbs_python", |
| 132 | "@bazel_tools//tools/python/runfiles", |
| 133 | "@pip//glog", |
| 134 | "@pip//opencv_python", |
| 135 | ], |
| 136 | ) |
| 137 | |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 138 | cc_library( |
| 139 | name = "v4l2_reader", |
| 140 | srcs = [ |
| 141 | "v4l2_reader.cc", |
| 142 | ], |
| 143 | hdrs = [ |
| 144 | "v4l2_reader.h", |
| 145 | ], |
| 146 | target_compatible_with = ["@platforms//os:linux"], |
| 147 | visibility = ["//visibility:public"], |
| 148 | deps = [ |
| 149 | ":vision_fbs", |
Ravago Jones | dc52475 | 2022-12-27 01:15:13 -0800 | [diff] [blame] | 150 | "//aos/events:epoll", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 151 | "//aos/events:event_loop", |
| 152 | "//aos/scoped:scoped_fd", |
Ravago Jones | c6b919f | 2023-01-01 21:34:12 -0800 | [diff] [blame] | 153 | "//aos/util:threaded_consumer", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 154 | "@com_google_absl//absl/base", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 155 | "@com_google_absl//absl/log", |
| 156 | "@com_google_absl//absl/log:check", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame] | 157 | ], |
| 158 | ) |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 159 | |
| 160 | cc_library( |
| 161 | name = "charuco_lib", |
| 162 | srcs = [ |
| 163 | "charuco_lib.cc", |
| 164 | ], |
| 165 | hdrs = [ |
| 166 | "charuco_lib.h", |
| 167 | ], |
| 168 | target_compatible_with = ["@platforms//os:linux"], |
| 169 | visibility = ["//visibility:public"], |
| 170 | deps = [ |
| 171 | "//aos:flatbuffers", |
| 172 | "//aos/events:event_loop", |
| 173 | "//aos/network:message_bridge_server_fbs", |
| 174 | "//aos/network:team_number", |
| 175 | "//frc971/control_loops:quaternion_utils", |
James Kuszmaul | 7e95881 | 2023-02-11 15:34:31 -0800 | [diff] [blame] | 176 | "//frc971/vision:calibration_fbs", |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 177 | "//frc971/vision:vision_fbs", |
| 178 | "//third_party:opencv", |
James Kuszmaul | 969e4ab | 2023-01-28 16:09:19 -0800 | [diff] [blame] | 179 | "@com_github_foxglove_schemas//:schemas", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 180 | "@com_google_absl//absl/log", |
| 181 | "@com_google_absl//absl/log:check", |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 182 | "@com_google_absl//absl/strings:str_format", |
| 183 | "@com_google_absl//absl/types:span", |
| 184 | "@org_tuxfamily_eigen//:eigen", |
| 185 | ], |
| 186 | ) |
| 187 | |
| 188 | cc_library( |
| 189 | name = "extrinsics_calibration", |
| 190 | srcs = [ |
| 191 | "calibration_accumulator.cc", |
| 192 | "calibration_accumulator.h", |
| 193 | "extrinsics_calibration.cc", |
| 194 | "extrinsics_calibration.h", |
| 195 | ], |
| 196 | target_compatible_with = ["@platforms//os:linux"], |
| 197 | visibility = ["//visibility:public"], |
| 198 | deps = [ |
| 199 | ":charuco_lib", |
James Kuszmaul | 77d536c | 2023-02-11 17:30:59 -0800 | [diff] [blame] | 200 | ":foxglove_image_converter_lib", |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 201 | "//aos:init", |
| 202 | "//aos/events/logging:log_reader", |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 203 | "//frc971/control_loops/drivetrain:improved_down_estimator", |
Jim Ostrowski | ba2edd1 | 2022-12-03 15:44:37 -0800 | [diff] [blame] | 204 | "//frc971/vision:visualize_robot", |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 205 | "//frc971/wpilib:imu_batch_fbs", |
| 206 | "//frc971/wpilib:imu_fbs", |
| 207 | "//third_party:opencv", |
James Kuszmaul | 969e4ab | 2023-01-28 16:09:19 -0800 | [diff] [blame] | 208 | "@com_github_foxglove_schemas//:CompressedImage_schema", |
| 209 | "@com_github_foxglove_schemas//:ImageAnnotations_schema", |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 210 | "@com_google_absl//absl/strings:str_format", |
| 211 | "@com_google_ceres_solver//:ceres", |
| 212 | "@org_tuxfamily_eigen//:eigen", |
Stephan Pleines | 85b295c | 2024-02-04 17:50:26 -0800 | [diff] [blame] | 213 | ] + [ |
| 214 | # TODO(Stephan): This is a whacky hack. If we include this |
| 215 | # in the proper spot above (alphabetically), then we get a |
| 216 | # linker error: duplicate symbol: crc32. |
| 217 | # It's part of both @zlib and @com_github_rawrtc_re. |
| 218 | "//aos/analysis:in_process_plotter", |
Austin Schuh | dcb6b36 | 2022-02-25 18:06:21 -0800 | [diff] [blame] | 219 | ], |
| 220 | ) |
Milind Upadhyay | b67c618 | 2022-10-22 13:45:45 -0700 | [diff] [blame] | 221 | |
James Kuszmaul | f01da39 | 2023-12-14 11:22:14 -0800 | [diff] [blame] | 222 | static_flatbuffer( |
Milind Upadhyay | cd677a3 | 2022-12-04 13:06:43 -0800 | [diff] [blame] | 223 | name = "target_map_fbs", |
| 224 | srcs = ["target_map.fbs"], |
Milind Upadhyay | cd677a3 | 2022-12-04 13:06:43 -0800 | [diff] [blame] | 225 | target_compatible_with = ["@platforms//os:linux"], |
| 226 | visibility = ["//visibility:public"], |
| 227 | ) |
| 228 | |
Milind Upadhyay | b67c618 | 2022-10-22 13:45:45 -0700 | [diff] [blame] | 229 | cc_library( |
Milind Upadhyay | 7c20522 | 2022-11-16 18:20:58 -0800 | [diff] [blame] | 230 | name = "target_mapper", |
| 231 | srcs = ["target_mapper.cc"], |
| 232 | hdrs = ["target_mapper.h"], |
Yash Chainani | d5c7f0d | 2022-11-19 17:05:57 -0800 | [diff] [blame] | 233 | data = ["target_map.json"], |
Milind Upadhyay | 7c20522 | 2022-11-16 18:20:58 -0800 | [diff] [blame] | 234 | target_compatible_with = ["@platforms//os:linux"], |
| 235 | visibility = ["//visibility:public"], |
| 236 | deps = [ |
| 237 | ":geometry_lib", |
Milind Upadhyay | cd677a3 | 2022-12-04 13:06:43 -0800 | [diff] [blame] | 238 | ":target_map_fbs", |
Milind Upadhyay | 7c20522 | 2022-11-16 18:20:58 -0800 | [diff] [blame] | 239 | "//aos/events:simulated_event_loop", |
| 240 | "//frc971/control_loops:control_loop", |
Jim Ostrowski | 6d242d5 | 2024-04-03 20:39:03 -0700 | [diff] [blame] | 241 | "//frc971/vision:vision_util_lib", |
milind-u | 8f4e43e | 2023-04-09 17:11:19 -0700 | [diff] [blame] | 242 | "//frc971/vision:visualize_robot", |
Milind Upadhyay | c5beba1 | 2022-12-17 17:41:20 -0800 | [diff] [blame] | 243 | "//frc971/vision/ceres:pose_graph_3d_lib", |
Milind Upadhyay | 7c20522 | 2022-11-16 18:20:58 -0800 | [diff] [blame] | 244 | "//third_party:opencv", |
| 245 | "@com_google_ceres_solver//:ceres", |
| 246 | "@org_tuxfamily_eigen//:eigen", |
| 247 | ], |
| 248 | ) |
| 249 | |
| 250 | cc_test( |
| 251 | name = "target_mapper_test", |
| 252 | srcs = [ |
| 253 | "target_mapper_test.cc", |
| 254 | ], |
Milind Upadhyay | c5beba1 | 2022-12-17 17:41:20 -0800 | [diff] [blame] | 255 | data = [":target_map.json"], |
Milind Upadhyay | 7c20522 | 2022-11-16 18:20:58 -0800 | [diff] [blame] | 256 | target_compatible_with = ["@platforms//os:linux"], |
| 257 | deps = [ |
| 258 | ":target_mapper", |
| 259 | "//aos/events:simulated_event_loop", |
| 260 | "//aos/testing:googletest", |
Milind Upadhyay | c5beba1 | 2022-12-17 17:41:20 -0800 | [diff] [blame] | 261 | "//aos/testing:path", |
Milind Upadhyay | 7c20522 | 2022-11-16 18:20:58 -0800 | [diff] [blame] | 262 | "//aos/testing:random_seed", |
Milind Upadhyay | c5beba1 | 2022-12-17 17:41:20 -0800 | [diff] [blame] | 263 | "//aos/util:math", |
Milind Upadhyay | 7c20522 | 2022-11-16 18:20:58 -0800 | [diff] [blame] | 264 | ], |
| 265 | ) |
| 266 | |
| 267 | cc_library( |
Milind Upadhyay | b67c618 | 2022-10-22 13:45:45 -0700 | [diff] [blame] | 268 | name = "geometry_lib", |
| 269 | hdrs = [ |
| 270 | "geometry.h", |
| 271 | ], |
| 272 | target_compatible_with = ["@platforms//os:linux"], |
| 273 | visibility = ["//visibility:public"], |
| 274 | deps = [ |
| 275 | "//aos/util:math", |
| 276 | "//third_party:opencv", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 277 | "@com_google_absl//absl/log", |
| 278 | "@com_google_absl//absl/log:check", |
Milind Upadhyay | b67c618 | 2022-10-22 13:45:45 -0700 | [diff] [blame] | 279 | ], |
| 280 | ) |
| 281 | |
| 282 | cc_test( |
| 283 | name = "geometry_test", |
| 284 | srcs = [ |
| 285 | "geometry_test.cc", |
| 286 | ], |
| 287 | deps = [ |
| 288 | ":geometry_lib", |
| 289 | "//aos/testing:googletest", |
| 290 | ], |
| 291 | ) |
Jim Ostrowski | ba2edd1 | 2022-12-03 15:44:37 -0800 | [diff] [blame] | 292 | |
| 293 | cc_library( |
| 294 | name = "visualize_robot", |
| 295 | srcs = [ |
| 296 | "visualize_robot.cc", |
| 297 | ], |
| 298 | hdrs = [ |
| 299 | "visualize_robot.h", |
| 300 | ], |
Jim Ostrowski | 49be823 | 2023-03-23 01:00:14 -0700 | [diff] [blame] | 301 | visibility = ["//visibility:public"], |
Jim Ostrowski | ba2edd1 | 2022-12-03 15:44:37 -0800 | [diff] [blame] | 302 | deps = [ |
| 303 | "//aos:init", |
| 304 | "//third_party:opencv", |
| 305 | "@com_google_absl//absl/strings:str_format", |
| 306 | "@org_tuxfamily_eigen//:eigen", |
| 307 | ], |
| 308 | ) |
| 309 | |
| 310 | cc_binary( |
| 311 | name = "visualize_robot_sample", |
| 312 | srcs = [ |
| 313 | "visualize_robot_sample.cc", |
| 314 | ], |
| 315 | target_compatible_with = ["@platforms//os:linux"], |
| 316 | visibility = ["//visibility:public"], |
| 317 | deps = [ |
| 318 | "//aos:init", |
| 319 | "//frc971/vision:visualize_robot", |
| 320 | "//third_party:opencv", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 321 | "@com_google_absl//absl/log", |
| 322 | "@com_google_absl//absl/log:check", |
Jim Ostrowski | ba2edd1 | 2022-12-03 15:44:37 -0800 | [diff] [blame] | 323 | "@com_google_ceres_solver//:ceres", |
| 324 | "@org_tuxfamily_eigen//:eigen", |
| 325 | ], |
| 326 | ) |
Austin Schuh | c97d48d | 2022-12-26 14:09:13 -0800 | [diff] [blame] | 327 | |
| 328 | cc_library( |
| 329 | name = "media_device", |
| 330 | srcs = [ |
| 331 | "media_device.cc", |
| 332 | ], |
| 333 | hdrs = ["media_device.h"], |
| 334 | visibility = ["//visibility:public"], |
| 335 | deps = [ |
| 336 | "//aos/scoped:scoped_fd", |
| 337 | "//aos/util:file", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 338 | "@com_google_absl//absl/log", |
| 339 | "@com_google_absl//absl/log:check", |
Austin Schuh | c97d48d | 2022-12-26 14:09:13 -0800 | [diff] [blame] | 340 | "@com_google_absl//absl/strings", |
| 341 | ], |
| 342 | ) |
James Kuszmaul | 0c59396 | 2023-01-28 16:04:20 -0800 | [diff] [blame] | 343 | |
| 344 | cc_library( |
James Kuszmaul | 77d536c | 2023-02-11 17:30:59 -0800 | [diff] [blame] | 345 | name = "foxglove_image_converter_lib", |
| 346 | srcs = ["foxglove_image_converter_lib.cc"], |
| 347 | hdrs = ["foxglove_image_converter_lib.h"], |
James Kuszmaul | 0c59396 | 2023-01-28 16:04:20 -0800 | [diff] [blame] | 348 | visibility = ["//visibility:public"], |
| 349 | deps = [ |
James Kuszmaul | 59a308f | 2023-01-28 19:14:07 -0800 | [diff] [blame] | 350 | ":charuco_lib", |
James Kuszmaul | 0c59396 | 2023-01-28 16:04:20 -0800 | [diff] [blame] | 351 | ":vision_fbs", |
| 352 | "//aos/events:event_loop", |
| 353 | "//third_party:opencv", |
| 354 | "@com_github_foxglove_schemas//:schemas", |
| 355 | ], |
| 356 | ) |
James Kuszmaul | 59a308f | 2023-01-28 19:14:07 -0800 | [diff] [blame] | 357 | |
| 358 | aos_config( |
| 359 | name = "converter_config", |
| 360 | testonly = True, |
| 361 | src = "converter_test_config.json", |
| 362 | flatbuffers = [ |
| 363 | "//frc971/vision:vision_fbs", |
| 364 | "//aos/events:event_loop_fbs", |
| 365 | "//aos/logging:log_message_fbs", |
| 366 | "//aos/network:message_bridge_client_fbs", |
| 367 | "//aos/network:message_bridge_server_fbs", |
| 368 | "//aos/network:timestamp_fbs", |
| 369 | "@com_github_foxglove_schemas//:schemas", |
| 370 | ], |
| 371 | ) |
| 372 | |
| 373 | cc_test( |
| 374 | name = "foxglove_image_converter_test", |
| 375 | srcs = ["foxglove_image_converter_test.cc"], |
| 376 | data = [ |
| 377 | ":converter_config", |
| 378 | "@april_tag_test_image", |
| 379 | ], |
| 380 | deps = [ |
James Kuszmaul | 77d536c | 2023-02-11 17:30:59 -0800 | [diff] [blame] | 381 | ":foxglove_image_converter_lib", |
James Kuszmaul | 59a308f | 2023-01-28 19:14:07 -0800 | [diff] [blame] | 382 | "//aos:configuration", |
| 383 | "//aos/events:simulated_event_loop", |
| 384 | "//aos/testing:googletest", |
| 385 | "//aos/testing:path", |
| 386 | "//aos/testing:tmpdir", |
| 387 | ], |
| 388 | ) |
James Kuszmaul | 7e95881 | 2023-02-11 15:34:31 -0800 | [diff] [blame] | 389 | |
| 390 | cc_library( |
| 391 | name = "intrinsics_calibration_lib", |
| 392 | srcs = [ |
| 393 | "intrinsics_calibration_lib.cc", |
| 394 | ], |
| 395 | hdrs = [ |
| 396 | "intrinsics_calibration_lib.h", |
| 397 | ], |
| 398 | target_compatible_with = ["@platforms//os:linux"], |
| 399 | deps = [ |
| 400 | "//aos/events:event_loop", |
| 401 | "//frc971/control_loops/drivetrain:improved_down_estimator", |
| 402 | "//frc971/vision:charuco_lib", |
| 403 | "//frc971/vision:vision_fbs", |
Jim Ostrowski | b974cca | 2024-01-28 15:07:50 -0800 | [diff] [blame] | 404 | "//frc971/vision:vision_util_lib", |
James Kuszmaul | 7e95881 | 2023-02-11 15:34:31 -0800 | [diff] [blame] | 405 | "//frc971/wpilib:imu_batch_fbs", |
| 406 | "//frc971/wpilib:imu_fbs", |
| 407 | "//third_party:opencv", |
| 408 | "@com_google_absl//absl/strings:str_format", |
| 409 | "@org_tuxfamily_eigen//:eigen", |
| 410 | ], |
| 411 | ) |
| 412 | |
| 413 | cc_binary( |
| 414 | name = "intrinsics_calibration", |
| 415 | srcs = [ |
| 416 | "intrinsics_calibration.cc", |
| 417 | ], |
| 418 | target_compatible_with = ["@platforms//os:linux"], |
Yash Maheshwari | e0b25c5 | 2024-05-22 20:23:36 -0700 | [diff] [blame] | 419 | visibility = ["//visibility:public"], |
James Kuszmaul | 7e95881 | 2023-02-11 15:34:31 -0800 | [diff] [blame] | 420 | deps = [ |
| 421 | ":intrinsics_calibration_lib", |
| 422 | "//aos:init", |
| 423 | "//aos/events:shm_event_loop", |
| 424 | "//frc971/control_loops/drivetrain:improved_down_estimator", |
| 425 | "//frc971/vision:charuco_lib", |
| 426 | "//frc971/vision:vision_fbs", |
| 427 | "//frc971/wpilib:imu_batch_fbs", |
| 428 | "//frc971/wpilib:imu_fbs", |
| 429 | "//third_party:opencv", |
| 430 | "@com_google_absl//absl/strings:str_format", |
| 431 | "@org_tuxfamily_eigen//:eigen", |
| 432 | ], |
| 433 | ) |
Jim Ostrowski | cb8b408 | 2024-01-21 02:23:46 -0800 | [diff] [blame] | 434 | |
| 435 | cc_library( |
| 436 | name = "vision_util_lib", |
| 437 | srcs = ["vision_util_lib.cc"], |
| 438 | hdrs = ["vision_util_lib.h"], |
| 439 | visibility = ["//visibility:public"], |
| 440 | deps = [ |
Jim Ostrowski | 6d242d5 | 2024-04-03 20:39:03 -0700 | [diff] [blame] | 441 | "//aos/util:math", |
| 442 | "//frc971/control_loops:quaternion_utils", |
Jim Ostrowski | cb8b408 | 2024-01-21 02:23:46 -0800 | [diff] [blame] | 443 | "//frc971/vision:calibration_fbs", |
Jim Ostrowski | 6d242d5 | 2024-04-03 20:39:03 -0700 | [diff] [blame] | 444 | "//frc971/vision/ceres:pose_graph_3d_lib", |
Jim Ostrowski | cb8b408 | 2024-01-21 02:23:46 -0800 | [diff] [blame] | 445 | "//third_party:opencv", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 446 | "@com_google_absl//absl/log", |
| 447 | "@com_google_absl//absl/log:check", |
Jim Ostrowski | 3320898 | 2024-03-02 15:01:45 -0800 | [diff] [blame] | 448 | "@com_google_absl//absl/strings:str_format", |
Jim Ostrowski | 6d242d5 | 2024-04-03 20:39:03 -0700 | [diff] [blame] | 449 | "@com_google_ceres_solver//:ceres", |
| 450 | "@org_tuxfamily_eigen//:eigen", |
Jim Ostrowski | cb8b408 | 2024-01-21 02:23:46 -0800 | [diff] [blame] | 451 | ], |
| 452 | ) |
Jim Ostrowski | b974cca | 2024-01-28 15:07:50 -0800 | [diff] [blame] | 453 | |
| 454 | cc_test( |
| 455 | name = "vision_util_lib_test", |
| 456 | srcs = ["vision_util_lib_test.cc"], |
| 457 | visibility = ["//visibility:public"], |
| 458 | deps = [ |
| 459 | "//aos/testing:googletest", |
| 460 | "//frc971/vision:vision_util_lib", |
Austin Schuh | 99f7c6a | 2024-06-25 22:07:44 -0700 | [diff] [blame] | 461 | "@com_google_absl//absl/log", |
| 462 | "@com_google_absl//absl/log:check", |
Jim Ostrowski | b974cca | 2024-01-28 15:07:50 -0800 | [diff] [blame] | 463 | ], |
| 464 | ) |
James Kuszmaul | 9c3db18 | 2024-02-09 22:02:18 -0800 | [diff] [blame] | 465 | |
| 466 | cc_library( |
| 467 | name = "target_map_utils", |
| 468 | srcs = ["target_map_utils.cc"], |
| 469 | hdrs = ["target_map_utils.h"], |
| 470 | visibility = ["//visibility:public"], |
| 471 | deps = [ |
| 472 | "//frc971/vision:target_map_fbs", |
| 473 | "@org_tuxfamily_eigen//:eigen", |
| 474 | ], |
| 475 | ) |