blob: f68939fb83897d8b2800a6c352534ef4991c1575 [file] [log] [blame]
Austin Schuhfc0837a2018-02-11 14:56:43 -08001package(default_visibility = ["//y2018:__subpackages__"])
Sabina Davisf4c5e762018-01-24 10:18:43 -08002
3py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -08004 name = "drivetrain",
5 srcs = [
6 "drivetrain.py",
7 ],
Brian Silverman6470f442018-08-05 12:08:16 -07008 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -08009 restricted_to = ["//tools:k8"],
10 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070011 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080012 "//external:python-gflags",
13 "//external:python-glog",
14 "//frc971/control_loops/python:drivetrain",
15 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080016)
17
18py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -080019 name = "polydrivetrain",
20 srcs = [
21 "drivetrain.py",
22 "polydrivetrain.py",
23 ],
Brian Silverman6470f442018-08-05 12:08:16 -070024 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080025 restricted_to = ["//tools:k8"],
26 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070027 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080028 "//external:python-gflags",
29 "//external:python-glog",
30 "//frc971/control_loops/python:polydrivetrain",
31 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080032)
33
34py_library(
Austin Schuhfc0837a2018-02-11 14:56:43 -080035 name = "polydrivetrain_lib",
36 srcs = [
37 "drivetrain.py",
38 "polydrivetrain.py",
39 ],
40 restricted_to = ["//tools:k8"],
Austin Schuh44aa9142018-12-03 21:07:23 +110041 visibility = ["//visibility:public"],
Austin Schuhfc0837a2018-02-11 14:56:43 -080042 deps = [
Austin Schuh44aa9142018-12-03 21:07:23 +110043 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080044 "//external:python-gflags",
45 "//external:python-glog",
46 "//frc971/control_loops/python:controls",
47 "//frc971/control_loops/python:drivetrain",
Austin Schuh44aa9142018-12-03 21:07:23 +110048 "//frc971/control_loops/python:polydrivetrain",
Austin Schuhfc0837a2018-02-11 14:56:43 -080049 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080050)
51
52py_test(
Austin Schuhfc0837a2018-02-11 14:56:43 -080053 name = "polydrivetrain_test",
54 srcs = [
55 "polydrivetrain_test.py",
56 ],
Brian Silverman6470f442018-08-05 12:08:16 -070057 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080058 restricted_to = ["//tools:k8"],
59 deps = [
60 ":polydrivetrain_lib",
Brian Silverman6470f442018-08-05 12:08:16 -070061 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080062 "//external:python-gflags",
63 "//external:python-glog",
64 "//frc971/control_loops/python:controls",
65 "//frc971/control_loops/python:polydrivetrain",
66 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080067)
Austin Schuhf173eb82018-01-20 23:32:30 -080068
69py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -080070 name = "arm_trajectory",
71 srcs = [
72 "arm_trajectory.py",
73 "path_points.py",
74 ],
Brian Silverman6470f442018-08-05 12:08:16 -070075 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080076 restricted_to = ["//tools:k8"],
77 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070078 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080079 "//external:python-gflags",
80 "//external:python-glog",
81 "//frc971/control_loops/python:controls",
82 ],
83)
84
85py_binary(
86 name = "intake",
87 srcs = [
88 "intake.py",
89 ],
Brian Silverman6470f442018-08-05 12:08:16 -070090 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080091 restricted_to = ["//tools:k8"],
92 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070093 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080094 "//external:python-gflags",
95 "//external:python-glog",
96 "//frc971/control_loops/python:controls",
Brian Silverman6470f442018-08-05 12:08:16 -070097 "@matplotlib",
Austin Schuhfc0837a2018-02-11 14:56:43 -080098 ],
Austin Schuhf173eb82018-01-20 23:32:30 -080099)
Austin Schuhf8f95022018-01-28 20:01:10 -0800100
Austin Schuhad596222018-01-31 23:34:03 -0800101cc_library(
Brian Silverman16a923c2018-10-31 19:40:51 -0700102 name = "dlqr",
103 hdrs = [
104 "dlqr.h",
105 ],
Austin Schuhad596222018-01-31 23:34:03 -0800106 deps = [
Brian Silverman16a923c2018-10-31 19:40:51 -0700107 "@slycot_repo//:slicot",
108 ],
Austin Schuhad596222018-01-31 23:34:03 -0800109)
110
Austin Schuhf8f95022018-01-28 20:01:10 -0800111cc_binary(
112 name = "arm_mpc",
113 srcs = [
114 "arm_mpc.cc",
115 ],
Brian Silverman16a923c2018-10-31 19:40:51 -0700116 restricted_to = ["//tools:k8"],
Austin Schuhad596222018-01-31 23:34:03 -0800117 deps = [
118 ":arm_bounds",
Brian Silverman16a923c2018-10-31 19:40:51 -0700119 ":dlqr",
Austin Schuhad596222018-01-31 23:34:03 -0800120 "//third_party/ct",
Austin Schuhad596222018-01-31 23:34:03 -0800121 "//third_party/matplotlib-cpp",
122 "@cgal_repo//:cgal",
Brian Silverman16a923c2018-10-31 19:40:51 -0700123 "@com_github_gflags_gflags//:gflags",
Austin Schuhad596222018-01-31 23:34:03 -0800124 ],
Austin Schuhad596222018-01-31 23:34:03 -0800125)
126
127cc_binary(
128 name = "3d_plot",
129 srcs = [
130 "3d_plot.cc",
131 ],
Austin Schuhfc0837a2018-02-11 14:56:43 -0800132 restricted_to = ["//tools:k8"],
Austin Schuhf8f95022018-01-28 20:01:10 -0800133 deps = [
Austin Schuhad596222018-01-31 23:34:03 -0800134 ":arm_bounds",
Austin Schuhad596222018-01-31 23:34:03 -0800135 "//third_party/matplotlib-cpp",
Brian Silverman16a923c2018-10-31 19:40:51 -0700136 "@com_github_gflags_gflags//:gflags",
Austin Schuhad596222018-01-31 23:34:03 -0800137 ],
138)
139
140cc_library(
141 name = "arm_bounds",
142 srcs = [
143 "arm_bounds.cc",
144 ],
145 hdrs = [
146 "arm_bounds.h",
147 ],
148 deps = [
149 "//third_party/eigen",
150 "@cgal_repo//:cgal",
151 ],
152)
153
154cc_binary(
155 name = "2d_plot",
156 srcs = [
157 "2d_plot.cc",
158 ],
159 restricted_to = ["//tools:k8"],
160 deps = [
Austin Schuhfc0837a2018-02-11 14:56:43 -0800161 "//third_party/matplotlib-cpp",
Brian Silverman16a923c2018-10-31 19:40:51 -0700162 "@com_github_gflags_gflags//:gflags",
Austin Schuhf8f95022018-01-28 20:01:10 -0800163 ],
Austin Schuhf8f95022018-01-28 20:01:10 -0800164)
Parker Schuhdc682952018-03-03 18:24:01 -0800165
166py_binary(
167 name = "graph_edit",
168 srcs = [
169 "basic_window.py",
170 "graph_edit.py",
171 "graph_generate.py",
172 ],
Parker Schuhdc682952018-03-03 18:24:01 -0800173 default_python_version = "PY3",
Brian Silverman6470f442018-08-05 12:08:16 -0700174 legacy_create_init = False,
Brian Silvermandd1aa462018-12-12 20:14:51 -0800175 restricted_to = ["//tools:k8"],
Parker Schuhdc682952018-03-03 18:24:01 -0800176 srcs_version = "PY3",
Brian Silverman6470f442018-08-05 12:08:16 -0700177 deps = [
178 ":python_init",
Brian Silvermandd1aa462018-12-12 20:14:51 -0800179 "@python_gtk",
Brian Silverman6470f442018-08-05 12:08:16 -0700180 ],
Parker Schuhdc682952018-03-03 18:24:01 -0800181)
Austin Schuh7dfccf62018-03-03 21:28:14 -0800182
183py_binary(
184 name = "graph_codegen",
185 srcs = [
186 "graph_codegen.py",
187 "graph_generate.py",
188 ],
Austin Schuh7dfccf62018-03-03 21:28:14 -0800189 default_python_version = "PY2",
Brian Silverman6470f442018-08-05 12:08:16 -0700190 legacy_create_init = False,
Austin Schuh7dfccf62018-03-03 21:28:14 -0800191 srcs_version = "PY2",
Brian Silverman6470f442018-08-05 12:08:16 -0700192 deps = [
193 ":python_init",
194 ],
195)
196
197py_library(
198 name = "python_init",
199 srcs = ["__init__.py"],
200 visibility = ["//visibility:public"],
201 deps = ["//y2018/control_loops:python_init"],
Austin Schuh7dfccf62018-03-03 21:28:14 -0800202)
Austin Schuh434c8372018-01-21 16:30:06 -0800203
204py_binary(
205 name = "extended_lqr",
206 srcs = [
207 "extended_lqr.py",
208 ],
209 restricted_to = ["//tools:k8"],
210 deps = [
211 "//external:python-gflags",
212 "//external:python-glog",
213 "//frc971/control_loops/python:controls",
214 ],
215)
Austin Schuh404e17f2018-01-24 19:32:10 -0800216
217py_binary(
Brian Silverman16a923c2018-10-31 19:40:51 -0700218 name = "arm_mpc_py",
219 srcs = [
220 "arm_mpc.py",
221 ],
222 main = "arm_mpc.py",
223 restricted_to = ["//tools:k8"],
224 deps = [
225 "//external:python-gflags",
226 "//external:python-glog",
227 "//frc971/control_loops/python:controls",
228 ],
Austin Schuh404e17f2018-01-24 19:32:10 -0800229)