Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 1 | package(default_visibility = ["//y2018:__subpackages__"]) |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 2 | |
| 3 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 4 | name = "drivetrain", |
| 5 | srcs = [ |
| 6 | "drivetrain.py", |
| 7 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 8 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 9 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 10 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 11 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 12 | "//external:python-gflags", |
| 13 | "//external:python-glog", |
| 14 | "//frc971/control_loops/python:drivetrain", |
| 15 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 16 | ) |
| 17 | |
| 18 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 19 | name = "polydrivetrain", |
| 20 | srcs = [ |
| 21 | "drivetrain.py", |
| 22 | "polydrivetrain.py", |
| 23 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 24 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 25 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 26 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 27 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 28 | "//external:python-gflags", |
| 29 | "//external:python-glog", |
| 30 | "//frc971/control_loops/python:polydrivetrain", |
| 31 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 32 | ) |
| 33 | |
| 34 | py_library( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 35 | name = "polydrivetrain_lib", |
| 36 | srcs = [ |
| 37 | "drivetrain.py", |
| 38 | "polydrivetrain.py", |
| 39 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 40 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 44aa914 | 2018-12-03 21:07:23 +1100 | [diff] [blame] | 41 | visibility = ["//visibility:public"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 42 | deps = [ |
Austin Schuh | 44aa914 | 2018-12-03 21:07:23 +1100 | [diff] [blame] | 43 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 44 | "//external:python-gflags", |
| 45 | "//external:python-glog", |
| 46 | "//frc971/control_loops/python:controls", |
| 47 | "//frc971/control_loops/python:drivetrain", |
Austin Schuh | 44aa914 | 2018-12-03 21:07:23 +1100 | [diff] [blame] | 48 | "//frc971/control_loops/python:polydrivetrain", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 49 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 50 | ) |
| 51 | |
| 52 | py_test( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 53 | name = "polydrivetrain_test", |
| 54 | srcs = [ |
| 55 | "polydrivetrain_test.py", |
| 56 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 57 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 58 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 59 | deps = [ |
| 60 | ":polydrivetrain_lib", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 61 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 62 | "//external:python-gflags", |
| 63 | "//external:python-glog", |
| 64 | "//frc971/control_loops/python:controls", |
| 65 | "//frc971/control_loops/python:polydrivetrain", |
| 66 | ], |
Sabina Davis | f4c5e76 | 2018-01-24 10:18:43 -0800 | [diff] [blame] | 67 | ) |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 68 | |
| 69 | py_binary( |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 70 | name = "arm_trajectory", |
| 71 | srcs = [ |
| 72 | "arm_trajectory.py", |
| 73 | "path_points.py", |
| 74 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 75 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 76 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 77 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 78 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 79 | "//external:python-gflags", |
| 80 | "//external:python-glog", |
| 81 | "//frc971/control_loops/python:controls", |
| 82 | ], |
| 83 | ) |
| 84 | |
| 85 | py_binary( |
| 86 | name = "intake", |
| 87 | srcs = [ |
| 88 | "intake.py", |
| 89 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 90 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 91 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 92 | deps = [ |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 93 | ":python_init", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 94 | "//external:python-gflags", |
| 95 | "//external:python-glog", |
| 96 | "//frc971/control_loops/python:controls", |
James Kuszmaul | 910f92b | 2020-01-01 15:30:38 -0800 | [diff] [blame] | 97 | "@matplotlib_repo//:matplotlib2.7", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 98 | ], |
Austin Schuh | f173eb8 | 2018-01-20 23:32:30 -0800 | [diff] [blame] | 99 | ) |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 100 | |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 101 | cc_library( |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 102 | name = "dlqr", |
| 103 | hdrs = [ |
| 104 | "dlqr.h", |
| 105 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 106 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 107 | deps = [ |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 108 | "@slycot_repo//:slicot", |
| 109 | ], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 110 | ) |
| 111 | |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 112 | cc_binary( |
| 113 | name = "arm_mpc", |
| 114 | srcs = [ |
| 115 | "arm_mpc.cc", |
| 116 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 117 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 118 | deps = [ |
| 119 | ":arm_bounds", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 120 | ":dlqr", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 121 | "//third_party/ct", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 122 | "//third_party/matplotlib-cpp", |
| 123 | "@cgal_repo//:cgal", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 124 | "@com_github_gflags_gflags//:gflags", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 125 | ], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 126 | ) |
| 127 | |
| 128 | cc_binary( |
| 129 | name = "3d_plot", |
| 130 | srcs = [ |
| 131 | "3d_plot.cc", |
| 132 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 133 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 134 | deps = [ |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 135 | ":arm_bounds", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 136 | "//third_party/matplotlib-cpp", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 137 | "@com_github_gflags_gflags//:gflags", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 138 | ], |
| 139 | ) |
| 140 | |
| 141 | cc_library( |
| 142 | name = "arm_bounds", |
| 143 | srcs = [ |
| 144 | "arm_bounds.cc", |
| 145 | ], |
| 146 | hdrs = [ |
| 147 | "arm_bounds.h", |
| 148 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 149 | target_compatible_with = ["@platforms//os:linux"], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 150 | deps = [ |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 151 | "@cgal_repo//:cgal", |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 152 | "@org_tuxfamily_eigen//:eigen", |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 153 | ], |
| 154 | ) |
| 155 | |
| 156 | cc_binary( |
| 157 | name = "2d_plot", |
| 158 | srcs = [ |
| 159 | "2d_plot.cc", |
| 160 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 161 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 162 | deps = [ |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 163 | "//third_party/matplotlib-cpp", |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 164 | "@com_github_gflags_gflags//:gflags", |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 165 | ], |
Austin Schuh | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 166 | ) |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 167 | |
| 168 | py_binary( |
| 169 | name = "graph_edit", |
| 170 | srcs = [ |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 171 | "graph_edit.py", |
| 172 | "graph_generate.py", |
| 173 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 174 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 175 | python_version = "PY3", |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 176 | srcs_version = "PY3", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 177 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 178 | deps = [ |
Alex Perry | cb7da4b | 2019-08-28 19:35:56 -0700 | [diff] [blame] | 179 | ":python_init", |
johnp | 55310b8 | 2019-01-26 18:26:24 -0800 | [diff] [blame] | 180 | "//frc971/control_loops/python:basic_window", |
Andrew Runke | 6842bf9 | 2019-01-26 15:38:25 -0800 | [diff] [blame] | 181 | "//frc971/control_loops/python:color", |
Brian Silverman | dd1aa46 | 2018-12-12 20:14:51 -0800 | [diff] [blame] | 182 | "@python_gtk", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 183 | ], |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 184 | ) |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 185 | |
| 186 | py_binary( |
| 187 | name = "graph_codegen", |
| 188 | srcs = [ |
| 189 | "graph_codegen.py", |
| 190 | "graph_generate.py", |
| 191 | ], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 192 | legacy_create_init = False, |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 193 | python_version = "PY2", |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 194 | srcs_version = "PY2", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 195 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 196 | deps = [ |
| 197 | ":python_init", |
| 198 | ], |
| 199 | ) |
| 200 | |
| 201 | py_library( |
| 202 | name = "python_init", |
| 203 | srcs = ["__init__.py"], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 204 | target_compatible_with = ["@platforms//os:linux"], |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 205 | visibility = ["//visibility:public"], |
| 206 | deps = ["//y2018/control_loops:python_init"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 207 | ) |
Austin Schuh | 434c837 | 2018-01-21 16:30:06 -0800 | [diff] [blame] | 208 | |
| 209 | py_binary( |
| 210 | name = "extended_lqr", |
| 211 | srcs = [ |
| 212 | "extended_lqr.py", |
| 213 | ], |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 214 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Austin Schuh | 434c837 | 2018-01-21 16:30:06 -0800 | [diff] [blame] | 215 | deps = [ |
| 216 | "//external:python-gflags", |
| 217 | "//external:python-glog", |
| 218 | "//frc971/control_loops/python:controls", |
| 219 | ], |
| 220 | ) |
Austin Schuh | 404e17f | 2018-01-24 19:32:10 -0800 | [diff] [blame] | 221 | |
| 222 | py_binary( |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 223 | name = "arm_mpc_py", |
| 224 | srcs = [ |
| 225 | "arm_mpc.py", |
| 226 | ], |
| 227 | main = "arm_mpc.py", |
Philipp Schrader | dada107 | 2020-11-24 11:34:46 -0800 | [diff] [blame^] | 228 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 229 | deps = [ |
| 230 | "//external:python-gflags", |
| 231 | "//external:python-glog", |
| 232 | "//frc971/control_loops/python:controls", |
| 233 | ], |
Austin Schuh | 404e17f | 2018-01-24 19:32:10 -0800 | [diff] [blame] | 234 | ) |