@jnrs/lingshu-smart 3.1.7 → 3.1.9

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.
@@ -1,114 +1,49 @@
1
1
  [
2
2
  {
3
- "caseId": "358611430854885377",
4
- "caseName": "测试所有设备51d9",
3
+ "caseId": "372045259409989632",
4
+ "caseName": "方案37204525",
5
5
  "fileUrl": "public/lingshu-smart/wsProxyConfig.json",
6
- "version": "sss",
7
- "dataSource": "external",
6
+ "version": "10281125",
7
+ "dataSource": "registry-external",
8
8
  "wsUrl": "",
9
9
  "carryToken": true,
10
- "requestMode": "direct",
10
+ "requestMode": "proxy",
11
11
  "autoConnect": true,
12
- "payloadKey": "payload",
13
- "sourceTypeField": "envelope.type",
14
- "heartbeatInterval": 30,
12
+ "payloadKey": "data",
13
+ "sourceTypeField": "type",
14
+ "heartbeatInterval": 0,
15
15
  "autoReconnect": true,
16
16
  "modelMap": {
17
- "rgv": "Rgv"
17
+ "0": "Rgv"
18
18
  },
19
- "rules": [
20
- {
21
- "sourceType": "device_command",
22
- "deviceType": "double_joint_robot",
23
- "className": "DoubleJointRobot",
24
- "equipmentName": "双关节机器人",
25
- "enabled": true,
26
- "operate": "single",
27
- "mappings": [
28
- {
29
- "target": "device_id",
30
- "source": "device_id",
31
- "defaultValue": ""
32
- },
33
- {
34
- "target": "light.color",
35
- "source": "light.color"
36
- },
37
- {
38
- "target": "light.rotating",
39
- "source": "light.rotating"
40
- },
41
- {
42
- "target": "light.blinking",
43
- "source": "light.blinking"
44
- },
45
- {
46
- "target": "position.x",
47
- "source": "position.x"
48
- },
49
- {
50
- "target": "position.y",
51
- "source": "position.y"
52
- },
53
- {
54
- "target": "position.j1",
55
- "source": "position.j1"
56
- },
57
- {
58
- "target": "position.j2",
59
- "source": "position.j2"
60
- },
61
- {
62
- "target": "current_fixture",
63
- "source": "current_fixture"
64
- },
65
- {
66
- "target": "device_state",
67
- "source": "device_state"
68
- }
69
- ]
70
- },
19
+ "registryUrl": "/api/device/devices",
20
+ "registryIdField": "id",
21
+ "registryDevices": [
71
22
  {
72
- "sourceType": "device_command",
73
- "deviceType": "rgv",
74
- "className": "Rgv",
75
- "equipmentName": "RGV",
76
- "enabled": true,
77
- "operate": "single",
23
+ "uid": "373747708789358592",
24
+ "layerId": "372049628637437952",
25
+ "className": "ResourceStore",
26
+ "enumValue": "12",
27
+ "number": "2",
78
28
  "mappings": [
79
- {
80
- "target": "device_id",
81
- "source": "device_id",
82
- "defaultValue": ""
83
- },
84
29
  {
85
30
  "target": "light.color",
86
31
  "source": "light.color"
87
32
  },
88
33
  {
89
34
  "target": "light.rotating",
90
- "source": "light.rotating"
35
+ "source": "light.rotating",
36
+ "transformTargetType": "boolean"
91
37
  },
92
38
  {
93
39
  "target": "light.blinking",
94
- "source": "light.blinking"
40
+ "source": "light.blinking",
41
+ "transformTargetType": "boolean"
95
42
  },
96
43
  {
97
44
  "target": "position.x",
98
45
  "source": "position.x"
99
46
  },
100
- {
101
- "target": "position.j1",
102
- "source": "position.j1"
103
- },
104
- {
105
- "target": "position.fork_xy",
106
- "source": "position.fork_xy"
107
- },
108
- {
109
- "target": "position.fork_z",
110
- "source": "position.fork_z"
111
- },
112
47
  {
113
48
  "target": "device_state",
114
49
  "source": "device_state"
@@ -116,33 +51,25 @@
116
51
  ]
117
52
  },
118
53
  {
119
- "sourceType": "device_command",
120
- "deviceType": "resource_store",
121
- "className": "ResourceStore",
122
- "equipmentName": "资源库",
123
- "enabled": true,
124
- "operate": "single",
54
+ "uid": "373747714258731008",
55
+ "layerId": "372049832065376256",
56
+ "className": "MaterialTrack",
57
+ "enumValue": "10",
58
+ "number": "1",
125
59
  "mappings": [
126
- {
127
- "target": "device_id",
128
- "source": "device_id",
129
- "defaultValue": ""
130
- },
131
60
  {
132
61
  "target": "light.color",
133
62
  "source": "light.color"
134
63
  },
135
- {
136
- "target": "light.rotating",
137
- "source": "light.rotating"
138
- },
139
64
  {
140
65
  "target": "light.blinking",
141
- "source": "light.blinking"
66
+ "source": "light.blinking",
67
+ "transformTargetType": "boolean"
142
68
  },
143
69
  {
144
- "target": "position.x",
145
- "source": "position.x"
70
+ "target": "layer_visible",
71
+ "source": "layer_visible",
72
+ "defaultValue": {}
146
73
  },
147
74
  {
148
75
  "target": "device_state",
@@ -151,57 +78,25 @@
151
78
  ]
152
79
  },
153
80
  {
154
- "sourceType": "device_command",
155
- "deviceType": "machine_tool",
156
- "className": "MachineTool",
157
- "equipmentName": "机床",
158
- "enabled": true,
159
- "operate": "single",
81
+ "uid": "373747716368465920",
82
+ "layerId": "372051317327142912",
83
+ "className": "MaterialTrack",
84
+ "enumValue": "11",
85
+ "number": "1",
160
86
  "mappings": [
161
- {
162
- "target": "device_id",
163
- "source": "device_id",
164
- "defaultValue": ""
165
- },
166
87
  {
167
88
  "target": "light.color",
168
89
  "source": "light.color"
169
90
  },
170
- {
171
- "target": "light.rotating",
172
- "source": "light.rotating"
173
- },
174
91
  {
175
92
  "target": "light.blinking",
176
- "source": "light.blinking"
177
- },
178
- {
179
- "target": "progress.percent",
180
- "source": "progress.percent",
181
- "defaultValue": 0
182
- },
183
- {
184
- "target": "progress.text",
185
- "source": "progress.text"
186
- },
187
- {
188
- "target": "passage.in",
189
- "source": "passage.in",
190
- "defaultValue": false
191
- },
192
- {
193
- "target": "passage.out",
194
- "source": "passage.out",
195
- "defaultValue": false
196
- },
197
- {
198
- "target": "station_rotation",
199
- "source": "station_rotation"
93
+ "source": "light.blinking",
94
+ "transformTargetType": "boolean"
200
95
  },
201
96
  {
202
- "target": "is_working",
203
- "source": "is_working",
204
- "defaultValue": false
97
+ "target": "layer_visible",
98
+ "source": "layer_visible",
99
+ "defaultValue": {}
205
100
  },
206
101
  {
207
102
  "target": "device_state",
@@ -210,146 +105,95 @@
210
105
  ]
211
106
  },
212
107
  {
213
- "sourceType": "device_command",
214
- "deviceType": "cleaning_machine",
215
- "className": "CleaningMachine",
216
- "equipmentName": "清洗机",
217
- "enabled": true,
218
- "operate": "single",
108
+ "uid": "373747718398509056",
109
+ "layerId": "372051699218522112",
110
+ "className": "Rgv",
111
+ "enumValue": "0",
112
+ "number": "1",
219
113
  "mappings": [
220
- {
221
- "target": "device_id",
222
- "source": "device_id",
223
- "defaultValue": ""
224
- },
225
114
  {
226
115
  "target": "light.color",
227
- "source": "light.color"
116
+ "source": "status"
228
117
  },
229
118
  {
230
119
  "target": "light.rotating",
231
- "source": "light.rotating"
120
+ "source": "",
121
+ "transformTargetType": "boolean"
232
122
  },
233
123
  {
234
124
  "target": "light.blinking",
235
- "source": "light.blinking"
125
+ "source": "status",
126
+ "transformTargetType": "boolean"
236
127
  },
237
128
  {
238
- "target": "progress.percent",
239
- "source": "progress.percent",
240
- "defaultValue": 0
241
- },
242
- {
243
- "target": "progress.text",
244
- "source": "progress.text"
129
+ "target": "position.x",
130
+ "source": "x"
245
131
  },
246
132
  {
247
- "target": "passage.in",
248
- "source": "passage.in",
249
- "defaultValue": false
133
+ "target": "position.j1",
134
+ "source": ""
250
135
  },
251
136
  {
252
- "target": "passage.out",
253
- "source": "passage.out",
254
- "defaultValue": false
137
+ "target": "position.fork_xy",
138
+ "source": "forkY"
255
139
  },
256
140
  {
257
- "target": "is_working",
258
- "source": "is_working",
259
- "defaultValue": false
141
+ "target": "position.fork_z",
142
+ "source": "z"
260
143
  },
261
144
  {
262
145
  "target": "device_state",
263
- "source": "device_state"
146
+ "source": "status"
264
147
  }
265
- ]
148
+ ],
149
+ "typeValue": "1"
266
150
  },
267
151
  {
268
- "sourceType": "device_command",
269
- "deviceType": "resource_operation_window",
270
- "className": "ResourceOperationWindow",
271
- "equipmentName": "资源操作窗口",
272
- "enabled": true,
273
- "operate": "single",
274
- "mappings": [
275
- {
276
- "target": "device_id",
277
- "source": "device_id",
278
- "defaultValue": ""
279
- },
280
- {
281
- "target": "light.color",
282
- "source": "light.color"
283
- },
284
- {
285
- "target": "light.blinking",
286
- "source": "light.blinking"
287
- },
288
- {
289
- "target": "device_state",
290
- "source": "device_state"
291
- }
292
- ]
152
+ "uid": "373747720948645888",
153
+ "layerId": "372051533644177408",
154
+ "className": "Rail",
155
+ "enumValue": "",
156
+ "number": "",
157
+ "mappings": []
293
158
  },
294
159
  {
295
- "sourceType": "device_command",
296
- "deviceType": "marking_machine",
297
- "className": "MarkingMachine",
298
- "equipmentName": "打标机",
299
- "enabled": true,
300
- "operate": "single",
160
+ "uid": "373754078808895488",
161
+ "layerId": "372045856062316544",
162
+ "className": "ResourceStore",
163
+ "enumValue": "12",
164
+ "number": "1",
301
165
  "mappings": [
302
- {
303
- "target": "device_id",
304
- "source": "device_id",
305
- "defaultValue": ""
306
- },
307
166
  {
308
167
  "target": "light.color",
309
168
  "source": "light.color"
310
169
  },
311
170
  {
312
171
  "target": "light.rotating",
313
- "source": "light.rotating"
172
+ "source": "light.rotating",
173
+ "transformTargetType": "boolean"
314
174
  },
315
175
  {
316
176
  "target": "light.blinking",
317
- "source": "light.blinking"
318
- },
319
- {
320
- "target": "progress.percent",
321
- "source": "progress.percent",
322
- "defaultValue": 0
323
- },
324
- {
325
- "target": "progress.text",
326
- "source": "progress.text"
327
- },
328
- {
329
- "target": "passage.in",
330
- "source": "passage.in",
331
- "defaultValue": false
332
- },
333
- {
334
- "target": "passage.out",
335
- "source": "passage.out",
336
- "defaultValue": false
177
+ "source": "light.blinking",
178
+ "transformTargetType": "boolean"
337
179
  },
338
180
  {
339
- "target": "marking_sites",
340
- "source": "marking_sites"
181
+ "target": "position.x",
182
+ "source": "position.x"
341
183
  },
342
184
  {
343
185
  "target": "device_state",
344
186
  "source": "device_state"
345
187
  }
346
188
  ]
347
- },
189
+ }
190
+ ],
191
+ "rules": [
348
192
  {
349
193
  "sourceType": "device_command",
350
- "deviceType": "shuttle_station",
351
- "className": "ShuttleStation",
352
- "equipmentName": "接驳站",
194
+ "deviceType": "resource_store",
195
+ "className": "ResourceStore",
196
+ "equipmentName": "资源库",
353
197
  "enabled": true,
354
198
  "operate": "single",
355
199
  "mappings": [
@@ -363,23 +207,18 @@
363
207
  "source": "light.color"
364
208
  },
365
209
  {
366
- "target": "light.blinking",
367
- "source": "light.blinking"
368
- },
369
- {
370
- "target": "layer_visible",
371
- "source": "layer_visible",
372
- "defaultValue": {}
210
+ "target": "light.rotating",
211
+ "source": "light.rotating",
212
+ "transformTargetType": "boolean"
373
213
  },
374
214
  {
375
- "target": "layer_light_colors",
376
- "source": "layer_light_colors",
377
- "defaultValue": {}
215
+ "target": "light.blinking",
216
+ "source": "light.blinking",
217
+ "transformTargetType": "boolean"
378
218
  },
379
219
  {
380
- "target": "layer_light_blinking",
381
- "source": "layer_light_blinking",
382
- "defaultValue": {}
220
+ "target": "position.x",
221
+ "source": "position.x"
383
222
  },
384
223
  {
385
224
  "target": "device_state",
@@ -406,7 +245,8 @@
406
245
  },
407
246
  {
408
247
  "target": "light.blinking",
409
- "source": "light.blinking"
248
+ "source": "light.blinking",
249
+ "transformTargetType": "boolean"
410
250
  },
411
251
  {
412
252
  "target": "layer_visible",
@@ -421,9 +261,9 @@
421
261
  },
422
262
  {
423
263
  "sourceType": "device_command",
424
- "deviceType": "loading_station",
425
- "className": "LoadingStation",
426
- "equipmentName": "装载站",
264
+ "deviceType": "",
265
+ "className": "Rgv",
266
+ "equipmentName": "RGV",
427
267
  "enabled": true,
428
268
  "operate": "single",
429
269
  "mappings": [
@@ -438,95 +278,62 @@
438
278
  },
439
279
  {
440
280
  "target": "light.rotating",
441
- "source": "light.rotating"
281
+ "source": "light.rotating",
282
+ "transformTargetType": "boolean"
442
283
  },
443
284
  {
444
285
  "target": "light.blinking",
445
- "source": "light.blinking"
286
+ "source": "light.blinking",
287
+ "transformTargetType": "boolean"
446
288
  },
447
289
  {
448
- "target": "progress.percent",
449
- "source": "progress.percent",
450
- "defaultValue": 0
451
- },
452
- {
453
- "target": "progress.text",
454
- "source": "progress.text"
455
- },
456
- {
457
- "target": "passage.in",
458
- "source": "passage.in",
459
- "defaultValue": false
460
- },
461
- {
462
- "target": "passage.out",
463
- "source": "passage.out",
464
- "defaultValue": false
465
- },
466
- {
467
- "target": "device_state",
468
- "source": "device_state"
469
- }
470
- ]
471
- },
472
- {
473
- "sourceType": "device_command",
474
- "deviceType": "pallet",
475
- "className": "Pallet",
476
- "equipmentName": "托盘",
477
- "enabled": true,
478
- "operate": "single",
479
- "mappings": [
480
- {
481
- "target": "device_id",
482
- "source": "device_id",
483
- "defaultValue": ""
484
- },
485
- {
486
- "target": "light.color",
487
- "source": "light.color"
488
- },
489
- {
490
- "target": "light.rotating",
491
- "source": "light.rotating"
290
+ "target": "position.x",
291
+ "source": "x"
492
292
  },
493
293
  {
494
- "target": "light.blinking",
495
- "source": "light.blinking"
294
+ "target": "position.j1",
295
+ "source": "position.j1"
496
296
  },
497
297
  {
498
- "target": "position.x",
499
- "source": "position.x"
298
+ "target": "position.fork_xy",
299
+ "source": "forkY"
500
300
  },
501
301
  {
502
- "target": "position.y",
503
- "source": "position.y"
302
+ "target": "position.fork_z",
303
+ "source": "z"
504
304
  },
505
305
  {
506
306
  "target": "device_state",
507
- "source": "device_state"
307
+ "source": "status"
508
308
  }
509
309
  ]
510
310
  },
511
311
  {
512
312
  "className": "Resource",
313
+ "equipmentName": "资源",
513
314
  "enabled": true,
514
315
  "operate": "resource",
515
316
  "mappings": [],
317
+ "sourceType": "resource_command",
516
318
  "resourceMappings": {
517
319
  "add": [
518
320
  {
519
321
  "target": "resource_id",
520
- "source": "resource_id"
322
+ "source": ""
521
323
  },
522
324
  {
523
325
  "target": "resource_type",
524
- "source": "resource_type"
326
+ "source": ""
525
327
  },
526
328
  {
527
329
  "target": "resource_name",
528
330
  "source": "resource_name"
529
331
  },
332
+ {
333
+ "target": "resource_state",
334
+ "source": "resource_state",
335
+ "defaultValue": 0
336
+ },
530
337
  {
531
338
  "target": "resource_color",
532
339
  "source": "resource_color"
@@ -561,6 +368,11 @@
561
368
  "target": "resource_name",
562
369
  "source": "resource_name"
563
370
  },
371
+ {
372
+ "target": "resource_state",
373
+ "source": "resource_state",
374
+ "defaultValue": 0
375
+ },
564
376
  {
565
377
  "target": "resource_color",
566
378
  "source": "resource_color"
@@ -585,51 +397,86 @@
585
397
  "transfer": [
586
398
  {
587
399
  "target": "resource_id",
588
- "source": "resource_id"
400
+ "source": "id"
589
401
  },
590
402
  {
591
403
  "target": "resource_type",
592
- "source": "resource_type"
404
+ "source": "",
405
+ "transform": "constant",
406
+ "constant": "workpiece"
593
407
  },
594
408
  {
595
409
  "target": "resource_name",
596
- "source": "resource_name"
410
+ "source": "",
411
+ "transform": "constant",
412
+ "constant": ""
413
+ },
414
+ {
415
+ "target": "resource_state",
416
+ "source": "status"
597
417
  },
598
418
  {
599
419
  "target": "resource_color",
600
- "source": "resource_color"
420
+ "source": "status",
421
+ "transform": "condition",
422
+ "conditions": [
423
+ {
424
+ "source": "status",
425
+ "operator": "eq",
426
+ "operand": "1",
427
+ "value": "#B2EF40"
428
+ },
429
+ {
430
+ "source": "status",
431
+ "operator": "eq",
432
+ "operand": "2",
433
+ "value": "#FEFA45"
434
+ },
435
+ {
436
+ "source": "status",
437
+ "operator": "eq",
438
+ "operand": "3",
439
+ "value": "#88F8FE"
440
+ },
441
+ {
442
+ "source": "status",
443
+ "operator": "eq",
444
+ "operand": "4",
445
+ "value": "#E39E39"
446
+ }
447
+ ]
601
448
  },
602
449
  {
603
450
  "target": "from.device_type",
604
- "source": "from.device_type"
451
+ "source": "originDeviceType"
605
452
  },
606
453
  {
607
454
  "target": "from.device_id",
608
- "source": "from.device_id"
455
+ "source": "originDeviceId"
609
456
  },
610
457
  {
611
458
  "target": "from.device_layer",
612
- "source": "from.device_layer"
459
+ "source": ""
613
460
  },
614
461
  {
615
462
  "target": "from.device_station",
616
- "source": "from.device_station"
463
+ "source": "originStation"
617
464
  },
618
465
  {
619
466
  "target": "to.device_type",
620
- "source": "to.device_type"
467
+ "source": "deviceType"
621
468
  },
622
469
  {
623
470
  "target": "to.device_id",
624
- "source": "to.device_id"
471
+ "source": "deviceId"
625
472
  },
626
473
  {
627
474
  "target": "to.device_layer",
628
- "source": "to.device_layer"
475
+ "source": ""
629
476
  },
630
477
  {
631
478
  "target": "to.device_station",
632
- "source": "to.device_station"
479
+ "source": "station"
633
480
  }
634
481
  ],
635
482
  "remove": [
@@ -645,31 +492,23 @@
645
492
  "batch_remove": [
646
493
  {
647
494
  "target": "resource_ids",
648
- "source": "resource_ids"
495
+ "source": "ids"
649
496
  },
650
497
  {
651
498
  "target": "resource_type",
652
- "source": "resource_type"
499
+ "source": ""
653
500
  }
654
501
  ]
655
502
  },
656
503
  "resourceFields": {
657
504
  "operationField": "data.operation",
658
- "batchAddItems": "data.resources"
659
- },
660
- "sourceType": "resource_command"
661
- },
662
- {
663
- "className": "RuntimeStatus",
664
- "equipmentName": "全局运行状态推送",
665
- "sourceType": "runtime_status_push",
666
- "enabled": true,
667
- "operate": "statusPush",
668
- "mappings": [
669
- { "target": "currentTask", "source": "current_task" },
670
- { "target": "device_stats", "source": "device_stats" },
671
- { "target": "deviceOnline", "source": "device_stats.online" }
672
- ]
505
+ "batchAddItems": "data.resources",
506
+ "typeValues": {
507
+ "add": "",
508
+ "transfer": "5",
509
+ "batch_remove": "8"
510
+ }
511
+ }
673
512
  },
674
513
  {
675
514
  "className": "ResetAll",