@wandelbots/wandelbots-js-react-components 4.2.0 → 4.3.0
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/README.md +1 -1
- package/dist/3d.cjs.js +1 -1
- package/dist/3d.es.js +1 -1
- package/dist/{MotionGroupVisualizer-CrLamHYm.js → MotionGroupVisualizer-BgvrTXeT.js} +93 -93
- package/dist/{MotionGroupVisualizer-CrLamHYm.js.map → MotionGroupVisualizer-BgvrTXeT.js.map} +1 -1
- package/dist/{MotionGroupVisualizer-C3CB-L2z.cjs → MotionGroupVisualizer-C_fyiA-X.cjs} +2 -2
- package/dist/{MotionGroupVisualizer-C3CB-L2z.cjs.map → MotionGroupVisualizer-C_fyiA-X.cjs.map} +1 -1
- package/dist/components/jogging/JoggingJointTab.d.ts +1 -1
- package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointValueControl.d.ts +16 -0
- package/dist/components/jogging/JoggingJointValueControl.d.ts.map +1 -0
- package/dist/components/jogging/JoggingStore.d.ts +17 -19
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/core.cjs.js +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.es.js +8 -8
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +10 -10
- package/dist/{interpolation-Cs2pC1zE.js → interpolation-6ZZN4S_x.js} +2 -2
- package/dist/{interpolation-Cs2pC1zE.js.map → interpolation-6ZZN4S_x.js.map} +1 -1
- package/dist/{interpolation-C5OTEwAm.cjs → interpolation-CyO6DaVa.cjs} +2 -2
- package/dist/{interpolation-C5OTEwAm.cjs.map → interpolation-CyO6DaVa.cjs.map} +1 -1
- package/dist/lib/JoggerConnection.d.ts +4 -3
- package/dist/lib/JoggerConnection.d.ts.map +1 -1
- package/dist/{theming-Dk07SE2_.cjs → theming-Cqo-msxF.cjs} +36 -36
- package/dist/theming-Cqo-msxF.cjs.map +1 -0
- package/dist/{theming-C-zvh022.js → theming-gUgI75AD.js} +2915 -2891
- package/dist/theming-gUgI75AD.js.map +1 -0
- package/package.json +2 -2
- package/src/components/jogging/JoggingJointTab.tsx +18 -18
- package/src/components/jogging/{JoggingJointRotationControl.tsx → JoggingJointValueControl.tsx} +51 -28
- package/src/components/jogging/JoggingPanel.tsx +1 -1
- package/src/components/jogging/JoggingStore.ts +42 -12
- package/src/components/robots/MotionGroupVisualizer.tsx +4 -4
- package/src/core.ts +2 -1
- package/src/lib/JoggerConnection.test.ts +4 -2
- package/src/lib/JoggerConnection.ts +8 -4
- package/dist/components/jogging/JoggingJointRotationControl.d.ts +0 -15
- package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +0 -1
- package/dist/theming-C-zvh022.js.map +0 -1
- package/dist/theming-Dk07SE2_.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -98,7 +98,7 @@ Manual robot control interfaces.
|
|
|
98
98
|
**Individual Jogging Controls**
|
|
99
99
|
|
|
100
100
|
- **[JoggingCartesianAxisControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-joggingcartesianaxiscontrol--docs)** - Single-axis cartesian movement
|
|
101
|
-
- **[
|
|
101
|
+
- **[JoggingJointValueControl](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-JoggingJointValueControl--docs)** - Individual joint controls
|
|
102
102
|
- **[VelocitySlider](https://wandelbotsgmbh.github.io/wandelbots-js-react-components/?path=/docs/jogging-velocityslider--docs)** - Speed adjustment interface
|
|
103
103
|
|
|
104
104
|
### Program Execution
|
package/dist/3d.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MotionGroupVisualizer-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./MotionGroupVisualizer-C_fyiA-X.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.LinearAxis=e.LinearAxis;exports.MANUFACTURER_HOME_CONFIGS=e.MANUFACTURER_HOME_CONFIGS;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.PresetEnvironment=e.PresetEnvironment;exports.Robot=e.Robot;exports.RobotCard=e.RobotCard;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedRobot=e.SupportedRobot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.defaultAxisConfig=e.defaultAxisConfig;exports.defaultGetModel=e.defaultGetModel;exports.extractManufacturer=e.extractManufacturer;exports.getDefaultHomeConfig=e.getDefaultHomeConfig;
|
|
2
2
|
//# sourceMappingURL=3d.cjs.js.map
|
package/dist/3d.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as o, L as r, M as s, a as t, P as n, R as i, b as d, S as f, c as u, d as R, T as l, e as C, f as p, g as M, h as S } from "./MotionGroupVisualizer-
|
|
1
|
+
import { C as o, L as r, M as s, a as t, P as n, R as i, b as d, S as f, c as u, d as R, T as l, e as C, f as p, g as M, h as S } from "./MotionGroupVisualizer-BgvrTXeT.js";
|
|
2
2
|
export {
|
|
3
3
|
o as CollisionSceneRenderer,
|
|
4
4
|
r as LinearAxis,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { j as t, e as I } from "./externalizeComponent-Dc3fViZA.js";
|
|
2
2
|
import * as x from "three";
|
|
3
|
-
import { Matrix4 as w, Vector3 as
|
|
3
|
+
import { Matrix4 as w, Vector3 as L, Quaternion as z } from "three";
|
|
4
4
|
import { ConvexGeometry as te } from "three-stdlib";
|
|
5
5
|
import { useThree as ne, useFrame as re, Canvas as N } from "@react-three/fiber";
|
|
6
|
-
import { Environment as ve, Lightformer as
|
|
7
|
-
import { useTheme as _e, Card as
|
|
8
|
-
import { observer as
|
|
9
|
-
import
|
|
10
|
-
import { useTranslation as
|
|
11
|
-
import { N as se, V as ie, c as ae, b as Z, M as v } from "./interpolation-
|
|
6
|
+
import { Environment as ve, Lightformer as F, Line as O, useGLTF as Me, Bounds as H } from "@react-three/drei";
|
|
7
|
+
import { useTheme as _e, Card as Te, Box as b, Typography as Y, Divider as q, Button as X } from "@mui/material";
|
|
8
|
+
import { observer as ke } from "mobx-react-lite";
|
|
9
|
+
import Le, { useRef as R, useEffect as _, useCallback as M, useState as k, Suspense as oe, useMemo as Fe } from "react";
|
|
10
|
+
import { useTranslation as Ge } from "react-i18next";
|
|
11
|
+
import { N as se, V as ie, c as ae, b as Z, M as v } from "./interpolation-6ZZN4S_x.js";
|
|
12
12
|
import { ErrorBoundary as le } from "react-error-boundary";
|
|
13
|
-
function
|
|
13
|
+
function Ve(e) {
|
|
14
14
|
switch (e.shape_type) {
|
|
15
15
|
case "convex_hull":
|
|
16
16
|
return new te(
|
|
@@ -47,7 +47,7 @@ function ke(e) {
|
|
|
47
47
|
return console.warn(`${e.shape_type} is not supported`), new x.BufferGeometry();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Pe({
|
|
51
51
|
name: e,
|
|
52
52
|
collider: r,
|
|
53
53
|
children: n
|
|
@@ -64,19 +64,19 @@ function Le({
|
|
|
64
64
|
i[2]
|
|
65
65
|
).divideScalar(1e3),
|
|
66
66
|
rotation: new x.Euler(o[0], o[1], o[2], "XYZ"),
|
|
67
|
-
geometry:
|
|
67
|
+
geometry: Ve(r.shape),
|
|
68
68
|
children: n
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Se({
|
|
73
73
|
name: e,
|
|
74
74
|
colliders: r,
|
|
75
75
|
meshChildrenProvider: n,
|
|
76
76
|
...i
|
|
77
77
|
}) {
|
|
78
78
|
return /* @__PURE__ */ t.jsx("group", { name: e, ...i, children: Object.entries(r).map(([o, u]) => /* @__PURE__ */ t.jsx(
|
|
79
|
-
|
|
79
|
+
Pe,
|
|
80
80
|
{
|
|
81
81
|
name: o,
|
|
82
82
|
collider: u,
|
|
@@ -91,7 +91,7 @@ function rt({
|
|
|
91
91
|
}) {
|
|
92
92
|
const n = e.colliders;
|
|
93
93
|
return /* @__PURE__ */ t.jsx("group", { children: n && /* @__PURE__ */ t.jsx(
|
|
94
|
-
|
|
94
|
+
Se,
|
|
95
95
|
{
|
|
96
96
|
meshChildrenProvider: r,
|
|
97
97
|
colliders: n
|
|
@@ -99,12 +99,12 @@ function rt({
|
|
|
99
99
|
) });
|
|
100
100
|
}
|
|
101
101
|
function Q() {
|
|
102
|
-
return /* @__PURE__ */ t.jsx(ve, { children: /* @__PURE__ */ t.jsx(
|
|
102
|
+
return /* @__PURE__ */ t.jsx(ve, { children: /* @__PURE__ */ t.jsx(Ae, {}) });
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ae({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
105
105
|
return /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
106
106
|
/* @__PURE__ */ t.jsx(
|
|
107
|
-
|
|
107
|
+
F,
|
|
108
108
|
{
|
|
109
109
|
intensity: 5,
|
|
110
110
|
"rotation-x": Math.PI / 2,
|
|
@@ -113,7 +113,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
113
113
|
}
|
|
114
114
|
),
|
|
115
115
|
/* @__PURE__ */ t.jsx("group", { rotation: [0, 0.5, 0], children: /* @__PURE__ */ t.jsx("group", { children: e.map((r, n) => /* @__PURE__ */ t.jsx(
|
|
116
|
-
|
|
116
|
+
F,
|
|
117
117
|
{
|
|
118
118
|
form: "circle",
|
|
119
119
|
intensity: 5,
|
|
@@ -124,7 +124,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
124
124
|
n
|
|
125
125
|
)) }) }),
|
|
126
126
|
/* @__PURE__ */ t.jsx(
|
|
127
|
-
|
|
127
|
+
F,
|
|
128
128
|
{
|
|
129
129
|
intensity: 40,
|
|
130
130
|
"rotation-y": Math.PI / 2,
|
|
@@ -133,7 +133,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
135
|
/* @__PURE__ */ t.jsx(
|
|
136
|
-
|
|
136
|
+
F,
|
|
137
137
|
{
|
|
138
138
|
intensity: 20,
|
|
139
139
|
"rotation-y": -Math.PI,
|
|
@@ -142,7 +142,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
142
142
|
}
|
|
143
143
|
),
|
|
144
144
|
/* @__PURE__ */ t.jsx(
|
|
145
|
-
|
|
145
|
+
F,
|
|
146
146
|
{
|
|
147
147
|
"rotation-y": Math.PI / 2,
|
|
148
148
|
position: [-5, -1, -1],
|
|
@@ -151,7 +151,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
151
151
|
}
|
|
152
152
|
),
|
|
153
153
|
/* @__PURE__ */ t.jsx(
|
|
154
|
-
|
|
154
|
+
F,
|
|
155
155
|
{
|
|
156
156
|
"rotation-y": -Math.PI / 2,
|
|
157
157
|
position: [10, 1, 0],
|
|
@@ -160,7 +160,7 @@ function Pe({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
162
|
/* @__PURE__ */ t.jsx(
|
|
163
|
-
|
|
163
|
+
F,
|
|
164
164
|
{
|
|
165
165
|
form: "ring",
|
|
166
166
|
color: "white",
|
|
@@ -245,10 +245,10 @@ function st({
|
|
|
245
245
|
}
|
|
246
246
|
) });
|
|
247
247
|
}
|
|
248
|
-
const
|
|
249
|
-
async function
|
|
250
|
-
if (
|
|
251
|
-
return
|
|
248
|
+
const D = /* @__PURE__ */ new Map();
|
|
249
|
+
async function C(e, r) {
|
|
250
|
+
if (D.has(e))
|
|
251
|
+
return D.get(e);
|
|
252
252
|
const n = (async () => {
|
|
253
253
|
var a;
|
|
254
254
|
const i = r || "", o = new se({ instanceUrl: i }), u = o.api.motionGroupModels;
|
|
@@ -263,7 +263,7 @@ async function U(e, r) {
|
|
|
263
263
|
throw console.error("Failed to fetch model:", f), f;
|
|
264
264
|
}
|
|
265
265
|
})();
|
|
266
|
-
return
|
|
266
|
+
return D.set(e, n), n;
|
|
267
267
|
}
|
|
268
268
|
function ce(e) {
|
|
269
269
|
function r(n) {
|
|
@@ -277,7 +277,7 @@ function ue(e) {
|
|
|
277
277
|
function fe(e) {
|
|
278
278
|
return /_J[0-9]+$/.test(e.name);
|
|
279
279
|
}
|
|
280
|
-
function
|
|
280
|
+
function Ce(e, r) {
|
|
281
281
|
let n;
|
|
282
282
|
function i(o) {
|
|
283
283
|
if (ue(o)) {
|
|
@@ -351,18 +351,18 @@ function de({
|
|
|
351
351
|
m();
|
|
352
352
|
}), /* @__PURE__ */ t.jsx("group", { ref: l, children: i });
|
|
353
353
|
}
|
|
354
|
-
const
|
|
354
|
+
const Ue = "line", De = "mesh";
|
|
355
355
|
function ze({
|
|
356
356
|
rapidlyChangingMotionState: e,
|
|
357
357
|
dhParameters: r,
|
|
358
358
|
...n
|
|
359
359
|
}) {
|
|
360
360
|
const i = new w(), o = R([]), u = R([]);
|
|
361
|
-
|
|
361
|
+
Le.useEffect(() => {
|
|
362
362
|
o.current = new Array(r.length).fill(null), u.current = new Array(r.length).fill(null);
|
|
363
363
|
}, [r.length]);
|
|
364
364
|
function a(d, m) {
|
|
365
|
-
const s = new
|
|
365
|
+
const s = new L(), c = new z(), h = new L();
|
|
366
366
|
i.decompose(s, c, h);
|
|
367
367
|
const g = s.clone(), p = new w().makeRotationY(
|
|
368
368
|
d.theta + m * (d.reverse_rotation_direction ? -1 : 1)
|
|
@@ -408,7 +408,7 @@ function ze({
|
|
|
408
408
|
ref: (g) => {
|
|
409
409
|
o.current[m] = g;
|
|
410
410
|
},
|
|
411
|
-
name:
|
|
411
|
+
name: Ue,
|
|
412
412
|
points: [s, c],
|
|
413
413
|
color: "white",
|
|
414
414
|
lineWidth: 5
|
|
@@ -420,7 +420,7 @@ function ze({
|
|
|
420
420
|
ref: (g) => {
|
|
421
421
|
u.current[m] = g;
|
|
422
422
|
},
|
|
423
|
-
name:
|
|
423
|
+
name: De,
|
|
424
424
|
position: c,
|
|
425
425
|
children: [
|
|
426
426
|
/* @__PURE__ */ t.jsx("sphereGeometry", { args: [0.01, 32, 32] }),
|
|
@@ -455,7 +455,7 @@ function Be({
|
|
|
455
455
|
const o = Me(e);
|
|
456
456
|
let u;
|
|
457
457
|
try {
|
|
458
|
-
u =
|
|
458
|
+
u = Ce(o, "robot.glb").gltf;
|
|
459
459
|
} catch (l) {
|
|
460
460
|
throw l;
|
|
461
461
|
}
|
|
@@ -500,7 +500,7 @@ function he({
|
|
|
500
500
|
postModelRender: n,
|
|
501
501
|
...i
|
|
502
502
|
}) {
|
|
503
|
-
const [o, u] =
|
|
503
|
+
const [o, u] = k(null);
|
|
504
504
|
return _(() => {
|
|
505
505
|
(async () => {
|
|
506
506
|
try {
|
|
@@ -562,14 +562,14 @@ const pe = (e, r) => {
|
|
|
562
562
|
rapidlyChangingMotionState: e,
|
|
563
563
|
modelFromController: r,
|
|
564
564
|
dhParameters: n,
|
|
565
|
-
getModel: i =
|
|
565
|
+
getModel: i = C,
|
|
566
566
|
flangeRef: o,
|
|
567
567
|
postModelRender: u,
|
|
568
568
|
transparentColor: a,
|
|
569
569
|
instanceUrl: f,
|
|
570
570
|
...l
|
|
571
571
|
}) => {
|
|
572
|
-
const [d, m] =
|
|
572
|
+
const [d, m] = k(null), s = M((h) => {
|
|
573
573
|
m(h);
|
|
574
574
|
}, []);
|
|
575
575
|
_(() => {
|
|
@@ -622,7 +622,7 @@ const pe = (e, r) => {
|
|
|
622
622
|
);
|
|
623
623
|
function We({
|
|
624
624
|
connectedMotionGroup: e,
|
|
625
|
-
getModel: r =
|
|
625
|
+
getModel: r = C,
|
|
626
626
|
flangeRef: n,
|
|
627
627
|
transparentColor: i,
|
|
628
628
|
postModelRender: o,
|
|
@@ -643,7 +643,7 @@ function We({
|
|
|
643
643
|
) : null;
|
|
644
644
|
}
|
|
645
645
|
const it = I(
|
|
646
|
-
|
|
646
|
+
ke(
|
|
647
647
|
({
|
|
648
648
|
robotName: e,
|
|
649
649
|
programState: r,
|
|
@@ -658,31 +658,31 @@ const it = I(
|
|
|
658
658
|
className: m
|
|
659
659
|
}) => {
|
|
660
660
|
var W;
|
|
661
|
-
const s = _e(), { t: c } =
|
|
661
|
+
const s = _e(), { t: c } = Ge(), [h, g] = k(!1), p = R(null), j = R(null), [y, U] = k(!1), [G, be] = k({ width: 400, height: 600 }), [Je, Re] = k(0);
|
|
662
662
|
_(() => {
|
|
663
|
-
const
|
|
663
|
+
const A = () => {
|
|
664
664
|
if (j.current) {
|
|
665
|
-
const { offsetWidth:
|
|
666
|
-
|
|
665
|
+
const { offsetWidth: J, offsetHeight: K } = j.current;
|
|
666
|
+
U(J > K), be({ width: J, height: K });
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
|
-
|
|
670
|
-
const
|
|
671
|
-
return j.current &&
|
|
672
|
-
|
|
669
|
+
A();
|
|
670
|
+
const $ = new ResizeObserver(A);
|
|
671
|
+
return j.current && $.observe(j.current), () => {
|
|
672
|
+
$.disconnect();
|
|
673
673
|
};
|
|
674
674
|
}, []);
|
|
675
675
|
const E = M(() => {
|
|
676
|
-
Re((
|
|
677
|
-
}, []),
|
|
676
|
+
Re((A) => A + 1);
|
|
677
|
+
}, []), V = M(() => {
|
|
678
678
|
!o || !u || (g(!0), u());
|
|
679
|
-
}, [o, u]),
|
|
679
|
+
}, [o, u]), P = M(() => {
|
|
680
680
|
!o || !a || (g(!1), a());
|
|
681
681
|
}, [o, a]), B = M(() => {
|
|
682
682
|
h && a && (g(!1), a());
|
|
683
|
-
}, [h, a]),
|
|
683
|
+
}, [h, a]), T = y ? G.width < 350 : G.height < 200, S = y ? G.height < 310 : G.height < 450;
|
|
684
684
|
return /* @__PURE__ */ t.jsx(
|
|
685
|
-
|
|
685
|
+
Te,
|
|
686
686
|
{
|
|
687
687
|
ref: j,
|
|
688
688
|
className: m,
|
|
@@ -718,9 +718,9 @@ const it = I(
|
|
|
718
718
|
mr: { xs: 0.75, sm: 1, md: 1.5 },
|
|
719
719
|
overflow: "hidden",
|
|
720
720
|
// Prevent content from affecting container size
|
|
721
|
-
display:
|
|
721
|
+
display: T ? "none" : "block"
|
|
722
722
|
},
|
|
723
|
-
children: !
|
|
723
|
+
children: !T && /* @__PURE__ */ t.jsxs(
|
|
724
724
|
N,
|
|
725
725
|
{
|
|
726
726
|
orthographic: !0,
|
|
@@ -763,7 +763,7 @@ const it = I(
|
|
|
763
763
|
display: "flex",
|
|
764
764
|
flexDirection: "column",
|
|
765
765
|
justifyContent: "flex-start",
|
|
766
|
-
width:
|
|
766
|
+
width: T ? "100%" : "50%"
|
|
767
767
|
},
|
|
768
768
|
children: [
|
|
769
769
|
/* @__PURE__ */ t.jsxs(
|
|
@@ -799,7 +799,7 @@ const it = I(
|
|
|
799
799
|
justifyContent: "space-between"
|
|
800
800
|
},
|
|
801
801
|
children: [
|
|
802
|
-
!
|
|
802
|
+
!S && d && /* @__PURE__ */ t.jsxs(b, { children: [
|
|
803
803
|
/* @__PURE__ */ t.jsx(d, {}),
|
|
804
804
|
/* @__PURE__ */ t.jsx(
|
|
805
805
|
q,
|
|
@@ -817,7 +817,7 @@ const it = I(
|
|
|
817
817
|
b,
|
|
818
818
|
{
|
|
819
819
|
sx: {
|
|
820
|
-
mt: !
|
|
820
|
+
mt: !S && d ? "auto" : 0
|
|
821
821
|
},
|
|
822
822
|
children: /* @__PURE__ */ t.jsx(
|
|
823
823
|
b,
|
|
@@ -836,11 +836,11 @@ const it = I(
|
|
|
836
836
|
color: "secondary",
|
|
837
837
|
size: "small",
|
|
838
838
|
disabled: !o,
|
|
839
|
-
onMouseDown:
|
|
840
|
-
onMouseUp:
|
|
839
|
+
onMouseDown: V,
|
|
840
|
+
onMouseUp: P,
|
|
841
841
|
onMouseLeave: B,
|
|
842
|
-
onTouchStart:
|
|
843
|
-
onTouchEnd:
|
|
842
|
+
onTouchStart: V,
|
|
843
|
+
onTouchEnd: P,
|
|
844
844
|
sx: {
|
|
845
845
|
textTransform: "none",
|
|
846
846
|
px: 1.5,
|
|
@@ -884,15 +884,15 @@ const it = I(
|
|
|
884
884
|
b,
|
|
885
885
|
{
|
|
886
886
|
sx: {
|
|
887
|
-
flex:
|
|
887
|
+
flex: T ? 0 : 1,
|
|
888
888
|
position: "relative",
|
|
889
|
-
minHeight:
|
|
890
|
-
height:
|
|
889
|
+
minHeight: T ? 0 : { xs: 120, sm: 150, md: 200 },
|
|
890
|
+
height: T ? 0 : "auto",
|
|
891
891
|
borderRadius: 1,
|
|
892
892
|
overflow: "hidden",
|
|
893
|
-
display:
|
|
893
|
+
display: T ? "none" : "block"
|
|
894
894
|
},
|
|
895
|
-
children: !
|
|
895
|
+
children: !T && /* @__PURE__ */ t.jsxs(
|
|
896
896
|
N,
|
|
897
897
|
{
|
|
898
898
|
orthographic: !0,
|
|
@@ -926,7 +926,7 @@ const it = I(
|
|
|
926
926
|
}
|
|
927
927
|
),
|
|
928
928
|
/* @__PURE__ */ t.jsxs(b, { children: [
|
|
929
|
-
!
|
|
929
|
+
!S && d && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
930
930
|
/* @__PURE__ */ t.jsx(d, {}),
|
|
931
931
|
/* @__PURE__ */ t.jsx(
|
|
932
932
|
q,
|
|
@@ -946,7 +946,7 @@ const it = I(
|
|
|
946
946
|
sx: {
|
|
947
947
|
display: "flex",
|
|
948
948
|
justifyContent: "flex-start",
|
|
949
|
-
mt: !
|
|
949
|
+
mt: !S && d ? { xs: 1, sm: 2, md: 5 } : { xs: 0.5, sm: 1, md: 2 },
|
|
950
950
|
mb: { xs: 0.5, sm: 0.75, md: 1 }
|
|
951
951
|
},
|
|
952
952
|
children: /* @__PURE__ */ t.jsx(
|
|
@@ -957,11 +957,11 @@ const it = I(
|
|
|
957
957
|
color: "secondary",
|
|
958
958
|
size: "small",
|
|
959
959
|
disabled: !o,
|
|
960
|
-
onMouseDown:
|
|
961
|
-
onMouseUp:
|
|
960
|
+
onMouseDown: V,
|
|
961
|
+
onMouseUp: P,
|
|
962
962
|
onMouseLeave: B,
|
|
963
|
-
onTouchStart:
|
|
964
|
-
onTouchEnd:
|
|
963
|
+
onTouchStart: V,
|
|
964
|
+
onTouchEnd: P,
|
|
965
965
|
sx: {
|
|
966
966
|
textTransform: "none",
|
|
967
967
|
px: 1.5,
|
|
@@ -1055,24 +1055,24 @@ function je({
|
|
|
1055
1055
|
).multiply(new w().makeRotationX(p.alpha));
|
|
1056
1056
|
m.multiply(y);
|
|
1057
1057
|
}
|
|
1058
|
-
const s = new
|
|
1058
|
+
const s = new L(), c = new z(), h = new L();
|
|
1059
1059
|
return m.decompose(s, c, h), s;
|
|
1060
1060
|
}
|
|
1061
1061
|
const f = a(e.joint_position);
|
|
1062
1062
|
function l(d, m) {
|
|
1063
1063
|
i.identity();
|
|
1064
|
-
let s = new
|
|
1064
|
+
let s = new L();
|
|
1065
1065
|
for (let p = 0; p < r.length; p++) {
|
|
1066
|
-
const j = m[p] ?? 0, y = r[p],
|
|
1066
|
+
const j = m[p] ?? 0, y = r[p], U = new w().makeRotationY(y.theta).multiply(
|
|
1067
1067
|
new w().makeTranslation(
|
|
1068
1068
|
y.a / 1e3,
|
|
1069
1069
|
(y.d + j * (y.reverse_rotation_direction ? -1 : 1)) / 1e3,
|
|
1070
1070
|
0
|
|
1071
1071
|
)
|
|
1072
1072
|
).multiply(new w().makeRotationX(y.alpha));
|
|
1073
|
-
i.multiply(
|
|
1073
|
+
i.multiply(U);
|
|
1074
1074
|
}
|
|
1075
|
-
const c = new
|
|
1075
|
+
const c = new L(), h = new z(), g = new L();
|
|
1076
1076
|
if (i.decompose(c, h, g), s = c, o.current && o.current.position.set(s.x, s.y, s.z), u.current) {
|
|
1077
1077
|
const p = u.current.geometry;
|
|
1078
1078
|
p && p.setPositions && p.setPositions([0, 0, 0, s.x, s.y, s.z]);
|
|
@@ -1093,7 +1093,7 @@ function je({
|
|
|
1093
1093
|
O,
|
|
1094
1094
|
{
|
|
1095
1095
|
ref: u,
|
|
1096
|
-
points: [new
|
|
1096
|
+
points: [new L(0, 0, 0), f],
|
|
1097
1097
|
color: "White",
|
|
1098
1098
|
lineWidth: 5
|
|
1099
1099
|
}
|
|
@@ -1111,14 +1111,14 @@ const we = I(
|
|
|
1111
1111
|
rapidlyChangingMotionState: e,
|
|
1112
1112
|
modelFromController: r,
|
|
1113
1113
|
dhParameters: n,
|
|
1114
|
-
getModel: i =
|
|
1114
|
+
getModel: i = C,
|
|
1115
1115
|
flangeRef: o,
|
|
1116
1116
|
postModelRender: u,
|
|
1117
1117
|
transparentColor: a,
|
|
1118
1118
|
instanceUrl: f,
|
|
1119
1119
|
...l
|
|
1120
1120
|
}) => {
|
|
1121
|
-
const [d, m] =
|
|
1121
|
+
const [d, m] = k(null), s = M((h) => {
|
|
1122
1122
|
m(h);
|
|
1123
1123
|
}, []);
|
|
1124
1124
|
_(() => {
|
|
@@ -1171,7 +1171,7 @@ const we = I(
|
|
|
1171
1171
|
);
|
|
1172
1172
|
function lt({
|
|
1173
1173
|
connectedMotionGroup: e,
|
|
1174
|
-
getModel: r =
|
|
1174
|
+
getModel: r = C,
|
|
1175
1175
|
flangeRef: n,
|
|
1176
1176
|
transparentColor: i,
|
|
1177
1177
|
postModelRender: o,
|
|
@@ -1224,7 +1224,7 @@ const ee = {
|
|
|
1224
1224
|
0
|
|
1225
1225
|
]
|
|
1226
1226
|
};
|
|
1227
|
-
function
|
|
1227
|
+
function $e(e) {
|
|
1228
1228
|
const [r] = e.split("_");
|
|
1229
1229
|
switch (r) {
|
|
1230
1230
|
case "ABB":
|
|
@@ -1242,7 +1242,7 @@ function Ke(e) {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
1244
|
function ct(e, r) {
|
|
1245
|
-
const n =
|
|
1245
|
+
const n = $e(e);
|
|
1246
1246
|
return n && n in ee ? ee[n] : r || null;
|
|
1247
1247
|
}
|
|
1248
1248
|
const ut = I((e) => {
|
|
@@ -1251,9 +1251,9 @@ const ut = I((e) => {
|
|
|
1251
1251
|
inverseSolver: n,
|
|
1252
1252
|
modelFromController: i,
|
|
1253
1253
|
...o
|
|
1254
|
-
} = e, [u, a] =
|
|
1254
|
+
} = e, [u, a] = k(
|
|
1255
1255
|
n
|
|
1256
|
-
), [, f] =
|
|
1256
|
+
), [, f] = k(!1), l = M(async () => {
|
|
1257
1257
|
const m = new se({ instanceUrl: r });
|
|
1258
1258
|
try {
|
|
1259
1259
|
const s = await m.api.motionGroupModels.getMotionGroupKinematicModel(
|
|
@@ -1271,13 +1271,13 @@ const ut = I((e) => {
|
|
|
1271
1271
|
_(() => {
|
|
1272
1272
|
n === void 0 && !!i && !!r && l();
|
|
1273
1273
|
}, [n, i, l, r]);
|
|
1274
|
-
const d =
|
|
1274
|
+
const d = Fe(() => [
|
|
1275
1275
|
"KUKA_DKP250",
|
|
1276
1276
|
"KUKA_DKP500_2",
|
|
1277
|
-
"
|
|
1278
|
-
"
|
|
1279
|
-
"
|
|
1280
|
-
].
|
|
1277
|
+
"Yaskawa_TURN1",
|
|
1278
|
+
"Yaskawa_TURN2",
|
|
1279
|
+
"Yaskawa_TURN3"
|
|
1280
|
+
].some((m) => m.toLowerCase() === i.toLowerCase()), [i]);
|
|
1281
1281
|
return u || d ? /* @__PURE__ */ t.jsx(
|
|
1282
1282
|
ge,
|
|
1283
1283
|
{
|
|
@@ -1307,8 +1307,8 @@ export {
|
|
|
1307
1307
|
we as c,
|
|
1308
1308
|
ge as d,
|
|
1309
1309
|
at as e,
|
|
1310
|
-
|
|
1311
|
-
|
|
1310
|
+
C as f,
|
|
1311
|
+
$e as g,
|
|
1312
1312
|
ct as h
|
|
1313
1313
|
};
|
|
1314
|
-
//# sourceMappingURL=MotionGroupVisualizer-
|
|
1314
|
+
//# sourceMappingURL=MotionGroupVisualizer-BgvrTXeT.js.map
|