lebai_sdk 0.1.6 → 0.1.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 CHANGED
@@ -61,6 +61,13 @@ export class Robot {
61
61
  */
62
62
  pose_trans(from: any, to: any): Promise<any>;
63
63
  /**
64
+ * @param {any} pose
65
+ * @param {any} frame
66
+ * @param {any} delta
67
+ * @returns {Promise<any>}
68
+ */
69
+ pose_add(pose: any, frame: any, delta: any): Promise<any>;
70
+ /**
64
71
  * @param {any} p
65
72
  * @returns {Promise<any>}
66
73
  */
package/lebai_sdk_bg.js CHANGED
@@ -24,6 +24,28 @@ function takeObject(idx) {
24
24
  return ret;
25
25
  }
26
26
 
27
+ function isLikeNone(x) {
28
+ return x === undefined || x === null;
29
+ }
30
+
31
+ let cachedFloat64Memory0 = null;
32
+
33
+ function getFloat64Memory0() {
34
+ if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
35
+ cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
36
+ }
37
+ return cachedFloat64Memory0;
38
+ }
39
+
40
+ let cachedInt32Memory0 = null;
41
+
42
+ function getInt32Memory0() {
43
+ if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
44
+ cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
45
+ }
46
+ return cachedInt32Memory0;
47
+ }
48
+
27
49
  let WASM_VECTOR_LEN = 0;
28
50
 
29
51
  let cachedUint8Memory0 = null;
@@ -90,19 +112,6 @@ function passStringToWasm0(arg, malloc, realloc) {
90
112
  return ptr;
91
113
  }
92
114
 
93
- function isLikeNone(x) {
94
- return x === undefined || x === null;
95
- }
96
-
97
- let cachedInt32Memory0 = null;
98
-
99
- function getInt32Memory0() {
100
- if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
101
- cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
102
- }
103
- return cachedInt32Memory0;
104
- }
105
-
106
115
  function addHeapObject(obj) {
107
116
  if (heap_next === heap.length) heap.push(heap.length + 1);
108
117
  const idx = heap_next;
@@ -122,15 +131,6 @@ function getStringFromWasm0(ptr, len) {
122
131
  return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
123
132
  }
124
133
 
125
- let cachedFloat64Memory0 = null;
126
-
127
- function getFloat64Memory0() {
128
- if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
129
- cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
130
- }
131
- return cachedFloat64Memory0;
132
- }
133
-
134
134
  let cachedBigInt64Memory0 = null;
135
135
 
