@wandelbots/wandelbots-js-react-components 3.5.1 → 3.6.0-pr.feat-model-retrieval-from-rdp.463.014e7d3
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 +18 -0
- package/dist/3d.cjs.js +1 -1
- package/dist/3d.es.js +1 -1
- package/dist/{LoadingCover-Dr9hDTku.js → LoadingCover-6gWr11KP.js} +11 -10
- package/dist/{LoadingCover-Dr9hDTku.js.map → LoadingCover-6gWr11KP.js.map} +1 -1
- package/dist/LoadingCover-CukpS_aj.cjs +2 -0
- package/dist/{LoadingCover-r2yhJZF9.cjs.map → LoadingCover-CukpS_aj.cjs.map} +1 -1
- package/dist/{WandelscriptEditor-DnJvITTA.js → WandelscriptEditor-7eN-Yw7m.js} +3 -3
- package/dist/{WandelscriptEditor-DnJvITTA.js.map → WandelscriptEditor-7eN-Yw7m.js.map} +1 -1
- package/dist/WandelscriptEditor-D6_vS5Uk.cjs +2 -0
- package/dist/{WandelscriptEditor-Dj7TBCkF.cjs.map → WandelscriptEditor-D6_vS5Uk.cjs.map} +1 -1
- package/dist/auth0-spa-js.production.esm-BMSlxZC5.js +3877 -0
- package/dist/auth0-spa-js.production.esm-BMSlxZC5.js.map +1 -0
- package/dist/auth0-spa-js.production.esm-DZ6lsBvD.cjs +5 -0
- package/dist/auth0-spa-js.production.esm-DZ6lsBvD.cjs.map +1 -0
- package/dist/components/RobotCard.d.ts +1 -1
- package/dist/components/RobotCard.d.ts.map +1 -1
- package/dist/components/robots/GenericRobot.d.ts +2 -2
- package/dist/components/robots/GenericRobot.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/SupportedRobot.d.ts +1 -1
- package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
- package/dist/components/robots/robotModelLogic.d.ts +1 -1
- package/dist/components/robots/robotModelLogic.d.ts.map +1 -1
- package/dist/core.cjs.js +1 -1
- package/dist/core.es.js +4 -4
- package/dist/externalizeComponent-CkVWk2F_.cjs +24 -0
- package/dist/externalizeComponent-CkVWk2F_.cjs.map +1 -0
- package/dist/externalizeComponent-Dc3fViZA.js +489 -0
- package/dist/externalizeComponent-Dc3fViZA.js.map +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +6 -6
- package/dist/interpolation-DAXKfoDS.cjs +20 -0
- package/dist/interpolation-DAXKfoDS.cjs.map +1 -0
- package/dist/interpolation-DcPbemBD.js +6924 -0
- package/dist/interpolation-DcPbemBD.js.map +1 -0
- package/dist/lib/JoggerConnection.d.ts.map +1 -1
- package/dist/manufacturerHomePositions-Badt_vO2.cjs +2 -0
- package/dist/manufacturerHomePositions-Badt_vO2.cjs.map +1 -0
- package/dist/{manufacturerHomePositions-CgaG5vaK.js → manufacturerHomePositions-CtUNJexK.js} +350 -290
- package/dist/manufacturerHomePositions-CtUNJexK.js.map +1 -0
- package/dist/{theming-Coh4zx7d.js → theming-B7ojcJTM.js} +4802 -6245
- package/dist/theming-B7ojcJTM.js.map +1 -0
- package/dist/theming-C9apy9Ov.cjs +115 -0
- package/dist/theming-C9apy9Ov.cjs.map +1 -0
- package/dist/wandelscript.cjs.js +1 -1
- package/dist/wandelscript.es.js +1 -1
- package/package.json +14 -4
- package/src/components/RobotCard.tsx +1 -1
- package/src/components/robots/GenericRobot.tsx +98 -36
- package/src/components/robots/Robot.tsx +1 -1
- package/src/components/robots/SupportedRobot.tsx +11 -3
- package/src/components/robots/robotModelLogic.ts +40 -6
- package/src/env.d.ts +3 -0
- package/src/lib/JoggerConnection.ts +10 -10
- package/src/lib/MotionStreamConnection.ts +1 -1
- package/dist/LoadingCover-r2yhJZF9.cjs +0 -2
- package/dist/WandelscriptEditor-Dj7TBCkF.cjs +0 -2
- package/dist/auth0-spa-js.production.esm-DL9f1uDJ.js +0 -1438
- package/dist/auth0-spa-js.production.esm-DL9f1uDJ.js.map +0 -1
- package/dist/auth0-spa-js.production.esm-DTiWXa87.cjs +0 -5
- package/dist/auth0-spa-js.production.esm-DTiWXa87.cjs.map +0 -1
- package/dist/index-CAib4NKw.js +0 -2261
- package/dist/index-CAib4NKw.js.map +0 -1
- package/dist/index-CqMZL0FV.cjs +0 -2
- package/dist/index-CqMZL0FV.cjs.map +0 -1
- package/dist/index-CxasuX80.js +0 -5212
- package/dist/index-CxasuX80.js.map +0 -1
- package/dist/index-DxwppshT.cjs +0 -29
- package/dist/index-DxwppshT.cjs.map +0 -1
- package/dist/manufacturerHomePositions-Ca80ycLi.cjs +0 -2
- package/dist/manufacturerHomePositions-Ca80ycLi.cjs.map +0 -1
- package/dist/manufacturerHomePositions-CgaG5vaK.js.map +0 -1
- package/dist/theming-Coh4zx7d.js.map +0 -1
- package/dist/theming-D4ztsmTr.cjs +0 -133
- package/dist/theming-D4ztsmTr.cjs.map +0 -1
package/dist/{manufacturerHomePositions-CgaG5vaK.js → manufacturerHomePositions-CtUNJexK.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { j as t, e as
|
|
2
|
-
import * as
|
|
3
|
-
import { Matrix4 as
|
|
1
|
+
import { j as t, e as K } from "./externalizeComponent-Dc3fViZA.js";
|
|
2
|
+
import * as m from "three";
|
|
3
|
+
import { Matrix4 as I, Vector3 as E, Quaternion as ie } from "three";
|
|
4
4
|
import { ConvexGeometry as X } from "three-stdlib";
|
|
5
|
-
import { useThree as ae, useFrame as le, Canvas as
|
|
6
|
-
import { Environment as ce, Lightformer as
|
|
7
|
-
import { useTheme as fe, Card as de, Box as y, Typography as
|
|
5
|
+
import { useThree as ae, useFrame as le, Canvas as B } from "@react-three/fiber";
|
|
6
|
+
import { Environment as ce, Lightformer as R, Line as Z, useGLTF as ue, Bounds as W } from "@react-three/drei";
|
|
7
|
+
import { useTheme as fe, Card as de, Box as y, Typography as $, Divider as N, Button as H } from "@mui/material";
|
|
8
8
|
import { observer as he } from "mobx-react-lite";
|
|
9
|
-
import me, { useRef as
|
|
9
|
+
import me, { useRef as v, useEffect as F, useState as _, useCallback as G, Suspense as pe } from "react";
|
|
10
10
|
import { useTranslation as xe } from "react-i18next";
|
|
11
|
-
import {
|
|
12
|
-
import { ErrorBoundary as
|
|
13
|
-
function
|
|
11
|
+
import { N as ge, V as ye, c as je, b as J, M as j } from "./interpolation-DcPbemBD.js";
|
|
12
|
+
import { ErrorBoundary as we } from "react-error-boundary";
|
|
13
|
+
function be(e) {
|
|
14
14
|
switch (e.shape_type) {
|
|
15
15
|
case "convex_hull":
|
|
16
16
|
return new X(
|
|
17
17
|
e.vertices.map(
|
|
18
|
-
(r) => new
|
|
18
|
+
(r) => new m.Vector3(
|
|
19
19
|
r[0] / 1e3,
|
|
20
20
|
r[1] / 1e3,
|
|
21
21
|
r[2] / 1e3
|
|
@@ -23,88 +23,88 @@ function we(e) {
|
|
|
23
23
|
)
|
|
24
24
|
);
|
|
25
25
|
case "box":
|
|
26
|
-
return new
|
|
26
|
+
return new m.BoxGeometry(
|
|
27
27
|
e.size_x / 1e3,
|
|
28
28
|
e.size_y / 1e3,
|
|
29
29
|
e.size_z / 1e3
|
|
30
30
|
);
|
|
31
31
|
case "sphere":
|
|
32
|
-
return new
|
|
32
|
+
return new m.SphereGeometry(e.radius / 1e3);
|
|
33
33
|
case "capsule":
|
|
34
|
-
return new
|
|
34
|
+
return new m.CapsuleGeometry(
|
|
35
35
|
e.radius / 1e3,
|
|
36
36
|
e.cylinder_height / 1e3
|
|
37
37
|
);
|
|
38
38
|
case "cylinder":
|
|
39
|
-
return new
|
|
39
|
+
return new m.CylinderGeometry(
|
|
40
40
|
e.radius / 1e3,
|
|
41
41
|
e.radius / 1e3,
|
|
42
42
|
e.height / 1e3
|
|
43
43
|
);
|
|
44
44
|
case "rectangle":
|
|
45
|
-
return new
|
|
45
|
+
return new m.BoxGeometry(e.size_x / 1e3, e.size_y / 1e3, 0);
|
|
46
46
|
default:
|
|
47
|
-
return console.warn(`${e.shape_type} is not supported`), new
|
|
47
|
+
return console.warn(`${e.shape_type} is not supported`), new m.BufferGeometry();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Me({
|
|
51
51
|
name: e,
|
|
52
52
|
collider: n,
|
|
53
53
|
children: r
|
|
54
54
|
}) {
|
|
55
|
-
var
|
|
56
|
-
const s = ((
|
|
55
|
+
var c, a;
|
|
56
|
+
const s = ((c = n.pose) == null ? void 0 : c.position) ?? [0, 0, 0], o = ((a = n.pose) == null ? void 0 : a.orientation) ?? [0, 0, 0];
|
|
57
57
|
return n.margin && console.warn(`${e} margin is not supported`), /* @__PURE__ */ t.jsx(
|
|
58
58
|
"mesh",
|
|
59
59
|
{
|
|
60
60
|
name: e,
|
|
61
|
-
position: new
|
|
61
|
+
position: new m.Vector3(
|
|
62
62
|
s[0],
|
|
63
63
|
s[1],
|
|
64
64
|
s[2]
|
|
65
65
|
).divideScalar(1e3),
|
|
66
|
-
rotation: new
|
|
67
|
-
geometry:
|
|
66
|
+
rotation: new m.Euler(o[0], o[1], o[2], "XYZ"),
|
|
67
|
+
geometry: be(n.shape),
|
|
68
68
|
children: r
|
|
69
69
|
}
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Re({
|
|
73
73
|
name: e,
|
|
74
74
|
colliders: n,
|
|
75
75
|
meshChildrenProvider: r,
|
|
76
76
|
...s
|
|
77
77
|
}) {
|
|
78
|
-
return /* @__PURE__ */ t.jsx("group", { name: e, ...s, children: Object.entries(n).map(([o,
|
|
79
|
-
|
|
78
|
+
return /* @__PURE__ */ t.jsx("group", { name: e, ...s, children: Object.entries(n).map(([o, c]) => /* @__PURE__ */ t.jsx(
|
|
79
|
+
Me,
|
|
80
80
|
{
|
|
81
81
|
name: o,
|
|
82
|
-
collider:
|
|
83
|
-
children: r(o,
|
|
82
|
+
collider: c,
|
|
83
|
+
children: r(o, c)
|
|
84
84
|
},
|
|
85
85
|
o
|
|
86
86
|
)) });
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Qe({
|
|
89
89
|
scene: e,
|
|
90
90
|
meshChildrenProvider: n
|
|
91
91
|
}) {
|
|
92
92
|
const r = e.colliders;
|
|
93
93
|
return /* @__PURE__ */ t.jsx("group", { children: r && /* @__PURE__ */ t.jsx(
|
|
94
|
-
|
|
94
|
+
Re,
|
|
95
95
|
{
|
|
96
96
|
meshChildrenProvider: n,
|
|
97
97
|
colliders: r
|
|
98
98
|
}
|
|
99
99
|
) });
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Y() {
|
|
102
102
|
return /* @__PURE__ */ t.jsx(ce, { children: /* @__PURE__ */ t.jsx(ve, {}) });
|
|
103
103
|
}
|
|
104
104
|
function ve({ 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
|
+
R,
|
|
108
108
|
{
|
|
109
109
|
intensity: 5,
|
|
110
110
|
"rotation-x": Math.PI / 2,
|
|
@@ -113,7 +113,7 @@ function ve({ 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((n, r) => /* @__PURE__ */ t.jsx(
|
|
116
|
-
|
|
116
|
+
R,
|
|
117
117
|
{
|
|
118
118
|
form: "circle",
|
|
119
119
|
intensity: 5,
|
|
@@ -124,7 +124,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
124
124
|
r
|
|
125
125
|
)) }) }),
|
|
126
126
|
/* @__PURE__ */ t.jsx(
|
|
127
|
-
|
|
127
|
+
R,
|
|
128
128
|
{
|
|
129
129
|
intensity: 40,
|
|
130
130
|
"rotation-y": Math.PI / 2,
|
|
@@ -133,7 +133,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
135
|
/* @__PURE__ */ t.jsx(
|
|
136
|
-
|
|
136
|
+
R,
|
|
137
137
|
{
|
|
138
138
|
intensity: 20,
|
|
139
139
|
"rotation-y": -Math.PI,
|
|
@@ -142,7 +142,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
142
142
|
}
|
|
143
143
|
),
|
|
144
144
|
/* @__PURE__ */ t.jsx(
|
|
145
|
-
|
|
145
|
+
R,
|
|
146
146
|
{
|
|
147
147
|
"rotation-y": Math.PI / 2,
|
|
148
148
|
position: [-5, -1, -1],
|
|
@@ -151,7 +151,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
151
151
|
}
|
|
152
152
|
),
|
|
153
153
|
/* @__PURE__ */ t.jsx(
|
|
154
|
-
|
|
154
|
+
R,
|
|
155
155
|
{
|
|
156
156
|
"rotation-y": -Math.PI / 2,
|
|
157
157
|
position: [10, 1, 0],
|
|
@@ -160,7 +160,7 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
162
|
/* @__PURE__ */ t.jsx(
|
|
163
|
-
|
|
163
|
+
R,
|
|
164
164
|
{
|
|
165
165
|
form: "ring",
|
|
166
166
|
color: "white",
|
|
@@ -172,42 +172,42 @@ function ve({ positions: e = [2, 0, 2, 0, 2, 0, 2, 0] }) {
|
|
|
172
172
|
)
|
|
173
173
|
] });
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function _e(e) {
|
|
176
176
|
if (e.length < 3)
|
|
177
177
|
return console.log("Not enough vertices to define a plane"), { isCoplanar: !1 };
|
|
178
|
-
const n = new
|
|
179
|
-
for (let
|
|
180
|
-
const
|
|
181
|
-
if (Math.abs(
|
|
178
|
+
const n = new m.Vector3(e[0].x, e[0].y, e[0].z), r = new m.Vector3(e[1].x, e[1].y, e[1].z), s = new m.Vector3(e[2].x, e[2].y, e[2].z), o = new m.Vector3().subVectors(r, n), c = new m.Vector3().subVectors(s, n), a = new m.Vector3().crossVectors(o, c).normalize();
|
|
179
|
+
for (let f = 3; f < e.length; f++) {
|
|
180
|
+
const i = new m.Vector3(e[f].x, e[f].y, e[f].z), d = new m.Vector3().subVectors(i, n), h = a.dot(d);
|
|
181
|
+
if (Math.abs(h) > 1e-6)
|
|
182
182
|
return console.log("Vertices are not on the same plane"), { isCoplanar: !1 };
|
|
183
183
|
}
|
|
184
|
-
return { isCoplanar: !0, normal:
|
|
184
|
+
return { isCoplanar: !0, normal: a };
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function et({
|
|
187
187
|
safetyZones: e,
|
|
188
188
|
...n
|
|
189
189
|
}) {
|
|
190
190
|
return /* @__PURE__ */ t.jsx("group", { ...n, children: e.map((r, s) => {
|
|
191
191
|
let o = [];
|
|
192
|
-
return r.geometry && (r.geometry.compound ? o = r.geometry.compound.child_geometries : r.geometry.convex_hull && (o = [r.geometry])), o.map((
|
|
193
|
-
if (!
|
|
194
|
-
const
|
|
195
|
-
(
|
|
196
|
-
),
|
|
197
|
-
if (
|
|
198
|
-
const
|
|
199
|
-
|
|
200
|
-
|
|
192
|
+
return r.geometry && (r.geometry.compound ? o = r.geometry.compound.child_geometries : r.geometry.convex_hull && (o = [r.geometry])), o.map((c, a) => {
|
|
193
|
+
if (!c.convex_hull) return null;
|
|
194
|
+
const f = c.convex_hull.vertices.map(
|
|
195
|
+
(h) => new m.Vector3(h.x / 1e3, h.y / 1e3, h.z / 1e3)
|
|
196
|
+
), i = _e(f);
|
|
197
|
+
if (i.isCoplanar && i.normal) {
|
|
198
|
+
const l = new m.Vector3().addVectors(
|
|
199
|
+
f[0],
|
|
200
|
+
i.normal.multiplyScalar(1e-4)
|
|
201
201
|
);
|
|
202
|
-
|
|
202
|
+
f.push(l);
|
|
203
203
|
}
|
|
204
|
-
let
|
|
204
|
+
let d;
|
|
205
205
|
try {
|
|
206
|
-
|
|
207
|
-
} catch (
|
|
208
|
-
return console.log("Error creating ConvexGeometry:",
|
|
206
|
+
d = new X(f);
|
|
207
|
+
} catch (h) {
|
|
208
|
+
return console.log("Error creating ConvexGeometry:", h), null;
|
|
209
209
|
}
|
|
210
|
-
return /* @__PURE__ */ t.jsx("mesh", { geometry:
|
|
210
|
+
return /* @__PURE__ */ t.jsx("mesh", { geometry: d, children: /* @__PURE__ */ t.jsx(
|
|
211
211
|
"meshStandardMaterial",
|
|
212
212
|
{
|
|
213
213
|
attach: "material",
|
|
@@ -217,19 +217,19 @@ function Ze({
|
|
|
217
217
|
depthWrite: !1,
|
|
218
218
|
transparent: !0,
|
|
219
219
|
polygonOffset: !0,
|
|
220
|
-
polygonOffsetFactor: -
|
|
220
|
+
polygonOffsetFactor: -a
|
|
221
221
|
},
|
|
222
222
|
s
|
|
223
|
-
) }, `${s}-${
|
|
223
|
+
) }, `${s}-${a}`);
|
|
224
224
|
});
|
|
225
225
|
}) });
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function tt({
|
|
228
228
|
trajectory: e,
|
|
229
229
|
...n
|
|
230
230
|
}) {
|
|
231
231
|
var s;
|
|
232
|
-
const r = ((s = e.trajectory) == null ? void 0 : s.map((o) => o.tcp_pose ? new
|
|
232
|
+
const r = ((s = e.trajectory) == null ? void 0 : s.map((o) => o.tcp_pose ? new m.Vector3(
|
|
233
233
|
o.tcp_pose.position.x / 1e3,
|
|
234
234
|
o.tcp_pose.position.z / 1e3,
|
|
235
235
|
-o.tcp_pose.position.y / 1e3
|
|
@@ -245,12 +245,27 @@ function Qe({
|
|
|
245
245
|
}
|
|
246
246
|
) });
|
|
247
247
|
}
|
|
248
|
-
const
|
|
249
|
-
function Q(e) {
|
|
250
|
-
|
|
251
|
-
|
|
248
|
+
const D = /* @__PURE__ */ new Map();
|
|
249
|
+
async function Q(e) {
|
|
250
|
+
if (D.has(e))
|
|
251
|
+
return D.get(e);
|
|
252
|
+
const n = (async () => {
|
|
253
|
+
var c;
|
|
254
|
+
const s = new ge({ instanceUrl: void 0 }), o = s.api.motionGroupModels;
|
|
255
|
+
(c = o.axios) != null && c.interceptors && o.axios.interceptors.request.use((a) => {
|
|
256
|
+
var f;
|
|
257
|
+
return (f = a.url) != null && f.includes("/glb") && (a.responseType = "blob"), a;
|
|
258
|
+
});
|
|
259
|
+
try {
|
|
260
|
+
const a = await s.api.motionGroupModels.getMotionGroupGlbModel(e);
|
|
261
|
+
return URL.createObjectURL(a);
|
|
262
|
+
} catch (a) {
|
|
263
|
+
throw console.error("Failed to fetch model:", a), a;
|
|
264
|
+
}
|
|
265
|
+
})();
|
|
266
|
+
return D.set(e, n), n;
|
|
252
267
|
}
|
|
253
|
-
function
|
|
268
|
+
function Ge(e) {
|
|
254
269
|
function n(r) {
|
|
255
270
|
return r.children.length === 0 ? [r] : [r, ...r.children.flatMap((s) => n(s))];
|
|
256
271
|
}
|
|
@@ -262,7 +277,7 @@ function ee(e) {
|
|
|
262
277
|
function te(e) {
|
|
263
278
|
return /_J[0-9]+$/.test(e.name);
|
|
264
279
|
}
|
|
265
|
-
function
|
|
280
|
+
function Ie(e, n) {
|
|
266
281
|
let r;
|
|
267
282
|
function s(o) {
|
|
268
283
|
if (ee(o)) {
|
|
@@ -286,84 +301,84 @@ function re({
|
|
|
286
301
|
onRotationChanged: r,
|
|
287
302
|
children: s
|
|
288
303
|
}) {
|
|
289
|
-
const o =
|
|
290
|
-
|
|
291
|
-
const
|
|
292
|
-
(
|
|
304
|
+
const o = v([]), c = v([]), a = v(null), { invalidate: f } = ae();
|
|
305
|
+
F(() => {
|
|
306
|
+
const l = e.joint_position.filter(
|
|
307
|
+
(u) => u !== void 0
|
|
293
308
|
);
|
|
294
|
-
return
|
|
309
|
+
return a.current = new ye(l, {
|
|
295
310
|
tension: 120,
|
|
296
311
|
// Controls spring stiffness - higher values create faster, more responsive motion
|
|
297
312
|
friction: 20,
|
|
298
313
|
// Controls damping - higher values reduce oscillation and create smoother settling
|
|
299
314
|
threshold: 1e-3
|
|
300
315
|
}), () => {
|
|
301
|
-
var
|
|
302
|
-
(
|
|
316
|
+
var u;
|
|
317
|
+
(u = a.current) == null || u.destroy();
|
|
303
318
|
};
|
|
304
|
-
}, []), le((
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
|
|
319
|
+
}, []), le((l, u) => {
|
|
320
|
+
if (a.current) {
|
|
321
|
+
const p = a.current.update(u);
|
|
322
|
+
h(), p || f();
|
|
308
323
|
}
|
|
309
324
|
});
|
|
310
|
-
function
|
|
311
|
-
|
|
325
|
+
function i(l) {
|
|
326
|
+
l && (c.current = Ge(l), h(), f());
|
|
312
327
|
}
|
|
313
|
-
function
|
|
314
|
-
var
|
|
315
|
-
o.current =
|
|
328
|
+
function d(l) {
|
|
329
|
+
var u;
|
|
330
|
+
o.current = l, (u = a.current) == null || u.setTarget(l);
|
|
316
331
|
}
|
|
317
|
-
function
|
|
318
|
-
var
|
|
319
|
-
const
|
|
332
|
+
function h() {
|
|
333
|
+
var u;
|
|
334
|
+
const l = ((u = a.current) == null ? void 0 : u.getCurrentValues()) || [];
|
|
320
335
|
if (r)
|
|
321
|
-
r(
|
|
336
|
+
r(c.current, l);
|
|
322
337
|
else
|
|
323
|
-
for (const [
|
|
324
|
-
const g = n[
|
|
325
|
-
x.rotation.y = M * (
|
|
338
|
+
for (const [p, x] of c.current.entries()) {
|
|
339
|
+
const g = n[p], b = g.theta || 0, M = g.reverse_rotation_direction ? -1 : 1;
|
|
340
|
+
x.rotation.y = M * (l[p] || 0) + b;
|
|
326
341
|
}
|
|
327
342
|
}
|
|
328
|
-
return
|
|
329
|
-
const
|
|
330
|
-
(
|
|
343
|
+
return je(() => {
|
|
344
|
+
const l = e.joint_position.filter(
|
|
345
|
+
(u) => u !== void 0
|
|
331
346
|
);
|
|
332
|
-
requestAnimationFrame(() =>
|
|
333
|
-
}), /* @__PURE__ */ t.jsx("group", { ref:
|
|
347
|
+
requestAnimationFrame(() => d(l));
|
|
348
|
+
}), /* @__PURE__ */ t.jsx("group", { ref: i, children: s });
|
|
334
349
|
}
|
|
335
|
-
const
|
|
336
|
-
function
|
|
350
|
+
const Fe = "line", Se = "mesh";
|
|
351
|
+
function Ve({
|
|
337
352
|
rapidlyChangingMotionState: e,
|
|
338
353
|
dhParameters: n,
|
|
339
354
|
...r
|
|
340
355
|
}) {
|
|
341
|
-
const s = new
|
|
356
|
+
const s = new I(), o = v([]), c = v([]);
|
|
342
357
|
me.useEffect(() => {
|
|
343
|
-
o.current = new Array(n.length).fill(null),
|
|
358
|
+
o.current = new Array(n.length).fill(null), c.current = new Array(n.length).fill(null);
|
|
344
359
|
}, [n.length]);
|
|
345
|
-
function
|
|
346
|
-
const
|
|
347
|
-
s.decompose(
|
|
348
|
-
const x =
|
|
349
|
-
|
|
350
|
-
).multiply(new
|
|
351
|
-
return s.multiply(g), s.decompose(
|
|
360
|
+
function a(d, h) {
|
|
361
|
+
const l = new E(), u = new ie(), p = new E();
|
|
362
|
+
s.decompose(l, u, p);
|
|
363
|
+
const x = l.clone(), g = new I().makeRotationY(
|
|
364
|
+
d.theta + h * (d.reverse_rotation_direction ? -1 : 1)
|
|
365
|
+
).multiply(new I().makeTranslation(0, d.d / 1e3, 0)).multiply(new I().makeTranslation(d.a / 1e3, 0, 0)).multiply(new I().makeRotationX(d.alpha));
|
|
366
|
+
return s.multiply(g), s.decompose(l, u, p), { a: x, b: l };
|
|
352
367
|
}
|
|
353
|
-
function
|
|
368
|
+
function f(d, h, l, u) {
|
|
354
369
|
if (!n)
|
|
355
370
|
return;
|
|
356
|
-
const
|
|
357
|
-
if (!
|
|
371
|
+
const p = n[d];
|
|
372
|
+
if (!p)
|
|
358
373
|
return;
|
|
359
|
-
const { a: x, b: g } =
|
|
360
|
-
|
|
374
|
+
const { a: x, b: g } = a(p, u);
|
|
375
|
+
h.geometry.setPositions([x.toArray(), g.toArray()].flat()), l.position.set(g.x, g.y, g.z);
|
|
361
376
|
}
|
|
362
|
-
function
|
|
377
|
+
function i(d, h) {
|
|
363
378
|
s.identity();
|
|
364
|
-
for (let
|
|
365
|
-
const
|
|
366
|
-
|
|
379
|
+
for (let l = 0; l < Math.min(d.length, h.length); l++) {
|
|
380
|
+
const u = o.current[l], p = c.current[l];
|
|
381
|
+
u && p && f(l, u, p, h[l]);
|
|
367
382
|
}
|
|
368
383
|
}
|
|
369
384
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsx(
|
|
@@ -371,26 +386,26 @@ function Ie({
|
|
|
371
386
|
{
|
|
372
387
|
rapidlyChangingMotionState: e,
|
|
373
388
|
dhParameters: n,
|
|
374
|
-
onRotationChanged:
|
|
389
|
+
onRotationChanged: i,
|
|
375
390
|
children: /* @__PURE__ */ t.jsxs("group", { ...r, name: "Scene", children: [
|
|
376
391
|
/* @__PURE__ */ t.jsxs("mesh", { children: [
|
|
377
392
|
/* @__PURE__ */ t.jsx("sphereGeometry", { args: [0.01, 32, 32] }),
|
|
378
393
|
/* @__PURE__ */ t.jsx("meshStandardMaterial", { color: "black", depthTest: !0 })
|
|
379
394
|
] }),
|
|
380
|
-
n.map((
|
|
381
|
-
const { a:
|
|
382
|
-
|
|
383
|
-
e.joint_position[
|
|
384
|
-
),
|
|
385
|
-
return /* @__PURE__ */ t.jsxs("group", { name:
|
|
395
|
+
n.map((d, h) => {
|
|
396
|
+
const { a: l, b: u } = a(
|
|
397
|
+
d,
|
|
398
|
+
e.joint_position[h] ?? 0
|
|
399
|
+
), p = `dhrobot_J0${h}`;
|
|
400
|
+
return /* @__PURE__ */ t.jsxs("group", { name: p, children: [
|
|
386
401
|
/* @__PURE__ */ t.jsx(
|
|
387
402
|
Z,
|
|
388
403
|
{
|
|
389
404
|
ref: (x) => {
|
|
390
|
-
o.current[
|
|
405
|
+
o.current[h] = x;
|
|
391
406
|
},
|
|
392
|
-
name:
|
|
393
|
-
points: [
|
|
407
|
+
name: Fe,
|
|
408
|
+
points: [l, u],
|
|
394
409
|
color: "white",
|
|
395
410
|
lineWidth: 5
|
|
396
411
|
}
|
|
@@ -399,87 +414,125 @@ function Ie({
|
|
|
399
414
|
"mesh",
|
|
400
415
|
{
|
|
401
416
|
ref: (x) => {
|
|
402
|
-
|
|
417
|
+
c.current[h] = x;
|
|
403
418
|
},
|
|
404
|
-
name:
|
|
405
|
-
position:
|
|
419
|
+
name: Se,
|
|
420
|
+
position: u,
|
|
406
421
|
children: [
|
|
407
422
|
/* @__PURE__ */ t.jsx("sphereGeometry", { args: [0.01, 32, 32] }),
|
|
408
423
|
/* @__PURE__ */ t.jsx("meshStandardMaterial", { color: "black", depthTest: !0 })
|
|
409
424
|
]
|
|
410
425
|
},
|
|
411
|
-
"mesh_" +
|
|
426
|
+
"mesh_" + h
|
|
412
427
|
)
|
|
413
|
-
] },
|
|
428
|
+
] }, p);
|
|
414
429
|
})
|
|
415
430
|
] })
|
|
416
431
|
}
|
|
417
432
|
) });
|
|
418
433
|
}
|
|
419
|
-
const
|
|
420
|
-
function
|
|
421
|
-
return
|
|
434
|
+
const Ce = console.warn;
|
|
435
|
+
function Le() {
|
|
436
|
+
return F(() => {
|
|
422
437
|
console.warn = (e) => {
|
|
423
|
-
e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" &&
|
|
438
|
+
e !== "Cannot call the manual advancement of rafz whilst frameLoop is not set as demand" && Ce(e);
|
|
424
439
|
};
|
|
425
440
|
}, []), /* @__PURE__ */ t.jsx(t.Fragment, {});
|
|
426
441
|
}
|
|
427
|
-
function
|
|
442
|
+
function Te(e) {
|
|
428
443
|
return e.type === "Mesh";
|
|
429
444
|
}
|
|
430
|
-
function
|
|
431
|
-
|
|
445
|
+
function De({
|
|
446
|
+
url: e,
|
|
432
447
|
flangeRef: n,
|
|
433
448
|
postModelRender: r,
|
|
434
449
|
...s
|
|
435
450
|
}) {
|
|
436
|
-
const
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
451
|
+
const o = ue(e);
|
|
452
|
+
let c;
|
|
453
|
+
try {
|
|
454
|
+
c = Ie(o, "robot.glb").gltf;
|
|
455
|
+
} catch (i) {
|
|
456
|
+
console.warn("parseRobotModel failed:", i), c = o;
|
|
457
|
+
}
|
|
458
|
+
const a = G(
|
|
459
|
+
(i) => {
|
|
460
|
+
i && r && r();
|
|
442
461
|
},
|
|
443
|
-
[
|
|
462
|
+
[r]
|
|
444
463
|
);
|
|
445
|
-
function
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
"group",
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
464
|
+
function f(i) {
|
|
465
|
+
try {
|
|
466
|
+
return Te(i) ? i.geometry ? /* @__PURE__ */ t.jsx(
|
|
467
|
+
"mesh",
|
|
468
|
+
{
|
|
469
|
+
name: i.name,
|
|
470
|
+
geometry: i.geometry,
|
|
471
|
+
material: i.material,
|
|
472
|
+
position: i.position,
|
|
473
|
+
rotation: i.rotation
|
|
474
|
+
},
|
|
475
|
+
i.uuid
|
|
476
|
+
) : /* @__PURE__ */ t.jsx("group", { name: i.name, position: i.position, rotation: i.rotation }, i.uuid) : /* @__PURE__ */ t.jsx(
|
|
477
|
+
"group",
|
|
478
|
+
{
|
|
479
|
+
name: i.name,
|
|
480
|
+
position: i.position,
|
|
481
|
+
rotation: i.rotation,
|
|
482
|
+
ref: ee(i) ? n : void 0,
|
|
483
|
+
children: i.children.map(f)
|
|
484
|
+
},
|
|
485
|
+
i.uuid
|
|
486
|
+
);
|
|
487
|
+
} catch (d) {
|
|
488
|
+
return console.warn("Error rendering node", i.name, d), null;
|
|
489
|
+
}
|
|
467
490
|
}
|
|
468
|
-
return /* @__PURE__ */ t.jsx("group", { ...s, dispose: null, ref:
|
|
491
|
+
return /* @__PURE__ */ t.jsx("group", { ...s, dispose: null, ref: a, children: f(c.scene) });
|
|
492
|
+
}
|
|
493
|
+
function ke({
|
|
494
|
+
modelURL: e,
|
|
495
|
+
flangeRef: n,
|
|
496
|
+
postModelRender: r,
|
|
497
|
+
...s
|
|
498
|
+
}) {
|
|
499
|
+
const [o, c] = _(null);
|
|
500
|
+
return F(() => {
|
|
501
|
+
(async () => {
|
|
502
|
+
try {
|
|
503
|
+
if (typeof e == "string")
|
|
504
|
+
c(e);
|
|
505
|
+
else {
|
|
506
|
+
const f = await e;
|
|
507
|
+
c(f);
|
|
508
|
+
}
|
|
509
|
+
} catch (f) {
|
|
510
|
+
console.error("Failed to resolve model URL:", f);
|
|
511
|
+
}
|
|
512
|
+
})();
|
|
513
|
+
}, [e]), o ? /* @__PURE__ */ t.jsx(
|
|
514
|
+
De,
|
|
515
|
+
{
|
|
516
|
+
url: o,
|
|
517
|
+
flangeRef: n,
|
|
518
|
+
postModelRender: r,
|
|
519
|
+
...s
|
|
520
|
+
}
|
|
521
|
+
) : null;
|
|
469
522
|
}
|
|
470
523
|
const Ae = (e, n) => {
|
|
471
524
|
e.userData.isGhost || (e.traverse((r) => {
|
|
472
|
-
if (r instanceof
|
|
473
|
-
r.material instanceof
|
|
525
|
+
if (r instanceof m.Mesh) {
|
|
526
|
+
r.material instanceof m.Material && (r.material.colorWrite = !1);
|
|
474
527
|
const s = r.clone(), o = r.clone();
|
|
475
|
-
s.material = new
|
|
528
|
+
s.material = new m.MeshStandardMaterial({
|
|
476
529
|
depthTest: !0,
|
|
477
530
|
depthWrite: !0,
|
|
478
531
|
colorWrite: !1,
|
|
479
532
|
polygonOffset: !0,
|
|
480
533
|
polygonOffsetFactor: -1,
|
|
481
|
-
side:
|
|
482
|
-
}), s.userData.isGhost = !0, o.material = new
|
|
534
|
+
side: m.DoubleSide
|
|
535
|
+
}), s.userData.isGhost = !0, o.material = new m.MeshStandardMaterial({
|
|
483
536
|
color: n,
|
|
484
537
|
opacity: 0.3,
|
|
485
538
|
depthTest: !0,
|
|
@@ -487,81 +540,88 @@ const Ae = (e, n) => {
|
|
|
487
540
|
transparent: !0,
|
|
488
541
|
polygonOffset: !0,
|
|
489
542
|
polygonOffsetFactor: -2,
|
|
490
|
-
side:
|
|
543
|
+
side: m.DoubleSide
|
|
491
544
|
}), o.userData.isGhost = !0, r.parent && (r.parent.add(s), r.parent.add(o));
|
|
492
545
|
}
|
|
493
546
|
}), e.userData.isGhost = !0);
|
|
494
|
-
},
|
|
547
|
+
}, Pe = (e) => {
|
|
495
548
|
if (!e.userData.isGhost) return;
|
|
496
549
|
const n = [];
|
|
497
550
|
e.traverse((r) => {
|
|
498
551
|
var s;
|
|
499
|
-
r instanceof
|
|
552
|
+
r instanceof m.Mesh && ((s = r.userData) != null && s.isGhost ? n.push(r) : r.material instanceof m.Material && (r.material.colorWrite = !0));
|
|
500
553
|
}), n.forEach((r) => {
|
|
501
554
|
r.parent && r.parent.remove(r);
|
|
502
555
|
}), e.userData.isGhost = !1;
|
|
503
|
-
}, ze =
|
|
556
|
+
}, ze = K(
|
|
504
557
|
({
|
|
505
558
|
rapidlyChangingMotionState: e,
|
|
506
559
|
modelFromController: n,
|
|
507
560
|
dhParameters: r,
|
|
508
561
|
getModel: s = Q,
|
|
509
562
|
flangeRef: o,
|
|
510
|
-
postModelRender:
|
|
511
|
-
transparentColor:
|
|
512
|
-
...
|
|
563
|
+
postModelRender: c,
|
|
564
|
+
transparentColor: a,
|
|
565
|
+
...f
|
|
513
566
|
}) => {
|
|
514
|
-
const [
|
|
515
|
-
|
|
567
|
+
const [i, d] = _(null), h = G((u) => {
|
|
568
|
+
d(u);
|
|
516
569
|
}, []);
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
}, [
|
|
520
|
-
const
|
|
521
|
-
|
|
570
|
+
F(() => {
|
|
571
|
+
i && (a ? Ae(i, a) : Pe(i));
|
|
572
|
+
}, [i, a]);
|
|
573
|
+
const l = /* @__PURE__ */ t.jsx(
|
|
574
|
+
Ve,
|
|
522
575
|
{
|
|
523
576
|
rapidlyChangingMotionState: e,
|
|
524
577
|
dhParameters: r,
|
|
525
|
-
...
|
|
578
|
+
...f
|
|
526
579
|
}
|
|
527
580
|
);
|
|
528
581
|
return /* @__PURE__ */ t.jsxs(
|
|
529
|
-
|
|
582
|
+
we,
|
|
530
583
|
{
|
|
531
|
-
fallback:
|
|
532
|
-
onError: (
|
|
533
|
-
console.
|
|
584
|
+
fallback: l,
|
|
585
|
+
onError: (u) => {
|
|
586
|
+
console.warn(u);
|
|
534
587
|
},
|
|
535
588
|
children: [
|
|
536
|
-
/* @__PURE__ */ t.jsx(pe, { fallback:
|
|
589
|
+
/* @__PURE__ */ t.jsx(pe, { fallback: l, children: /* @__PURE__ */ t.jsx("group", { ref: h, children: /* @__PURE__ */ t.jsx(
|
|
537
590
|
re,
|
|
538
591
|
{
|
|
539
592
|
rapidlyChangingMotionState: e,
|
|
540
593
|
dhParameters: r,
|
|
541
594
|
children: /* @__PURE__ */ t.jsx(
|
|
542
|
-
|
|
595
|
+
ke,
|
|
543
596
|
{
|
|
544
|
-
modelURL:
|
|
545
|
-
|
|
597
|
+
modelURL: (() => {
|
|
598
|
+
const u = s(n);
|
|
599
|
+
if (!u) {
|
|
600
|
+
const p = new Blob([], { type: "model/gltf-binary" }), x = new File([p], `${n}.glb`, { type: "model/gltf-binary" });
|
|
601
|
+
return Promise.resolve(URL.createObjectURL(x));
|
|
602
|
+
}
|
|
603
|
+
return u;
|
|
604
|
+
})(),
|
|
605
|
+
postModelRender: c,
|
|
546
606
|
flangeRef: o,
|
|
547
|
-
...
|
|
607
|
+
...f
|
|
548
608
|
}
|
|
549
609
|
)
|
|
550
610
|
}
|
|
551
611
|
) }) }),
|
|
552
|
-
/* @__PURE__ */ t.jsx(
|
|
612
|
+
/* @__PURE__ */ t.jsx(Le, {})
|
|
553
613
|
]
|
|
554
614
|
}
|
|
555
615
|
);
|
|
556
616
|
}
|
|
557
617
|
);
|
|
558
|
-
function
|
|
618
|
+
function Oe({
|
|
559
619
|
connectedMotionGroup: e,
|
|
560
620
|
getModel: n = Q,
|
|
561
621
|
flangeRef: r,
|
|
562
622
|
transparentColor: s,
|
|
563
623
|
postModelRender: o,
|
|
564
|
-
...
|
|
624
|
+
...c
|
|
565
625
|
}) {
|
|
566
626
|
return e.dhParameters ? /* @__PURE__ */ t.jsx(
|
|
567
627
|
ze,
|
|
@@ -573,11 +633,11 @@ function Pe({
|
|
|
573
633
|
flangeRef: r,
|
|
574
634
|
transparentColor: s,
|
|
575
635
|
postModelRender: o,
|
|
576
|
-
...
|
|
636
|
+
...c
|
|
577
637
|
}
|
|
578
638
|
) : null;
|
|
579
639
|
}
|
|
580
|
-
const
|
|
640
|
+
const rt = K(
|
|
581
641
|
he(
|
|
582
642
|
({
|
|
583
643
|
robotName: e,
|
|
@@ -585,42 +645,42 @@ const et = q(
|
|
|
585
645
|
safetyState: r,
|
|
586
646
|
operationMode: s,
|
|
587
647
|
driveToHomeEnabled: o = !1,
|
|
588
|
-
onDriveToHomePress:
|
|
589
|
-
onDriveToHomeRelease:
|
|
590
|
-
connectedMotionGroup:
|
|
591
|
-
robotComponent:
|
|
592
|
-
customContentComponent:
|
|
593
|
-
className:
|
|
648
|
+
onDriveToHomePress: c,
|
|
649
|
+
onDriveToHomeRelease: a,
|
|
650
|
+
connectedMotionGroup: f,
|
|
651
|
+
robotComponent: i = Oe,
|
|
652
|
+
customContentComponent: d,
|
|
653
|
+
className: h
|
|
594
654
|
}) => {
|
|
595
|
-
var
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
const
|
|
655
|
+
var P;
|
|
656
|
+
const l = fe(), { t: u } = xe(), [p, x] = _(!1), g = v(null), b = v(null), [M, ne] = _(!1), [S, oe] = _({ width: 400, height: 600 }), [Ee, se] = _(0);
|
|
657
|
+
F(() => {
|
|
658
|
+
const T = () => {
|
|
599
659
|
if (b.current) {
|
|
600
|
-
const { offsetWidth: O, offsetHeight:
|
|
601
|
-
ne(O >
|
|
660
|
+
const { offsetWidth: O, offsetHeight: U } = b.current;
|
|
661
|
+
ne(O > U), oe({ width: O, height: U });
|
|
602
662
|
}
|
|
603
663
|
};
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
-
return b.current &&
|
|
607
|
-
|
|
664
|
+
T();
|
|
665
|
+
const z = new ResizeObserver(T);
|
|
666
|
+
return b.current && z.observe(b.current), () => {
|
|
667
|
+
z.disconnect();
|
|
608
668
|
};
|
|
609
669
|
}, []);
|
|
610
|
-
const
|
|
611
|
-
se((
|
|
612
|
-
}, []),
|
|
613
|
-
!o || !
|
|
614
|
-
}, [o,
|
|
615
|
-
!o || !
|
|
616
|
-
}, [o,
|
|
617
|
-
|
|
618
|
-
}, [
|
|
670
|
+
const k = G(() => {
|
|
671
|
+
se((T) => T + 1);
|
|
672
|
+
}, []), V = G(() => {
|
|
673
|
+
!o || !c || (x(!0), c());
|
|
674
|
+
}, [o, c]), C = G(() => {
|
|
675
|
+
!o || !a || (x(!1), a());
|
|
676
|
+
}, [o, a]), A = G(() => {
|
|
677
|
+
p && a && (x(!1), a());
|
|
678
|
+
}, [p, a]), w = M ? S.width < 350 : S.height < 200, L = M ? S.height < 310 : S.height < 450;
|
|
619
679
|
return /* @__PURE__ */ t.jsx(
|
|
620
680
|
de,
|
|
621
681
|
{
|
|
622
682
|
ref: b,
|
|
623
|
-
className:
|
|
683
|
+
className: h,
|
|
624
684
|
sx: {
|
|
625
685
|
width: "100%",
|
|
626
686
|
height: "100%",
|
|
@@ -631,10 +691,10 @@ const et = q(
|
|
|
631
691
|
minWidth: { xs: 180, sm: 220, md: 250 },
|
|
632
692
|
minHeight: M ? { xs: 200, sm: 240, md: 260 } : { xs: 150, sm: 180, md: 220 },
|
|
633
693
|
// Allow progressive hiding in portrait mode
|
|
634
|
-
border: `1px solid ${
|
|
694
|
+
border: `1px solid ${l.palette.divider}`,
|
|
635
695
|
borderRadius: "18px",
|
|
636
696
|
boxShadow: "none",
|
|
637
|
-
backgroundColor: ((
|
|
697
|
+
backgroundColor: ((P = l.palette.backgroundPaperElevation) == null ? void 0 : P[8]) || "#2A2A3F",
|
|
638
698
|
backgroundImage: "none"
|
|
639
699
|
// Override any gradient from elevation
|
|
640
700
|
},
|
|
@@ -656,7 +716,7 @@ const et = q(
|
|
|
656
716
|
display: w ? "none" : "block"
|
|
657
717
|
},
|
|
658
718
|
children: !w && /* @__PURE__ */ t.jsxs(
|
|
659
|
-
|
|
719
|
+
B,
|
|
660
720
|
{
|
|
661
721
|
orthographic: !0,
|
|
662
722
|
camera: {
|
|
@@ -666,7 +726,7 @@ const et = q(
|
|
|
666
726
|
shadows: !0,
|
|
667
727
|
frameloop: "demand",
|
|
668
728
|
style: {
|
|
669
|
-
borderRadius:
|
|
729
|
+
borderRadius: l.shape.borderRadius,
|
|
670
730
|
width: "100%",
|
|
671
731
|
height: "100%",
|
|
672
732
|
background: "transparent",
|
|
@@ -677,12 +737,12 @@ const et = q(
|
|
|
677
737
|
dpr: [1, 2],
|
|
678
738
|
gl: { alpha: !0, antialias: !0 },
|
|
679
739
|
children: [
|
|
680
|
-
/* @__PURE__ */ t.jsx(
|
|
681
|
-
/* @__PURE__ */ t.jsx(
|
|
682
|
-
|
|
740
|
+
/* @__PURE__ */ t.jsx(Y, {}),
|
|
741
|
+
/* @__PURE__ */ t.jsx(W, { fit: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
|
|
742
|
+
i,
|
|
683
743
|
{
|
|
684
|
-
connectedMotionGroup:
|
|
685
|
-
postModelRender:
|
|
744
|
+
connectedMotionGroup: f,
|
|
745
|
+
postModelRender: k
|
|
686
746
|
}
|
|
687
747
|
) })
|
|
688
748
|
]
|
|
@@ -710,7 +770,7 @@ const et = q(
|
|
|
710
770
|
textAlign: "left"
|
|
711
771
|
},
|
|
712
772
|
children: [
|
|
713
|
-
/* @__PURE__ */ t.jsx(
|
|
773
|
+
/* @__PURE__ */ t.jsx($, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
|
|
714
774
|
/* @__PURE__ */ t.jsx(
|
|
715
775
|
J,
|
|
716
776
|
{
|
|
@@ -734,15 +794,15 @@ const et = q(
|
|
|
734
794
|
justifyContent: "space-between"
|
|
735
795
|
},
|
|
736
796
|
children: [
|
|
737
|
-
!
|
|
738
|
-
/* @__PURE__ */ t.jsx(
|
|
797
|
+
!L && d && /* @__PURE__ */ t.jsxs(y, { children: [
|
|
798
|
+
/* @__PURE__ */ t.jsx(d, {}),
|
|
739
799
|
/* @__PURE__ */ t.jsx(
|
|
740
|
-
|
|
800
|
+
N,
|
|
741
801
|
{
|
|
742
802
|
sx: {
|
|
743
803
|
mt: 1,
|
|
744
804
|
mb: 0,
|
|
745
|
-
borderColor:
|
|
805
|
+
borderColor: l.palette.divider,
|
|
746
806
|
opacity: 0.5
|
|
747
807
|
}
|
|
748
808
|
}
|
|
@@ -752,7 +812,7 @@ const et = q(
|
|
|
752
812
|
y,
|
|
753
813
|
{
|
|
754
814
|
sx: {
|
|
755
|
-
mt: !
|
|
815
|
+
mt: !L && d ? "auto" : 0
|
|
756
816
|
},
|
|
757
817
|
children: /* @__PURE__ */ t.jsx(
|
|
758
818
|
y,
|
|
@@ -764,24 +824,24 @@ const et = q(
|
|
|
764
824
|
mb: { xs: 0.5, sm: 0.75, md: 1 }
|
|
765
825
|
},
|
|
766
826
|
children: /* @__PURE__ */ t.jsx(
|
|
767
|
-
|
|
827
|
+
H,
|
|
768
828
|
{
|
|
769
829
|
ref: g,
|
|
770
830
|
variant: "contained",
|
|
771
831
|
color: "secondary",
|
|
772
832
|
size: "small",
|
|
773
833
|
disabled: !o,
|
|
774
|
-
onMouseDown:
|
|
775
|
-
onMouseUp:
|
|
776
|
-
onMouseLeave:
|
|
777
|
-
onTouchStart:
|
|
778
|
-
onTouchEnd:
|
|
834
|
+
onMouseDown: V,
|
|
835
|
+
onMouseUp: C,
|
|
836
|
+
onMouseLeave: A,
|
|
837
|
+
onTouchStart: V,
|
|
838
|
+
onTouchEnd: C,
|
|
779
839
|
sx: {
|
|
780
840
|
textTransform: "none",
|
|
781
841
|
px: 1.5,
|
|
782
842
|
py: 0.5
|
|
783
843
|
},
|
|
784
|
-
children:
|
|
844
|
+
children: u("RobotCard.DriveToHome.bt")
|
|
785
845
|
}
|
|
786
846
|
)
|
|
787
847
|
}
|
|
@@ -805,7 +865,7 @@ const et = q(
|
|
|
805
865
|
},
|
|
806
866
|
children: [
|
|
807
867
|
/* @__PURE__ */ t.jsxs(y, { children: [
|
|
808
|
-
/* @__PURE__ */ t.jsx(
|
|
868
|
+
/* @__PURE__ */ t.jsx($, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
|
|
809
869
|
/* @__PURE__ */ t.jsx(
|
|
810
870
|
J,
|
|
811
871
|
{
|
|
@@ -828,7 +888,7 @@ const et = q(
|
|
|
828
888
|
display: w ? "none" : "block"
|
|
829
889
|
},
|
|
830
890
|
children: !w && /* @__PURE__ */ t.jsxs(
|
|
831
|
-
|
|
891
|
+
B,
|
|
832
892
|
{
|
|
833
893
|
orthographic: !0,
|
|
834
894
|
camera: {
|
|
@@ -838,7 +898,7 @@ const et = q(
|
|
|
838
898
|
shadows: !0,
|
|
839
899
|
frameloop: "demand",
|
|
840
900
|
style: {
|
|
841
|
-
borderRadius:
|
|
901
|
+
borderRadius: l.shape.borderRadius,
|
|
842
902
|
width: "100%",
|
|
843
903
|
height: "100%",
|
|
844
904
|
background: "transparent",
|
|
@@ -847,12 +907,12 @@ const et = q(
|
|
|
847
907
|
dpr: [1, 2],
|
|
848
908
|
gl: { alpha: !0, antialias: !0 },
|
|
849
909
|
children: [
|
|
850
|
-
/* @__PURE__ */ t.jsx(
|
|
851
|
-
/* @__PURE__ */ t.jsx(
|
|
852
|
-
|
|
910
|
+
/* @__PURE__ */ t.jsx(Y, {}),
|
|
911
|
+
/* @__PURE__ */ t.jsx(W, { fit: !0, clip: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
|
|
912
|
+
i,
|
|
853
913
|
{
|
|
854
|
-
connectedMotionGroup:
|
|
855
|
-
postModelRender:
|
|
914
|
+
connectedMotionGroup: f,
|
|
915
|
+
postModelRender: k
|
|
856
916
|
}
|
|
857
917
|
) })
|
|
858
918
|
]
|
|
@@ -861,15 +921,15 @@ const et = q(
|
|
|
861
921
|
}
|
|
862
922
|
),
|
|
863
923
|
/* @__PURE__ */ t.jsxs(y, { children: [
|
|
864
|
-
!
|
|
865
|
-
/* @__PURE__ */ t.jsx(
|
|
924
|
+
!L && d && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
925
|
+
/* @__PURE__ */ t.jsx(d, {}),
|
|
866
926
|
/* @__PURE__ */ t.jsx(
|
|
867
|
-
|
|
927
|
+
N,
|
|
868
928
|
{
|
|
869
929
|
sx: {
|
|
870
930
|
mt: 1,
|
|
871
931
|
mb: 0,
|
|
872
|
-
borderColor:
|
|
932
|
+
borderColor: l.palette.divider,
|
|
873
933
|
opacity: 0.5
|
|
874
934
|
}
|
|
875
935
|
}
|
|
@@ -881,28 +941,28 @@ const et = q(
|
|
|
881
941
|
sx: {
|
|
882
942
|
display: "flex",
|
|
883
943
|
justifyContent: "flex-start",
|
|
884
|
-
mt: !
|
|
944
|
+
mt: !L && d ? { xs: 1, sm: 2, md: 5 } : { xs: 0.5, sm: 1, md: 2 },
|
|
885
945
|
mb: { xs: 0.5, sm: 0.75, md: 1 }
|
|
886
946
|
},
|
|
887
947
|
children: /* @__PURE__ */ t.jsx(
|
|
888
|
-
|
|
948
|
+
H,
|
|
889
949
|
{
|
|
890
950
|
ref: g,
|
|
891
951
|
variant: "contained",
|
|
892
952
|
color: "secondary",
|
|
893
953
|
size: "small",
|
|
894
954
|
disabled: !o,
|
|
895
|
-
onMouseDown:
|
|
896
|
-
onMouseUp:
|
|
897
|
-
onMouseLeave:
|
|
898
|
-
onTouchStart:
|
|
899
|
-
onTouchEnd:
|
|
955
|
+
onMouseDown: V,
|
|
956
|
+
onMouseUp: C,
|
|
957
|
+
onMouseLeave: A,
|
|
958
|
+
onTouchStart: V,
|
|
959
|
+
onTouchEnd: C,
|
|
900
960
|
sx: {
|
|
901
961
|
textTransform: "none",
|
|
902
962
|
px: 1.5,
|
|
903
963
|
py: 0.5
|
|
904
964
|
},
|
|
905
|
-
children:
|
|
965
|
+
children: u("RobotCard.DriveToHome.bt")
|
|
906
966
|
}
|
|
907
967
|
)
|
|
908
968
|
}
|
|
@@ -915,7 +975,7 @@ const et = q(
|
|
|
915
975
|
);
|
|
916
976
|
}
|
|
917
977
|
)
|
|
918
|
-
),
|
|
978
|
+
), nt = Array(6).fill(2 * Math.PI), q = {
|
|
919
979
|
[j.Abb]: [0, 0, 0, 0, Math.PI / 2, 0, 0],
|
|
920
980
|
[j.Fanuc]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
|
|
921
981
|
[j.Yaskawa]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
|
|
@@ -938,7 +998,7 @@ const et = q(
|
|
|
938
998
|
0
|
|
939
999
|
]
|
|
940
1000
|
};
|
|
941
|
-
function
|
|
1001
|
+
function Ue(e) {
|
|
942
1002
|
const [n] = e.split("_");
|
|
943
1003
|
switch (n) {
|
|
944
1004
|
case "ABB":
|
|
@@ -955,22 +1015,22 @@ function Oe(e) {
|
|
|
955
1015
|
return null;
|
|
956
1016
|
}
|
|
957
1017
|
}
|
|
958
|
-
function
|
|
959
|
-
const r =
|
|
960
|
-
return r && r in
|
|
1018
|
+
function ot(e, n) {
|
|
1019
|
+
const r = Ue(e);
|
|
1020
|
+
return r && r in q ? q[r] : n || null;
|
|
961
1021
|
}
|
|
962
1022
|
export {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
1023
|
+
Qe as C,
|
|
1024
|
+
q as M,
|
|
1025
|
+
Y as P,
|
|
1026
|
+
Oe as R,
|
|
1027
|
+
et as S,
|
|
1028
|
+
tt as T,
|
|
1029
|
+
rt as a,
|
|
1030
|
+
ze as b,
|
|
1031
|
+
Q as c,
|
|
1032
|
+
nt as d,
|
|
1033
|
+
Ue as e,
|
|
1034
|
+
ot as g
|
|
975
1035
|
};
|
|
976
|
-
//# sourceMappingURL=manufacturerHomePositions-
|
|
1036
|
+
//# sourceMappingURL=manufacturerHomePositions-CtUNJexK.js.map
|