lebai_sdk 0.2.13 → 0.2.15

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 CHANGED
@@ -81,9 +81,10 @@ export class Robot {
81
81
  * @param {string} name
82
82
  * @param {any | undefined} [pose]
83
83
  * @param {string | undefined} [dir]
84
+ * @param {any | undefined} [refer]
84
85
  * @returns {Promise<void>}
85
86
  */
86
- save_pose(name: string, pose?: any, dir?: string): Promise<void>;
87
+ save_pose(name: string, pose?: any, dir?: string, refer?: any): Promise<void>;
87
88
  /**
88
89
  * @param {string} name
89
90
  * @param {string | undefined} [dir]
@@ -163,18 +164,24 @@ export class Robot {
163
164
  /**
164
165
  * @param {any} p
165
166
  * @param {any} v
167
+ * @param {any} a
166
168
  * @param {number} t
167
169
  * @returns {Promise<void>}
168
170
  */
169
- move_pvt(p: any, v: any, t: number): Promise<void>;
171
+ move_pvat(p: any, v: any, a: any, t: number): Promise<void>;
170
172
  /**
171
173
  * @param {any} p
172
174
  * @param {any} v
173
- * @param {any} a
174
175
  * @param {number} t
175
176
  * @returns {Promise<void>}
176
177
  */
177
- move_pvat(p: any, v: any, a: any, t: number): Promise<void>;
178
+ move_pvt(p: any, v: any, t: number): Promise<void>;
179
+ /**
180
+ * @param {any} p
181
+ * @param {number} t
182
+ * @returns {Promise<void>}
183
+ */
184
+ move_pt(p: any, t: number): Promise<void>;
178
185
  /**
179
186
  * @param {string} name
180
187
  * @param {string | undefined} [dir]
package/lebai_sdk_bg.js CHANGED
@@ -24,15 +24,6 @@ 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
-
36
27
  let WASM_VECTOR_LEN = 0;
37
28
 
38
29
  let cachedUint8Memory0 = null;
@@ -113,6 +104,15 @@ function getInt32Memory0() {
113
104
  return cachedInt32Memory0;
114
105
  }
115
106
 
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, arg2) {
241
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1cb257f3a84aa38b(arg0, arg1, addHeapObject(arg2));
240
+ function __wbg_adapter_50(arg0, arg1) {
241
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfc46c9c7f7f0a609(arg0, arg1);
242
242
  }
243
243
 
244
- function __wbg_adapter_55(arg0, arg1) {
245
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h24d6faac42ef5dca(arg0, arg1);
244
+ function __wbg_adapter_53(arg0, arg1, arg2) {
245
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4f789b7e73afe73c(arg0, arg1, addHeapObject(arg2));
246
246
  }
247
247
 
248
248
  function __wbg_adapter_60(arg0, arg1, arg2) {
249
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf3ae89a6bef83f1c(arg0, arg1, addHeapObject(arg2));
249
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd33e8f531ac5d469(arg0, arg1, addHeapObject(arg2));
250
250
  }
251
251
 
252
252
  function __wbg_adapter_63(arg0, arg1) {
253
- wasm.wasm_bindgen__convert__closures__invoke0_mut__h032693d939b0fa3a(arg0, arg1);
253
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbeb73870b83f2bd9(arg0, arg1);
254
254
  }
255
255
 
256
256
  let cachedUint32Memory0 = null;
@@ -357,8 +357,8 @@ function getArrayU8FromWasm0(ptr, len) {
357
357
  ptr = ptr >>> 0;
358
358
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
359
359
  }
360
- function __wbg_adapter_258(arg0, arg1, arg2, arg3) {
361
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h743e0e03d07bbd79(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
360
+ function __wbg_adapter_259(arg0, arg1, arg2, arg3) {
361
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h67d28613108078be(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
362
362
  }
363
363
 
364
364
  const RobotFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -475,14 +475,15 @@ export class Robot {
475
475
  * @param {string} name
476
476
  * @param {any | undefined} [pose]
477
477
  * @param {string | undefined} [dir]
478
+ * @param {any | undefined} [refer]
478
479
  * @returns {Promise<void>}
479
480
  */
480
- save_pose(name, pose, dir) {
481
+ save_pose(name, pose, dir, refer) {
481
482
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
482
483
  const len0 = WASM_VECTOR_LEN;
483
484
  var ptr1 = isLikeNone(dir) ? 0 : passStringToWasm0(dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
484
485
  var len1 = WASM_VECTOR_LEN;
485
- const ret = wasm.robot_save_pose(this.__wbg_ptr, ptr0, len0, isLikeNone(pose) ? 0 : addHeapObject(pose), ptr1, len1);
486
+ const ret = wasm.robot_save_pose(this.__wbg_ptr, ptr0, len0, isLikeNone(pose) ? 0 : addHeapObject(pose), ptr1, len1, isLikeNone(refer) ? 0 : addHeapObject(refer));
486
487
  return takeObject(ret);
487
488
  }
488
489
  /**
@@ -608,6 +609,17 @@ export class Robot {
608
609
  /**
609
610
  * @param {any} p
610
611
  * @param {any} v
612
+ * @param {any} a
613
+ * @param {number} t
614
+ * @returns {Promise<void>}
615
+ */
616
+ move_pvat(p, v, a, t) {
617
+ const ret = wasm.robot_move_pvat(this.__wbg_ptr, addHeapObject(p), addHeapObject(v), addHeapObject(a), t);
618
+ return takeObject(ret);
619
+ }
620
+ /**
621
+ * @param {any} p
622
+ * @param {any} v
611
623
  * @param {number} t
612
624
  * @returns {Promise<void>}
613
625
  */
@@ -617,13 +629,11 @@ export class Robot {
617
629
  }
618
630
  /**
619
631
  * @param {any} p
620
- * @param {any} v
621
- * @param {any} a
622
632
  * @param {number} t
623
633
  * @returns {Promise<void>}
624
634
  */
625
- move_pvat(p, v, a, t) {
626
- const ret = wasm.robot_move_pvat(this.__wbg_ptr, addHeapObject(p), addHeapObject(v), addHeapObject(a), t);
635
+ move_pt(p, t) {
636
+ const ret = wasm.robot_move_pt(this.__wbg_ptr, addHeapObject(p), t);
627
637
  return takeObject(ret);
628
638
  }
629
639
  /**
@@ -1378,11 +1388,6 @@ export function __wbindgen_object_drop_ref(arg0) {
1378
1388
  takeObject(arg0);
1379
1389
  };
1380
1390
 
1381
- export function __wbindgen_number_new(arg0) {
1382
- const ret = arg0;
1383
- return addHeapObject(ret);
1384
- };
1385
-
1386
1391
  export function __wbindgen_string_get(arg0, arg1) {
1387
1392
  const obj = getObject(arg1);
1388
1393
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1392,6 +1397,16 @@ export function __wbindgen_string_get(arg0, arg1) {
1392
1397
  getInt32Memory0()[arg0 / 4 + 0] = ptr1;
1393
1398
  };
1394
1399
 
1400
+ export function __wbindgen_number_new(arg0) {
1401
+ const ret = arg0;
1402
+ return addHeapObject(ret);
1403
+ };
1404
+
1405
+ export function __wbindgen_string_new(arg0, arg1) {
1406
+ const ret = getStringFromWasm0(arg0, arg1);
1407
+ return addHeapObject(ret);
1408
+ };
1409
+
1395
1410
  export function __wbg_robot_new(arg0) {
1396
1411
  const ret = Robot.__wrap(arg0);
1397
1412
  return addHeapObject(ret);
@@ -1402,8 +1417,8 @@ export function __wbg_robotsubscription_new(arg0) {
1402
1417
  return addHeapObject(ret);
1403
1418
  };
1404
1419
 
1405
- export function __wbindgen_string_new(arg0, arg1) {
1406
- const ret = getStringFromWasm0(arg0, arg1);
1420
+ export function __wbindgen_error_new(arg0, arg1) {
1421
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1407
1422
  return addHeapObject(ret);
1408
1423
  };
1409
1424
 
@@ -1417,12 +1432,6 @@ export function __wbindgen_object_clone_ref(arg0) {
1417
1432
  return addHeapObject(ret);
1418
1433
  };
1419
1434
 
1420
- export function __wbindgen_is_object(arg0) {
1421
- const val = getObject(arg0);
1422
- const ret = typeof(val) === 'object' && val !== null;
1423
- return ret;
1424
- };
1425
-
1426
1435
  export function __wbindgen_cb_drop(arg0) {
1427
1436
  const obj = takeObject(arg0).original;
1428
1437
  if (obj.cnt-- == 1) {
@@ -1433,14 +1442,19 @@ export function __wbindgen_cb_drop(arg0) {
1433
1442
  return ret;
1434
1443
  };
1435
1444
 
1436
- export function __wbindgen_error_new(arg0, arg1) {
1437
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1438
- return addHeapObject(ret);
1445
+ export function __wbindgen_is_object(arg0) {
1446
+ const val = getObject(arg0);
1447
+ const ret = typeof(val) === 'object' && val !== null;
1448
+ return ret;
1439
1449
  };
1440
1450
 
1441
- export function __wbindgen_boolean_get(arg0) {
1442
- const v = getObject(arg0);
1443
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1451
+ export function __wbindgen_is_undefined(arg0) {
1452
+ const ret = getObject(arg0) === undefined;
1453
+ return ret;
1454
+ };
1455
+
1456
+ export function __wbindgen_in(arg0, arg1) {
1457
+ const ret = getObject(arg0) in getObject(arg1);
1444
1458
  return ret;
1445
1459
  };
1446
1460
 
@@ -1466,26 +1480,48 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
1466
1480
  return ret;
1467
1481
  };
1468
1482
 
1483
+ export function __wbindgen_boolean_get(arg0) {
1484
+ const v = getObject(arg0);
1485
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1486
+ return ret;
1487
+ };
1488
+
1469
1489
  export function __wbindgen_bigint_from_i64(arg0) {
1470
1490
  const ret = arg0;
1471
1491
  return addHeapObject(ret);
1472
1492
  };
1473
1493
 
1474
- export function __wbindgen_in(arg0, arg1) {
1475
- const ret = getObject(arg0) in getObject(arg1);
1494
+ export function __wbindgen_is_string(arg0) {
1495
+ const ret = typeof(getObject(arg0)) === 'string';
1476
1496
  return ret;
1477
1497
  };
1478
1498
 
1479
- export function __wbindgen_is_undefined(arg0) {
1480
- const ret = getObject(arg0) === undefined;
1499
+ export function __wbg_readyState_2599ffe07703eeea(arg0) {
1500
+ const ret = getObject(arg0).readyState;
1481
1501
  return ret;
1482
1502
  };
1483
1503
 
1484
- export function __wbindgen_is_string(arg0) {
1485
- const ret = typeof(getObject(arg0)) === 'string';
1486
- return ret;
1504
+ export function __wbg_setbinaryType_bfaa2b91f5e49737(arg0, arg1) {
1505
+ getObject(arg0).binaryType = takeObject(arg1);
1487
1506
  };
1488
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
+
1489
1525
  export function __wbg_data_bbdd2d77ab2f7e78(arg0) {
1490
1526
  const ret = getObject(arg0).data;
1491
1527
  return addHeapObject(ret);
@@ -1531,36 +1567,6 @@ export function __wbg_removeEventListener_acfc154b998d806b() { return handleErro
1531
1567
  getObject(arg0).removeEventListener(getStringFromWasm0(arg1, arg2), getObject(arg3));
1532
1568
  }, arguments) };
1533
1569
 
1534
- export function __wbg_readyState_2599ffe07703eeea(arg0) {
1535
- const ret = getObject(arg0).readyState;
1536
- return ret;
1537
- };
1538
-
1539
- export function __wbg_setbinaryType_bfaa2b91f5e49737(arg0, arg1) {
1540
- getObject(arg0).binaryType = takeObject(arg1);
1541
- };
1542
-
1543
- export function __wbg_new_d3ba66fcfe3ebcc6() { return handleError(function (arg0, arg1) {
1544
- const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
1545
- return addHeapObject(ret);
1546
- }, arguments) };
1547
-
1548
- export function __wbg_close_85838c8d50b026da() { return handleError(function (arg0) {
1549
- getObject(arg0).close();
1550
- }, arguments) };
1551
-
1552
- export function __wbg_send_115b7e92eb793bd9() { return handleError(function (arg0, arg1, arg2) {
1553
- getObject(arg0).send(getStringFromWasm0(arg1, arg2));
1554
- }, arguments) };
1555
-
1556
- export function __wbg_send_8e8f1c88be375fc1() { return handleError(function (arg0, arg1, arg2) {
1557
- getObject(arg0).send(getArrayU8FromWasm0(arg1, arg2));
1558
- }, arguments) };
1559
-
1560
- export function __wbg_queueMicrotask_f61ee94ee663068b(arg0) {
1561
- queueMicrotask(getObject(arg0));
1562
- };
1563
-
1564
1570
  export function __wbg_queueMicrotask_f82fc5d1e8f816ae(arg0) {
1565
1571
  const ret = getObject(arg0).queueMicrotask;
1566
1572
  return addHeapObject(ret);
@@ -1571,6 +1577,10 @@ export function __wbindgen_is_function(arg0) {
1571
1577
  return ret;
1572
1578
  };
1573
1579
 
1580
+ export function __wbg_queueMicrotask_f61ee94ee663068b(arg0) {
1581
+ queueMicrotask(getObject(arg0));
1582
+ };
1583
+
1574
1584
  export function __wbg_clearTimeout_76877dbc010e786d(arg0) {
1575
1585
  const ret = clearTimeout(takeObject(arg0));
1576
1586
  return addHeapObject(ret);
@@ -1754,7 +1764,7 @@ export function __wbg_new_70828a4353259d4b(arg0, arg1) {
1754
1764
  const a = state0.a;
1755
1765
  state0.a = 0;
1756
1766
  try {
1757
- return __wbg_adapter_258(a, state0.b, arg0, arg1);
1767
+ return __wbg_adapter_259(a, state0.b, arg0, arg1);
1758
1768
  } finally {
1759
1769
  state0.a = a;
1760
1770
  }
@@ -1835,33 +1845,33 @@ export function __wbindgen_memory() {
1835
1845
  return addHeapObject(ret);
1836
1846
  };
1837
1847
 
1838
- export function __wbindgen_closure_wrapper1809(arg0, arg1, arg2) {
1839
- const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_50);
1848
+ export function __wbindgen_closure_wrapper1900(arg0, arg1, arg2) {
1849
+ const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_50);
1840
1850
  return addHeapObject(ret);
1841
1851
  };
1842
1852
 
1843
- export function __wbindgen_closure_wrapper1811(arg0, arg1, arg2) {
1844
- const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_50);
1853
+ export function __wbindgen_closure_wrapper1902(arg0, arg1, arg2) {
1854
+ const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_53);
1845
1855
  return addHeapObject(ret);
1846
1856
  };
1847
1857
 
1848
- export function __wbindgen_closure_wrapper1813(arg0, arg1, arg2) {
1849
- const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_55);
1858
+ export function __wbindgen_closure_wrapper1904(arg0, arg1, arg2) {
1859
+ const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_53);
1850
1860
  return addHeapObject(ret);
1851
1861
  };
1852
1862
 
1853
- export function __wbindgen_closure_wrapper1815(arg0, arg1, arg2) {
1854
- const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_50);
1863
+ export function __wbindgen_closure_wrapper1906(arg0, arg1, arg2) {
1864
+ const ret = makeMutClosure(arg0, arg1, 768, __wbg_adapter_53);
1855
1865
  return addHeapObject(ret);
1856
1866
  };
1857
1867
 
1858
- export function __wbindgen_closure_wrapper2478(arg0, arg1, arg2) {
1859
- const ret = makeMutClosure(arg0, arg1, 873, __wbg_adapter_60);
1868
+ export function __wbindgen_closure_wrapper2574(arg0, arg1, arg2) {
1869
+ const ret = makeMutClosure(arg0, arg1, 874, __wbg_adapter_60);
1860
1870
  return addHeapObject(ret);
1861
1871
  };
1862
1872
 
1863
- export function __wbindgen_closure_wrapper2518(arg0, arg1, arg2) {
1864
- const ret = makeMutClosure(arg0, arg1, 890, __wbg_adapter_63);
1873
+ export function __wbindgen_closure_wrapper2619(arg0, arg1, arg2) {
1874
+ const ret = makeMutClosure(arg0, arg1, 892, __wbg_adapter_63);
1865
1875
  return addHeapObject(ret);
1866
1876
  };
1867
1877
 
package/lebai_sdk_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "rise0chen<rise0chen@163.com>"
5
5
  ],
6
6
  "description": "lebai_sdk",
7
- "version": "0.2.13",
7
+ "version": "0.2.15",
8
8
  "license": "SEE LICENSE IN LICENSE",
9
9
  "repository": {
10
10
  "type": "git",