lebai_sdk 0.2.12 → 0.2.13
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 -2
- package/lebai_sdk_bg.js +24 -24
- package/lebai_sdk_bg.wasm +0 -0
- package/package.json +1 -1
package/lebai_sdk.d.ts
CHANGED
@@ -79,11 +79,11 @@ export class Robot {
|
|
79
79
|
pose_inverse(p: any): Promise<any>;
|
80
80
|
/**
|
81
81
|
* @param {string} name
|
82
|
-
* @param {any} pose
|
82
|
+
* @param {any | undefined} [pose]
|
83
83
|
* @param {string | undefined} [dir]
|
84
84
|
* @returns {Promise<void>}
|
85
85
|
*/
|
86
|
-
save_pose(name: string, pose
|
86
|
+
save_pose(name: string, pose?: any, dir?: string): Promise<void>;
|
87
87
|
/**
|
88
88
|
* @param {string} name
|
89
89
|
* @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 });
|
@@ -473,7 +473,7 @@ export class Robot {
|
|
473
473
|
}
|
474
474
|
/**
|
475
475
|
* @param {string} name
|
476
|
-
* @param {any} pose
|
476
|
+
* @param {any | undefined} [pose]
|
477
477
|
* @param {string | undefined} [dir]
|
478
478
|
* @returns {Promise<void>}
|
479
479
|
*/
|
@@ -482,7 +482,7 @@ export class Robot {
|
|
482
482
|
const len0 = WASM_VECTOR_LEN;
|
483
483
|
var ptr1 = isLikeNone(dir) ? 0 : passStringToWasm0(dir, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
484
484
|
var len1 = WASM_VECTOR_LEN;
|
485
|
-
const ret = wasm.robot_save_pose(this.__wbg_ptr, ptr0, len0, addHeapObject(pose), ptr1, len1);
|
485
|
+
const ret = wasm.robot_save_pose(this.__wbg_ptr, ptr0, len0, isLikeNone(pose) ? 0 : addHeapObject(pose), ptr1, len1);
|
486
486
|
return takeObject(ret);
|
487
487
|
}
|
488
488
|
/**
|
@@ -1378,6 +1378,11 @@ export function __wbindgen_object_drop_ref(arg0) {
|
|
1378
1378
|
takeObject(arg0);
|
1379
1379
|
};
|
1380
1380
|
|
1381
|
+
export function __wbindgen_number_new(arg0) {
|
1382
|
+
const ret = arg0;
|
1383
|
+
return addHeapObject(ret);
|
1384
|
+
};
|
1385
|
+
|
1381
1386
|
export function __wbindgen_string_get(arg0, arg1) {
|
1382
1387
|
const obj = getObject(arg1);
|
1383
1388
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
@@ -1392,8 +1397,8 @@ export function __wbg_robot_new(arg0) {
|
|
1392
1397
|
return addHeapObject(ret);
|
1393
1398
|
};
|
1394
1399
|
|
1395
|
-
export function
|
1396
|
-
const ret = arg0;
|
1400
|
+
export function __wbg_robotsubscription_new(arg0) {
|
1401
|
+
const ret = RobotSubscription.__wrap(arg0);
|
1397
1402
|
return addHeapObject(ret);
|
1398
1403
|
};
|
1399
1404
|
|
@@ -1402,11 +1407,6 @@ export function __wbindgen_string_new(arg0, arg1) {
|
|
1402
1407
|
return addHeapObject(ret);
|
1403
1408
|
};
|
1404
1409
|
|
1405
|
-
export function __wbg_robotsubscription_new(arg0) {
|
1406
|
-
const ret = RobotSubscription.__wrap(arg0);
|
1407
|
-
return addHeapObject(ret);
|
1408
|
-
};
|
1409
|
-
|
1410
1410
|
export function __wbindgen_as_number(arg0) {
|
1411
1411
|
const ret = +getObject(arg0);
|
1412
1412
|
return ret;
|
@@ -1835,32 +1835,32 @@ export function __wbindgen_memory() {
|
|
1835
1835
|
return addHeapObject(ret);
|
1836
1836
|
};
|
1837
1837
|
|
1838
|
-
export function
|
1838
|
+
export function __wbindgen_closure_wrapper1809(arg0, arg1, arg2) {
|
1839
1839
|
const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_50);
|
1840
1840
|
return addHeapObject(ret);
|
1841
1841
|
};
|
1842
1842
|
|
1843
|
-
export function
|
1843
|
+
export function __wbindgen_closure_wrapper1811(arg0, arg1, arg2) {
|
1844
1844
|
const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_50);
|
1845
1845
|
return addHeapObject(ret);
|
1846
1846
|
};
|
1847
1847
|
|
1848
|
-
export function
|
1848
|
+
export function __wbindgen_closure_wrapper1813(arg0, arg1, arg2) {
|
1849
1849
|
const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_55);
|
1850
1850
|
return addHeapObject(ret);
|
1851
1851
|
};
|
1852
1852
|
|
1853
|
-
export function
|
1853
|
+
export function __wbindgen_closure_wrapper1815(arg0, arg1, arg2) {
|
1854
1854
|
const ret = makeMutClosure(arg0, arg1, 763, __wbg_adapter_50);
|
1855
1855
|
return addHeapObject(ret);
|
1856
1856
|
};
|
1857
1857
|
|
1858
|
-
export function
|
1858
|
+
export function __wbindgen_closure_wrapper2478(arg0, arg1, arg2) {
|
1859
1859
|
const ret = makeMutClosure(arg0, arg1, 873, __wbg_adapter_60);
|
1860
1860
|
return addHeapObject(ret);
|
1861
1861
|
};
|
1862
1862
|
|
1863
|
-
export function
|
1863
|
+
export function __wbindgen_closure_wrapper2518(arg0, arg1, arg2) {
|
1864
1864
|
const ret = makeMutClosure(arg0, arg1, 890, __wbg_adapter_63);
|
1865
1865
|
return addHeapObject(ret);
|
1866
1866
|
};
|
package/lebai_sdk_bg.wasm
CHANGED
Binary file
|