@zappar/zappar-cv 3.3.0-beta.2 → 3.4.0-beta.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/README.md +2 -2
- package/lib/bridged-camera-source.d.ts +2 -0
- package/lib/bridged-camera-source.js +13 -0
- package/lib/bridged-message.d.ts +1 -0
- package/lib/bridged-world-tracker.js +8 -6
- package/lib/ceres-worker.d.ts +1 -1
- package/lib/ceres-worker.js +5 -5
- package/lib/gen/zappar-bridge.d.ts +3 -1
- package/lib/gen/zappar-client.js +100 -71
- package/lib/gen/zappar-cwrap.js +27 -6
- package/lib/gen/zappar-native.d.ts +6 -3
- package/lib/gen/zappar-native.js +1 -0
- package/lib/gen/zappar-server.js +80 -68
- package/lib/gen/zappar.d.ts +3 -1
- package/lib/html-element-source.js +3 -4
- package/lib/index-standalone.js +1 -1
- package/lib/mstp-camera-source.d.ts +3 -0
- package/lib/mstp-camera-source.js +21 -0
- package/lib/native.js +20 -14
- package/lib/options.d.ts +2 -1
- package/lib/pipeline.d.ts +1 -0
- package/lib/pipeline.js +13 -0
- package/lib/profile.js +1 -2
- package/lib/src/additional.d.ts +49 -0
- package/lib/src/android-bridge-message-handler.d.ts +15 -0
- package/lib/src/array-from-string.d.ts +2 -0
- package/lib/src/bridged-camera-source.d.ts +53 -0
- package/lib/src/bridged-d3-tracker.d.ts +18 -0
- package/lib/src/bridged-message-parser.d.ts +12 -0
- package/lib/src/bridged-message.d.ts +79 -0
- package/lib/src/bridged-world-tracker.d.ts +21 -0
- package/lib/src/camera-frame-data.d.ts +10 -0
- package/lib/src/camera-source-map.d.ts +11 -0
- package/lib/src/camera-source.d.ts +28 -0
- package/lib/src/cameramodel.d.ts +2 -0
- package/lib/src/ceres-worker.d.ts +1 -0
- package/lib/src/compatibility.d.ts +5 -0
- package/lib/src/data-download.d.ts +8 -0
- package/lib/src/deserializer.d.ts +41 -0
- package/lib/src/direct.d.ts +3 -0
- package/lib/src/drawaxis.d.ts +2 -0
- package/lib/src/drawcamera.d.ts +12 -0
- package/lib/src/drawface.d.ts +16 -0
- package/lib/src/drawfaceproject.d.ts +15 -0
- package/lib/src/drawgrid.d.ts +2 -0
- package/lib/src/drawmesh.d.ts +14 -0
- package/lib/src/drawplane.d.ts +2 -0
- package/lib/src/drawpoints.d.ts +11 -0
- package/lib/src/drawpointswithtype.d.ts +13 -0
- package/lib/src/drawpolygon.d.ts +5 -0
- package/lib/src/drawpreviewmesh.d.ts +16 -0
- package/lib/src/drawquad.d.ts +2 -0
- package/lib/src/event.d.ts +30 -0
- package/lib/src/facelandmark.d.ts +11 -0
- package/lib/src/facelandmarkdata.d.ts +4 -0
- package/lib/src/facelandmarkinterface.d.ts +5 -0
- package/lib/src/facemesh.d.ts +27 -0
- package/lib/src/gen/zappar-bridge.d.ts +182 -0
- package/lib/src/gen/zappar-client.d.ts +26 -0
- package/lib/src/gen/zappar-cwrap.d.ts +12 -0
- package/lib/src/gen/zappar-native.d.ts +256 -0
- package/lib/src/gen/zappar-server.d.ts +50 -0
- package/lib/src/gen/zappar.d.ts +311 -0
- package/lib/src/gfx.d.ts +1 -0
- package/lib/src/gl-state-manager.d.ts +9 -0
- package/lib/src/html-element-source.d.ts +42 -0
- package/lib/src/image-process-gl.d.ts +40 -0
- package/lib/src/imagebitmap-camera-source.d.ts +39 -0
- package/lib/src/imagetracker-previewmesh.d.ts +2 -0
- package/lib/src/imagetracker.d.ts +43 -0
- package/lib/src/index-standalone.d.ts +3 -0
- package/lib/src/index.d.ts +7 -0
- package/lib/src/landmarkdatagenerate.d.ts +2 -0
- package/lib/src/loglevel.d.ts +5 -0
- package/lib/src/messages.d.ts +13 -0
- package/lib/src/mstp-camera-source.d.ts +44 -0
- package/lib/src/native.d.ts +3 -0
- package/lib/src/options.d.ts +5 -0
- package/lib/src/permission.d.ts +12 -0
- package/lib/src/pipeline.d.ts +88 -0
- package/lib/src/profile.d.ts +24 -0
- package/lib/src/riff-reader.d.ts +18 -0
- package/lib/src/sequencerecorder.d.ts +99 -0
- package/lib/src/sequencesource.d.ts +25 -0
- package/lib/src/serializer.d.ts +60 -0
- package/lib/src/shader.d.ts +2 -0
- package/lib/src/source.d.ts +22 -0
- package/lib/src/tr.d.ts +6 -0
- package/lib/src/tracing/jsontracer.d.ts +14 -0
- package/lib/src/tracing/performancetracer.d.ts +11 -0
- package/lib/src/tracing/sharedtracer.d.ts +2 -0
- package/lib/src/tracing/usertimingtracer.d.ts +10 -0
- package/lib/src/version.d.ts +1 -0
- package/lib/src/worker-client.d.ts +4 -0
- package/lib/src/worker-imagebitmap.d.ts +5 -0
- package/lib/src/worker-messages.d.ts +11 -0
- package/lib/src/worker-server.d.ts +3 -0
- package/lib/src/worker.d.ts +1 -0
- package/lib/src/workerinterface.d.ts +110 -0
- package/lib/src/yuv-conversion-gl.d.ts +44 -0
- package/lib/tests/barcode-finder.d.ts +1 -0
- package/lib/tests/camera-data-raw.d.ts +1 -0
- package/lib/tests/camera-data-rgb.d.ts +1 -0
- package/lib/tests/camera-far-near.d.ts +1 -0
- package/lib/tests/camera-only.d.ts +1 -0
- package/lib/tests/common.d.ts +15 -0
- package/lib/tests/d3-tracking.d.ts +1 -0
- package/lib/tests/drawanchor.d.ts +3 -0
- package/lib/tests/face-landmarks.d.ts +1 -0
- package/lib/tests/face-tracking.d.ts +1 -0
- package/lib/tests/image-tracking-cylinder.d.ts +1 -0
- package/lib/tests/image-tracking-preview-mesh.d.ts +1 -0
- package/lib/tests/image-tracking.d.ts +1 -0
- package/lib/tests/instant-tracking.d.ts +1 -0
- package/lib/tests/no-rendering.d.ts +1 -0
- package/lib/tests/sequence-preview.d.ts +1 -0
- package/lib/tests/two-pipelines.d.ts +1 -0
- package/lib/tests/video-face-tracking.d.ts +1 -0
- package/lib/tests/world-tracking-camera-offset-anchor.d.ts +1 -0
- package/lib/tests/world-tracking-meshes.d.ts +1 -0
- package/lib/tests/world-tracking-plane-offset-anchor.d.ts +1 -0
- package/lib/tests/world-tracking.d.ts +1 -0
- package/lib/tests/zapcode-tracking.d.ts +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/worker-client.d.ts +1 -1
- package/lib/worker-client.js +23 -9
- package/lib/worker-messages.d.ts +2 -1
- package/lib/worker-messages.js +2 -1
- package/lib/worker-server.js +27 -10
- package/lib/workerinterface.d.ts +2 -1
- package/lib/zappar-cv.js +1 -1
- package/lib/zappar-cv.wasm +0 -0
- package/package.json +2 -4
- package/umd/169.zappar-cv.js +0 -1
- package/umd/25.zappar-cv.js +0 -1
- package/umd/287.zappar-cv.js +0 -1
- package/umd/482727c0e7dd40d73f5a.zbin +0 -0
- package/umd/670905e7f3a8925b89cb.wasm +0 -0
- package/umd/867.zappar-cv.js +0 -1
- package/umd/b4f46e148a3b3b5aef90.zbin +0 -0
- package/umd/f7b62a3a53b5c9b3222b.zbin +0 -0
- package/umd/zappar-cv-ceres.worker.js +0 -1
- package/umd/zappar-cv.js +0 -1
- package/umd/zappar-cv.worker.js +0 -1
package/lib/gen/zappar-client.js
CHANGED
|
@@ -29,12 +29,12 @@ export class zappar_client {
|
|
|
29
29
|
return this._globalState.log_level;
|
|
30
30
|
},
|
|
31
31
|
log_level_set: (level) => {
|
|
32
|
-
this.serializer.sendMessage(
|
|
32
|
+
this.serializer.sendMessage(39, m => {
|
|
33
33
|
m.logLevel(level);
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
36
|
analytics_project_id_set: (id, uid) => {
|
|
37
|
-
this.serializer.sendMessage(
|
|
37
|
+
this.serializer.sendMessage(36, m => {
|
|
38
38
|
m.string(id);
|
|
39
39
|
m.string(uid);
|
|
40
40
|
});
|
|
@@ -53,7 +53,7 @@ export class zappar_client {
|
|
|
53
53
|
frame_number: 0,
|
|
54
54
|
};
|
|
55
55
|
this._pipeline_state_by_instance.set(newId, s);
|
|
56
|
-
this.serializer.sendMessage(
|
|
56
|
+
this.serializer.sendMessage(32, m => {
|
|
57
57
|
m.type(newId);
|
|
58
58
|
});
|
|
59
59
|
return newId;
|
|
@@ -63,7 +63,7 @@ export class zappar_client {
|
|
|
63
63
|
if (!s)
|
|
64
64
|
throw new Error("This object has been destroyed");
|
|
65
65
|
this._pipeline_state_by_instance.delete(o);
|
|
66
|
-
this.serializer.sendMessage(
|
|
66
|
+
this.serializer.sendMessage(33, m => {
|
|
67
67
|
m.type(o);
|
|
68
68
|
});
|
|
69
69
|
},
|
|
@@ -105,7 +105,7 @@ export class zappar_client {
|
|
|
105
105
|
throw new Error("This object has been destroyed");
|
|
106
106
|
return s.current_frame_user_data;
|
|
107
107
|
},
|
|
108
|
-
pipeline_camera_frame_submit: (o, data, width, height, user_data, camera_to_device_transform, camera_model, user_facing,
|
|
108
|
+
pipeline_camera_frame_submit: (o, data, width, height, user_data, camera_to_device_transform, camera_model, user_facing, timestampMicroseconds) => {
|
|
109
109
|
let s = this._pipeline_state_by_instance.get(o);
|
|
110
110
|
if (!s)
|
|
111
111
|
throw new Error("This object has been destroyed");
|
|
@@ -118,7 +118,7 @@ export class zappar_client {
|
|
|
118
118
|
m.matrix4x4(camera_to_device_transform);
|
|
119
119
|
m.cameraModel(camera_model);
|
|
120
120
|
m.bool(user_facing);
|
|
121
|
-
m.
|
|
121
|
+
m.int(timestampMicroseconds);
|
|
122
122
|
});
|
|
123
123
|
},
|
|
124
124
|
pipeline_camera_frame_camera_attitude: (o) => {
|
|
@@ -221,11 +221,25 @@ export class zappar_client {
|
|
|
221
221
|
m.float(z);
|
|
222
222
|
});
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
pipeline_motion_relative_orientation_submit_int: (o, time, interval, x, y, z, w) => {
|
|
225
225
|
let s = this._pipeline_state_by_instance.get(o);
|
|
226
226
|
if (!s)
|
|
227
227
|
throw new Error("This object has been destroyed");
|
|
228
228
|
this.serializer.sendMessage(17, m => {
|
|
229
|
+
m.type(o);
|
|
230
|
+
m.timestamp(time);
|
|
231
|
+
m.timestamp(interval);
|
|
232
|
+
m.float(x);
|
|
233
|
+
m.float(y);
|
|
234
|
+
m.float(z);
|
|
235
|
+
m.float(w);
|
|
236
|
+
});
|
|
237
|
+
},
|
|
238
|
+
pipeline_motion_attitude_matrix_submit: (o, mat) => {
|
|
239
|
+
let s = this._pipeline_state_by_instance.get(o);
|
|
240
|
+
if (!s)
|
|
241
|
+
throw new Error("This object has been destroyed");
|
|
242
|
+
this.serializer.sendMessage(18, m => {
|
|
229
243
|
m.type(o);
|
|
230
244
|
m.matrix4x4(mat);
|
|
231
245
|
});
|
|
@@ -235,7 +249,7 @@ export class zappar_client {
|
|
|
235
249
|
let newId = (this._latestId++);
|
|
236
250
|
let s = {};
|
|
237
251
|
this._camera_source_state_by_instance.set(newId, s);
|
|
238
|
-
this.serializer.sendMessage(
|
|
252
|
+
this.serializer.sendMessage(34, m => {
|
|
239
253
|
m.type(newId);
|
|
240
254
|
m.type(pipeline);
|
|
241
255
|
m.string(device_id);
|
|
@@ -247,7 +261,7 @@ export class zappar_client {
|
|
|
247
261
|
if (!s)
|
|
248
262
|
throw new Error("This object has been destroyed");
|
|
249
263
|
this._camera_source_state_by_instance.delete(o);
|
|
250
|
-
this.serializer.sendMessage(
|
|
264
|
+
this.serializer.sendMessage(35, m => {
|
|
251
265
|
m.type(o);
|
|
252
266
|
});
|
|
253
267
|
},
|
|
@@ -256,7 +270,7 @@ export class zappar_client {
|
|
|
256
270
|
let newId = (this._latestId++);
|
|
257
271
|
let s = {};
|
|
258
272
|
this._sequence_source_state_by_instance.set(newId, s);
|
|
259
|
-
this.serializer.sendMessage(
|
|
273
|
+
this.serializer.sendMessage(40, m => {
|
|
260
274
|
m.type(newId);
|
|
261
275
|
m.type(pipeline);
|
|
262
276
|
});
|
|
@@ -267,7 +281,7 @@ export class zappar_client {
|
|
|
267
281
|
if (!s)
|
|
268
282
|
throw new Error("This object has been destroyed");
|
|
269
283
|
this._sequence_source_state_by_instance.delete(o);
|
|
270
|
-
this.serializer.sendMessage(
|
|
284
|
+
this.serializer.sendMessage(41, m => {
|
|
271
285
|
m.type(o);
|
|
272
286
|
});
|
|
273
287
|
},
|
|
@@ -293,7 +307,7 @@ export class zappar_client {
|
|
|
293
307
|
if (!s)
|
|
294
308
|
throw new Error("This object has been destroyed");
|
|
295
309
|
this._image_tracker_state_by_instance.delete(o);
|
|
296
|
-
this.serializer.sendMessage(
|
|
310
|
+
this.serializer.sendMessage(19, m => {
|
|
297
311
|
m.type(o);
|
|
298
312
|
});
|
|
299
313
|
},
|
|
@@ -360,7 +374,7 @@ export class zappar_client {
|
|
|
360
374
|
anchor_expression_coefficients: [],
|
|
361
375
|
};
|
|
362
376
|
this._face_tracker_state_by_instance.set(newId, s);
|
|
363
|
-
this.serializer.sendMessage(
|
|
377
|
+
this.serializer.sendMessage(25, m => {
|
|
364
378
|
m.type(newId);
|
|
365
379
|
m.type(pipeline);
|
|
366
380
|
});
|
|
@@ -371,7 +385,7 @@ export class zappar_client {
|
|
|
371
385
|
if (!s)
|
|
372
386
|
throw new Error("This object has been destroyed");
|
|
373
387
|
this._face_tracker_state_by_instance.delete(o);
|
|
374
|
-
this.serializer.sendMessage(
|
|
388
|
+
this.serializer.sendMessage(26, m => {
|
|
375
389
|
m.type(o);
|
|
376
390
|
});
|
|
377
391
|
},
|
|
@@ -379,7 +393,7 @@ export class zappar_client {
|
|
|
379
393
|
let s = this._face_tracker_state_by_instance.get(o);
|
|
380
394
|
if (!s)
|
|
381
395
|
throw new Error("This object has been destroyed");
|
|
382
|
-
this.serializer.sendMessage(
|
|
396
|
+
this.serializer.sendMessage(27, m => {
|
|
383
397
|
m.type(o);
|
|
384
398
|
m.dataWithLength(data);
|
|
385
399
|
});
|
|
@@ -394,7 +408,7 @@ export class zappar_client {
|
|
|
394
408
|
let s = this._face_tracker_state_by_instance.get(o);
|
|
395
409
|
if (!s)
|
|
396
410
|
throw new Error("This object has been destroyed");
|
|
397
|
-
this.serializer.sendMessage(
|
|
411
|
+
this.serializer.sendMessage(28, m => {
|
|
398
412
|
m.type(o);
|
|
399
413
|
m.bool(enabled);
|
|
400
414
|
});
|
|
@@ -410,7 +424,7 @@ export class zappar_client {
|
|
|
410
424
|
let s = this._face_tracker_state_by_instance.get(o);
|
|
411
425
|
if (!s)
|
|
412
426
|
throw new Error("This object has been destroyed");
|
|
413
|
-
this.serializer.sendMessage(
|
|
427
|
+
this.serializer.sendMessage(29, m => {
|
|
414
428
|
m.type(o);
|
|
415
429
|
m.int(num);
|
|
416
430
|
});
|
|
@@ -457,7 +471,7 @@ export class zappar_client {
|
|
|
457
471
|
let newId = (this._latestId++);
|
|
458
472
|
let s = {};
|
|
459
473
|
this._face_mesh_state_by_instance.set(newId, s);
|
|
460
|
-
this.serializer.sendMessage(
|
|
474
|
+
this.serializer.sendMessage(30, m => {
|
|
461
475
|
m.type(newId);
|
|
462
476
|
});
|
|
463
477
|
return newId;
|
|
@@ -467,7 +481,7 @@ export class zappar_client {
|
|
|
467
481
|
if (!s)
|
|
468
482
|
throw new Error("This object has been destroyed");
|
|
469
483
|
this._face_mesh_state_by_instance.delete(o);
|
|
470
|
-
this.serializer.sendMessage(
|
|
484
|
+
this.serializer.sendMessage(31, m => {
|
|
471
485
|
m.type(o);
|
|
472
486
|
});
|
|
473
487
|
},
|
|
@@ -476,7 +490,7 @@ export class zappar_client {
|
|
|
476
490
|
let newId = (this._latestId++);
|
|
477
491
|
let s = {};
|
|
478
492
|
this._face_landmark_state_by_instance.set(newId, s);
|
|
479
|
-
this.serializer.sendMessage(
|
|
493
|
+
this.serializer.sendMessage(37, m => {
|
|
480
494
|
m.type(newId);
|
|
481
495
|
m.faceLandmarkName(landmark);
|
|
482
496
|
});
|
|
@@ -487,7 +501,7 @@ export class zappar_client {
|
|
|
487
501
|
if (!s)
|
|
488
502
|
throw new Error("This object has been destroyed");
|
|
489
503
|
this._face_landmark_state_by_instance.delete(o);
|
|
490
|
-
this.serializer.sendMessage(
|
|
504
|
+
this.serializer.sendMessage(38, m => {
|
|
491
505
|
m.type(o);
|
|
492
506
|
});
|
|
493
507
|
},
|
|
@@ -502,7 +516,7 @@ export class zappar_client {
|
|
|
502
516
|
formats: (1 << 17) - 1,
|
|
503
517
|
};
|
|
504
518
|
this._barcode_finder_state_by_instance.set(newId, s);
|
|
505
|
-
this.serializer.sendMessage(
|
|
519
|
+
this.serializer.sendMessage(21, m => {
|
|
506
520
|
m.type(newId);
|
|
507
521
|
m.type(pipeline);
|
|
508
522
|
});
|
|
@@ -513,7 +527,7 @@ export class zappar_client {
|
|
|
513
527
|
if (!s)
|
|
514
528
|
throw new Error("This object has been destroyed");
|
|
515
529
|
this._barcode_finder_state_by_instance.delete(o);
|
|
516
|
-
this.serializer.sendMessage(
|
|
530
|
+
this.serializer.sendMessage(22, m => {
|
|
517
531
|
m.type(o);
|
|
518
532
|
});
|
|
519
533
|
},
|
|
@@ -521,7 +535,7 @@ export class zappar_client {
|
|
|
521
535
|
let s = this._barcode_finder_state_by_instance.get(o);
|
|
522
536
|
if (!s)
|
|
523
537
|
throw new Error("This object has been destroyed");
|
|
524
|
-
this.serializer.sendMessage(
|
|
538
|
+
this.serializer.sendMessage(23, m => {
|
|
525
539
|
m.type(o);
|
|
526
540
|
m.bool(enabled);
|
|
527
541
|
});
|
|
@@ -561,7 +575,7 @@ export class zappar_client {
|
|
|
561
575
|
let s = this._barcode_finder_state_by_instance.get(o);
|
|
562
576
|
if (!s)
|
|
563
577
|
throw new Error("This object has been destroyed");
|
|
564
|
-
this.serializer.sendMessage(
|
|
578
|
+
this.serializer.sendMessage(24, m => {
|
|
565
579
|
m.type(o);
|
|
566
580
|
m.barcodeFormat(f);
|
|
567
581
|
});
|
|
@@ -586,7 +600,7 @@ export class zappar_client {
|
|
|
586
600
|
if (!s)
|
|
587
601
|
throw new Error("This object has been destroyed");
|
|
588
602
|
this._instant_world_tracker_state_by_instance.delete(o);
|
|
589
|
-
this.serializer.sendMessage(
|
|
603
|
+
this.serializer.sendMessage(20, m => {
|
|
590
604
|
m.type(o);
|
|
591
605
|
});
|
|
592
606
|
},
|
|
@@ -635,7 +649,7 @@ export class zappar_client {
|
|
|
635
649
|
anchor_pose: [],
|
|
636
650
|
};
|
|
637
651
|
this._zapcode_tracker_state_by_instance.set(newId, s);
|
|
638
|
-
this.serializer.sendMessage(
|
|
652
|
+
this.serializer.sendMessage(42, m => {
|
|
639
653
|
m.type(newId);
|
|
640
654
|
m.type(pipeline);
|
|
641
655
|
});
|
|
@@ -646,7 +660,7 @@ export class zappar_client {
|
|
|
646
660
|
if (!s)
|
|
647
661
|
throw new Error("This object has been destroyed");
|
|
648
662
|
this._zapcode_tracker_state_by_instance.delete(o);
|
|
649
|
-
this.serializer.sendMessage(
|
|
663
|
+
this.serializer.sendMessage(45, m => {
|
|
650
664
|
m.type(o);
|
|
651
665
|
});
|
|
652
666
|
},
|
|
@@ -654,7 +668,7 @@ export class zappar_client {
|
|
|
654
668
|
let s = this._zapcode_tracker_state_by_instance.get(o);
|
|
655
669
|
if (!s)
|
|
656
670
|
throw new Error("This object has been destroyed");
|
|
657
|
-
this.serializer.sendMessage(
|
|
671
|
+
this.serializer.sendMessage(44, m => {
|
|
658
672
|
m.type(o);
|
|
659
673
|
m.dataWithLength(data);
|
|
660
674
|
});
|
|
@@ -675,7 +689,7 @@ export class zappar_client {
|
|
|
675
689
|
let s = this._zapcode_tracker_state_by_instance.get(o);
|
|
676
690
|
if (!s)
|
|
677
691
|
throw new Error("This object has been destroyed");
|
|
678
|
-
this.serializer.sendMessage(
|
|
692
|
+
this.serializer.sendMessage(43, m => {
|
|
679
693
|
m.type(o);
|
|
680
694
|
m.bool(enabled);
|
|
681
695
|
});
|
|
@@ -704,6 +718,7 @@ export class zappar_client {
|
|
|
704
718
|
let newId = (this._latestId++);
|
|
705
719
|
let s = {
|
|
706
720
|
enabled: true,
|
|
721
|
+
session_number: 0,
|
|
707
722
|
horizontal_plane_detection_enabled: true,
|
|
708
723
|
vertical_plane_detection_enabled: false,
|
|
709
724
|
plane_anchor_count: 0,
|
|
@@ -728,10 +743,10 @@ export class zappar_client {
|
|
|
728
743
|
projections_data_enabled: false,
|
|
729
744
|
projections_data: new Float32Array([]),
|
|
730
745
|
projections_data_size: 0,
|
|
731
|
-
quality:
|
|
746
|
+
quality: 3,
|
|
732
747
|
};
|
|
733
748
|
this._world_tracker_state_by_instance.set(newId, s);
|
|
734
|
-
this.serializer.sendMessage(
|
|
749
|
+
this.serializer.sendMessage(46, m => {
|
|
735
750
|
m.type(newId);
|
|
736
751
|
m.type(pipeline);
|
|
737
752
|
});
|
|
@@ -742,7 +757,7 @@ export class zappar_client {
|
|
|
742
757
|
if (!s)
|
|
743
758
|
throw new Error("This object has been destroyed");
|
|
744
759
|
this._world_tracker_state_by_instance.delete(o);
|
|
745
|
-
this.serializer.sendMessage(
|
|
760
|
+
this.serializer.sendMessage(47, m => {
|
|
746
761
|
m.type(o);
|
|
747
762
|
});
|
|
748
763
|
},
|
|
@@ -756,12 +771,18 @@ export class zappar_client {
|
|
|
756
771
|
let s = this._world_tracker_state_by_instance.get(o);
|
|
757
772
|
if (!s)
|
|
758
773
|
throw new Error("This object has been destroyed");
|
|
759
|
-
this.serializer.sendMessage(
|
|
774
|
+
this.serializer.sendMessage(48, m => {
|
|
760
775
|
m.type(o);
|
|
761
776
|
m.bool(enabled);
|
|
762
777
|
});
|
|
763
778
|
s.enabled = enabled;
|
|
764
779
|
},
|
|
780
|
+
world_tracker_session_number: (o) => {
|
|
781
|
+
let s = this._world_tracker_state_by_instance.get(o);
|
|
782
|
+
if (!s)
|
|
783
|
+
throw new Error("This object has been destroyed");
|
|
784
|
+
return s.session_number;
|
|
785
|
+
},
|
|
765
786
|
world_tracker_quality: (o) => {
|
|
766
787
|
let s = this._world_tracker_state_by_instance.get(o);
|
|
767
788
|
if (!s)
|
|
@@ -778,7 +799,7 @@ export class zappar_client {
|
|
|
778
799
|
let s = this._world_tracker_state_by_instance.get(o);
|
|
779
800
|
if (!s)
|
|
780
801
|
throw new Error("This object has been destroyed");
|
|
781
|
-
this.serializer.sendMessage(
|
|
802
|
+
this.serializer.sendMessage(49, m => {
|
|
782
803
|
m.type(o);
|
|
783
804
|
m.bool(horizontal_plane_detection_enabled);
|
|
784
805
|
});
|
|
@@ -794,7 +815,7 @@ export class zappar_client {
|
|
|
794
815
|
let s = this._world_tracker_state_by_instance.get(o);
|
|
795
816
|
if (!s)
|
|
796
817
|
throw new Error("This object has been destroyed");
|
|
797
|
-
this.serializer.sendMessage(
|
|
818
|
+
this.serializer.sendMessage(50, m => {
|
|
798
819
|
m.type(o);
|
|
799
820
|
m.bool(vertical_plane_detection_enabled);
|
|
800
821
|
});
|
|
@@ -888,7 +909,7 @@ export class zappar_client {
|
|
|
888
909
|
let s = this._world_tracker_state_by_instance.get(o);
|
|
889
910
|
if (!s)
|
|
890
911
|
throw new Error("This object has been destroyed");
|
|
891
|
-
this.serializer.sendMessage(
|
|
912
|
+
this.serializer.sendMessage(51, m => {
|
|
892
913
|
m.type(o);
|
|
893
914
|
});
|
|
894
915
|
},
|
|
@@ -902,7 +923,7 @@ export class zappar_client {
|
|
|
902
923
|
let s = this._world_tracker_state_by_instance.get(o);
|
|
903
924
|
if (!s)
|
|
904
925
|
throw new Error("This object has been destroyed");
|
|
905
|
-
this.serializer.sendMessage(
|
|
926
|
+
this.serializer.sendMessage(52, m => {
|
|
906
927
|
m.type(o);
|
|
907
928
|
m.bool(tracks_data_enabled);
|
|
908
929
|
});
|
|
@@ -942,7 +963,7 @@ export class zappar_client {
|
|
|
942
963
|
let s = this._world_tracker_state_by_instance.get(o);
|
|
943
964
|
if (!s)
|
|
944
965
|
throw new Error("This object has been destroyed");
|
|
945
|
-
this.serializer.sendMessage(
|
|
966
|
+
this.serializer.sendMessage(53, m => {
|
|
946
967
|
m.type(o);
|
|
947
968
|
m.bool(projections_data_enabled);
|
|
948
969
|
});
|
|
@@ -969,7 +990,7 @@ export class zappar_client {
|
|
|
969
990
|
pose_version: 0,
|
|
970
991
|
};
|
|
971
992
|
this._custom_anchor_state_by_instance.set(newId, s);
|
|
972
|
-
this.serializer.sendMessage(
|
|
993
|
+
this.serializer.sendMessage(54, m => {
|
|
973
994
|
m.type(newId);
|
|
974
995
|
m.type(pipeline);
|
|
975
996
|
m.type(worldtracker);
|
|
@@ -982,7 +1003,7 @@ export class zappar_client {
|
|
|
982
1003
|
if (!s)
|
|
983
1004
|
throw new Error("This object has been destroyed");
|
|
984
1005
|
this._custom_anchor_state_by_instance.delete(o);
|
|
985
|
-
this.serializer.sendMessage(
|
|
1006
|
+
this.serializer.sendMessage(55, m => {
|
|
986
1007
|
m.type(o);
|
|
987
1008
|
});
|
|
988
1009
|
},
|
|
@@ -1008,7 +1029,7 @@ export class zappar_client {
|
|
|
1008
1029
|
let s = this._custom_anchor_state_by_instance.get(o);
|
|
1009
1030
|
if (!s)
|
|
1010
1031
|
throw new Error("This object has been destroyed");
|
|
1011
|
-
this.serializer.sendMessage(
|
|
1032
|
+
this.serializer.sendMessage(56, m => {
|
|
1012
1033
|
m.type(o);
|
|
1013
1034
|
m.float(x);
|
|
1014
1035
|
m.float(y);
|
|
@@ -1020,7 +1041,7 @@ export class zappar_client {
|
|
|
1020
1041
|
let s = this._custom_anchor_state_by_instance.get(o);
|
|
1021
1042
|
if (!s)
|
|
1022
1043
|
throw new Error("This object has been destroyed");
|
|
1023
|
-
this.serializer.sendMessage(
|
|
1044
|
+
this.serializer.sendMessage(57, m => {
|
|
1024
1045
|
m.type(o);
|
|
1025
1046
|
m.string(anchor_id);
|
|
1026
1047
|
m.float(x);
|
|
@@ -1033,7 +1054,7 @@ export class zappar_client {
|
|
|
1033
1054
|
let s = this._custom_anchor_state_by_instance.get(o);
|
|
1034
1055
|
if (!s)
|
|
1035
1056
|
throw new Error("This object has been destroyed");
|
|
1036
|
-
this.serializer.sendMessage(
|
|
1057
|
+
this.serializer.sendMessage(58, m => {
|
|
1037
1058
|
m.type(o);
|
|
1038
1059
|
m.matrix4x4(pose);
|
|
1039
1060
|
});
|
|
@@ -1042,7 +1063,7 @@ export class zappar_client {
|
|
|
1042
1063
|
let s = this._custom_anchor_state_by_instance.get(o);
|
|
1043
1064
|
if (!s)
|
|
1044
1065
|
throw new Error("This object has been destroyed");
|
|
1045
|
-
this.serializer.sendMessage(
|
|
1066
|
+
this.serializer.sendMessage(59, m => {
|
|
1046
1067
|
m.type(o);
|
|
1047
1068
|
m.matrix4x4(pose);
|
|
1048
1069
|
m.string(anchor_id);
|
|
@@ -1062,7 +1083,7 @@ export class zappar_client {
|
|
|
1062
1083
|
process_max_resolution: false,
|
|
1063
1084
|
};
|
|
1064
1085
|
this._d3_tracker_state_by_instance.set(newId, s);
|
|
1065
|
-
this.serializer.sendMessage(
|
|
1086
|
+
this.serializer.sendMessage(60, m => {
|
|
1066
1087
|
m.type(newId);
|
|
1067
1088
|
m.type(pipeline);
|
|
1068
1089
|
});
|
|
@@ -1073,7 +1094,7 @@ export class zappar_client {
|
|
|
1073
1094
|
if (!s)
|
|
1074
1095
|
throw new Error("This object has been destroyed");
|
|
1075
1096
|
this._d3_tracker_state_by_instance.delete(o);
|
|
1076
|
-
this.serializer.sendMessage(
|
|
1097
|
+
this.serializer.sendMessage(61, m => {
|
|
1077
1098
|
m.type(o);
|
|
1078
1099
|
});
|
|
1079
1100
|
},
|
|
@@ -1293,7 +1314,15 @@ export class zappar_client {
|
|
|
1293
1314
|
inst.anchor_pose[indx] = msg.matrix4x4();
|
|
1294
1315
|
break;
|
|
1295
1316
|
}
|
|
1296
|
-
case
|
|
1317
|
+
case 27: {
|
|
1318
|
+
let handle = msg.type();
|
|
1319
|
+
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1320
|
+
if (!inst)
|
|
1321
|
+
return;
|
|
1322
|
+
inst.session_number = msg.int();
|
|
1323
|
+
break;
|
|
1324
|
+
}
|
|
1325
|
+
case 43: {
|
|
1297
1326
|
let handle = msg.type();
|
|
1298
1327
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1299
1328
|
if (!inst)
|
|
@@ -1301,7 +1330,7 @@ export class zappar_client {
|
|
|
1301
1330
|
inst.quality = msg.int();
|
|
1302
1331
|
break;
|
|
1303
1332
|
}
|
|
1304
|
-
case
|
|
1333
|
+
case 28: {
|
|
1305
1334
|
let handle = msg.type();
|
|
1306
1335
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1307
1336
|
if (!inst)
|
|
@@ -1309,7 +1338,7 @@ export class zappar_client {
|
|
|
1309
1338
|
inst.plane_anchor_count = msg.int();
|
|
1310
1339
|
break;
|
|
1311
1340
|
}
|
|
1312
|
-
case
|
|
1341
|
+
case 36: {
|
|
1313
1342
|
let handle = msg.type();
|
|
1314
1343
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1315
1344
|
if (!inst)
|
|
@@ -1318,7 +1347,7 @@ export class zappar_client {
|
|
|
1318
1347
|
inst.plane_anchor_id[indx] = msg.string();
|
|
1319
1348
|
break;
|
|
1320
1349
|
}
|
|
1321
|
-
case
|
|
1350
|
+
case 29: {
|
|
1322
1351
|
let handle = msg.type();
|
|
1323
1352
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1324
1353
|
if (!inst)
|
|
@@ -1327,7 +1356,7 @@ export class zappar_client {
|
|
|
1327
1356
|
inst.plane_anchor_pose[indx] = msg.matrix4x4();
|
|
1328
1357
|
break;
|
|
1329
1358
|
}
|
|
1330
|
-
case
|
|
1359
|
+
case 31: {
|
|
1331
1360
|
let handle = msg.type();
|
|
1332
1361
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1333
1362
|
if (!inst)
|
|
@@ -1336,7 +1365,7 @@ export class zappar_client {
|
|
|
1336
1365
|
inst.plane_anchor_status[indx] = msg.anchorStatus();
|
|
1337
1366
|
break;
|
|
1338
1367
|
}
|
|
1339
|
-
case
|
|
1368
|
+
case 32: {
|
|
1340
1369
|
let handle = msg.type();
|
|
1341
1370
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1342
1371
|
if (!inst)
|
|
@@ -1345,7 +1374,7 @@ export class zappar_client {
|
|
|
1345
1374
|
inst.plane_anchor_polygon_data_size[indx] = msg.int();
|
|
1346
1375
|
break;
|
|
1347
1376
|
}
|
|
1348
|
-
case
|
|
1377
|
+
case 33: {
|
|
1349
1378
|
let handle = msg.type();
|
|
1350
1379
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1351
1380
|
if (!inst)
|
|
@@ -1354,7 +1383,7 @@ export class zappar_client {
|
|
|
1354
1383
|
inst.plane_anchor_polygon_data[indx] = msg.floatArray();
|
|
1355
1384
|
break;
|
|
1356
1385
|
}
|
|
1357
|
-
case
|
|
1386
|
+
case 34: {
|
|
1358
1387
|
let handle = msg.type();
|
|
1359
1388
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1360
1389
|
if (!inst)
|
|
@@ -1363,7 +1392,7 @@ export class zappar_client {
|
|
|
1363
1392
|
inst.plane_anchor_polygon_version[indx] = msg.int();
|
|
1364
1393
|
break;
|
|
1365
1394
|
}
|
|
1366
|
-
case
|
|
1395
|
+
case 35: {
|
|
1367
1396
|
let handle = msg.type();
|
|
1368
1397
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1369
1398
|
if (!inst)
|
|
@@ -1372,7 +1401,7 @@ export class zappar_client {
|
|
|
1372
1401
|
inst.plane_anchor_orientation[indx] = msg.planeOrientation();
|
|
1373
1402
|
break;
|
|
1374
1403
|
}
|
|
1375
|
-
case
|
|
1404
|
+
case 39: {
|
|
1376
1405
|
let handle = msg.type();
|
|
1377
1406
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1378
1407
|
if (!inst)
|
|
@@ -1380,7 +1409,7 @@ export class zappar_client {
|
|
|
1380
1409
|
inst.world_anchor_status = msg.anchorStatus();
|
|
1381
1410
|
break;
|
|
1382
1411
|
}
|
|
1383
|
-
case
|
|
1412
|
+
case 38: {
|
|
1384
1413
|
let handle = msg.type();
|
|
1385
1414
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1386
1415
|
if (!inst)
|
|
@@ -1388,7 +1417,7 @@ export class zappar_client {
|
|
|
1388
1417
|
inst.world_anchor_id = msg.string();
|
|
1389
1418
|
break;
|
|
1390
1419
|
}
|
|
1391
|
-
case
|
|
1420
|
+
case 37: {
|
|
1392
1421
|
let handle = msg.type();
|
|
1393
1422
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1394
1423
|
if (!inst)
|
|
@@ -1396,7 +1425,7 @@ export class zappar_client {
|
|
|
1396
1425
|
inst.world_anchor_pose = msg.matrix4x4();
|
|
1397
1426
|
break;
|
|
1398
1427
|
}
|
|
1399
|
-
case
|
|
1428
|
+
case 41: {
|
|
1400
1429
|
let handle = msg.type();
|
|
1401
1430
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1402
1431
|
if (!inst)
|
|
@@ -1404,7 +1433,7 @@ export class zappar_client {
|
|
|
1404
1433
|
inst.ground_anchor_id = msg.string();
|
|
1405
1434
|
break;
|
|
1406
1435
|
}
|
|
1407
|
-
case
|
|
1436
|
+
case 42: {
|
|
1408
1437
|
let handle = msg.type();
|
|
1409
1438
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1410
1439
|
if (!inst)
|
|
@@ -1412,7 +1441,7 @@ export class zappar_client {
|
|
|
1412
1441
|
inst.ground_anchor_status = msg.anchorStatus();
|
|
1413
1442
|
break;
|
|
1414
1443
|
}
|
|
1415
|
-
case
|
|
1444
|
+
case 40: {
|
|
1416
1445
|
let handle = msg.type();
|
|
1417
1446
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1418
1447
|
if (!inst)
|
|
@@ -1420,7 +1449,7 @@ export class zappar_client {
|
|
|
1420
1449
|
inst.ground_anchor_pose = msg.matrix4x4();
|
|
1421
1450
|
break;
|
|
1422
1451
|
}
|
|
1423
|
-
case
|
|
1452
|
+
case 46: {
|
|
1424
1453
|
let handle = msg.type();
|
|
1425
1454
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1426
1455
|
if (!inst)
|
|
@@ -1428,7 +1457,7 @@ export class zappar_client {
|
|
|
1428
1457
|
inst.tracks_data_size = msg.int();
|
|
1429
1458
|
break;
|
|
1430
1459
|
}
|
|
1431
|
-
case
|
|
1460
|
+
case 45: {
|
|
1432
1461
|
let handle = msg.type();
|
|
1433
1462
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1434
1463
|
if (!inst)
|
|
@@ -1436,7 +1465,7 @@ export class zappar_client {
|
|
|
1436
1465
|
inst.tracks_data = msg.floatArray();
|
|
1437
1466
|
break;
|
|
1438
1467
|
}
|
|
1439
|
-
case
|
|
1468
|
+
case 48: {
|
|
1440
1469
|
let handle = msg.type();
|
|
1441
1470
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1442
1471
|
if (!inst)
|
|
@@ -1444,7 +1473,7 @@ export class zappar_client {
|
|
|
1444
1473
|
inst.tracks_type_data_size = msg.int();
|
|
1445
1474
|
break;
|
|
1446
1475
|
}
|
|
1447
|
-
case
|
|
1476
|
+
case 47: {
|
|
1448
1477
|
let handle = msg.type();
|
|
1449
1478
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1450
1479
|
if (!inst)
|
|
@@ -1452,7 +1481,7 @@ export class zappar_client {
|
|
|
1452
1481
|
inst.tracks_type_data = msg.ucharArray();
|
|
1453
1482
|
break;
|
|
1454
1483
|
}
|
|
1455
|
-
case
|
|
1484
|
+
case 51: {
|
|
1456
1485
|
let handle = msg.type();
|
|
1457
1486
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1458
1487
|
if (!inst)
|
|
@@ -1460,7 +1489,7 @@ export class zappar_client {
|
|
|
1460
1489
|
inst.projections_data_size = msg.int();
|
|
1461
1490
|
break;
|
|
1462
1491
|
}
|
|
1463
|
-
case
|
|
1492
|
+
case 50: {
|
|
1464
1493
|
let handle = msg.type();
|
|
1465
1494
|
let inst = this._world_tracker_state_by_instance.get(handle);
|
|
1466
1495
|
if (!inst)
|
|
@@ -1468,7 +1497,7 @@ export class zappar_client {
|
|
|
1468
1497
|
inst.projections_data = msg.floatArray();
|
|
1469
1498
|
break;
|
|
1470
1499
|
}
|
|
1471
|
-
case
|
|
1500
|
+
case 53: {
|
|
1472
1501
|
let handle = msg.type();
|
|
1473
1502
|
let inst = this._custom_anchor_state_by_instance.get(handle);
|
|
1474
1503
|
if (!inst)
|
|
@@ -1476,7 +1505,7 @@ export class zappar_client {
|
|
|
1476
1505
|
inst.status = msg.anchorStatus();
|
|
1477
1506
|
break;
|
|
1478
1507
|
}
|
|
1479
|
-
case
|
|
1508
|
+
case 54: {
|
|
1480
1509
|
let handle = msg.type();
|
|
1481
1510
|
let inst = this._custom_anchor_state_by_instance.get(handle);
|
|
1482
1511
|
if (!inst)
|
|
@@ -1484,7 +1513,7 @@ export class zappar_client {
|
|
|
1484
1513
|
inst.pose_version = msg.int();
|
|
1485
1514
|
break;
|
|
1486
1515
|
}
|
|
1487
|
-
case
|
|
1516
|
+
case 52: {
|
|
1488
1517
|
let handle = msg.type();
|
|
1489
1518
|
let inst = this._custom_anchor_state_by_instance.get(handle);
|
|
1490
1519
|
if (!inst)
|