@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.be439c7
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/RobotCard.d.ts +1 -1
- 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/RobotCard.tsx +1 -1
- 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
|
@@ -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.
|
|
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.
|
|
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.
|
|
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),
|
|
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],
|