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( |
| 99 | name = 'dlqr', |
| 100 | hdrs = [ |
| 101 | 'dlqr.h', |
| 102 | ], |
| 103 | deps = [ |
| 104 | '@slycot_repo//:slicot', |
| 105 | ], |
| 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 | ], |
Austin Schuh | ad59622 | 2018-01-31 23:34:03 -0800 | [diff] [blame] | 113 | deps = [ |
| 114 | ":arm_bounds", |
| 115 | ':dlqr', |
| 116 | "//third_party/ct", |
| 117 | "//third_party/gflags", |
| 118 | "//third_party/matplotlib-cpp", |
| 119 | "@cgal_repo//:cgal", |
| 120 | ], |
| 121 | restricted_to = ["//tools:k8"], |
| 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", |
| 132 | "//third_party/gflags", |
| 133 | "//third_party/matplotlib-cpp", |
| 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 | f8f9502 | 2018-01-28 20:01:10 -0800 | [diff] [blame] | 158 | "//third_party/gflags", |
Austin Schuh | fc0837a | 2018-02-11 14:56:43 -0800 | [diff] [blame] | 159 | "//third_party/matplotlib-cpp", |
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, |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 172 | srcs_version = "PY3", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 173 | deps = [ |
| 174 | ":python_init", |
| 175 | ], |
Parker Schuh | dc68295 | 2018-03-03 18:24:01 -0800 | [diff] [blame] | 176 | ) |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 177 | |
| 178 | py_binary( |
| 179 | name = "graph_codegen", |
| 180 | srcs = [ |
| 181 | "graph_codegen.py", |
| 182 | "graph_generate.py", |
| 183 | ], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 184 | default_python_version = "PY2", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 185 | legacy_create_init = False, |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 186 | srcs_version = "PY2", |
Brian Silverman | 6470f44 | 2018-08-05 12:08:16 -0700 | [diff] [blame] | 187 | deps = [ |
| 188 | ":python_init", |
| 189 | ], |
| 190 | ) |
| 191 | |
| 192 | py_library( |
| 193 | name = "python_init", |
| 194 | srcs = ["__init__.py"], |
| 195 | visibility = ["//visibility:public"], |
| 196 | deps = ["//y2018/control_loops:python_init"], |
Austin Schuh | 7dfccf6 | 2018-03-03 21:28:14 -0800 | [diff] [blame] | 197 | ) |
Austin Schuh | 434c837 | 2018-01-21 16:30:06 -0800 | [diff] [blame^] | 198 | |
| 199 | py_binary( |
| 200 | name = "extended_lqr", |
| 201 | srcs = [ |
| 202 | "extended_lqr.py", |
| 203 | ], |
| 204 | restricted_to = ["//tools:k8"], |
| 205 | deps = [ |
| 206 | "//external:python-gflags", |
| 207 | "//external:python-glog", |
| 208 | "//frc971/control_loops/python:controls", |
| 209 | ], |
| 210 | ) |