Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame^] | 1 | load("@com_github_google_flatbuffers//:build_defs.bzl", "flatbuffer_cc_library") |
Brian Silverman | 9dd793b | 2020-01-31 23:52:21 -0800 | [diff] [blame] | 2 | |
milind upadhyay | 6d50b90 | 2021-02-27 13:10:21 -0800 | [diff] [blame] | 3 | flatbuffer_cc_library( |
| 4 | name = "galactic_search_path_fbs", |
| 5 | srcs = ["galactic_search_path.fbs"], |
| 6 | gen_reflections = 1, |
| 7 | target_compatible_with = ["@platforms//os:linux"], |
| 8 | visibility = ["//y2020:__subpackages__"], |
| 9 | ) |
| 10 | |
Brian Silverman | 9dd793b | 2020-01-31 23:52:21 -0800 | [diff] [blame] | 11 | cc_binary( |
| 12 | name = "camera_reader", |
| 13 | srcs = [ |
James Kuszmaul | fe30a74 | 2021-11-13 11:31:00 -0800 | [diff] [blame] | 14 | "camera_reader_main.cc", |
| 15 | ], |
| 16 | target_compatible_with = ["@platforms//os:linux"], |
| 17 | visibility = ["//y2020:__subpackages__"], |
| 18 | deps = [ |
| 19 | ":camera_reader_lib", |
| 20 | "//aos:init", |
| 21 | "//aos/events:shm_event_loop", |
| 22 | ], |
| 23 | ) |
| 24 | |
| 25 | cc_library( |
| 26 | name = "camera_reader_lib", |
| 27 | srcs = [ |
Brian Silverman | 9dd793b | 2020-01-31 23:52:21 -0800 | [diff] [blame] | 28 | "camera_reader.cc", |
| 29 | ], |
James Kuszmaul | fe30a74 | 2021-11-13 11:31:00 -0800 | [diff] [blame] | 30 | hdrs = [ |
| 31 | "camera_reader.h", |
| 32 | ], |
Jim Ostrowski | 18f7fbf | 2020-03-01 13:53:22 -0800 | [diff] [blame] | 33 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 34 | "//y2020:config", |
Jim Ostrowski | 18f7fbf | 2020-03-01 13:53:22 -0800 | [diff] [blame] | 35 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 36 | target_compatible_with = ["@platforms//os:linux"], |
Jim Ostrowski | ff0f5e4 | 2022-01-22 01:35:31 -0800 | [diff] [blame] | 37 | visibility = ["//y2020:__subpackages__"] + ["//y2022:__subpackages__"], |
Brian Silverman | 9dd793b | 2020-01-31 23:52:21 -0800 | [diff] [blame] | 38 | deps = [ |
Brian Silverman | 4770c7d | 2020-02-17 20:34:42 -0800 | [diff] [blame] | 39 | "//aos:flatbuffer_merge", |
James Kuszmaul | fe30a74 | 2021-11-13 11:31:00 -0800 | [diff] [blame] | 40 | "//aos/events:event_loop", |
Brian Silverman | 4770c7d | 2020-02-17 20:34:42 -0800 | [diff] [blame] | 41 | "//aos/network:team_number", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame^] | 42 | "//frc971/vision:v4l2_reader", |
| 43 | "//frc971/vision:vision_fbs", |
Brian Silverman | 967e5df | 2020-02-09 16:43:34 -0800 | [diff] [blame] | 44 | "//third_party:opencv", |
Brian Silverman | 967e5df | 2020-02-09 16:43:34 -0800 | [diff] [blame] | 45 | "//y2020/vision/sift:sift971", |
| 46 | "//y2020/vision/sift:sift_fbs", |
| 47 | "//y2020/vision/sift:sift_training_fbs", |
Austin Schuh | a4f69d6 | 2020-02-28 13:58:14 -0800 | [diff] [blame] | 48 | "//y2020/vision/tools/python_code:sift_training_data", |
Brian Silverman | 9dd793b | 2020-01-31 23:52:21 -0800 | [diff] [blame] | 49 | ], |
Brian Silverman | e925980 | 2020-01-26 15:18:30 -0800 | [diff] [blame] | 50 | ) |
Alex Perry | 5f474f2 | 2020-02-01 12:14:24 -0800 | [diff] [blame] | 51 | |
Jim Ostrowski | 23eb658 | 2020-03-04 23:15:32 -0800 | [diff] [blame] | 52 | cc_binary( |
| 53 | name = "viewer", |
| 54 | srcs = [ |
| 55 | "viewer.cc", |
| 56 | ], |
| 57 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 58 | "//y2020:config", |
Jim Ostrowski | 23eb658 | 2020-03-04 23:15:32 -0800 | [diff] [blame] | 59 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 60 | target_compatible_with = ["@platforms//os:linux"], |
Jim Ostrowski | 23eb658 | 2020-03-04 23:15:32 -0800 | [diff] [blame] | 61 | visibility = ["//y2020:__subpackages__"], |
| 62 | deps = [ |
Jim Ostrowski | 23eb658 | 2020-03-04 23:15:32 -0800 | [diff] [blame] | 63 | "//aos:init", |
| 64 | "//aos/events:shm_event_loop", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame^] | 65 | "//frc971/vision:v4l2_reader", |
| 66 | "//frc971/vision:vision_fbs", |
Jim Ostrowski | 23eb658 | 2020-03-04 23:15:32 -0800 | [diff] [blame] | 67 | "//third_party:opencv", |
Jim Ostrowski | c560cbe | 2020-03-07 00:29:30 -0800 | [diff] [blame] | 68 | "//y2020/vision/sift:sift_fbs", |
Jim Ostrowski | 23eb658 | 2020-03-04 23:15:32 -0800 | [diff] [blame] | 69 | ], |
| 70 | ) |
James Kuszmaul | 8ae931a | 2020-03-06 19:45:02 -0800 | [diff] [blame] | 71 | |
Austin Schuh | 25837f2 | 2021-06-27 15:49:14 -0700 | [diff] [blame] | 72 | cc_library( |
| 73 | name = "charuco_lib", |
| 74 | srcs = [ |
| 75 | "charuco_lib.cc", |
| 76 | ], |
| 77 | hdrs = [ |
| 78 | "charuco_lib.h", |
| 79 | ], |
| 80 | target_compatible_with = ["@platforms//os:linux"], |
| 81 | visibility = ["//y2020:__subpackages__"], |
| 82 | deps = [ |
Austin Schuh | 25837f2 | 2021-06-27 15:49:14 -0700 | [diff] [blame] | 83 | "//aos:flatbuffers", |
| 84 | "//aos/events:event_loop", |
Austin Schuh | ea7b014 | 2021-10-08 22:04:53 -0700 | [diff] [blame] | 85 | "//aos/network:message_bridge_server_fbs", |
Austin Schuh | 25837f2 | 2021-06-27 15:49:14 -0700 | [diff] [blame] | 86 | "//aos/network:team_number", |
| 87 | "//frc971/control_loops:quaternion_utils", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame^] | 88 | "//frc971/vision:vision_fbs", |
Austin Schuh | 25837f2 | 2021-06-27 15:49:14 -0700 | [diff] [blame] | 89 | "//third_party:opencv", |
| 90 | "//y2020/vision/sift:sift_fbs", |
| 91 | "//y2020/vision/sift:sift_training_fbs", |
| 92 | "//y2020/vision/tools/python_code:sift_training_data", |
| 93 | "@com_github_google_glog//:glog", |
| 94 | "@com_google_absl//absl/strings:str_format", |
| 95 | "@com_google_absl//absl/types:span", |
| 96 | "@org_tuxfamily_eigen//:eigen", |
| 97 | ], |
| 98 | ) |
| 99 | |
James Kuszmaul | 8ae931a | 2020-03-06 19:45:02 -0800 | [diff] [blame] | 100 | cc_binary( |
Austin Schuh | c1f118e | 2020-04-11 15:50:08 -0700 | [diff] [blame] | 101 | name = "calibration", |
| 102 | srcs = [ |
| 103 | "calibration.cc", |
| 104 | ], |
| 105 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 106 | "//y2020:config", |
Austin Schuh | c1f118e | 2020-04-11 15:50:08 -0700 | [diff] [blame] | 107 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 108 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | c1f118e | 2020-04-11 15:50:08 -0700 | [diff] [blame] | 109 | visibility = ["//y2020:__subpackages__"], |
| 110 | deps = [ |
Austin Schuh | 25837f2 | 2021-06-27 15:49:14 -0700 | [diff] [blame] | 111 | ":charuco_lib", |
Austin Schuh | c1f118e | 2020-04-11 15:50:08 -0700 | [diff] [blame] | 112 | "//aos:init", |
| 113 | "//aos/events:shm_event_loop", |
| 114 | "//frc971/control_loops/drivetrain:improved_down_estimator", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame^] | 115 | "//frc971/vision:vision_fbs", |
Austin Schuh | 25837f2 | 2021-06-27 15:49:14 -0700 | [diff] [blame] | 116 | "//frc971/wpilib:imu_batch_fbs", |
| 117 | "//frc971/wpilib:imu_fbs", |
Austin Schuh | c1f118e | 2020-04-11 15:50:08 -0700 | [diff] [blame] | 118 | "//third_party:opencv", |
| 119 | "//y2020/vision/sift:sift_fbs", |
| 120 | "//y2020/vision/sift:sift_training_fbs", |
| 121 | "//y2020/vision/tools/python_code:sift_training_data", |
| 122 | "@com_google_absl//absl/strings:str_format", |
| 123 | "@org_tuxfamily_eigen//:eigen", |
| 124 | ], |
| 125 | ) |
| 126 | |
| 127 | cc_binary( |
James Kuszmaul | 8ae931a | 2020-03-06 19:45:02 -0800 | [diff] [blame] | 128 | name = "viewer_replay", |
| 129 | srcs = [ |
| 130 | "viewer_replay.cc", |
| 131 | ], |
| 132 | data = [ |
Austin Schuh | 14d7d3d | 2020-09-10 18:14:36 -0700 | [diff] [blame] | 133 | "//y2020:config", |
James Kuszmaul | 8ae931a | 2020-03-06 19:45:02 -0800 | [diff] [blame] | 134 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame] | 135 | target_compatible_with = ["@platforms//os:linux"], |
James Kuszmaul | 8ae931a | 2020-03-06 19:45:02 -0800 | [diff] [blame] | 136 | visibility = ["//y2020:__subpackages__"], |
| 137 | deps = [ |
James Kuszmaul | 8ae931a | 2020-03-06 19:45:02 -0800 | [diff] [blame] | 138 | "//aos:init", |
| 139 | "//aos/events:simulated_event_loop", |
Austin Schuh | b06f03b | 2021-02-17 22:00:37 -0800 | [diff] [blame] | 140 | "//aos/events/logging:log_reader", |
Jim Ostrowski | 977850f | 2022-01-22 21:04:22 -0800 | [diff] [blame^] | 141 | "//frc971/vision:vision_fbs", |
James Kuszmaul | 8ae931a | 2020-03-06 19:45:02 -0800 | [diff] [blame] | 142 | "//third_party:opencv", |
| 143 | ], |
| 144 | ) |
Austin Schuh | bb4aae7 | 2021-10-08 22:12:25 -0700 | [diff] [blame] | 145 | |
| 146 | cc_binary( |
| 147 | name = "extrinsics_calibration", |
| 148 | srcs = [ |
milind-u | 8c72d53 | 2021-12-11 15:02:42 -0800 | [diff] [blame] | 149 | "calibration_accumulator.cc", |
| 150 | "calibration_accumulator.h", |
Austin Schuh | bb4aae7 | 2021-10-08 22:12:25 -0700 | [diff] [blame] | 151 | "extrinsics_calibration.cc", |
| 152 | ], |
| 153 | data = [ |
| 154 | "//y2020:config", |
| 155 | ], |
| 156 | target_compatible_with = ["@platforms//os:linux"], |
| 157 | visibility = ["//y2020:__subpackages__"], |
| 158 | deps = [ |
| 159 | ":charuco_lib", |
| 160 | "//aos:init", |
| 161 | "//aos/events:shm_event_loop", |
| 162 | "//aos/events/logging:log_reader", |
milind-u | e53bf55 | 2021-12-11 14:42:00 -0800 | [diff] [blame] | 163 | "//frc971/analysis:in_process_plotter", |
Austin Schuh | bb4aae7 | 2021-10-08 22:12:25 -0700 | [diff] [blame] | 164 | "//frc971/control_loops/drivetrain:improved_down_estimator", |
| 165 | "//frc971/wpilib:imu_batch_fbs", |
| 166 | "//frc971/wpilib:imu_fbs", |
| 167 | "//third_party:opencv", |
| 168 | "@com_google_absl//absl/strings:str_format", |
milind-u | e53bf55 | 2021-12-11 14:42:00 -0800 | [diff] [blame] | 169 | "@com_google_ceres_solver//:ceres", |
Austin Schuh | bb4aae7 | 2021-10-08 22:12:25 -0700 | [diff] [blame] | 170 | "@org_tuxfamily_eigen//:eigen", |
| 171 | ], |
| 172 | ) |