lebai_sdk 0.2.15 → 0.2.17
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 +2 -1
- package/lebai_sdk_bg.js +93 -92
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +3 -2
package/lebai_sdk.d.ts
CHANGED
@@ -88,9 +88,10 @@ export class Robot {
|
|
88
88
|
/**
|
89
89
|
* @param {string} name
|
90
90
|
* @param {string | undefined} [dir]
|
91
|
+
* @param {boolean | undefined} [raw_pose]
|
91
92
|
* @returns {Promise<any>}
|
92
93
|
*/
|
93
|
-
load_pose(name: string, dir?: string): Promise<any>;
|
94
|
+
load_pose(name: string, dir?: string, raw_pose?: boolean): Promise<any>;
|
94
95
|
/**
|
95
96
|
* @param {string} name
|
96
97
|
* @param {string | undefined} [dir]
|
package/lebai_sdk_bg.js
CHANGED
@@ -24,6 +24,15 @@ function takeObject(idx) {
|
|
24
24
|
return ret;
|
25
25
|
}
|
26
26
|
|
27
|
+
function addHeapObject(obj) {
|
28
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
29
|
+
const idx = heap_next;
|
30
|
+
heap_next = heap[idx];
|
31
|
+
|
32
|
+
heap[idx] = obj;
|
33
|
+
return idx;
|
34
|
+
}
|
35
|
+
|
27
36
|
let WASM_VECTOR_LEN = 0;
|
28
37
|
|
29
38
|
let cachedUint8Memory0 = null;
|
@@ -104,15 +113,6 @@ function getInt32Memory0() {
|
|
104
113
|
return cachedInt32Memory0;
|
105
114
|
}
|
106
115
|
|
107
|
-
function addHeapObject(obj) {
|
108
|
-
if (heap_next === heap.length) heap.push(heap.length + 1);
|
109
|
-
const idx = heap_next;
|
110
|
-
heap_next = heap[idx];
|
111
|
-
|
112
|
-
heap[idx] = obj;
|
113
|
-
return idx;
|
114
|
-
}
|
115
|
-
|
116
116
|
const lTextDecoder = typeof TextDecoder === 'undefined' ? (0, module.require)('util').TextDecoder : TextDecoder;
|
117
117
|
|
118
118
|
let cachedTextDecoder = new lTextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
@@ -237,20 +237,20 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
237
237
|
CLOSURE_DTORS.register(real, state, state);
|
238
238
|
return real;
|
239
239
|
}
|
240
|
-
function __wbg_adapter_50(arg0, arg1) {
|
241
|
-
wasm.
|
240
|
+
function __wbg_adapter_50(arg0, arg1, arg2) {
|
241
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0acae28fae4ea96d(arg0, arg1, addHeapObject(arg2));
|
242
242
|
}
|
243
243
|
|
244
|
-
function __wbg_adapter_53(arg0, arg1
|
245
|
-
wasm.
|
244
|
+
function __wbg_adapter_53(arg0, arg1) {
|
245
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h17d8ba5655610ca3(arg0, arg1);
|
246
246
|
}
|
247
247
|
|
248
248
|
function __wbg_adapter_60(arg0, arg1, arg2) {
|
249
|
-
wasm.
|
249
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h96d576336492a8f4(arg0, arg1, addHeapObject(arg2));
|
250
250
|
}
|
251
251
|
|
252
252
|
function __wbg_adapter_63(arg0, arg1) {
|
253
|
-
wasm.
|
253
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__ha776d7ed227c2188(arg0, arg1);
|
254
254
|
}
|
255
255
|
|
256
256
|
let cachedUint32Memory0 = null;
|
@@ -358,7 +358,7 @@ function getArrayU8FromWasm0(ptr, len) {
|
|
358
358
|
return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
|
359
359
|
}
|
360
360
|
function __wbg_adapter_259(arg0, arg1, arg2, arg3) {
|
361
|
-
wasm.
|
361
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__h6e41000e25534132(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
362
362
|
}
|
363
363
|
|
364
364
|
const RobotFinalization = (typeof FinalizationRegistry === 'undefined')
|
@@ -489,14 +489,15 @@ export class Robot {
|
|
489
489
|
/**
|
490
490
|
* @param {string} name
|
491
491
|
* @param {string | undefined} [dir]
|
492
|
+
* @param {boolean | undefined} [raw_pose]
|
492
493
|
* @returns {Promise<any>}
|
493
494
|
*/
|
494
|
-
load_pose(name, dir) {
|
495
|
+
load_pose(name, dir, raw_pose) {
|
495
496
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
496
497
|
const len0 = WASM_VECTOR_LEN;
|
497
498
|
var ptr1 = isLikeNone(dir) ? 0 : passStringToWasm0(dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
498
499
|
var len1 = WASM_VECTOR_LEN;
|
499
|
-
const ret = wasm.robot_load_pose(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
500
|
+
const ret = wasm.robot_load_pose(this.__wbg_ptr, ptr0, len0, ptr1, len1, isLikeNone(raw_pose) ? 0xFFFFFF : raw_pose ? 1 : 0);
|
500
501
|
return takeObject(ret);
|
501
502
|
}
|
502
503
|
/**
|
@@ -1388,6 +1389,11 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
1388
1389
|
takeObject(arg0);
|
1389
1390
|
};
|
1390
1391
|
|
1392
|
+
export function __wbindgen_number_new(arg0) {
|
1393
|
+
const ret = arg0;
|
1394
|
+
return addHeapObject(ret);
|
1395
|
+
};
|
1396
|
+
|
1391
1397
|
export function __wbindgen_string_get(arg0, arg1) {
|
1392
1398
|
const obj = getObject(arg1);
|
1393
1399
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
@@ -1397,8 +1403,8 @@ export function __wbindgen_string_get(arg0, arg1) {
|
|
1397
1403
|
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
1398
1404
|
};
|
1399
1405
|
|
1400
|
-
export function
|
1401
|
-
const ret = arg0;
|
1406
|
+
export function __wbg_robot_new(arg0) {
|
1407
|
+
const ret = Robot.__wrap(arg0);
|
1402
1408
|
return addHeapObject(ret);
|
1403
1409
|
};
|
1404
1410
|
|
@@ -1407,28 +1413,26 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
1407
1413
|
return addHeapObject(ret);
|
1408
1414
|
};
|
1409
1415
|
|
1410
|
-
export function __wbg_robot_new(arg0) {
|
1411
|
-
const ret = Robot.__wrap(arg0);
|
1412
|
-
return addHeapObject(ret);
|
1413
|
-
};
|
1414
|
-
|
1415
1416
|
export function __wbg_robotsubscription_new(arg0) {
|
1416
1417
|
const ret = RobotSubscription.__wrap(arg0);
|
1417
1418
|
return addHeapObject(ret);
|
1418
1419
|
};
|
1419
1420
|
|
1420
|
-
export function
|
1421
|
-
const
|
1422
|
-
|
1421
|
+
export function __wbindgen_number_get(arg0, arg1) {
|
1422
|
+
const obj = getObject(arg1);
|
1423
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1424
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1425
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1423
1426
|
};
|
1424
1427
|
|
1425
|
-
export function
|
1426
|
-
const
|
1428
|
+
export function __wbindgen_boolean_get(arg0) {
|
1429
|
+
const v = getObject(arg0);
|
1430
|
+
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1427
1431
|
return ret;
|
1428
1432
|
};
|
1429
1433
|
|
1430
|
-
export function
|
1431
|
-
const ret =
|
1434
|
+
export function __wbindgen_error_new(arg0, arg1) {
|
1435
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
1432
1436
|
return addHeapObject(ret);
|
1433
1437
|
};
|
1434
1438
|
|
@@ -1442,29 +1446,22 @@ export function __wbindgen_cb_drop(arg0) {
|
|
1442
1446
|
return ret;
|
1443
1447
|
};
|
1444
1448
|
|
1445
|
-
export function
|
1446
|
-
const
|
1447
|
-
const ret = typeof(val) === 'object' && val !== null;
|
1449
|
+
export function __wbindgen_as_number(arg0) {
|
1450
|
+
const ret = +getObject(arg0);
|
1448
1451
|
return ret;
|
1449
1452
|
};
|
1450
1453
|
|
1451
|
-
export function
|
1452
|
-
const ret = getObject(arg0)
|
1453
|
-
return ret;
|
1454
|
+
export function __wbindgen_object_clone_ref(arg0) {
|
1455
|
+
const ret = getObject(arg0);
|
1456
|
+
return addHeapObject(ret);
|
1454
1457
|
};
|
1455
1458
|
|
1456
|
-
export function
|
1457
|
-
const
|
1459
|
+
export function __wbindgen_is_object(arg0) {
|
1460
|
+
const val = getObject(arg0);
|
1461
|
+
const ret = typeof(val) === 'object' && val !== null;
|
1458
1462
|
return ret;
|
1459
1463
|
};
|
1460
1464
|
|
1461
|
-
export function __wbindgen_number_get(arg0, arg1) {
|
1462
|
-
const obj = getObject(arg1);
|
1463
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
1464
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
1465
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
1466
|
-
};
|
1467
|
-
|
1468
1465
|
export function __wbindgen_is_bigint(arg0) {
|
1469
1466
|
const ret = typeof(getObject(arg0)) === 'bigint';
|
1470
1467
|
return ret;
|
@@ -1480,9 +1477,8 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
|
|
1480
1477
|
return ret;
|
1481
1478
|
};
|
1482
1479
|
|
1483
|
-
export function
|
1484
|
-
const
|
1485
|
-
const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
|
1480
|
+
export function __wbindgen_in(arg0, arg1) {
|
1481
|
+
const ret = getObject(arg0) in getObject(arg1);
|
1486
1482
|
return ret;
|
1487
1483
|
};
|
1488
1484
|
|
@@ -1491,42 +1487,16 @@ export function __wbindgen_bigint_from_i64(arg0) {
|
|
1491
1487
|
return addHeapObject(ret);
|
1492
1488
|
};
|
1493
1489
|
|
1494
|
-
export function
|
1495
|
-
const ret =
|
1490
|
+
export function __wbindgen_is_undefined(arg0) {
|
1491
|
+
const ret = getObject(arg0) === undefined;
|
1496
1492
|
return ret;
|
1497
1493
|
};
|
1498
1494
|
|
1499
|
-
export function
|
1500
|
-
const ret = getObject(arg0)
|
1495
|
+
export function __wbindgen_is_string(arg0) {
|
1496
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
1501
1497
|
return ret;
|
1502
1498
|
};
|
1503
1499
|
|
1504
|
-
export function __wbg_setbinaryType_bfaa2b91f5e49737(arg0, arg1) {
|
1505
|
-
getObject(arg0).binaryType = takeObject(arg1);
|
1506
|
-
};
|
1507
|
-
|
1508
|
-
export function __wbg_new_d3ba66fcfe3ebcc6() { return handleError(function (arg0, arg1) {
|
1509
|
-
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
1510
|
-
return addHeapObject(ret);
|
1511
|
-
}, arguments) };
|
1512
|
-
|
1513
|
-
export function __wbg_close_85838c8d50b026da() { return handleError(function (arg0) {
|
1514
|
-
getObject(arg0).close();
|
1515
|
-
}, arguments) };
|
1516
|
-
|
1517
|
-
export function __wbg_send_115b7e92eb793bd9() { return handleError(function (arg0, arg1, arg2) {
|
1518
|
-
getObject(arg0).send(getStringFromWasm0(arg1, arg2));
|
1519
|
-
}, arguments) };
|
1520
|
-
|
1521
|
-
export function __wbg_send_8e8f1c88be375fc1() { return handleError(function (arg0, arg1, arg2) {
|
1522
|
-
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
1523
|
-
}, arguments) };
|
1524
|
-
|
1525
|
-
export function __wbg_data_bbdd2d77ab2f7e78(arg0) {
|
1526
|
-
const ret = getObject(arg0).data;
|
1527
|
-
return addHeapObject(ret);
|
1528
|
-
};
|
1529
|
-
|
1530
1500
|
export function __wbg_wasClean_06aba8a282b21973(arg0) {
|
1531
1501
|
const ret = getObject(arg0).wasClean;
|
1532
1502
|
return ret;
|
@@ -1567,6 +1537,37 @@ export function __wbg_removeEventListener_acfc154b998d806b() { return handleErro
|
|
1567
1537
|
getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
|
1568
1538
|
}, arguments) };
|
1569
1539
|
|
1540
|
+
export function __wbg_data_bbdd2d77ab2f7e78(arg0) {
|
1541
|
+
const ret = getObject(arg0).data;
|
1542
|
+
return addHeapObject(ret);
|
1543
|
+
};
|
1544
|
+
|
1545
|
+
export function __wbg_readyState_2599ffe07703eeea(arg0) {
|
1546
|
+
const ret = getObject(arg0).readyState;
|
1547
|
+
return ret;
|
1548
|
+
};
|
1549
|
+
|
1550
|
+
export function __wbg_setbinaryType_bfaa2b91f5e49737(arg0, arg1) {
|
1551
|
+
getObject(arg0).binaryType = takeObject(arg1);
|
1552
|
+
};
|
1553
|
+
|
1554
|
+
export function __wbg_new_d3ba66fcfe3ebcc6() { return handleError(function (arg0, arg1) {
|
1555
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
1556
|
+
return addHeapObject(ret);
|
1557
|
+
}, arguments) };
|
1558
|
+
|
1559
|
+
export function __wbg_close_85838c8d50b026da() { return handleError(function (arg0) {
|
1560
|
+
getObject(arg0).close();
|
1561
|
+
}, arguments) };
|
1562
|
+
|
1563
|
+
export function __wbg_send_115b7e92eb793bd9() { return handleError(function (arg0, arg1, arg2) {
|
1564
|
+
getObject(arg0).send(getStringFromWasm0(arg1, arg2));
|
1565
|
+
}, arguments) };
|
1566
|
+
|
1567
|
+
export function __wbg_send_8e8f1c88be375fc1() { return handleError(function (arg0, arg1, arg2) {
|
1568
|
+
getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
|
1569
|
+
}, arguments) };
|
1570
|
+
|
1570
1571
|
export function __wbg_queueMicrotask_f82fc5d1e8f816ae(arg0) {
|
1571
1572
|
const ret = getObject(arg0).queueMicrotask;
|
1572
1573
|
return addHeapObject(ret);
|
@@ -1845,33 +1846,33 @@ export function __wbindgen_memory() {
|
|
1845
1846
|
return addHeapObject(ret);
|
1846
1847
|
};
|
1847
1848
|
|
1848
|
-
export function
|
1849
|
-
const ret = makeMutClosure(arg0, arg1,
|
1849
|
+
export function __wbindgen_closure_wrapper1869(arg0, arg1, arg2) {
|
1850
|
+
const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_50);
|
1850
1851
|
return addHeapObject(ret);
|
1851
1852
|
};
|
1852
1853
|
|
1853
|
-
export function
|
1854
|
-
const ret = makeMutClosure(arg0, arg1,
|
1854
|
+
export function __wbindgen_closure_wrapper1871(arg0, arg1, arg2) {
|
1855
|
+
const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_53);
|
1855
1856
|
return addHeapObject(ret);
|
1856
1857
|
};
|
1857
1858
|
|
1858
|
-
export function
|
1859
|
-
const ret = makeMutClosure(arg0, arg1,
|
1859
|
+
export function __wbindgen_closure_wrapper1873(arg0, arg1, arg2) {
|
1860
|
+
const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_50);
|
1860
1861
|
return addHeapObject(ret);
|
1861
1862
|
};
|
1862
1863
|
|
1863
|
-
export function
|
1864
|
-
const ret = makeMutClosure(arg0, arg1,
|
1864
|
+
export function __wbindgen_closure_wrapper1875(arg0, arg1, arg2) {
|
1865
|
+
const ret = makeMutClosure(arg0, arg1, 764, __wbg_adapter_50);
|
1865
1866
|
return addHeapObject(ret);
|
1866
1867
|
};
|
1867
1868
|
|
1868
|
-
export function
|
1869
|
-
const ret = makeMutClosure(arg0, arg1,
|
1869
|
+
export function __wbindgen_closure_wrapper2525(arg0, arg1, arg2) {
|
1870
|
+
const ret = makeMutClosure(arg0, arg1, 840, __wbg_adapter_60);
|
1870
1871
|
return addHeapObject(ret);
|
1871
1872
|
};
|
1872
1873
|
|
1873
|
-
export function
|
1874
|
-
const ret = makeMutClosure(arg0, arg1,
|
1874
|
+
export function __wbindgen_closure_wrapper2566(arg0, arg1, arg2) {
|
1875
|
+
const ret = makeMutClosure(arg0, arg1, 855, __wbg_adapter_63);
|
1875
1876
|
return addHeapObject(ret);
|
1876
1877
|
};
|
1877
1878
|
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "lebai_sdk",
|
3
|
+
"type": "module",
|
3
4
|
"collaborators": [
|
4
5
|
"rise0chen<rise0chen@163.com>"
|
5
6
|
],
|
6
7
|
"description": "lebai_sdk",
|
7
|
-
"version": "0.2.
|
8
|
+
"version": "0.2.17",
|
8
9
|
"license": "SEE LICENSE IN LICENSE",
|
9
10
|
"repository": {
|
10
11
|
"type": "git",
|
@@ -16,7 +17,7 @@
|
|
16
17
|
"lebai_sdk_bg.js",
|
17
18
|
"lebai_sdk.d.ts"
|
18
19
|
],
|
19
|
-
"
|
20
|
+
"main": "lebai_sdk.js",
|
20
21
|
"types": "lebai_sdk.d.ts",
|
21
22
|
"sideEffects": [
|
22
23
|
"./lebai_sdk.js",
|