@wandelbots/wandelbots-js-react-components 2.54.5-pr.feat-upgrade-jogging-to-v2.404.562e886 → 2.54.5-pr.feat-upgrade-robot-motions-to-v2.407.56c347d

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/dist/index.js CHANGED
@@ -16868,6 +16868,12 @@ const G = function(e, ...t) {
16868
16868
  };
16869
16869
  return o.request(a);
16870
16870
  };
16871
+ }, Ut = {
16872
+ Abb: "abb",
16873
+ Fanuc: "fanuc",
16874
+ Kuka: "kuka",
16875
+ Universalrobots: "universalrobots",
16876
+ Yaskawa: "yaskawa"
16871
16877
  }, A2 = function(e) {
16872
16878
  return {
16873
16879
  addApp: async (t, r, n, o = {}) => {
@@ -23547,7 +23553,6 @@ function CE(e, t, r) {
23547
23553
  r
23548
23554
  );
23549
23555
  }
23550
- const bd = 1e-4;
23551
23556
  function wE(e, t) {
23552
23557
  const r = new hs(
23553
23558
  t[0],
@@ -23563,6 +23568,7 @@ function wE(e, t) {
23563
23568
  let l = a - o;
23564
23569
  return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), a = o + l, [...i.multiplyScalar(a)];
23565
23570
  }
23571
+ const bd = 1e-4;
23566
23572
  class Gl {
23567
23573
  constructor(t, r, n, o, s, a) {
23568
23574
  this.nova = t, this.controller = r, this.motionGroup = n, this.description = o, this.initialMotionState = s, this.motionStateSocket = a, this.rapidlyChangingMotionState = s, a.addEventListener("message", (i) => {
@@ -23577,7 +23583,7 @@ class Gl {
23577
23583
  l.joint_position,
23578
23584
  bd
23579
23585
  ) || Wn(() => {
23580
- this.rapidlyChangingMotionState = l;
23586
+ this.rapidlyChangingMotionState.joint_position = l.joint_position;
23581
23587
  }), CE(
23582
23588
  this.rapidlyChangingMotionState,
23583
23589
  l,
@@ -28154,7 +28160,7 @@ function ef({
28154
28160
  }) {
28155
28161
  const o = Ce([]), s = Ce([]), a = Ce(null), { invalidate: i } = df();
28156
28162
  Re(() => {
28157
- const d = e.state.joint_position.joints.filter(
28163
+ const d = e.joint_position.filter(
28158
28164
  (h) => h !== void 0
28159
28165
  );
28160
28166
  return a.current = new Kp(d, {
@@ -28192,7 +28198,7 @@ function ef({
28192
28198
  }
28193
28199
  }
28194
28200
  return rO(() => {
28195
- const d = e.state.joint_position.joints.filter(
28201
+ const d = e.joint_position.filter(
28196
28202
  (h) => h !== void 0
28197
28203
  );
28198
28204
  requestAnimationFrame(() => c(d));
@@ -28246,7 +28252,7 @@ function BR({
28246
28252
  t.map((c, u) => {
28247
28253
  const { a: d, b: h } = a(
28248
28254
  c,
28249
- e.state.joint_position.joints[u] ?? 0
28255
+ e.joint_position[u] ?? 0
28250
28256
  ), p = `dhrobot_J0${u}`;
28251
28257
  return /* @__PURE__ */ g.jsxs("group", { name: p, children: [
28252
28258
  /* @__PURE__ */ g.jsx(
@@ -29002,13 +29008,7 @@ const QR = Ne(
29002
29008
  );
29003
29009
  }
29004
29010
  )
29005
- ), PM = Array(6).fill(2 * Math.PI), Ut = {
29006
- Abb: "abb",
29007
- Fanuc: "fanuc",
29008
- Kuka: "kuka",
29009
- Universalrobots: "universalrobots",
29010
- Yaskawa: "yaskawa"
29011
- }, Kd = {
29011
+ ), PM = Array(6).fill(2 * Math.PI), Kd = {
29012
29012
  [Ut.Abb]: [0, 0, 0, 0, Math.PI / 2, 0, 0],
29013
29013
  [Ut.Fanuc]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
29014
29014
  [Ut.Yaskawa]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],