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