@wandelbots/wandelbots-js-react-components 2.54.5-pr.feat-upgrade-safety-bar-to-v2.405.a1124f0 → 2.54.5-pr.feat-upgrade-robot-motions-to-v2.407.98ff8a7

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
@@ -16862,6 +16862,12 @@ const G = function(e, ...t) {
16862
16862
  };
16863
16863
  return o.request(a);
16864
16864
  };
16865
+ }, Ut = {
16866
+ Abb: "abb",
16867
+ Fanuc: "fanuc",
16868
+ Kuka: "kuka",
16869
+ Universalrobots: "universalrobots",
16870
+ Yaskawa: "yaskawa"
16865
16871
  }, T2 = function(e) {
16866
16872
  return {
16867
16873
  addApp: async (t, r, n, o = {}) => {
@@ -23541,7 +23547,6 @@ function xE(e, t, r) {
23541
23547
  r
23542
23548
  );
23543
23549
  }
23544
- const bd = 1e-4;
23545
23550
  function SE(e, t) {
23546
23551
  const r = new hs(
23547
23552
  t[0],
@@ -23557,6 +23562,7 @@ function SE(e, t) {
23557
23562
  let l = a - o;
23558
23563
  return l -= 2 * Math.PI * Math.floor((l + Math.PI) / (2 * Math.PI)), a = o + l, [...i.multiplyScalar(a)];
23559
23564
  }
23565
+ const bd = 1e-4;
23560
23566
  class Gl {
23561
23567
  constructor(t, r, n, o, s, a) {
23562
23568
  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) => {
@@ -23571,7 +23577,7 @@ class Gl {
23571
23577
  l.joint_position,
23572
23578
  bd
23573
23579
  ) || Wn(() => {
23574
- this.rapidlyChangingMotionState = l;
23580
+ this.rapidlyChangingMotionState.joint_position = l.joint_position;
23575
23581
  }), xE(
23576
23582
  this.rapidlyChangingMotionState,
23577
23583
  l,
@@ -28099,7 +28105,7 @@ function Xm({
28099
28105
  }) {
28100
28106
  const o = Ce([]), s = Ce([]), a = Ce(null), { invalidate: i } = cf();
28101
28107
  Re(() => {
28102
- const d = e.state.joint_position.joints.filter(
28108
+ const d = e.joint_position.filter(
28103
28109
  (h) => h !== void 0
28104
28110
  );
28105
28111
  return a.current = new Jp(d, {
@@ -28137,7 +28143,7 @@ function Xm({
28137
28143
  }
28138
28144
  }
28139
28145
  return Zw(() => {
28140
- const d = e.state.joint_position.joints.filter(
28146
+ const d = e.joint_position.filter(
28141
28147
  (h) => h !== void 0
28142
28148
  );
28143
28149
  requestAnimationFrame(() => c(d));
@@ -28191,7 +28197,7 @@ function jR({
28191
28197
  t.map((c, u) => {
28192
28198
  const { a: d, b: h } = a(
28193
28199
  c,
28194
- e.state.joint_position.joints[u] ?? 0
28200
+ e.joint_position[u] ?? 0
28195
28201
  ), p = `dhrobot_J0${u}`;
28196
28202
  return /* @__PURE__ */ g.jsxs("group", { name: p, children: [
28197
28203
  /* @__PURE__ */ g.jsx(
@@ -28947,13 +28953,7 @@ const WR = Ne(
28947
28953
  );
28948
28954
  }
28949
28955
  )
28950
- ), TM = Array(6).fill(2 * Math.PI), Ut = {
28951
- Abb: "abb",
28952
- Fanuc: "fanuc",
28953
- Kuka: "kuka",
28954
- Universalrobots: "universalrobots",
28955
- Yaskawa: "yaskawa"
28956
- }, Yd = {
28956
+ ), TM = Array(6).fill(2 * Math.PI), Yd = {
28957
28957
  [Ut.Abb]: [0, 0, 0, 0, Math.PI / 2, 0, 0],
28958
28958
  [Ut.Fanuc]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
28959
28959
  [Ut.Yaskawa]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],