136
136
  function getBigInt64Memory0() {
@@ -230,19 +230,19 @@ function makeMutClosure(arg0, arg1, dtor, f) {
230
230
  return real;
231
231
  }
232
232
  function __wbg_adapter_48(arg0, arg1, arg2) {
233
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h80d72b14db1618a7(arg0, arg1, addHeapObject(arg2));
233
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0c510e469e54a267(arg0, arg1, addHeapObject(arg2));
234
234
  }
235
235
 
236
- function __wbg_adapter_51(arg0, arg1) {
237
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h88d497eab0f3b918(arg0, arg1);
236
+ function __wbg_adapter_55(arg0, arg1) {
237
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf364facd27a3f442(arg0, arg1);
238
238
  }
239
239
 
240
240
  function __wbg_adapter_58(arg0, arg1, arg2) {
241
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd887ed208cba2028(arg0, arg1, addHeapObject(arg2));
241
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h2f7f6052cd504365(arg0, arg1, addHeapObject(arg2));
242
242
  }
243
243
 
244
244
  function __wbg_adapter_61(arg0, arg1) {
245
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h44930dd69ab3652a(arg0, arg1);
245
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hd957d0ddc4719c47(arg0, arg1);
246
246
  }
247
247
 
248
248
  let cachedUint32Memory0 = null;
@@ -360,8 +360,8 @@ function handleError(f, args) {
360
360
  function getArrayU8FromWasm0(ptr, len) {
361
361
  return getUint8Memory0().subarray(ptr / 1, ptr / 1 + len);
362
362
  }
363
- function __wbg_adapter_219(arg0, arg1, arg2, arg3) {
364
- wasm.wasm_bindgen__convert__closures__invoke2_mut__h7142771c5ab7bea8(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
363
+ function __wbg_adapter_220(arg0, arg1, arg2, arg3) {
364
+ wasm.wasm_bindgen__convert__closures__invoke2_mut__h1f4070fd0aa7ef09(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
365
365
  }
366
366
 
367
367
  /**
@@ -439,6 +439,16 @@ export class Robot {
439
439
  return takeObject(ret);
440
440
  }
441
441
  /**
442
+ * @param {any} pose
443
+ * @param {any} frame
444
+ * @param {any} delta
445
+ * @returns {Promise<any>}
446
+ */
447
+ pose_add(pose, frame, delta) {
448
+ const ret = wasm.robot_pose_add(this.ptr, addHeapObject(pose), addHeapObject(frame), addHeapObject(delta));
449
+ return takeObject(ret);
450
+ }
451
+ /**
442
452
  * @param {any} p
443
453
  * @returns {Promise<any>}
444
454
  */
@@ -1103,6 +1113,13 @@ export function __wbindgen_object_drop_ref(arg0) {
1103
1113
  takeObject(arg0);
1104
1114
  };
1105
1115
 
1116
+ export function __wbindgen_number_get(arg0, arg1) {
1117
+ const obj = getObject(arg1);
1118
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1119
+ getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1120
+ getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1121
+ };
1122
+
1106
1123
  export function __wbindgen_string_get(arg0, arg1) {
1107
1124
  const obj = getObject(arg1);
1108
1125
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -1112,9 +1129,10 @@ export function __wbindgen_string_get(arg0, arg1) {
1112
1129
  getInt32Memory0()[arg0 / 4 + 0] = ptr0;
1113
1130
  };
1114
1131
 
1115
- export function __wbindgen_number_new(arg0) {
1116
- const ret = arg0;
1117
- return addHeapObject(ret);
1132
+ export function __wbindgen_boolean_get(arg0) {
1133
+ const v = getObject(arg0);
1134
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1135
+ return ret;
1118
1136
  };
1119
1137
 
1120
1138
  export function __wbg_robotsubscription_new(arg0) {
@@ -1122,20 +1140,19 @@ export function __wbg_robotsubscription_new(arg0) {
1122
1140
  return addHeapObject(ret);
1123
1141
  };
1124
1142
 
1125
- export function __wbindgen_string_new(arg0, arg1) {
1126
- const ret = getStringFromWasm0(arg0, arg1);
1143
+ export function __wbg_robot_new(arg0) {
1144
+ const ret = Robot.__wrap(arg0);
1127
1145
  return addHeapObject(ret);
1128
1146
  };
1129
1147
 
1130
- export function __wbg_robot_new(arg0) {
1131
- const ret = Robot.__wrap(arg0);
1148
+ export function __wbindgen_number_new(arg0) {
1149
+ const ret = arg0;
1132
1150
  return addHeapObject(ret);
1133
1151
  };
1134
1152
 
1135
- export function __wbindgen_boolean_get(arg0) {
1136
- const v = getObject(arg0);
1137
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1138
- return ret;
1153
+ export function __wbindgen_string_new(arg0, arg1) {
1154
+ const ret = getStringFromWasm0(arg0, arg1);
1155
+ return addHeapObject(ret);
1139
1156
  };
1140
1157
 
1141
1158
  export function __wbindgen_is_bigint(arg0) {
@@ -1153,13 +1170,6 @@ export function __wbindgen_jsval_eq(arg0, arg1) {
1153
1170
  return ret;
1154
1171
  };
1155
1172
 
1156
- export function __wbindgen_number_get(arg0, arg1) {
1157
- const obj = getObject(arg1);
1158
- const ret = typeof(obj) === 'number' ? obj : undefined;
1159
- getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
1160
- getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
1161
- };
1162
-
1163
1173
  export function __wbindgen_is_object(arg0) {
1164
1174
  const val = getObject(arg0);
1165
1175
  const ret = typeof(val) === 'object' && val !== null;
@@ -1419,7 +1429,7 @@ export function __wbg_new_9d3a9ce4282a18a8(arg0, arg1) {
1419
1429
  const a = state0.a;
1420
1430
  state0.a = 0;
1421
1431
  try {
1422
- return __wbg_adapter_219(a, state0.b, arg0, arg1);
1432
+ return __wbg_adapter_220(a, state0.b, arg0, arg1);
1423
1433
  } finally {
1424
1434
  state0.a = a;
1425
1435
  }
@@ -1500,33 +1510,33 @@ export function __wbindgen_memory() {
1500
1510
  return addHeapObject(ret);
1501
1511
  };
1502
1512
 
1503
- export function __wbindgen_closure_wrapper1514(arg0, arg1, arg2) {
1504
- const ret = makeMutClosure(arg0, arg1, 573, __wbg_adapter_48);
1513
+ export function __wbindgen_closure_wrapper1520(arg0, arg1, arg2) {
1514
+ const ret = makeMutClosure(arg0, arg1, 576, __wbg_adapter_48);
1505
1515
  return addHeapObject(ret);
1506
1516
  };
1507
1517
 
1508
- export function __wbindgen_closure_wrapper1516(arg0, arg1, arg2) {
1509
- const ret = makeMutClosure(arg0, arg1, 573, __wbg_adapter_51);
1518
+ export function __wbindgen_closure_wrapper1522(arg0, arg1, arg2) {
1519
+ const ret = makeMutClosure(arg0, arg1, 576, __wbg_adapter_48);
1510
1520
  return addHeapObject(ret);
1511
1521
  };
1512
1522
 
1513
- export function __wbindgen_closure_wrapper1518(arg0, arg1, arg2) {
1514
- const ret = makeMutClosure(arg0, arg1, 573, __wbg_adapter_48);
1523
+ export function __wbindgen_closure_wrapper1524(arg0, arg1, arg2) {
1524
+ const ret = makeMutClosure(arg0, arg1, 576, __wbg_adapter_48);
1515
1525
  return addHeapObject(ret);
1516
1526
  };
1517
1527
 
1518
- export function __wbindgen_closure_wrapper1520(arg0, arg1, arg2) {
1519
- const ret = makeMutClosure(arg0, arg1, 573, __wbg_adapter_48);
1528
+ export function __wbindgen_closure_wrapper1526(arg0, arg1, arg2) {
1529
+ const ret = makeMutClosure(arg0, arg1, 576, __wbg_adapter_55);
1520
1530
  return addHeapObject(ret);
1521
1531
  };
1522
1532
 
1523
- export function __wbindgen_closure_wrapper2003(arg0, arg1, arg2) {
1524
- const ret = makeMutClosure(arg0, arg1, 669, __wbg_adapter_58);
1533
+ export function __wbindgen_closure_wrapper2010(arg0, arg1, arg2) {
1534
+ const ret = makeMutClosure(arg0, arg1, 673, __wbg_adapter_58);
1525
1535
  return addHeapObject(ret);
1526
1536
  };
1527
1537
 
1528
- export function __wbindgen_closure_wrapper2037(arg0, arg1, arg2) {
1529
- const ret = makeMutClosure(arg0, arg1, 683, __wbg_adapter_61);
1538
+ export function __wbindgen_closure_wrapper2044(arg0, arg1, arg2) {
1539
+ const ret = makeMutClosure(arg0, arg1, 687, __wbg_adapter_61);
1530
1540
  return addHeapObject(ret);
1531
1541
  };
1532
1542
 
package/lebai_sdk_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lebai_sdk",
3
3
  "description": "lebai_sdk",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
7
7
  "type": "git",