@kuriousdesign/machine-sdk 1.0.78 → 1.0.79
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.
|
@@ -22,24 +22,27 @@ export declare const exampleApplicatorSetpoints: ApplicatorSetpoint[];
|
|
|
22
22
|
export declare const initialApplicatorSetpoints: ApplicatorSetpoint[];
|
|
23
23
|
export interface RecipeData {
|
|
24
24
|
index: number;
|
|
25
|
+
dbId: string;
|
|
25
26
|
nickname: string;
|
|
27
|
+
linerPotPressure: number;
|
|
28
|
+
linerTypeString: string;
|
|
26
29
|
tubeTypeId: number;
|
|
27
30
|
tubeTypeString: string;
|
|
28
31
|
tubeOuterDiameterMax: number;
|
|
29
32
|
tubeHeightMax: number;
|
|
33
|
+
tubeMassKg: number;
|
|
30
34
|
falseBottomStaysOpen: boolean;
|
|
31
|
-
linerPotPressure: number;
|
|
32
|
-
linerTypeString: string;
|
|
33
35
|
applicatorSetpoints: ApplicatorSetpoint[];
|
|
34
|
-
applicatorToolId:
|
|
36
|
+
applicatorToolId: number;
|
|
35
37
|
applicatorToolString: string;
|
|
38
|
+
applicatorCollisionPayloadOffset: number;
|
|
36
39
|
cleanerId: number;
|
|
37
40
|
cleanerString: string;
|
|
38
|
-
weighingFingerId:
|
|
41
|
+
weighingFingerId: number;
|
|
39
42
|
weighingFingerString: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
cameraId: number;
|
|
44
|
+
cameraString: string;
|
|
45
|
+
cameraSpeed: number;
|
|
43
46
|
}
|
|
44
47
|
export declare enum CameraIds {
|
|
45
48
|
NONE = 0,
|
|
@@ -133,10 +133,13 @@ exports.exampleRecipe = {
|
|
|
133
133
|
nickname: "Example Recipe",
|
|
134
134
|
linerTypeString: "CKU",
|
|
135
135
|
linerPotPressure: 50,
|
|
136
|
+
dbId: "",
|
|
136
137
|
tubeTypeId: TubeTypes.TYPE_1340_38,
|
|
137
138
|
tubeTypeString: "1340-38",
|
|
138
139
|
tubeOuterDiameterMax: 38.1,
|
|
139
140
|
tubeHeightMax: 100, // example value in mm
|
|
141
|
+
tubeMassKg: 0.5,
|
|
142
|
+
applicatorCollisionPayloadOffset: 1.0,
|
|
140
143
|
falseBottomStaysOpen: false,
|
|
141
144
|
applicatorSetpoints: exports.exampleApplicatorSetpoints,
|
|
142
145
|
applicatorToolId: ApplicatorTools.RED_37_INCH,
|
|
@@ -145,12 +148,14 @@ exports.exampleRecipe = {
|
|
|
145
148
|
cleanerString: "Medium",
|
|
146
149
|
weighingFingerId: WeighingFingers.RED_MEDIUM,
|
|
147
150
|
weighingFingerString: "Red Medium",
|
|
148
|
-
numCameras: 2,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
+
//numCameras: 2,
|
|
152
|
+
cameraId: CameraIds.CAMERA_1,
|
|
153
|
+
cameraString: "Camera 1",
|
|
154
|
+
cameraSpeed: 50,
|
|
151
155
|
};
|
|
152
156
|
exports.initialRecipe = {
|
|
153
157
|
index: 0,
|
|
158
|
+
dbId: "",
|
|
154
159
|
nickname: "",
|
|
155
160
|
linerTypeString: "",
|
|
156
161
|
tubeOuterDiameterMax: 0.0,
|
|
@@ -165,9 +170,12 @@ exports.initialRecipe = {
|
|
|
165
170
|
cleanerString: "",
|
|
166
171
|
weighingFingerId: WeighingFingers.NONE,
|
|
167
172
|
weighingFingerString: "",
|
|
168
|
-
numCameras: 0,
|
|
169
|
-
|
|
170
|
-
|
|
173
|
+
//numCameras: 0,
|
|
174
|
+
cameraId: CameraIds.NONE,
|
|
175
|
+
cameraString: "",
|
|
176
|
+
cameraSpeed: 0,
|
|
177
|
+
tubeMassKg: 0,
|
|
178
|
+
applicatorCollisionPayloadOffset: 0,
|
|
171
179
|
falseBottomStaysOpen: false,
|
|
172
180
|
};
|
|
173
181
|
exports.initialRecipeStore = {
|
package/package.json
CHANGED
|
@@ -43,32 +43,43 @@ export const initialApplicatorSetpoints: ApplicatorSetpoint[] = Array(GCs.MAX_AP
|
|
|
43
43
|
});
|
|
44
44
|
|
|
45
45
|
export interface RecipeData {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
46
|
+
index: number;
|
|
47
|
+
dbId: string; // Added to match ST/MongoDB
|
|
48
|
+
nickname: string;
|
|
49
|
+
|
|
50
|
+
// LINER DATA
|
|
51
|
+
linerPotPressure: number;
|
|
52
|
+
linerTypeString: string;
|
|
53
|
+
|
|
54
|
+
// TUBE DATA
|
|
55
|
+
tubeTypeId: number;
|
|
56
|
+
tubeTypeString: string;
|
|
57
|
+
tubeOuterDiameterMax: number;
|
|
58
|
+
tubeHeightMax: number;
|
|
59
|
+
tubeMassKg: number; // Added: kg, used for payload adjustment
|
|
60
|
+
falseBottomStaysOpen: boolean;
|
|
61
|
+
|
|
62
|
+
// APPLICATOR SETPOINTS
|
|
63
|
+
applicatorSetpoints: ApplicatorSetpoint[];
|
|
64
|
+
|
|
65
|
+
// TOOLS
|
|
66
|
+
applicatorToolId: number; // Note: Ensure this matches your ApplicatorTools enum
|
|
67
|
+
applicatorToolString: string;
|
|
68
|
+
applicatorCollisionPayloadOffset: number; // Added: kg, for collision sensitivity
|
|
69
|
+
|
|
70
|
+
cleanerId: number;
|
|
71
|
+
cleanerString: string;
|
|
72
|
+
|
|
73
|
+
weighingFingerId: number; // Note: Ensure this matches your WeighingFingers enum
|
|
74
|
+
weighingFingerString: string;
|
|
75
|
+
|
|
76
|
+
// CAMERA DATA (New fields from ST)
|
|
77
|
+
cameraId: number;
|
|
78
|
+
cameraString: string;
|
|
79
|
+
cameraSpeed: number;
|
|
70
80
|
}
|
|
71
81
|
|
|
82
|
+
|
|
72
83
|
export enum CameraIds {
|
|
73
84
|
NONE = 0,
|
|
74
85
|
CAMERA_1 = 1,
|
|
@@ -198,11 +209,13 @@ export const exampleRecipe: RecipeData = {
|
|
|
198
209
|
nickname: "Example Recipe",
|
|
199
210
|
linerTypeString: "CKU",
|
|
200
211
|
linerPotPressure: 50,
|
|
201
|
-
|
|
212
|
+
dbId: "",
|
|
202
213
|
tubeTypeId: TubeTypes.TYPE_1340_38,
|
|
203
214
|
tubeTypeString: "1340-38",
|
|
204
215
|
tubeOuterDiameterMax: 38.1,
|
|
205
216
|
tubeHeightMax: 100, // example value in mm
|
|
217
|
+
tubeMassKg: 0.5,
|
|
218
|
+
applicatorCollisionPayloadOffset: 1.0,
|
|
206
219
|
falseBottomStaysOpen: false,
|
|
207
220
|
|
|
208
221
|
applicatorSetpoints: exampleApplicatorSetpoints,
|
|
@@ -212,14 +225,16 @@ export const exampleRecipe: RecipeData = {
|
|
|
212
225
|
cleanerString: "Medium",
|
|
213
226
|
weighingFingerId: WeighingFingers.RED_MEDIUM,
|
|
214
227
|
weighingFingerString: "Red Medium",
|
|
215
|
-
numCameras: 2,
|
|
216
|
-
|
|
217
|
-
|
|
228
|
+
//numCameras: 2,
|
|
229
|
+
cameraId: CameraIds.CAMERA_1,
|
|
230
|
+
cameraString: "Camera 1",
|
|
231
|
+
cameraSpeed: 50,
|
|
218
232
|
|
|
219
233
|
};
|
|
220
234
|
|
|
221
235
|
export const initialRecipe: RecipeData = {
|
|
222
236
|
index: 0,
|
|
237
|
+
dbId: "",
|
|
223
238
|
nickname: "",
|
|
224
239
|
linerTypeString: "",
|
|
225
240
|
tubeOuterDiameterMax: 0.0,
|
|
@@ -234,9 +249,12 @@ export const initialRecipe: RecipeData = {
|
|
|
234
249
|
cleanerString: "",
|
|
235
250
|
weighingFingerId: WeighingFingers.NONE,
|
|
236
251
|
weighingFingerString: "",
|
|
237
|
-
numCameras: 0,
|
|
238
|
-
|
|
239
|
-
|
|
252
|
+
//numCameras: 0,
|
|
253
|
+
cameraId: CameraIds.NONE,
|
|
254
|
+
cameraString: "",
|
|
255
|
+
cameraSpeed: 0,
|
|
256
|
+
tubeMassKg: 0,
|
|
257
|
+
applicatorCollisionPayloadOffset: 0,
|
|
240
258
|
falseBottomStaysOpen: false,
|
|
241
259
|
};
|
|
242
260
|
|