@2702rebels/wpidata 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/LICENSE +28 -0
  2. package/README.md +5 -0
  3. package/dist/abstractions.cjs +0 -0
  4. package/dist/abstractions.d.cts +246 -0
  5. package/dist/abstractions.d.cts.map +1 -0
  6. package/dist/abstractions.d.mts +246 -0
  7. package/dist/abstractions.d.mts.map +1 -0
  8. package/dist/abstractions.mjs +1 -0
  9. package/dist/formats/json.cjs +32 -0
  10. package/dist/formats/json.d.cts +14 -0
  11. package/dist/formats/json.d.cts.map +1 -0
  12. package/dist/formats/json.d.mts +14 -0
  13. package/dist/formats/json.d.mts.map +1 -0
  14. package/dist/formats/json.mjs +33 -0
  15. package/dist/formats/json.mjs.map +1 -0
  16. package/dist/formats/msgpack.cjs +30 -0
  17. package/dist/formats/msgpack.d.cts +14 -0
  18. package/dist/formats/msgpack.d.cts.map +1 -0
  19. package/dist/formats/msgpack.d.mts +14 -0
  20. package/dist/formats/msgpack.d.mts.map +1 -0
  21. package/dist/formats/msgpack.mjs +31 -0
  22. package/dist/formats/msgpack.mjs.map +1 -0
  23. package/dist/formats/protobuf.cjs +130 -0
  24. package/dist/formats/protobuf.d.cts +68 -0
  25. package/dist/formats/protobuf.d.cts.map +1 -0
  26. package/dist/formats/protobuf.d.mts +68 -0
  27. package/dist/formats/protobuf.d.mts.map +1 -0
  28. package/dist/formats/protobuf.mjs +128 -0
  29. package/dist/formats/protobuf.mjs.map +1 -0
  30. package/dist/formats/struct.cjs +593 -0
  31. package/dist/formats/struct.d.cts +134 -0
  32. package/dist/formats/struct.d.cts.map +1 -0
  33. package/dist/formats/struct.d.mts +134 -0
  34. package/dist/formats/struct.d.mts.map +1 -0
  35. package/dist/formats/struct.mjs +591 -0
  36. package/dist/formats/struct.mjs.map +1 -0
  37. package/dist/sink.cjs +360 -0
  38. package/dist/sink.d.cts +93 -0
  39. package/dist/sink.d.cts.map +1 -0
  40. package/dist/sink.d.mts +93 -0
  41. package/dist/sink.d.mts.map +1 -0
  42. package/dist/sink.mjs +361 -0
  43. package/dist/sink.mjs.map +1 -0
  44. package/dist/types/protobuf.cjs +0 -0
  45. package/dist/types/protobuf.d.cts +302 -0
  46. package/dist/types/protobuf.d.cts.map +1 -0
  47. package/dist/types/protobuf.d.mts +302 -0
  48. package/dist/types/protobuf.d.mts.map +1 -0
  49. package/dist/types/protobuf.mjs +1 -0
  50. package/dist/types/sendable.cjs +0 -0
  51. package/dist/types/sendable.d.cts +225 -0
  52. package/dist/types/sendable.d.cts.map +1 -0
  53. package/dist/types/sendable.d.mts +225 -0
  54. package/dist/types/sendable.d.mts.map +1 -0
  55. package/dist/types/sendable.mjs +1 -0
  56. package/dist/types/struct.cjs +0 -0
  57. package/dist/types/struct.d.cts +304 -0
  58. package/dist/types/struct.d.cts.map +1 -0
  59. package/dist/types/struct.d.mts +304 -0
  60. package/dist/types/struct.d.mts.map +1 -0
  61. package/dist/types/struct.mjs +1 -0
  62. package/dist/utils.cjs +140 -0
  63. package/dist/utils.d.cts +40 -0
  64. package/dist/utils.d.cts.map +1 -0
  65. package/dist/utils.d.mts +40 -0
  66. package/dist/utils.d.mts.map +1 -0
  67. package/dist/utils.mjs +135 -0
  68. package/dist/utils.mjs.map +1 -0
  69. package/package.json +51 -0
  70. package/src/abstractions.ts +308 -0
  71. package/src/formats/json.ts +53 -0
  72. package/src/formats/msgpack.ts +42 -0
  73. package/src/formats/protobuf.ts +213 -0
  74. package/src/formats/struct.test.ts +814 -0
  75. package/src/formats/struct.ts +992 -0
  76. package/src/sink.ts +611 -0
  77. package/src/types/protobuf.ts +334 -0
  78. package/src/types/sendable.ts +244 -0
  79. package/src/types/struct.ts +333 -0
  80. package/src/utils.ts +241 -0
