@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.
- package/LICENSE +28 -0
- package/README.md +5 -0
- package/dist/abstractions.cjs +0 -0
- package/dist/abstractions.d.cts +246 -0
- package/dist/abstractions.d.cts.map +1 -0
- package/dist/abstractions.d.mts +246 -0
- package/dist/abstractions.d.mts.map +1 -0
- package/dist/abstractions.mjs +1 -0
- package/dist/formats/json.cjs +32 -0
- package/dist/formats/json.d.cts +14 -0
- package/dist/formats/json.d.cts.map +1 -0
- package/dist/formats/json.d.mts +14 -0
- package/dist/formats/json.d.mts.map +1 -0
- package/dist/formats/json.mjs +33 -0
- package/dist/formats/json.mjs.map +1 -0
- package/dist/formats/msgpack.cjs +30 -0
- package/dist/formats/msgpack.d.cts +14 -0
- package/dist/formats/msgpack.d.cts.map +1 -0
- package/dist/formats/msgpack.d.mts +14 -0
- package/dist/formats/msgpack.d.mts.map +1 -0
- package/dist/formats/msgpack.mjs +31 -0
- package/dist/formats/msgpack.mjs.map +1 -0
- package/dist/formats/protobuf.cjs +130 -0
- package/dist/formats/protobuf.d.cts +68 -0
- package/dist/formats/protobuf.d.cts.map +1 -0
- package/dist/formats/protobuf.d.mts +68 -0
- package/dist/formats/protobuf.d.mts.map +1 -0
- package/dist/formats/protobuf.mjs +128 -0
- package/dist/formats/protobuf.mjs.map +1 -0
- package/dist/formats/struct.cjs +593 -0
- package/dist/formats/struct.d.cts +134 -0
- package/dist/formats/struct.d.cts.map +1 -0
- package/dist/formats/struct.d.mts +134 -0
- package/dist/formats/struct.d.mts.map +1 -0
- package/dist/formats/struct.mjs +591 -0
- package/dist/formats/struct.mjs.map +1 -0
- package/dist/sink.cjs +360 -0
- package/dist/sink.d.cts +93 -0
- package/dist/sink.d.cts.map +1 -0
- package/dist/sink.d.mts +93 -0
- package/dist/sink.d.mts.map +1 -0
- package/dist/sink.mjs +361 -0
- package/dist/sink.mjs.map +1 -0
- package/dist/types/protobuf.cjs +0 -0
- package/dist/types/protobuf.d.cts +302 -0
- package/dist/types/protobuf.d.cts.map +1 -0
- package/dist/types/protobuf.d.mts +302 -0
- package/dist/types/protobuf.d.mts.map +1 -0
- package/dist/types/protobuf.mjs +1 -0
- package/dist/types/sendable.cjs +0 -0
- package/dist/types/sendable.d.cts +225 -0
- package/dist/types/sendable.d.cts.map +1 -0
- package/dist/types/sendable.d.mts +225 -0
- package/dist/types/sendable.d.mts.map +1 -0
- package/dist/types/sendable.mjs +1 -0
- package/dist/types/struct.cjs +0 -0
- package/dist/types/struct.d.cts +304 -0
- package/dist/types/struct.d.cts.map +1 -0
- package/dist/types/struct.d.mts +304 -0
- package/dist/types/struct.d.mts.map +1 -0
- package/dist/types/struct.mjs +1 -0
- package/dist/utils.cjs +140 -0
- package/dist/utils.d.cts +40 -0
- package/dist/utils.d.cts.map +1 -0
- package/dist/utils.d.mts +40 -0
- package/dist/utils.d.mts.map +1 -0
- package/dist/utils.mjs +135 -0
- package/dist/utils.mjs.map +1 -0
- package/package.json +51 -0
- package/src/abstractions.ts +308 -0
- package/src/formats/json.ts +53 -0
- package/src/formats/msgpack.ts +42 -0
- package/src/formats/protobuf.ts +213 -0
- package/src/formats/struct.test.ts +814 -0
- package/src/formats/struct.ts +992 -0
- package/src/sink.ts +611 -0
- package/src/types/protobuf.ts +334 -0
- package/src/types/sendable.ts +244 -0
- package/src/types/struct.ts +333 -0
- package/src/utils.ts +241 -0
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
//#region src/types/struct.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/struct/VectorStruct.java
|
|
4
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/struct/VectorStruct.h
|
|
5
|
+
*/
|
|
6
|
+
interface VectorStruct {
|
|
7
|
+
readonly data: ReadonlyArray<number>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/struct/MatrixStruct.java
|
|
11
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/struct/MatrixStruct.h
|
|
12
|
+
*/
|
|
13
|
+
interface MatrixStruct {
|
|
14
|
+
readonly data: ReadonlyArray<number>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Translation2dStruct.java
|
|
18
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Translation2dStruct.h
|
|
19
|
+
*/
|
|
20
|
+
interface Translation2dStruct {
|
|
21
|
+
readonly x: number;
|
|
22
|
+
readonly y: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Translation3dStruct.java
|
|
26
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Translation3dStruct.h
|
|
27
|
+
*/
|
|
28
|
+
interface Translation3dStruct {
|
|
29
|
+
readonly x: number;
|
|
30
|
+
readonly y: number;
|
|
31
|
+
readonly z: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Twist2dStruct.java
|
|
35
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Twist2dStruct.h
|
|
36
|
+
*/
|
|
37
|
+
interface Twist2dStruct {
|
|
38
|
+
readonly dx: number;
|
|
39
|
+
readonly dy: number;
|
|
40
|
+
readonly dtheta: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Twist3dStruct.java
|
|
44
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Twist3dStruct.h
|
|
45
|
+
*/
|
|
46
|
+
interface Twist3dStruct {
|
|
47
|
+
readonly dx: number;
|
|
48
|
+
readonly dy: number;
|
|
49
|
+
readonly dz: number;
|
|
50
|
+
readonly rx: number;
|
|
51
|
+
readonly ry: number;
|
|
52
|
+
readonly rz: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/QauternionStruct.java
|
|
56
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/QuaternionStruct.h
|
|
57
|
+
*/
|
|
58
|
+
interface QuaternionStruct {
|
|
59
|
+
readonly w: number;
|
|
60
|
+
readonly x: number;
|
|
61
|
+
readonly y: number;
|
|
62
|
+
readonly z: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Rotation2dStruct.java
|
|
66
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Rotation2dStruct.h
|
|
67
|
+
*/
|
|
68
|
+
interface Rotation2dStruct {
|
|
69
|
+
readonly value: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Rotation3dStruct.java
|
|
73
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Rotation3dStruct.h
|
|
74
|
+
*/
|
|
75
|
+
interface Rotation3dStruct {
|
|
76
|
+
readonly q: QuaternionStruct;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Transform2dStruct.java
|
|
80
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Transform2dStruct.h
|
|
81
|
+
*/
|
|
82
|
+
interface Transform2dStruct {
|
|
83
|
+
readonly translation: Translation2dStruct;
|
|
84
|
+
readonly rotation: Rotation2dStruct;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Transform3dStruct.java
|
|
88
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Transform3dStruct.h
|
|
89
|
+
*/
|
|
90
|
+
interface Transform3dStruct {
|
|
91
|
+
readonly translation: Translation3dStruct;
|
|
92
|
+
readonly rotation: Rotation3dStruct;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Pose2dStruct.java
|
|
96
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Pose2dStruct.h
|
|
97
|
+
*/
|
|
98
|
+
interface Pose2dStruct {
|
|
99
|
+
readonly translation: Translation2dStruct;
|
|
100
|
+
readonly rotation: Rotation2dStruct;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Pose3dStruct.java
|
|
104
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Pose3dStruct.h
|
|
105
|
+
*/
|
|
106
|
+
interface Pose3dStruct {
|
|
107
|
+
readonly translation: Translation3dStruct;
|
|
108
|
+
readonly rotation: Rotation3dStruct;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Ellipse2dStruct.java
|
|
112
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Ellipse2dStruct.h
|
|
113
|
+
*/
|
|
114
|
+
interface Ellipse2dStruct {
|
|
115
|
+
readonly center: Pose2dStruct;
|
|
116
|
+
readonly xSemiAxis: number;
|
|
117
|
+
readonly ySemiAxis: number;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Rectangle2dStruct.java
|
|
121
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Rectangle2dStruct.h
|
|
122
|
+
*/
|
|
123
|
+
interface Rectangle2dStruct {
|
|
124
|
+
readonly center: Pose2dStruct;
|
|
125
|
+
readonly xWidth: number;
|
|
126
|
+
readonly yWidth: number;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/ArmFeedforwardStruct.java
|
|
130
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/ArmFeedforwardStruct.h
|
|
131
|
+
*/
|
|
132
|
+
interface ArmFeedforwardStruct {
|
|
133
|
+
readonly ks: number;
|
|
134
|
+
readonly kg: number;
|
|
135
|
+
readonly kv: number;
|
|
136
|
+
readonly ka: number;
|
|
137
|
+
readonly dt: number;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/DifferentialDriveFeedforwardStruct.java
|
|
141
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/DifferentialDriveFeedforwardStruct.h
|
|
142
|
+
*/
|
|
143
|
+
interface DifferentialDriveFeedforwardStruct {
|
|
144
|
+
readonly kVLinear: number;
|
|
145
|
+
readonly kALinear: number;
|
|
146
|
+
readonly kVAngular: number;
|
|
147
|
+
readonly kAAngular: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/DifferentialDriveWheelVoltagesStruct.java
|
|
151
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/DifferentialDriveWheelVoltagesStruct.h
|
|
152
|
+
*/
|
|
153
|
+
interface DifferentialDriveWheelVoltagesStruct {
|
|
154
|
+
readonly left: number;
|
|
155
|
+
readonly right: number;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/ElevatorFeedforwardStruct.java
|
|
159
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/ElevatorFeedforwardStruct.h
|
|
160
|
+
*/
|
|
161
|
+
interface ElevatorFeedforwardStruct {
|
|
162
|
+
readonly ks: number;
|
|
163
|
+
readonly kg: number;
|
|
164
|
+
readonly kv: number;
|
|
165
|
+
readonly ka: number;
|
|
166
|
+
readonly dt: number;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/SimpleMotorFeedforwardStruct.java
|
|
170
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/SimpleMotorFeedforwardStruct.h
|
|
171
|
+
*/
|
|
172
|
+
interface SimpleMotorFeedforwardStruct {
|
|
173
|
+
readonly ks: number;
|
|
174
|
+
readonly kv: number;
|
|
175
|
+
readonly ka: number;
|
|
176
|
+
readonly dt: number;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/ChassisSpeedsStruct.java
|
|
180
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/ChassisSpeedsStruct.h
|
|
181
|
+
*/
|
|
182
|
+
interface ChassisSpeedsStruct {
|
|
183
|
+
readonly vx: number;
|
|
184
|
+
readonly vy: number;
|
|
185
|
+
readonly omega: number;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/DifferentialDriveKinematicsStruct.java
|
|
189
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/DifferentialDriveKinematicsStruct.h
|
|
190
|
+
*/
|
|
191
|
+
interface DifferentialDriveKinematicsStruct {
|
|
192
|
+
readonly track_width: number;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/DifferentialDriveWheelPositionsStruct.java
|
|
196
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/DifferentialDriveWheelPositionsStruct.h
|
|
197
|
+
*/
|
|
198
|
+
interface DifferentialDriveWheelPositionsStruct {
|
|
199
|
+
readonly left: number;
|
|
200
|
+
readonly right: number;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/DifferentialDriveWheelSpeedsStruct.java
|
|
204
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/DifferentialDriveWheelSpeedsStruct.h
|
|
205
|
+
*/
|
|
206
|
+
interface DifferentialDriveWheelSpeedsStruct {
|
|
207
|
+
readonly left: number;
|
|
208
|
+
readonly right: number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveKinematicsStruct.java
|
|
212
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/MecanumDriveKinematicsStruct.h
|
|
213
|
+
*/
|
|
214
|
+
interface MecanumDriveKinematicsStruct {
|
|
215
|
+
readonly front_left: Translation2dStruct;
|
|
216
|
+
readonly front_right: Translation2dStruct;
|
|
217
|
+
readonly rear_left: Translation2dStruct;
|
|
218
|
+
readonly rear_right: Translation2dStruct;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveMotorVoltagesStruct.java
|
|
222
|
+
*/
|
|
223
|
+
interface MecanumDriveMotorVoltagesStruct {
|
|
224
|
+
readonly front_left: number;
|
|
225
|
+
readonly front_right: number;
|
|
226
|
+
readonly rear_left: number;
|
|
227
|
+
readonly rear_right: number;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveWheelPositionsStruct.java
|
|
231
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/MecanumDriveWheelPositionsStruct.h
|
|
232
|
+
*/
|
|
233
|
+
interface MecanumDriveWheelPositionsStruct {
|
|
234
|
+
readonly front_left: number;
|
|
235
|
+
readonly front_right: number;
|
|
236
|
+
readonly rear_left: number;
|
|
237
|
+
readonly rear_right: number;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveWheelSpeedsStruct.java
|
|
241
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/MecanumDriveWheelSpeedsStruct.h
|
|
242
|
+
*/
|
|
243
|
+
interface MecanumDriveWheelSpeedsStruct {
|
|
244
|
+
readonly front_left: number;
|
|
245
|
+
readonly front_right: number;
|
|
246
|
+
readonly rear_left: number;
|
|
247
|
+
readonly rear_right: number;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/SwerveDriveKinematicsStruct.java
|
|
251
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/SwerveDriveKinematicsStruct.h
|
|
252
|
+
*/
|
|
253
|
+
interface SwerveDriveKinematicsStruct {
|
|
254
|
+
readonly modules: ReadonlyArray<Translation2dStruct>;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/SwerveModulePositionStruct.java
|
|
258
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/SwerveModulePositionStruct.h
|
|
259
|
+
*/
|
|
260
|
+
interface SwerveModulePositionStruct {
|
|
261
|
+
readonly distance: number;
|
|
262
|
+
readonly angle: Rotation2dStruct;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/SwerveModuleStateStruct.java
|
|
266
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/SwerveModuleStateStruct.h
|
|
267
|
+
*/
|
|
268
|
+
interface SwerveModuleStateStruct {
|
|
269
|
+
readonly speed: number;
|
|
270
|
+
readonly angle: Rotation2dStruct;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/spline/struct/CubicHermiteSplineStruct.java
|
|
274
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/spline/struct/CubicHermiteSplineStruct.h
|
|
275
|
+
*/
|
|
276
|
+
interface CubicHermiteSplineStruct {
|
|
277
|
+
readonly xInitial: readonly [number, number];
|
|
278
|
+
readonly xFinal: readonly [number, number];
|
|
279
|
+
readonly yInitial: readonly [number, number];
|
|
280
|
+
readonly yFinal: readonly [number, number];
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/spline/struct/QuinticHermiteSplineStruct.java
|
|
284
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/spline/struct/QuinticHermiteSplineStruct.h
|
|
285
|
+
*/
|
|
286
|
+
interface QuinticHermiteSplineStruct {
|
|
287
|
+
readonly xInitial: readonly [number, number, number];
|
|
288
|
+
readonly xFinal: readonly [number, number, number];
|
|
289
|
+
readonly yInitial: readonly [number, number, number];
|
|
290
|
+
readonly yFinal: readonly [number, number, number];
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/system/struct/LinearSystemStruct.java
|
|
294
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/system/struct/LinearSystemStruct.h
|
|
295
|
+
*/
|
|
296
|
+
interface LinearSystemStruct {
|
|
297
|
+
readonly a: MatrixStruct;
|
|
298
|
+
readonly b: MatrixStruct;
|
|
299
|
+
readonly c: MatrixStruct;
|
|
300
|
+
readonly d: MatrixStruct;
|
|
301
|
+
}
|
|
302
|
+
//#endregion
|
|
303
|
+
export { ArmFeedforwardStruct, ChassisSpeedsStruct, CubicHermiteSplineStruct, DifferentialDriveFeedforwardStruct, DifferentialDriveKinematicsStruct, DifferentialDriveWheelPositionsStruct, DifferentialDriveWheelSpeedsStruct, DifferentialDriveWheelVoltagesStruct, ElevatorFeedforwardStruct, Ellipse2dStruct, LinearSystemStruct, MatrixStruct, MecanumDriveKinematicsStruct, MecanumDriveMotorVoltagesStruct, MecanumDriveWheelPositionsStruct, MecanumDriveWheelSpeedsStruct, Pose2dStruct, Pose3dStruct, QuaternionStruct, QuinticHermiteSplineStruct, Rectangle2dStruct, Rotation2dStruct, Rotation3dStruct, SimpleMotorFeedforwardStruct, SwerveDriveKinematicsStruct, SwerveModulePositionStruct, SwerveModuleStateStruct, Transform2dStruct, Transform3dStruct, Translation2dStruct, Translation3dStruct, Twist2dStruct, Twist3dStruct, VectorStruct };
|
|
304
|
+
//# sourceMappingURL=struct.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"struct.d.cts","names":[],"sources":["../../src/types/struct.ts"],"sourcesContent":[],"mappings":";;AAIA;AAQA;AAQA;AASiB,UAzBA,YAAA,CAyBmB;EAUnB,SAAA,IAAA,EAlCA,aAkCa,CAAA,MAAA,CAAA;AAU9B;AAaA;AAWA;AAQA;AAQA;AASiB,UAtFA,YAAA,CAsFiB;EASjB,SAAA,IAAA,EA9FA,aA+FO,CAAA,MAAA,CAAA;AAQxB;AASA;AAUA;AAUA;AAYA;AAWiB,UApJA,mBAAA,CAoJA;EASA,SAAA,CAAA,EAAA,MAAA;EAYA,SAAA,CAAA,EAAA,MAAA;AAWjB;AAUA;AAQA;AASA;AASA;AACuB,UAhNN,mBAAA,CAgNM;EACC,SAAA,CAAA,EAAA,MAAA;EACF,SAAA,CAAA,EAAA,MAAA;EACC,SAAA,CAAA,EAAA,MAAA;;AAMvB;AAWA;AAWA;AAWA;AAQiB,UAxPA,aAAA,CAwPA;EASA,SAAA,EAAA,EAAA,MAAA;EASA,SAAA,EAAA,EAAA,MAAA;EAWA,SAAA,MAAA,EAAA,MAAA;AAWjB;;;;;AAI0B,UA1RT,aAAA,CA0RS;;;;;;;;;;;;UA7QT,gBAAA;;;;;;;;;;UAWA,gBAAA;;;;;;;UAQA,gBAAA;cACH;;;;;;UAOG,iBAAA;wBACO;qBACH;;;;;;UAOJ,iBAAA;wBACO;qBACH;;;;;;UAOJ,YAAA;wBACO;qBACH;;;;;;UAOJ,YAAA;wBACO;qBACH;;;;;;UAOJ,eAAA;mBACE;;;;;;;;UASF,iBAAA;mBACE;;;;;;;;UASF,oBAAA;;;;;;;;;;;UAYA,kCAAA;;;;;;;;;;UAWA,oCAAA;;;;;;;;UASA,yBAAA;;;;;;;;;;;UAYA,4BAAA;;;;;;;;;;UAWA,mBAAA;;;;;;;;;UAUA,iCAAA;;;;;;;UAQA,qCAAA;;;;;;;;UASA,kCAAA;;;;;;;;UASA,4BAAA;uBACM;wBACC;sBACF;uBACC;;;;;UAMN,+BAAA;;;;;;;;;;UAWA,gCAAA;;;;;;;;;;UAWA,6BAAA;;;;;;;;;;UAWA,2BAAA;oBACG,cAAc;;;;;;UAOjB,0BAAA;;kBAEC;;;;;;UAOD,uBAAA;;kBAEC;;;;;;UAOD,wBAAA;;;;;;;;;;UAWA,0BAAA;;;;;;;;;;UAWA,kBAAA;cACH;cACA;cACA;cACA"}
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
//#region src/types/struct.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/struct/VectorStruct.java
|
|
4
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/struct/VectorStruct.h
|
|
5
|
+
*/
|
|
6
|
+
interface VectorStruct {
|
|
7
|
+
readonly data: ReadonlyArray<number>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/struct/MatrixStruct.java
|
|
11
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/struct/MatrixStruct.h
|
|
12
|
+
*/
|
|
13
|
+
interface MatrixStruct {
|
|
14
|
+
readonly data: ReadonlyArray<number>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Translation2dStruct.java
|
|
18
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Translation2dStruct.h
|
|
19
|
+
*/
|
|
20
|
+
interface Translation2dStruct {
|
|
21
|
+
readonly x: number;
|
|
22
|
+
readonly y: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Translation3dStruct.java
|
|
26
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Translation3dStruct.h
|
|
27
|
+
*/
|
|
28
|
+
interface Translation3dStruct {
|
|
29
|
+
readonly x: number;
|
|
30
|
+
readonly y: number;
|
|
31
|
+
readonly z: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Twist2dStruct.java
|
|
35
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Twist2dStruct.h
|
|
36
|
+
*/
|
|
37
|
+
interface Twist2dStruct {
|
|
38
|
+
readonly dx: number;
|
|
39
|
+
readonly dy: number;
|
|
40
|
+
readonly dtheta: number;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Twist3dStruct.java
|
|
44
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Twist3dStruct.h
|
|
45
|
+
*/
|
|
46
|
+
interface Twist3dStruct {
|
|
47
|
+
readonly dx: number;
|
|
48
|
+
readonly dy: number;
|
|
49
|
+
readonly dz: number;
|
|
50
|
+
readonly rx: number;
|
|
51
|
+
readonly ry: number;
|
|
52
|
+
readonly rz: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/QauternionStruct.java
|
|
56
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/QuaternionStruct.h
|
|
57
|
+
*/
|
|
58
|
+
interface QuaternionStruct {
|
|
59
|
+
readonly w: number;
|
|
60
|
+
readonly x: number;
|
|
61
|
+
readonly y: number;
|
|
62
|
+
readonly z: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Rotation2dStruct.java
|
|
66
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Rotation2dStruct.h
|
|
67
|
+
*/
|
|
68
|
+
interface Rotation2dStruct {
|
|
69
|
+
readonly value: number;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Rotation3dStruct.java
|
|
73
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Rotation3dStruct.h
|
|
74
|
+
*/
|
|
75
|
+
interface Rotation3dStruct {
|
|
76
|
+
readonly q: QuaternionStruct;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Transform2dStruct.java
|
|
80
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Transform2dStruct.h
|
|
81
|
+
*/
|
|
82
|
+
interface Transform2dStruct {
|
|
83
|
+
readonly translation: Translation2dStruct;
|
|
84
|
+
readonly rotation: Rotation2dStruct;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Transform3dStruct.java
|
|
88
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Transform3dStruct.h
|
|
89
|
+
*/
|
|
90
|
+
interface Transform3dStruct {
|
|
91
|
+
readonly translation: Translation3dStruct;
|
|
92
|
+
readonly rotation: Rotation3dStruct;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Pose2dStruct.java
|
|
96
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Pose2dStruct.h
|
|
97
|
+
*/
|
|
98
|
+
interface Pose2dStruct {
|
|
99
|
+
readonly translation: Translation2dStruct;
|
|
100
|
+
readonly rotation: Rotation2dStruct;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Pose3dStruct.java
|
|
104
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Pose3dStruct.h
|
|
105
|
+
*/
|
|
106
|
+
interface Pose3dStruct {
|
|
107
|
+
readonly translation: Translation3dStruct;
|
|
108
|
+
readonly rotation: Rotation3dStruct;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Ellipse2dStruct.java
|
|
112
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Ellipse2dStruct.h
|
|
113
|
+
*/
|
|
114
|
+
interface Ellipse2dStruct {
|
|
115
|
+
readonly center: Pose2dStruct;
|
|
116
|
+
readonly xSemiAxis: number;
|
|
117
|
+
readonly ySemiAxis: number;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/geometry/struct/Rectangle2dStruct.java
|
|
121
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/geometry/struct/Rectangle2dStruct.h
|
|
122
|
+
*/
|
|
123
|
+
interface Rectangle2dStruct {
|
|
124
|
+
readonly center: Pose2dStruct;
|
|
125
|
+
readonly xWidth: number;
|
|
126
|
+
readonly yWidth: number;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/ArmFeedforwardStruct.java
|
|
130
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/ArmFeedforwardStruct.h
|
|
131
|
+
*/
|
|
132
|
+
interface ArmFeedforwardStruct {
|
|
133
|
+
readonly ks: number;
|
|
134
|
+
readonly kg: number;
|
|
135
|
+
readonly kv: number;
|
|
136
|
+
readonly ka: number;
|
|
137
|
+
readonly dt: number;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/DifferentialDriveFeedforwardStruct.java
|
|
141
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/DifferentialDriveFeedforwardStruct.h
|
|
142
|
+
*/
|
|
143
|
+
interface DifferentialDriveFeedforwardStruct {
|
|
144
|
+
readonly kVLinear: number;
|
|
145
|
+
readonly kALinear: number;
|
|
146
|
+
readonly kVAngular: number;
|
|
147
|
+
readonly kAAngular: number;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/DifferentialDriveWheelVoltagesStruct.java
|
|
151
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/DifferentialDriveWheelVoltagesStruct.h
|
|
152
|
+
*/
|
|
153
|
+
interface DifferentialDriveWheelVoltagesStruct {
|
|
154
|
+
readonly left: number;
|
|
155
|
+
readonly right: number;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/ElevatorFeedforwardStruct.java
|
|
159
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/ElevatorFeedforwardStruct.h
|
|
160
|
+
*/
|
|
161
|
+
interface ElevatorFeedforwardStruct {
|
|
162
|
+
readonly ks: number;
|
|
163
|
+
readonly kg: number;
|
|
164
|
+
readonly kv: number;
|
|
165
|
+
readonly ka: number;
|
|
166
|
+
readonly dt: number;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/controller/struct/SimpleMotorFeedforwardStruct.java
|
|
170
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/controller/struct/SimpleMotorFeedforwardStruct.h
|
|
171
|
+
*/
|
|
172
|
+
interface SimpleMotorFeedforwardStruct {
|
|
173
|
+
readonly ks: number;
|
|
174
|
+
readonly kv: number;
|
|
175
|
+
readonly ka: number;
|
|
176
|
+
readonly dt: number;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/ChassisSpeedsStruct.java
|
|
180
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/ChassisSpeedsStruct.h
|
|
181
|
+
*/
|
|
182
|
+
interface ChassisSpeedsStruct {
|
|
183
|
+
readonly vx: number;
|
|
184
|
+
readonly vy: number;
|
|
185
|
+
readonly omega: number;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/DifferentialDriveKinematicsStruct.java
|
|
189
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/DifferentialDriveKinematicsStruct.h
|
|
190
|
+
*/
|
|
191
|
+
interface DifferentialDriveKinematicsStruct {
|
|
192
|
+
readonly track_width: number;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/DifferentialDriveWheelPositionsStruct.java
|
|
196
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/DifferentialDriveWheelPositionsStruct.h
|
|
197
|
+
*/
|
|
198
|
+
interface DifferentialDriveWheelPositionsStruct {
|
|
199
|
+
readonly left: number;
|
|
200
|
+
readonly right: number;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/DifferentialDriveWheelSpeedsStruct.java
|
|
204
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/DifferentialDriveWheelSpeedsStruct.h
|
|
205
|
+
*/
|
|
206
|
+
interface DifferentialDriveWheelSpeedsStruct {
|
|
207
|
+
readonly left: number;
|
|
208
|
+
readonly right: number;
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveKinematicsStruct.java
|
|
212
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/MecanumDriveKinematicsStruct.h
|
|
213
|
+
*/
|
|
214
|
+
interface MecanumDriveKinematicsStruct {
|
|
215
|
+
readonly front_left: Translation2dStruct;
|
|
216
|
+
readonly front_right: Translation2dStruct;
|
|
217
|
+
readonly rear_left: Translation2dStruct;
|
|
218
|
+
readonly rear_right: Translation2dStruct;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveMotorVoltagesStruct.java
|
|
222
|
+
*/
|
|
223
|
+
interface MecanumDriveMotorVoltagesStruct {
|
|
224
|
+
readonly front_left: number;
|
|
225
|
+
readonly front_right: number;
|
|
226
|
+
readonly rear_left: number;
|
|
227
|
+
readonly rear_right: number;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveWheelPositionsStruct.java
|
|
231
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/MecanumDriveWheelPositionsStruct.h
|
|
232
|
+
*/
|
|
233
|
+
interface MecanumDriveWheelPositionsStruct {
|
|
234
|
+
readonly front_left: number;
|
|
235
|
+
readonly front_right: number;
|
|
236
|
+
readonly rear_left: number;
|
|
237
|
+
readonly rear_right: number;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/MecanumDriveWheelSpeedsStruct.java
|
|
241
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/MecanumDriveWheelSpeedsStruct.h
|
|
242
|
+
*/
|
|
243
|
+
interface MecanumDriveWheelSpeedsStruct {
|
|
244
|
+
readonly front_left: number;
|
|
245
|
+
readonly front_right: number;
|
|
246
|
+
readonly rear_left: number;
|
|
247
|
+
readonly rear_right: number;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/SwerveDriveKinematicsStruct.java
|
|
251
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/SwerveDriveKinematicsStruct.h
|
|
252
|
+
*/
|
|
253
|
+
interface SwerveDriveKinematicsStruct {
|
|
254
|
+
readonly modules: ReadonlyArray<Translation2dStruct>;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/SwerveModulePositionStruct.java
|
|
258
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/SwerveModulePositionStruct.h
|
|
259
|
+
*/
|
|
260
|
+
interface SwerveModulePositionStruct {
|
|
261
|
+
readonly distance: number;
|
|
262
|
+
readonly angle: Rotation2dStruct;
|
|
263
|
+
}
|
|
264
|
+
/**
|
|
265
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/kinematics/struct/SwerveModuleStateStruct.java
|
|
266
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/kinematics/struct/SwerveModuleStateStruct.h
|
|
267
|
+
*/
|
|
268
|
+
interface SwerveModuleStateStruct {
|
|
269
|
+
readonly speed: number;
|
|
270
|
+
readonly angle: Rotation2dStruct;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/spline/struct/CubicHermiteSplineStruct.java
|
|
274
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/spline/struct/CubicHermiteSplineStruct.h
|
|
275
|
+
*/
|
|
276
|
+
interface CubicHermiteSplineStruct {
|
|
277
|
+
readonly xInitial: readonly [number, number];
|
|
278
|
+
readonly xFinal: readonly [number, number];
|
|
279
|
+
readonly yInitial: readonly [number, number];
|
|
280
|
+
readonly yFinal: readonly [number, number];
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/spline/struct/QuinticHermiteSplineStruct.java
|
|
284
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/spline/struct/QuinticHermiteSplineStruct.h
|
|
285
|
+
*/
|
|
286
|
+
interface QuinticHermiteSplineStruct {
|
|
287
|
+
readonly xInitial: readonly [number, number, number];
|
|
288
|
+
readonly xFinal: readonly [number, number, number];
|
|
289
|
+
readonly yInitial: readonly [number, number, number];
|
|
290
|
+
readonly yFinal: readonly [number, number, number];
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/java/edu/wpi/first/math/system/struct/LinearSystemStruct.java
|
|
294
|
+
* @see https://github.com/wpilibsuite/allwpilib/blob/main/wpimath/src/main/native/include/frc/system/struct/LinearSystemStruct.h
|
|
295
|
+
*/
|
|
296
|
+
interface LinearSystemStruct {
|
|
297
|
+
readonly a: MatrixStruct;
|
|
298
|
+
readonly b: MatrixStruct;
|
|
299
|
+
readonly c: MatrixStruct;
|
|
300
|
+
readonly d: MatrixStruct;
|
|
301
|
+
}
|
|
302
|
+
//#endregion
|
|
303
|
+
export { ArmFeedforwardStruct, ChassisSpeedsStruct, CubicHermiteSplineStruct, DifferentialDriveFeedforwardStruct, DifferentialDriveKinematicsStruct, DifferentialDriveWheelPositionsStruct, DifferentialDriveWheelSpeedsStruct, DifferentialDriveWheelVoltagesStruct, ElevatorFeedforwardStruct, Ellipse2dStruct, LinearSystemStruct, MatrixStruct, MecanumDriveKinematicsStruct, MecanumDriveMotorVoltagesStruct, MecanumDriveWheelPositionsStruct, MecanumDriveWheelSpeedsStruct, Pose2dStruct, Pose3dStruct, QuaternionStruct, QuinticHermiteSplineStruct, Rectangle2dStruct, Rotation2dStruct, Rotation3dStruct, SimpleMotorFeedforwardStruct, SwerveDriveKinematicsStruct, SwerveModulePositionStruct, SwerveModuleStateStruct, Transform2dStruct, Transform3dStruct, Translation2dStruct, Translation3dStruct, Twist2dStruct, Twist3dStruct, VectorStruct };
|
|
304
|
+
//# sourceMappingURL=struct.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"struct.d.mts","names":[],"sources":["../../src/types/struct.ts"],"sourcesContent":[],"mappings":";;AAIA;AAQA;AAQA;AASiB,UAzBA,YAAA,CAyBmB;EAUnB,SAAA,IAAA,EAlCA,aAkCa,CAAA,MAAA,CAAA;AAU9B;AAaA;AAWA;AAQA;AAQA;AASiB,UAtFA,YAAA,CAsFiB;EASjB,SAAA,IAAA,EA9FA,aA+FO,CAAA,MAAA,CAAA;AAQxB;AASA;AAUA;AAUA;AAYA;AAWiB,UApJA,mBAAA,CAoJA;EASA,SAAA,CAAA,EAAA,MAAA;EAYA,SAAA,CAAA,EAAA,MAAA;AAWjB;AAUA;AAQA;AASA;AASA;AACuB,UAhNN,mBAAA,CAgNM;EACC,SAAA,CAAA,EAAA,MAAA;EACF,SAAA,CAAA,EAAA,MAAA;EACC,SAAA,CAAA,EAAA,MAAA;;AAMvB;AAWA;AAWA;AAWA;AAQiB,UAxPA,aAAA,CAwPA;EASA,SAAA,EAAA,EAAA,MAAA;EASA,SAAA,EAAA,EAAA,MAAA;EAWA,SAAA,MAAA,EAAA,MAAA;AAWjB;;;;;AAI0B,UA1RT,aAAA,CA0RS;;;;;;;;;;;;UA7QT,gBAAA;;;;;;;;;;UAWA,gBAAA;;;;;;;UAQA,gBAAA;cACH;;;;;;UAOG,iBAAA;wBACO;qBACH;;;;;;UAOJ,iBAAA;wBACO;qBACH;;;;;;UAOJ,YAAA;wBACO;qBACH;;;;;;UAOJ,YAAA;wBACO;qBACH;;;;;;UAOJ,eAAA;mBACE;;;;;;;;UASF,iBAAA;mBACE;;;;;;;;UASF,oBAAA;;;;;;;;;;;UAYA,kCAAA;;;;;;;;;;UAWA,oCAAA;;;;;;;;UASA,yBAAA;;;;;;;;;;;UAYA,4BAAA;;;;;;;;;;UAWA,mBAAA;;;;;;;;;UAUA,iCAAA;;;;;;;UAQA,qCAAA;;;;;;;;UASA,kCAAA;;;;;;;;UASA,4BAAA;uBACM;wBACC;sBACF;uBACC;;;;;UAMN,+BAAA;;;;;;;;;;UAWA,gCAAA;;;;;;;;;;UAWA,6BAAA;;;;;;;;;;UAWA,2BAAA;oBACG,cAAc;;;;;;UAOjB,0BAAA;;kBAEC;;;;;;UAOD,uBAAA;;kBAEC;;;;;;UAOD,wBAAA;;;;;;;;;;UAWA,0BAAA;;;;;;;;;;UAWA,kBAAA;cACH;cACA;cACA;cACA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|