lebai_sdk 0.2.6 → 0.2.7
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/lebai_sdk.d.ts +7 -0
- package/lebai_sdk_bg.js +78 -64
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk.d.ts
CHANGED
@@ -71,6 +71,13 @@ export class Robot {
|
|
71
71
|
pose_inverse(p: any): Promise<any>;
|
72
72
|
/**
|
73
73
|
* @param {string} name
|
74
|
+
* @param {any} pose
|
75
|
+
* @param {string | undefined} [dir]
|
76
|
+
* @returns {Promise<void>}
|
77
|
+
*/
|
78
|
+
save_pose(name: string, pose: any, dir?: string): Promise<void>;
|
79
|
+
/**
|
80
|
+
* @param {string} name
|
74
81
|
* @param {string | undefined} [dir]
|
75
82
|
* @returns {Promise<any>}
|
76
83
|
*/
|
package/lebai_sdk_bg.js
CHANGED
@@ -33,11 +33,7 @@ function addHeapObject(obj) {
|
|
33
33
|
return idx;
|
34
34
|
}
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
39
|
-
|
40
|
-
cachedTextDecoder.decode();
|
36
|
+
let WASM_VECTOR_LEN = 0;
|
41
37
|
|
42
38
|
let cachedUint8Memory0 = null;
|
43
39
|
|
@@ -48,13 +44,6 @@ function getUint8Memory0() {
|
|
48
44
|
return cachedUint8Memory0;
|
49
45
|
}
|
50
46
|
|
51
|
-
function getStringFromWasm0(ptr, len) {
|
52
|
-
ptr = ptr >>> 0;
|
53
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
54
|
-
}
|
55
|
-
|
56
|
-
let WASM_VECTOR_LEN = 0;
|
57
|
-
|
58
47
|
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
59
48
|
|
60
49
|
let cachedTextEncoder = new lTextEncoder('utf-8');
|
@@ -123,6 +112,17 @@ function getInt32Memory0() {
|
|
123
112
|
return cachedInt32Memory0;
|
124
113
|
}
|
125
114
|
|
115
|
+
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
116
|
+
|
117
|
+
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
118
|
+
|
119
|
+
cachedTextDecoder.decode();
|
120
|
+
|
121
|
+
function getStringFromWasm0(ptr, len) {
|
122
|
+
ptr = ptr >>> 0;
|
123
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
124
|
+
}
|
125
|
+
|
126
126
|
let cachedFloat64Memory0 = null;
|
127
127
|
|
128
128
|
function getFloat64Memory0() {
|
@@ -350,7 +350,7 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
350
350
|
ptr = ptr >>> 0;
|
351
351
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
352
352
|
}
|
353
|
-
function
|
353
|
+
function __wbg_adapter_253(arg0, arg1, arg2, arg3) {
|
354
354
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__hec2b27bf71d5ba83(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
355
355
|
}
|
356
356
|
|
@@ -449,6 +449,20 @@ export class Robot {
|
|
449
449
|
}
|
450
450
|
/**
|
451
451
|
* @param {string} name
|
452
|
+
* @param {any} pose
|
453
|
+
* @param {string | undefined} [dir]
|
454
|
+
* @returns {Promise<void>}
|
455
|
+
*/
|
456
|
+
save_pose(name, pose, dir) {
|
457
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
458
|
+
const len0 = WASM_VECTOR_LEN;
|
459
|
+
var ptr1 = isLikeNone(dir) ? 0 : passStringToWasm0(dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
460
|
+
var len1 = WASM_VECTOR_LEN;
|
461
|
+
const ret = wasm.robot_save_pose(this.__wbg_ptr, ptr0, len0, addHeapObject(pose), ptr1, len1);
|
462
|
+
return takeObject(ret);
|
463
|
+
}
|
464
|
+
/**
|
465
|
+
* @param {string} name
|
452
466
|
* @param {string | undefined} [dir]
|
453
467
|
* @returns {Promise<any>}
|
454
468
|
*/
|
@@ -1334,11 +1348,6 @@ export function __wbindgen_number_new(arg0) {
|
|
1334
1348
|
return addHeapObject(ret);
|
1335
1349
|
};
|
1336
1350
|
|
1337
|
-
export function __wbindgen_string_new(arg0, arg1) {
|
1338
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
1339
|
-
return addHeapObject(ret);
|
1340
|
-
};
|
1341
|
-
|
1342
1351
|
export function __wbindgen_string_get(arg0, arg1) {
|
1343
1352
|
const obj = getObject(arg1);
|
1344
1353
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
@@ -1348,8 +1357,8 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
1348
1357
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
1349
1358
|
};
|
1350
1359
|
|
1351
|
-
export function
|
1352
|
-
const ret =
|
1360
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
1361
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
1353
1362
|
return addHeapObject(ret);
|
1354
1363
|
};
|
1355
1364
|
|
@@ -1358,14 +1367,9 @@ export function __wbg_robotsubscription_new(arg0) {
|
|
1358
1367
|
return addHeapObject(ret);
|
1359
1368
|
};
|
1360
1369
|
|
1361
|
-
export function
|
1362
|
-
const
|
1363
|
-
|
1364
|
-
obj.a = 0;
|
1365
|
-
return true;
|
1366
|
-
}
|
1367
|
-
const ret = false;
|
1368
|
-
return ret;
|
1370
|
+
export function __wbg_robot_new(arg0) {
|
1371
|
+
const ret = Robot.__wrap(arg0);
|
1372
|
+
return addHeapObject(ret);
|
1369
1373
|
};
|
1370
1374
|
|
1371
1375
|
export function __wbindgen_error_new(arg0, arg1) {
|
@@ -1373,35 +1377,12 @@ export function __wbindgen_error_new(arg0, arg1) {
|
|
1373
1377
|
return addHeapObject(ret);
|
1374
1378
|
};
|
1375
1379
|
|
1376
|
-
export function __wbindgen_boolean_get(arg0) {
|
1377
|
-
const v = getObject(arg0);
|
1378
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1379
|
-
return ret;
|
1380
|
-
};
|
1381
|
-
|
1382
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
1383
|
-
const obj = getObject(arg1);
|
1384
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1385
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1386
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1387
|
-
};
|
1388
|
-
|
1389
1380
|
export function __wbindgen_is_object(arg0) {
|
1390
1381
|
const val = getObject(arg0);
|
1391
1382
|
const ret = typeof(val) === 'object' && val !== null;
|
1392
1383
|
return ret;
|
1393
1384
|
};
|
1394
1385
|
|
1395
|
-
export function __wbindgen_as_number(arg0) {
|
1396
|
-
const ret = +getObject(arg0);
|
1397
|
-
return ret;
|
1398
|
-
};
|
1399
|
-
|
1400
|
-
export function __wbindgen_object_clone_ref(arg0) {
|
1401
|
-
const ret = getObject(arg0);
|
1402
|
-
return addHeapObject(ret);
|
1403
|
-
};
|
1404
|
-
|
1405
1386
|
export function __wbindgen_is_undefined(arg0) {
|
1406
1387
|
const ret = getObject(arg0) === undefined;
|
1407
1388
|
return ret;
|
@@ -1412,6 +1393,19 @@ export function __wbindgen_in(arg0, arg1) {
|
|
1412
1393
|
return ret;
|
1413
1394
|
};
|
1414
1395
|
|
1396
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1397
|
+
const obj = getObject(arg1);
|
1398
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1399
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1400
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1401
|
+
};
|
1402
|
+
|
1403
|
+
export function __wbindgen_boolean_get(arg0) {
|
1404
|
+
const v = getObject(arg0);
|
1405
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1406
|
+
return ret;
|
1407
|
+
};
|
1408
|
+
|
1415
1409
|
export function __wbindgen_is_bigint(arg0) {
|
1416
1410
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
1417
1411
|
return ret;
|
@@ -1432,6 +1426,26 @@ export function __wbindgen_bigint_from_u64(arg0) {
|
|
1432
1426
|
return addHeapObject(ret);
|
1433
1427
|
};
|
1434
1428
|
|
1429
|
+
export function __wbindgen_cb_drop(arg0) {
|
1430
|
+
const obj = takeObject(arg0).original;
|
1431
|
+
if (obj.cnt-- == 1) {
|
1432
|
+
obj.a = 0;
|
1433
|
+
return true;
|
1434
|
+
}
|
1435
|
+
const ret = false;
|
1436
|
+
return ret;
|
1437
|
+
};
|
1438
|
+
|
1439
|
+
export function __wbindgen_as_number(arg0) {
|
1440
|
+
const ret = +getObject(arg0);
|
1441
|
+
return ret;
|
1442
|
+
};
|
1443
|
+
|
1444
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
1445
|
+
const ret = getObject(arg0);
|
1446
|
+
return addHeapObject(ret);
|
1447
|
+
};
|
1448
|
+
|
1435
1449
|
export function __wbindgen_is_string(arg0) {
|
1436
1450
|
const ret = typeof(getObject(arg0)) === 'string';
|
1437
1451
|
return ret;
|
@@ -1694,7 +1708,7 @@ export function __wbg_new_60f57089c7563e81(arg0, arg1) {
|
|
1694
1708
|
const a = state0.a;
|
1695
1709
|
state0.a = 0;
|
1696
1710
|
try {
|
1697
|
-
return
|
1711
|
+
return __wbg_adapter_253(a, state0.b, arg0, arg1);
|
1698
1712
|
} finally {
|
1699
1713
|
state0.a = a;
|
1700
1714
|
}
|
@@ -1775,33 +1789,33 @@ export function __wbindgen_memory() {
|
|
1775
1789
|
return addHeapObject(ret);
|
1776
1790
|
};
|
1777
1791
|
|
1778
|
-
export function
|
1779
|
-
const ret = makeMutClosure(arg0, arg1,
|
1792
|
+
export function __wbindgen_closure_wrapper1782(arg0, arg1, arg2) {
|
1793
|
+
const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_50);
|
1780
1794
|
return addHeapObject(ret);
|
1781
1795
|
};
|
1782
1796
|
|
1783
|
-
export function
|
1784
|
-
const ret = makeMutClosure(arg0, arg1,
|
1797
|
+
export function __wbindgen_closure_wrapper1784(arg0, arg1, arg2) {
|
1798
|
+
const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_53);
|
1785
1799
|
return addHeapObject(ret);
|
1786
1800
|
};
|
1787
1801
|
|
1788
|
-
export function
|
1789
|
-
const ret = makeMutClosure(arg0, arg1,
|
1802
|
+
export function __wbindgen_closure_wrapper1786(arg0, arg1, arg2) {
|
1803
|
+
const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_53);
|
1790
1804
|
return addHeapObject(ret);
|
1791
1805
|
};
|
1792
1806
|
|
1793
|
-
export function
|
1794
|
-
const ret = makeMutClosure(arg0, arg1,
|
1807
|
+
export function __wbindgen_closure_wrapper1788(arg0, arg1, arg2) {
|
1808
|
+
const ret = makeMutClosure(arg0, arg1, 750, __wbg_adapter_53);
|
1795
1809
|
return addHeapObject(ret);
|
1796
1810
|
};
|
1797
1811
|
|
1798
|
-
export function
|
1799
|
-
const ret = makeMutClosure(arg0, arg1,
|
1812
|
+
export function __wbindgen_closure_wrapper2447(arg0, arg1, arg2) {
|
1813
|
+
const ret = makeMutClosure(arg0, arg1, 860, __wbg_adapter_60);
|
1800
1814
|
return addHeapObject(ret);
|
1801
1815
|
};
|
1802
1816
|
|
1803
|
-
export function
|
1804
|
-
const ret = makeMutClosure(arg0, arg1,
|
1817
|
+
export function __wbindgen_closure_wrapper2487(arg0, arg1, arg2) {
|
1818
|
+
const ret = makeMutClosure(arg0, arg1, 877, __wbg_adapter_63);
|
1805
1819
|
return addHeapObject(ret);
|
1806
1820
|
};
|
1807
1821
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|