@wandelbots/wandelbots-js-react-components 2.54.5-pr.feat-upgrade-safety-bar-to-v2.405.d92d77f → 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/components/ProgramStateIndicator.d.ts +3 -3
- package/dist/components/ProgramStateIndicator.d.ts.map +1 -1
- package/dist/components/RobotCard.d.ts +4 -3
- package/dist/components/RobotCard.d.ts.map +1 -1
- package/dist/components/robots/DHRobot.d.ts.map +1 -1
- package/dist/components/robots/Robot.d.ts +1 -1
- package/dist/components/robots/Robot.d.ts.map +1 -1
- package/dist/components/robots/RobotAnimator.d.ts +2 -2
- package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
- package/dist/components/robots/SupportedRobot.d.ts +3 -3
- package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
- package/dist/components/robots/manufacturerHomePositions.d.ts +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/lib/ConnectedMotionGroup.d.ts +7 -1
- package/dist/lib/ConnectedMotionGroup.d.ts.map +1 -1
- package/dist/lib/MotionStreamConnection.d.ts.map +1 -1
- package/dist/lib/motionStateUpdate.d.ts +2 -0
- package/dist/lib/motionStateUpdate.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ProgramStateIndicator.tsx +3 -6
- package/src/components/RobotCard.tsx +4 -7
- package/src/components/robots/DHRobot.tsx +2 -3
- package/src/components/robots/Robot.tsx +1 -1
- package/src/components/robots/RobotAnimator.test.tsx +7 -22
- package/src/components/robots/RobotAnimator.tsx +8 -13
- package/src/components/robots/SupportedRobot.tsx +3 -6
- package/src/components/robots/manufacturerHomePositions.ts +1 -1
- package/src/lib/ConnectedMotionGroup.ts +22 -4
- package/src/lib/MotionStreamConnection.ts +7 -42
- package/src/lib/motionStateUpdate.ts +41 -0
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.
|
|
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.
|
|
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.
|
|
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),
|
|
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],
|