blob: 398272250253e3350bd4fd5706aabd4b284c2525 [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"],
41 deps = [
42 "//external:python-gflags",
43 "//external:python-glog",
44 "//frc971/control_loops/python:controls",
45 "//frc971/control_loops/python:drivetrain",
46 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080047)
48
49py_test(
Austin Schuhfc0837a2018-02-11 14:56:43 -080050 name = "polydrivetrain_test",
51 srcs = [
52 "polydrivetrain_test.py",
53 ],
Brian Silverman6470f442018-08-05 12:08:16 -070054 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080055 restricted_to = ["//tools:k8"],
56 deps = [
57 ":polydrivetrain_lib",
Brian Silverman6470f442018-08-05 12:08:16 -070058 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080059 "//external:python-gflags",
60 "//external:python-glog",
61 "//frc971/control_loops/python:controls",
62 "//frc971/control_loops/python:polydrivetrain",
63 ],
Sabina Davisf4c5e762018-01-24 10:18:43 -080064)
Austin Schuhf173eb82018-01-20 23:32:30 -080065
66py_binary(
Austin Schuhfc0837a2018-02-11 14:56:43 -080067 name = "arm_trajectory",
68 srcs = [
69 "arm_trajectory.py",
70 "path_points.py",
71 ],
Brian Silverman6470f442018-08-05 12:08:16 -070072 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080073 restricted_to = ["//tools:k8"],
74 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070075 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080076 "//external:python-gflags",
77 "//external:python-glog",
78 "//frc971/control_loops/python:controls",
79 ],
80)
81
82py_binary(
83 name = "intake",
84 srcs = [
85 "intake.py",
86 ],
Brian Silverman6470f442018-08-05 12:08:16 -070087 legacy_create_init = False,
Austin Schuhfc0837a2018-02-11 14:56:43 -080088 restricted_to = ["//tools:k8"],
89 deps = [
Brian Silverman6470f442018-08-05 12:08:16 -070090 ":python_init",
Austin Schuhfc0837a2018-02-11 14:56:43 -080091 "//external:python-gflags",
92 "//external:python-glog",
93 "//frc971/control_loops/python:controls",
Brian Silverman6470f442018-08-05 12:08:16 -070094 "@matplotlib",
Austin Schuhfc0837a2018-02-11 14:56:43 -080095 ],
Austin Schuhf173eb82018-01-20 23:32:30 -080096)
Austin Schuhf8f95022018-01-28 20:01:10 -080097
Austin Schuhad596222018-01-31 23:34:03 -080098cc_library(
John Park398c74a2018-10-20 21:17:39 -070099 name = 'dlqr',
100 hdrs = [
101 'dlqr.h',
102 ],
Austin Schuhad596222018-01-31 23:34:03 -0800103 deps = [
John Park398c74a2018-10-20 21:17:39 -0700104 '@slycot_repo//:slicot',
105 ],
Austin Schuhad596222018-01-31 23:34:03 -0800106)
107
Austin Schuhf8f95022018-01-28 20:01:10 -0800108cc_binary(
109 name = "arm_mpc",
110 srcs = [
111 "arm_mpc.cc",
112 ],
Austin Schuhad596222018-01-31 23:34:03 -0800113 deps = [
114 ":arm_bounds",
John Park398c74a2018-10-20 21:17:39 -0700115 ':dlqr',
Austin Schuhad596222018-01-31 23:34:03 -0800116 "//third_party/ct",
117 "//third_party/gflags",
118 "//third_party/matplotlib-cpp",
119 "@cgal_repo//:cgal",
120 ],
John Park398c74a2018-10-20 21:17:39 -0700121 restricted_to = ["//tools:k8"],
Austin Schuhad596222018-01-31 23:34:03 -0800122)
123
124cc_binary(
125 name = "3d_plot",
126 srcs = [
127 "3d_plot.cc",
128 ],
Austin Schuhfc0837a2018-02-11 14:56:43 -0800129 restricted_to = ["//tools:k8"],
Austin Schuhf8f95022018-01-28 20:01:10 -0800130 deps = [
Austin Schuhad596222018-01-31 23:34:03 -0800131 ":arm_bounds",
132 "//third_party/gflags",
133 "//third_party/matplotlib-cpp",
134 ],
135)
136
137cc_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
151cc_binary(
152 name = "2d_plot",
153 srcs = [
154 "2d_plot.cc",
155 ],
156 restricted_to = ["//tools:k8"],
157 deps = [
Austin Schuhf8f95022018-01-28 20:01:10 -0800158 "//third_party/gflags",
Austin Schuhfc0837a2018-02-11 14:56:43 -0800159 "//third_party/matplotlib-cpp",
Austin Schuhf8f95022018-01-28 20:01:10 -0800160 ],
Austin Schuhf8f95022018-01-28 20:01:10 -0800161)
Parker Schuhdc682952018-03-03 18:24:01 -0800162
163py_binary(
164 name = "graph_edit",
165 srcs = [
166 "basic_window.py",
167 "graph_edit.py",
168 "graph_generate.py",
169 ],
Parker Schuhdc682952018-03-03 18:24:01 -0800170 default_python_version = "PY3",
Brian Silverman6470f442018-08-05 12:08:16 -0700171 legacy_create_init = False,
Parker Schuhdc682952018-03-03 18:24:01 -0800172 srcs_version = "PY3",
Brian Silverman6470f442018-08-05 12:08:16 -0700173 deps = [
174 ":python_init",
175 ],
Parker Schuhdc682952018-03-03 18:24:01 -0800176)
Austin Schuh7dfccf62018-03-03 21:28:14 -0800177
178py_binary(
179 name = "graph_codegen",
180 srcs = [
181 "graph_codegen.py",
182 "graph_generate.py",
183 ],
Austin Schuh7dfccf62018-03-03 21:28:14 -0800184 default_python_version = "PY2",
Brian Silverman6470f442018-08-05 12:08:16 -0700185 legacy_create_init = False,
Austin Schuh7dfccf62018-03-03 21:28:14 -0800186 srcs_version = "PY2",
Brian Silverman6470f442018-08-05 12:08:16 -0700187 deps = [
188 ":python_init",
189 ],
190)
191
192py_library(
193 name = "python_init",
194 srcs = ["__init__.py"],
195 visibility = ["//visibility:public"],
196 deps = ["//y2018/control_loops:python_init"],
Austin Schuh7dfccf62018-03-03 21:28:14 -0800197)
Austin Schuh434c8372018-01-21 16:30:06 -0800198
199py_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)
Austin Schuh404e17f2018-01-24 19:32:10 -0800211
212py_binary(
John Park398c74a2018-10-20 21:17:39 -0700213 name = 'arm_mpc_py',
214 srcs = [
215 'arm_mpc.py',
216 ],
217 main = 'arm_mpc.py',
218 deps = [
219 '//external:python-gflags',
220 '//external:python-glog',
221 '//frc971/control_loops/python:controls',
222 ],
223 restricted_to = ['//tools:k8'],
Austin Schuh404e17f2018-01-24 19:32:10 -0800224)