@@ -0,0 +1,302 @@
1
+ //#region src/types/protobuf.d.ts
2
+ /**
3
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/wpimath.proto
4
+ */
5
+ interface VectorProto {
6
+ readonly rows: ReadonlyArray<number>;
7
+ }
8
+ /**
9
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/wpimath.proto
10
+ */
11
+ interface MatrixProto {
12
+ readonly num_rows: number;
13
+ readonly num_cols: number;
14
+ readonly data: ReadonlyArray<number>;
15
+ }
16
+ /**
17
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
18
+ */
19
+ interface Translation2dProto {
20
+ readonly x: number;
21
+ readonly y: number;
22
+ }
23
+ /**
24
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
25
+ */
26
+ interface Translation3dProto {
27
+ readonly x: number;
28
+ readonly y: number;
29
+ readonly z: number;
30
+ }
31
+ /**
32
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
33
+ */
34
+ interface Twist2dProto {
35
+ readonly dx: number;
36
+ readonly dy: number;
37
+ readonly dtheta: number;
38
+ }
39
+ /**
40
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
41
+ */
42
+ interface Twist3dProto {
43
+ readonly dx: number;
44
+ readonly dy: number;
45
+ readonly dz: number;
46
+ readonly rx: number;
47
+ readonly ry: number;
48
+ readonly rz: number;
49
+ }
50
+ /**
51
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
52
+ */
53
+ interface QuaternionProto {
54
+ readonly w: number;
55
+ readonly x: number;
56
+ readonly y: number;
57
+ readonly z: number;
58
+ }
59
+ /**
60
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
61
+ */
62
+ interface Rotation2dProto {
63
+ readonly value: number;
64
+ }
65
+ /**
66
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
67
+ */
68
+ interface Rotation3dProto {
69
+ readonly q: QuaternionProto;
70
+ }
71
+ /**
72
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
73
+ */
74
+ interface Transform2dProto {
75
+ readonly translation: Translation2dProto;
76
+ readonly rotation: Rotation2dProto;
77
+ }
78
+ /**
79
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
80
+ */
81
+ interface Transform3dProto {
82
+ readonly translation: Translation3dProto;
83
+ readonly rotation: Rotation3dProto;
84
+ }
85
+ /**
86
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
87
+ */
88
+ interface Pose2dProto {
89
+ readonly translation: Translation2dProto;
90
+ readonly rotation: Rotation2dProto;
91
+ }
92
+ /**
93
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
94
+ */
95
+ interface Pose3dProto {
96
+ readonly translation: Translation3dProto;
97
+ readonly rotation: Rotation3dProto;
98
+ }
99
+ /**
100
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
101
+ */
102
+ interface Ellipse2dProto {
103
+ readonly center: Pose2dProto;
104
+ readonly xSemiAxis: number;
105
+ readonly ySemiAxis: number;
106
+ }
107
+ /**
108
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
109
+ */
110
+ interface Rectangle2dProto {
111
+ readonly center: Pose2dProto;
112
+ readonly xWidth: number;
113
+ readonly yWidth: number;
114
+ }
115
+ /**
116
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
117
+ */
118
+ interface ArmFeedforwardProto {
119
+ readonly ks: number;
120
+ readonly kg: number;
121
+ readonly kv: number;
122
+ readonly ka: number;
123
+ readonly dt: number;
124
+ }
125
+ /**
126
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
127
+ */
128
+ interface DifferentialDriveFeedforwardProto {
129
+ readonly kv_linear: number;
130
+ readonly ka_linear: number;
131
+ readonly kv_angular: number;
132
+ readonly ka_angular: number;
133
+ }
134
+ /**
135
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
136
+ */
137
+ interface DifferentialDriveWheelVoltagesProto {
138
+ readonly left: number;
139
+ readonly right: number;
140
+ }
141
+ /**
142
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
143
+ */
144
+ interface ElevatorFeedforwardProto {
145
+ readonly ks: number;
146
+ readonly kg: number;
147
+ readonly kv: number;
148
+ readonly ka: number;
149
+ readonly dt: number;
150
+ }
151
+ /**
152
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
153
+ */
154
+ interface SimpleMotorFeedforwardProto {
155
+ readonly ks: number;
156
+ readonly kv: number;
157
+ readonly ka: number;
158
+ readonly dt: number;
159
+ }
160
+ /**
161
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
162
+ */
163
+ interface ChassisSpeedsProto {
164
+ readonly vx: number;
165
+ readonly vy: number;
166
+ readonly omega: number;
167
+ }
168
+ /**
169
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
170
+ */
171
+ interface DifferentialDriveKinematicsProto {
172
+ readonly track_width: number;
173
+ }
174
+ /**
175
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
176
+ */
177
+ interface DifferentialDriveWheelPositionsProto {
178
+ readonly left: number;
179
+ readonly right: number;
180
+ }
181
+ /**
182
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
183
+ */
184
+ interface DifferentialDriveWheelSpeedsProto {
185
+ readonly left: number;
186
+ readonly right: number;
187
+ }
188
+ /**
189
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
190
+ */
191
+ interface MecanumDriveKinematicsProto {
192
+ readonly front_left: Translation2dProto;
193
+ readonly front_right: Translation2dProto;
194
+ readonly rear_left: Translation2dProto;
195
+ readonly rear_right: Translation2dProto;
196
+ }
197
+ /**
198
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
199
+ */
200
+ interface MecanumDriveMotorVoltagesProto {
201
+ readonly front_left: number;
202
+ readonly front_right: number;
203
+ readonly rear_left: number;
204
+ readonly rear_right: number;
205
+ }
206
+ /**
207
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
208
+ */
209
+ interface MecanumDriveWheelPositionsProto {
210
+ readonly front_left: number;
211
+ readonly front_right: number;
212
+ readonly rear_left: number;
213
+ readonly rear_right: number;
214
+ }
215
+ /**
216
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
217
+ */
218
+ interface MecanumDriveWheelSpeedsProto {
219
+ readonly front_left: number;
220
+ readonly front_right: number;
221
+ readonly rear_left: number;
222
+ readonly rear_right: number;
223
+ }
224
+ /**
225
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
226
+ */
227
+ interface SwerveDriveKinematicsProto {
228
+ readonly modules: ReadonlyArray<Translation2dProto>;
229
+ }
230
+ /**
231
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
232
+ */
233
+ interface SwerveModulePositionProto {
234
+ readonly distance: number;
235
+ readonly angle: Rotation2dProto;
236
+ }
237
+ /**
238
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
239
+ */
240
+ interface SwerveModuleStateProto {
241
+ readonly speed: number;
242
+ readonly angle: Rotation2dProto;
243
+ }
244
+ /**
245
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/spline.proto
246
+ */
247
+ interface CubicHermiteSplineProto {
248
+ readonly x_initial: readonly [number, number];
249
+ readonly x_final: readonly [number, number];
250
+ readonly y_initial: readonly [number, number];
251
+ readonly y_final: readonly [number, number];
252
+ }
253
+ /**
254
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/spline.proto
255
+ */
256
+ interface QuinticHermiteSplineProto {
257
+ readonly x_initial: readonly [number, number, number];
258
+ readonly x_final: readonly [number, number, number];
259
+ readonly y_initial: readonly [number, number, number];
260
+ readonly y_final: readonly [number, number, number];
261
+ }
262
+ /**
263
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/system.proto
264
+ */
265
+ interface LinearSystemProto {
266
+ readonly num_states: number;
267
+ readonly num_inputs: number;
268
+ readonly num_outputs: number;
269
+ readonly a: MatrixProto;
270
+ readonly b: MatrixProto;
271
+ readonly c: MatrixProto;
272
+ readonly d: MatrixProto;
273
+ }
274
+ /**
275
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/plant.proto
276
+ */
277
+ interface DCMotorProto {
278
+ readonly nominal_voltage: number;
279
+ readonly stall_torque: number;
280
+ readonly stall_current: number;
281
+ readonly free_current: number;
282
+ readonly free_speed: number;
283
+ }
284
+ /**
285
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/trajectory.proto
286
+ */
287
+ interface TrajectoryStateProto {
288
+ readonly time: number;
289
+ readonly velocity: number;
290
+ readonly acceleration: number;
291
+ readonly pose: Pose2dProto;
292
+ readonly curvature: number;
293
+ }
294
+ /**
295
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/trajectory.proto
296
+ */
297
+ interface TrajectoryProto {
298
+ readonly states: ReadonlyArray<TrajectoryStateProto>;
299
+ }
300
+ //#endregion
301
+ export { ArmFeedforwardProto, ChassisSpeedsProto, CubicHermiteSplineProto, DCMotorProto, DifferentialDriveFeedforwardProto, DifferentialDriveKinematicsProto, DifferentialDriveWheelPositionsProto, DifferentialDriveWheelSpeedsProto, DifferentialDriveWheelVoltagesProto, ElevatorFeedforwardProto, Ellipse2dProto, LinearSystemProto, MatrixProto, MecanumDriveKinematicsProto, MecanumDriveMotorVoltagesProto, MecanumDriveWheelPositionsProto, MecanumDriveWheelSpeedsProto, Pose2dProto, Pose3dProto, QuaternionProto, QuinticHermiteSplineProto, Rectangle2dProto, Rotation2dProto, Rotation3dProto, SimpleMotorFeedforwardProto, SwerveDriveKinematicsProto, SwerveModulePositionProto, SwerveModuleStateProto, TrajectoryProto, TrajectoryStateProto, Transform2dProto, Transform3dProto, Translation2dProto, Translation3dProto, Twist2dProto, Twist3dProto, VectorProto };
302
+ //# sourceMappingURL=protobuf.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protobuf.d.cts","names":[],"sources":["../../src/types/protobuf.ts"],"sourcesContent":[],"mappings":";;AAGA;AAOA;AASiB,UAhBA,WAAA,CAgBkB;EAQlB,SAAA,IAAA,EAvBA,aAuBkB,CAAA,MAAA,CAAA;AASnC;AASA;AAYA;AAUA;AAOiB,UAhEA,WAAA,CAgEe;EAOf,SAAA,QAAA,EAAgB,MAAA;EAQhB,SAAA,QAAA,EAAgB,MAAA;EAQhB,SAAA,IAAA,EApFA,aAqFO,CAAA,MAAA,CAAA;AAOxB;AAQA;AASA;AASA;AAWiB,UA3HA,kBAAA,CA2HA;EAUA,SAAA,CAAA,EAAA,MAAA;EAQA,SAAA,CAAA,EAAA,MAAA;AAWjB;AAUA;AASA;AAOA;AAQiB,UAlLA,kBAAA,CAkLA;EAQA,SAAA,CAAA,EAAA,MAAA;EACM,SAAA,CAAA,EAAA,MAAA;EACC,SAAA,CAAA,EAAA,MAAA;;;;AAQxB;AAUiB,UArMA,YAAA,CAqMA;EAUA,SAAA,EAAA,EAAA,MAAA;EAUA,SAAA,EAAA,EAAA,MAAA;EAOA,SAAA,MAAA,EAAA,MAAA;AAQjB;AAQA;AAUA;AAUA;AAIc,UA/PG,YAAA,CA+PH;EACA,SAAA,EAAA,EAAA,MAAA;EACA,SAAA,EAAA,EAAA,MAAA;EACA,SAAA,EAAA,EAAA,MAAA;EAAW,SAAA,EAAA,EAAA,MAAA;EAMR,SAAA,EAAA,EAAA,MAAY;EAWZ,SAAA,EAAA,EAAA,MAAA;AAWjB;;;;UAlRiB,eAAA;;;;;;;;;UAUA,eAAA;;;;;;UAOA,eAAA;cACH;;;;;UAMG,gBAAA;wBACO;qBACH;;;;;UAMJ,gBAAA;wBACO;qBACH;;;;;UAMJ,WAAA;wBACO;qBACH;;;;;UAMJ,WAAA;wBACO;qBACH;;;;;UAMJ,cAAA;mBACE;;;;;;;UAQF,gBAAA;mBACE;;;;;;;UAQF,mBAAA;;;;;;;;;;UAWA,iCAAA;;;;;;;;;UAUA,mCAAA;;;;;;;UAQA,wBAAA;;;;;;;;;;UAWA,2BAAA;;;;;;;;;UAUA,kBAAA;;;;;;;;UASA,gCAAA;;;;;;UAOA,oCAAA;;;;;;;UAQA,iCAAA;;;;;;;UAQA,2BAAA;uBACM;wBACC;sBACF;uBACC;;;;;UAMN,8BAAA;;;;;;;;;UAUA,+BAAA;;;;;;;;;UAUA,4BAAA;;;;;;;;;UAUA,0BAAA;oBACG,cAAc;;;;;UAMjB,yBAAA;;kBAEC;;;;;UAMD,sBAAA;;kBAEC;;;;;UAMD,uBAAA;;;;;;;;;UAUA,yBAAA;;;;;;;;;UAUA,iBAAA;;;;cAIH;cACA;cACA;cACA;;;;;UAMG,YAAA;;;;;;;;;;UAWA,oBAAA;;;;iBAIA;;;;;;UAOA,eAAA;mBACE,cAAc"}
@@ -0,0 +1,302 @@
1
+ //#region src/types/protobuf.d.ts
2
+ /**
3
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/wpimath.proto
4
+ */
5
+ interface VectorProto {
6
+ readonly rows: ReadonlyArray<number>;
7
+ }
8
+ /**
9
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/wpimath.proto
10
+ */
11
+ interface MatrixProto {
12
+ readonly num_rows: number;
13
+ readonly num_cols: number;
14
+ readonly data: ReadonlyArray<number>;
15
+ }
16
+ /**
17
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
18
+ */
19
+ interface Translation2dProto {
20
+ readonly x: number;
21
+ readonly y: number;
22
+ }
23
+ /**
24
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
25
+ */
26
+ interface Translation3dProto {
27
+ readonly x: number;
28
+ readonly y: number;
29
+ readonly z: number;
30
+ }
31
+ /**
32
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
33
+ */
34
+ interface Twist2dProto {
35
+ readonly dx: number;
36
+ readonly dy: number;
37
+ readonly dtheta: number;
38
+ }
39
+ /**
40
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
41
+ */
42
+ interface Twist3dProto {
43
+ readonly dx: number;
44
+ readonly dy: number;
45
+ readonly dz: number;
46
+ readonly rx: number;
47
+ readonly ry: number;
48
+ readonly rz: number;
49
+ }
50
+ /**
51
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
52
+ */
53
+ interface QuaternionProto {
54
+ readonly w: number;
55
+ readonly x: number;
56
+ readonly y: number;
57
+ readonly z: number;
58
+ }
59
+ /**
60
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
61
+ */
62
+ interface Rotation2dProto {
63
+ readonly value: number;
64
+ }
65
+ /**
66
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
67
+ */
68
+ interface Rotation3dProto {
69
+ readonly q: QuaternionProto;
70
+ }
71
+ /**
72
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
73
+ */
74
+ interface Transform2dProto {
75
+ readonly translation: Translation2dProto;
76
+ readonly rotation: Rotation2dProto;
77
+ }
78
+ /**
79
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
80
+ */
81
+ interface Transform3dProto {
82
+ readonly translation: Translation3dProto;
83
+ readonly rotation: Rotation3dProto;
84
+ }
85
+ /**
86
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
87
+ */
88
+ interface Pose2dProto {
89
+ readonly translation: Translation2dProto;
90
+ readonly rotation: Rotation2dProto;
91
+ }
92
+ /**
93
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry3d.proto
94
+ */
95
+ interface Pose3dProto {
96
+ readonly translation: Translation3dProto;
97
+ readonly rotation: Rotation3dProto;
98
+ }
99
+ /**
100
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
101
+ */
102
+ interface Ellipse2dProto {
103
+ readonly center: Pose2dProto;
104
+ readonly xSemiAxis: number;
105
+ readonly ySemiAxis: number;
106
+ }
107
+ /**
108
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/geometry2d.proto
109
+ */
110
+ interface Rectangle2dProto {
111
+ readonly center: Pose2dProto;
112
+ readonly xWidth: number;
113
+ readonly yWidth: number;
114
+ }
115
+ /**
116
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
117
+ */
118
+ interface ArmFeedforwardProto {
119
+ readonly ks: number;
120
+ readonly kg: number;
121
+ readonly kv: number;
122
+ readonly ka: number;
123
+ readonly dt: number;
124
+ }
125
+ /**
126
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
127
+ */
128
+ interface DifferentialDriveFeedforwardProto {
129
+ readonly kv_linear: number;
130
+ readonly ka_linear: number;
131
+ readonly kv_angular: number;
132
+ readonly ka_angular: number;
133
+ }
134
+ /**
135
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
136
+ */
137
+ interface DifferentialDriveWheelVoltagesProto {
138
+ readonly left: number;
139
+ readonly right: number;
140
+ }
141
+ /**
142
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
143
+ */
144
+ interface ElevatorFeedforwardProto {
145
+ readonly ks: number;
146
+ readonly kg: number;
147
+ readonly kv: number;
148
+ readonly ka: number;
149
+ readonly dt: number;
150
+ }
151
+ /**
152
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/controller.proto
153
+ */
154
+ interface SimpleMotorFeedforwardProto {
155
+ readonly ks: number;
156
+ readonly kv: number;
157
+ readonly ka: number;
158
+ readonly dt: number;
159
+ }
160
+ /**
161
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
162
+ */
163
+ interface ChassisSpeedsProto {
164
+ readonly vx: number;
165
+ readonly vy: number;
166
+ readonly omega: number;
167
+ }
168
+ /**
169
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
170
+ */
171
+ interface DifferentialDriveKinematicsProto {
172
+ readonly track_width: number;
173
+ }
174
+ /**
175
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
176
+ */
177
+ interface DifferentialDriveWheelPositionsProto {
178
+ readonly left: number;
179
+ readonly right: number;
180
+ }
181
+ /**
182
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
183
+ */
184
+ interface DifferentialDriveWheelSpeedsProto {
185
+ readonly left: number;
186
+ readonly right: number;
187
+ }
188
+ /**
189
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
190
+ */
191
+ interface MecanumDriveKinematicsProto {
192
+ readonly front_left: Translation2dProto;
193
+ readonly front_right: Translation2dProto;
194
+ readonly rear_left: Translation2dProto;
195
+ readonly rear_right: Translation2dProto;
196
+ }
197
+ /**
198
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
199
+ */
200
+ interface MecanumDriveMotorVoltagesProto {
201
+ readonly front_left: number;
202
+ readonly front_right: number;
203
+ readonly rear_left: number;
204
+ readonly rear_right: number;
205
+ }
206
+ /**
207
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
208
+ */
209
+ interface MecanumDriveWheelPositionsProto {
210
+ readonly front_left: number;
211
+ readonly front_right: number;
212
+ readonly rear_left: number;
213
+ readonly rear_right: number;
214
+ }
215
+ /**
216
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
217
+ */
218
+ interface MecanumDriveWheelSpeedsProto {
219
+ readonly front_left: number;
220
+ readonly front_right: number;
221
+ readonly rear_left: number;
222
+ readonly rear_right: number;
223
+ }
224
+ /**
225
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
226
+ */
227
+ interface SwerveDriveKinematicsProto {
228
+ readonly modules: ReadonlyArray<Translation2dProto>;
229
+ }
230
+ /**
231
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
232
+ */
233
+ interface SwerveModulePositionProto {
234
+ readonly distance: number;
235
+ readonly angle: Rotation2dProto;
236
+ }
237
+ /**
238
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/kinematics.proto
239
+ */
240
+ interface SwerveModuleStateProto {
241
+ readonly speed: number;
242
+ readonly angle: Rotation2dProto;
243
+ }
244
+ /**
245
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/spline.proto
246
+ */
247
+ interface CubicHermiteSplineProto {
248
+ readonly x_initial: readonly [number, number];
249
+ readonly x_final: readonly [number, number];
250
+ readonly y_initial: readonly [number, number];
251
+ readonly y_final: readonly [number, number];
252
+ }
253
+ /**
254
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/spline.proto
255
+ */
256
+ interface QuinticHermiteSplineProto {
257
+ readonly x_initial: readonly [number, number, number];
258
+ readonly x_final: readonly [number, number, number];
259
+ readonly y_initial: readonly [number, number, number];
260
+ readonly y_final: readonly [number, number, number];
261
+ }
262
+ /**
263
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/system.proto
264
+ */
265
+ interface LinearSystemProto {
266
+ readonly num_states: number;
267
+ readonly num_inputs: number;
268
+ readonly num_outputs: number;
269
+ readonly a: MatrixProto;
270
+ readonly b: MatrixProto;
271
+ readonly c: MatrixProto;
272
+ readonly d: MatrixProto;
273
+ }
274
+ /**
275
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/plant.proto
276
+ */
277
+ interface DCMotorProto {
278
+ readonly nominal_voltage: number;
279
+ readonly stall_torque: number;
280
+ readonly stall_current: number;
281
+ readonly free_current: number;
282
+ readonly free_speed: number;
283
+ }
284
+ /**
285
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/trajectory.proto
286
+ */
287
+ interface TrajectoryStateProto {
288
+ readonly time: number;
289
+ readonly velocity: number;
290
+ readonly acceleration: number;
291
+ readonly pose: Pose2dProto;
292
+ readonly curvature: number;
293
+ }
294
+ /**
295
+ * @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/proto/trajectory.proto
296
+ */
297
+ interface TrajectoryProto {
298
+ readonly states: ReadonlyArray<TrajectoryStateProto>;
299
+ }
300
+ //#endregion
301
+ export { ArmFeedforwardProto, ChassisSpeedsProto, CubicHermiteSplineProto, DCMotorProto, DifferentialDriveFeedforwardProto, DifferentialDriveKinematicsProto, DifferentialDriveWheelPositionsProto, DifferentialDriveWheelSpeedsProto, DifferentialDriveWheelVoltagesProto, ElevatorFeedforwardProto, Ellipse2dProto, LinearSystemProto, MatrixProto, MecanumDriveKinematicsProto, MecanumDriveMotorVoltagesProto, MecanumDriveWheelPositionsProto, MecanumDriveWheelSpeedsProto, Pose2dProto, Pose3dProto, QuaternionProto, QuinticHermiteSplineProto, Rectangle2dProto, Rotation2dProto, Rotation3dProto, SimpleMotorFeedforwardProto, SwerveDriveKinematicsProto, SwerveModulePositionProto, SwerveModuleStateProto, TrajectoryProto, TrajectoryStateProto, Transform2dProto, Transform3dProto, Translation2dProto, Translation3dProto, Twist2dProto, Twist3dProto, VectorProto };
302
+ //# sourceMappingURL=protobuf.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protobuf.d.mts","names":[],"sources":["../../src/types/protobuf.ts"],"sourcesContent":[],"mappings":";;AAGA;AAOA;AASiB,UAhBA,WAAA,CAgBkB;EAQlB,SAAA,IAAA,EAvBA,aAuBkB,CAAA,MAAA,CAAA;AASnC;AASA;AAYA;AAUA;AAOiB,UAhEA,WAAA,CAgEe;EAOf,SAAA,QAAA,EAAgB,MAAA;EAQhB,SAAA,QAAA,EAAgB,MAAA;EAQhB,SAAA,IAAA,EApFA,aAqFO,CAAA,MAAA,CAAA;AAOxB;AAQA;AASA;AASA;AAWiB,UA3HA,kBAAA,CA2HA;EAUA,SAAA,CAAA,EAAA,MAAA;EAQA,SAAA,CAAA,EAAA,MAAA;AAWjB;AAUA;AASA;AAOA;AAQiB,UAlLA,kBAAA,CAkLA;EAQA,SAAA,CAAA,EAAA,MAAA;EACM,SAAA,CAAA,EAAA,MAAA;EACC,SAAA,CAAA,EAAA,MAAA;;;;AAQxB;AAUiB,UArMA,YAAA,CAqMA;EAUA,SAAA,EAAA,EAAA,MAAA;EAUA,SAAA,EAAA,EAAA,MAAA;EAOA,SAAA,MAAA,EAAA,MAAA;AAQjB;AAQA;AAUA;AAUA;AAIc,UA/PG,YAAA,CA+PH;EACA,SAAA,EAAA,EAAA,MAAA;EACA,SAAA,EAAA,EAAA,MAAA;EACA,SAAA,EAAA,EAAA,MAAA;EAAW,SAAA,EAAA,EAAA,MAAA;EAMR,SAAA,EAAA,EAAA,MAAY;EAWZ,SAAA,EAAA,EAAA,MAAA;AAWjB;;;;UAlRiB,eAAA;;;;;;;;;UAUA,eAAA;;;;;;UAOA,eAAA;cACH;;;;;UAMG,gBAAA;wBACO;qBACH;;;;;UAMJ,gBAAA;wBACO;qBACH;;;;;UAMJ,WAAA;wBACO;qBACH;;;;;UAMJ,WAAA;wBACO;qBACH;;;;;UAMJ,cAAA;mBACE;;;;;;;UAQF,gBAAA;mBACE;;;;;;;UAQF,mBAAA;;;;;;;;;;UAWA,iCAAA;;;;;;;;;UAUA,mCAAA;;;;;;;UAQA,wBAAA;;;;;;;;;;UAWA,2BAAA;;;;;;;;;UAUA,kBAAA;;;;;;;;UASA,gCAAA;;;;;;UAOA,oCAAA;;;;;;;UAQA,iCAAA;;;;;;;UAQA,2BAAA;uBACM;wBACC;sBACF;uBACC;;;;;UAMN,8BAAA;;;;;;;;;UAUA,+BAAA;;;;;;;;;UAUA,4BAAA;;;;;;;;;UAUA,0BAAA;oBACG,cAAc;;;;;UAMjB,yBAAA;;kBAEC;;;;;UAMD,sBAAA;;kBAEC;;;;;UAMD,uBAAA;;;;;;;;;UAUA,yBAAA;;;;;;;;;UAUA,iBAAA;;;;cAIH;cACA;cACA;cACA;;;;;UAMG,YAAA;;;;;;;;;;UAWA,oBAAA;;;;iBAIA;;;;;;UAOA,eAAA;mBACE,cAAc"}
@@ -0,0 +1 @@
1
+ export { };
File without changes