@wandelbots/wandelbots-js-react-components 3.5.1 → 3.6.0-pr.feat-model-retrieval-from-rdp.463.3cb7d2e
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-CgaG5vaK.js → manufacturerHomePositions-BaS-GAxw.js} +331 -282
- package/dist/manufacturerHomePositions-BaS-GAxw.js.map +1 -0
- package/dist/manufacturerHomePositions-cD52vnEi.cjs +2 -0
- package/dist/manufacturerHomePositions-cD52vnEi.cjs.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 +56 -13
- package/src/components/robots/Robot.tsx +1 -1
- package/src/components/robots/SupportedRobot.tsx +10 -2
- 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-BaS-GAxw.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 h 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 h.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 h.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 h.SphereGeometry(e.radius / 1e3);
|
|
33
33
|
case "capsule":
|
|
34
|
-
return new
|
|
34
|
+
return new h.CapsuleGeometry(
|
|
35
35
|
e.radius / 1e3,
|
|
36
36
|
e.cylinder_height / 1e3
|
|
37
37
|
);
|
|
38
38
|
case "cylinder":
|
|
39
|
-
return new
|
|
39
|
+
return new h.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 h.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 h.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, i;
|
|
56
|
+
const s = ((c = n.pose) == null ? void 0 : c.position) ?? [0, 0, 0], o = ((i = n.pose) == null ? void 0 : i.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 h.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 h.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 h.Vector3(e[0].x, e[0].y, e[0].z), r = new h.Vector3(e[1].x, e[1].y, e[1].z), s = new h.Vector3(e[2].x, e[2].y, e[2].z), o = new h.Vector3().subVectors(r, n), c = new h.Vector3().subVectors(s, n), i = new h.Vector3().crossVectors(o, c).normalize();
|
|
179
|
+
for (let f = 3; f < e.length; f++) {
|
|
180
|
+
const u = new h.Vector3(e[f].x, e[f].y, e[f].z), m = new h.Vector3().subVectors(u, n), d = i.dot(m);
|
|
181
|
+
if (Math.abs(d) > 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: i };
|
|
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, i) => {
|
|
193
|
+
if (!c.convex_hull) return null;
|
|
194
|
+
const f = c.convex_hull.vertices.map(
|
|
195
|
+
(d) => new h.Vector3(d.x / 1e3, d.y / 1e3, d.z / 1e3)
|
|
196
|
+
), u = _e(f);
|
|
197
|
+
if (u.isCoplanar && u.normal) {
|
|
198
|
+
const a = new h.Vector3().addVectors(
|
|
199
|
+
f[0],
|
|
200
|
+
u.normal.multiplyScalar(1e-4)
|
|
201
201
|
);
|
|
202
|
-
|
|
202
|
+
f.push(a);
|
|
203
203
|
}
|
|
204
|
-
let
|
|
204
|
+
let m;
|
|
205
205
|
try {
|
|
206
|
-
|
|
207
|
-
} catch (
|
|
208
|
-
return console.log("Error creating ConvexGeometry:",
|
|
206
|
+
m = new X(f);
|
|
207
|
+
} catch (d) {
|
|
208
|
+
return console.log("Error creating ConvexGeometry:", d), null;
|
|
209
209
|
}
|
|
210
|
-
return /* @__PURE__ */ t.jsx("mesh", { geometry:
|
|
210
|
+
return /* @__PURE__ */ t.jsx("mesh", { geometry: m, 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: -i
|
|
221
221
|
},
|
|
222
222
|
s
|
|
223
|
-
) }, `${s}-${
|
|
223
|
+
) }, `${s}-${i}`);
|
|
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 h.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((i) => {
|
|
256
|
+
var f;
|
|
257
|
+
return (f = i.url) != null && f.includes("/glb") && (i.responseType = "blob"), i;
|
|
258
|
+
});
|
|
259
|
+
try {
|
|
260
|
+
const i = await s.api.motionGroupModels.getMotionGroupGlbModel(e);
|
|
261
|
+
return URL.createObjectURL(i);
|
|
262
|
+
} catch (i) {
|
|
263
|
+
throw console.error("Failed to fetch model:", i), i;
|
|
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([]), i = v(null), { invalidate: f } = ae();
|
|
305
|
+
F(() => {
|
|
306
|
+
const a = e.joint_position.filter(
|
|
307
|
+
(l) => l !== void 0
|
|
293
308
|
);
|
|
294
|
-
return
|
|
309
|
+
return i.current = new ye(a, {
|
|
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 l;
|
|
317
|
+
(l = i.current) == null || l.destroy();
|
|
303
318
|
};
|
|
304
|
-
}, []), le((
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
|
|
319
|
+
}, []), le((a, l) => {
|
|
320
|
+
if (i.current) {
|
|
321
|
+
const p = i.current.update(l);
|
|
322
|
+
d(), p || f();
|
|
308
323
|
}
|
|
309
324
|
});
|
|
310
|
-
function
|
|
311
|
-
|
|
325
|
+
function u(a) {
|
|
326
|
+
a && (c.current = Ge(a), d(), f());
|
|
312
327
|
}
|
|
313
|
-
function
|
|
314
|
-
var
|
|
315
|
-
o.current =
|
|
328
|
+
function m(a) {
|
|
329
|
+
var l;
|
|
330
|
+
o.current = a, (l = i.current) == null || l.setTarget(a);
|
|
316
331
|
}
|
|
317
|
-
function
|
|
318
|
-
var
|
|
319
|
-
const
|
|
332
|
+
function d() {
|
|
333
|
+
var l;
|
|
334
|
+
const a = ((l = i.current) == null ? void 0 : l.getCurrentValues()) || [];
|
|
320
335
|
if (r)
|
|
321
|
-
r(
|
|
336
|
+
r(c.current, a);
|
|
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 * (a[p] || 0) + b;
|
|
326
341
|
}
|
|
327
342
|
}
|
|
328
|
-
return
|
|
329
|
-
const
|
|
330
|
-
(
|
|
343
|
+
return je(() => {
|
|
344
|
+
const a = e.joint_position.filter(
|
|
345
|
+
(l) => l !== void 0
|
|
331
346
|
);
|
|
332
|
-
requestAnimationFrame(() =>
|
|
333
|
-
}), /* @__PURE__ */ t.jsx("group", { ref:
|
|
347
|
+
requestAnimationFrame(() => m(a));
|
|
348
|
+
}), /* @__PURE__ */ t.jsx("group", { ref: u, 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 i(m, d) {
|
|
361
|
+
const a = new E(), l = new ie(), p = new E();
|
|
362
|
+
s.decompose(a, l, p);
|
|
363
|
+
const x = a.clone(), g = new I().makeRotationY(
|
|
364
|
+
m.theta + d * (m.reverse_rotation_direction ? -1 : 1)
|
|
365
|
+
).multiply(new I().makeTranslation(0, m.d / 1e3, 0)).multiply(new I().makeTranslation(m.a / 1e3, 0, 0)).multiply(new I().makeRotationX(m.alpha));
|
|
366
|
+
return s.multiply(g), s.decompose(a, l, p), { a: x, b: a };
|
|
352
367
|
}
|
|
353
|
-
function
|
|
368
|
+
function f(m, d, a, l) {
|
|
354
369
|
if (!n)
|
|
355
370
|
return;
|
|
356
|
-
const
|
|
357
|
-
if (!
|
|
371
|
+
const p = n[m];
|
|
372
|
+
if (!p)
|
|
358
373
|
return;
|
|
359
|
-
const { a: x, b: g } =
|
|
360
|
-
|
|
374
|
+
const { a: x, b: g } = i(p, l);
|
|
375
|
+
d.geometry.setPositions([x.toArray(), g.toArray()].flat()), a.position.set(g.x, g.y, g.z);
|
|
361
376
|
}
|
|
362
|
-
function
|
|
377
|
+
function u(m, d) {
|
|
363
378
|
s.identity();
|
|
364
|
-
for (let
|
|
365
|
-
const
|
|
366
|
-
|
|
379
|
+
for (let a = 0; a < Math.min(m.length, d.length); a++) {
|
|
380
|
+
const l = o.current[a], p = c.current[a];
|
|
381
|
+
l && p && f(a, l, p, d[a]);
|
|
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: u,
|
|
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((m, d) => {
|
|
396
|
+
const { a, b: l } = i(
|
|
397
|
+
m,
|
|
398
|
+
e.joint_position[d] ?? 0
|
|
399
|
+
), p = `dhrobot_J0${d}`;
|
|
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[d] = x;
|
|
391
406
|
},
|
|
392
|
-
name:
|
|
393
|
-
points: [
|
|
407
|
+
name: Fe,
|
|
408
|
+
points: [a, l],
|
|
394
409
|
color: "white",
|
|
395
410
|
lineWidth: 5
|
|
396
411
|
}
|
|
@@ -399,87 +414,114 @@ function Ie({
|
|
|
399
414
|
"mesh",
|
|
400
415
|
{
|
|
401
416
|
ref: (x) => {
|
|
402
|
-
|
|
417
|
+
c.current[d] = x;
|
|
403
418
|
},
|
|
404
|
-
name:
|
|
405
|
-
position:
|
|
419
|
+
name: Se,
|
|
420
|
+
position: l,
|
|
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_" + d
|
|
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 { gltf:
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
), u = _(
|
|
440
|
-
(a) => {
|
|
441
|
-
a && r && r();
|
|
451
|
+
const o = ue(e), { gltf: c } = Ie(o, "robot.glb"), i = G(
|
|
452
|
+
(u) => {
|
|
453
|
+
u && r && r();
|
|
442
454
|
},
|
|
443
|
-
[
|
|
455
|
+
[r]
|
|
444
456
|
);
|
|
445
|
-
function
|
|
446
|
-
return
|
|
457
|
+
function f(u) {
|
|
458
|
+
return Te(u) ? /* @__PURE__ */ t.jsx(
|
|
447
459
|
"mesh",
|
|
448
460
|
{
|
|
449
|
-
name:
|
|
450
|
-
geometry:
|
|
451
|
-
material:
|
|
452
|
-
position:
|
|
453
|
-
rotation:
|
|
461
|
+
name: u.name,
|
|
462
|
+
geometry: u.geometry,
|
|
463
|
+
material: u.material,
|
|
464
|
+
position: u.position,
|
|
465
|
+
rotation: u.rotation
|
|
454
466
|
},
|
|
455
|
-
|
|
467
|
+
u.uuid
|
|
456
468
|
) : /* @__PURE__ */ t.jsx(
|
|
457
469
|
"group",
|
|
458
470
|
{
|
|
459
|
-
name:
|
|
460
|
-
position:
|
|
461
|
-
rotation:
|
|
462
|
-
ref: ee(
|
|
463
|
-
children:
|
|
471
|
+
name: u.name,
|
|
472
|
+
position: u.position,
|
|
473
|
+
rotation: u.rotation,
|
|
474
|
+
ref: ee(u) ? n : void 0,
|
|
475
|
+
children: u.children.map(f)
|
|
464
476
|
},
|
|
465
|
-
|
|
477
|
+
u.uuid
|
|
466
478
|
);
|
|
467
479
|
}
|
|
468
|
-
return /* @__PURE__ */ t.jsx("group", { ...s, dispose: null, ref:
|
|
480
|
+
return /* @__PURE__ */ t.jsx("group", { ...s, dispose: null, ref: i, children: f(c.scene) });
|
|
481
|
+
}
|
|
482
|
+
function ke({
|
|
483
|
+
modelURL: e,
|
|
484
|
+
flangeRef: n,
|
|
485
|
+
postModelRender: r,
|
|
486
|
+
...s
|
|
487
|
+
}) {
|
|
488
|
+
const [o, c] = _(null);
|
|
489
|
+
return F(() => {
|
|
490
|
+
(async () => {
|
|
491
|
+
try {
|
|
492
|
+
if (typeof e == "string")
|
|
493
|
+
c(e);
|
|
494
|
+
else {
|
|
495
|
+
const f = await e;
|
|
496
|
+
c(f);
|
|
497
|
+
}
|
|
498
|
+
} catch (f) {
|
|
499
|
+
console.error("Failed to resolve model URL:", f);
|
|
500
|
+
}
|
|
501
|
+
})();
|
|
502
|
+
}, [e]), o ? /* @__PURE__ */ t.jsx(
|
|
503
|
+
De,
|
|
504
|
+
{
|
|
505
|
+
url: o,
|
|
506
|
+
flangeRef: n,
|
|
507
|
+
postModelRender: r,
|
|
508
|
+
...s
|
|
509
|
+
}
|
|
510
|
+
) : null;
|
|
469
511
|
}
|
|
470
512
|
const Ae = (e, n) => {
|
|
471
513
|
e.userData.isGhost || (e.traverse((r) => {
|
|
472
|
-
if (r instanceof
|
|
473
|
-
r.material instanceof
|
|
514
|
+
if (r instanceof h.Mesh) {
|
|
515
|
+
r.material instanceof h.Material && (r.material.colorWrite = !1);
|
|
474
516
|
const s = r.clone(), o = r.clone();
|
|
475
|
-
s.material = new
|
|
517
|
+
s.material = new h.MeshStandardMaterial({
|
|
476
518
|
depthTest: !0,
|
|
477
519
|
depthWrite: !0,
|
|
478
520
|
colorWrite: !1,
|
|
479
521
|
polygonOffset: !0,
|
|
480
522
|
polygonOffsetFactor: -1,
|
|
481
|
-
side:
|
|
482
|
-
}), s.userData.isGhost = !0, o.material = new
|
|
523
|
+
side: h.DoubleSide
|
|
524
|
+
}), s.userData.isGhost = !0, o.material = new h.MeshStandardMaterial({
|
|
483
525
|
color: n,
|
|
484
526
|
opacity: 0.3,
|
|
485
527
|
depthTest: !0,
|
|
@@ -487,81 +529,88 @@ const Ae = (e, n) => {
|
|
|
487
529
|
transparent: !0,
|
|
488
530
|
polygonOffset: !0,
|
|
489
531
|
polygonOffsetFactor: -2,
|
|
490
|
-
side:
|
|
532
|
+
side: h.DoubleSide
|
|
491
533
|
}), o.userData.isGhost = !0, r.parent && (r.parent.add(s), r.parent.add(o));
|
|
492
534
|
}
|
|
493
535
|
}), e.userData.isGhost = !0);
|
|
494
|
-
},
|
|
536
|
+
}, Pe = (e) => {
|
|
495
537
|
if (!e.userData.isGhost) return;
|
|
496
538
|
const n = [];
|
|
497
539
|
e.traverse((r) => {
|
|
498
540
|
var s;
|
|
499
|
-
r instanceof
|
|
541
|
+
r instanceof h.Mesh && ((s = r.userData) != null && s.isGhost ? n.push(r) : r.material instanceof h.Material && (r.material.colorWrite = !0));
|
|
500
542
|
}), n.forEach((r) => {
|
|
501
543
|
r.parent && r.parent.remove(r);
|
|
502
544
|
}), e.userData.isGhost = !1;
|
|
503
|
-
}, ze =
|
|
545
|
+
}, ze = K(
|
|
504
546
|
({
|
|
505
547
|
rapidlyChangingMotionState: e,
|
|
506
548
|
modelFromController: n,
|
|
507
549
|
dhParameters: r,
|
|
508
550
|
getModel: s = Q,
|
|
509
551
|
flangeRef: o,
|
|
510
|
-
postModelRender:
|
|
511
|
-
transparentColor:
|
|
512
|
-
...
|
|
552
|
+
postModelRender: c,
|
|
553
|
+
transparentColor: i,
|
|
554
|
+
...f
|
|
513
555
|
}) => {
|
|
514
|
-
const [
|
|
515
|
-
|
|
556
|
+
const [u, m] = _(null), d = G((l) => {
|
|
557
|
+
m(l);
|
|
516
558
|
}, []);
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
}, [
|
|
520
|
-
const
|
|
521
|
-
|
|
559
|
+
F(() => {
|
|
560
|
+
u && (i ? Ae(u, i) : Pe(u));
|
|
561
|
+
}, [u, i]);
|
|
562
|
+
const a = /* @__PURE__ */ t.jsx(
|
|
563
|
+
Ve,
|
|
522
564
|
{
|
|
523
565
|
rapidlyChangingMotionState: e,
|
|
524
566
|
dhParameters: r,
|
|
525
|
-
...
|
|
567
|
+
...f
|
|
526
568
|
}
|
|
527
569
|
);
|
|
528
570
|
return /* @__PURE__ */ t.jsxs(
|
|
529
|
-
|
|
571
|
+
we,
|
|
530
572
|
{
|
|
531
|
-
fallback:
|
|
532
|
-
onError: (
|
|
533
|
-
console.error(
|
|
573
|
+
fallback: a,
|
|
574
|
+
onError: (l) => {
|
|
575
|
+
console.error(l);
|
|
534
576
|
},
|
|
535
577
|
children: [
|
|
536
|
-
/* @__PURE__ */ t.jsx(pe, { fallback:
|
|
578
|
+
/* @__PURE__ */ t.jsx(pe, { fallback: a, children: /* @__PURE__ */ t.jsx("group", { ref: d, children: /* @__PURE__ */ t.jsx(
|
|
537
579
|
re,
|
|
538
580
|
{
|
|
539
581
|
rapidlyChangingMotionState: e,
|
|
540
582
|
dhParameters: r,
|
|
541
583
|
children: /* @__PURE__ */ t.jsx(
|
|
542
|
-
|
|
584
|
+
ke,
|
|
543
585
|
{
|
|
544
|
-
modelURL:
|
|
545
|
-
|
|
586
|
+
modelURL: (() => {
|
|
587
|
+
const l = s(n);
|
|
588
|
+
if (!l) {
|
|
589
|
+
const p = new Blob([], { type: "model/gltf-binary" }), x = new File([p], `${n}.glb`, { type: "model/gltf-binary" });
|
|
590
|
+
return Promise.resolve(URL.createObjectURL(x));
|
|
591
|
+
}
|
|
592
|
+
return l;
|
|
593
|
+
})(),
|
|
594
|
+
postModelRender: c,
|
|
546
595
|
flangeRef: o,
|
|
547
|
-
...
|
|
596
|
+
...f
|
|
548
597
|
}
|
|
549
598
|
)
|
|
550
599
|
}
|
|
551
600
|
) }) }),
|
|
552
|
-
/* @__PURE__ */ t.jsx(
|
|
601
|
+
/* @__PURE__ */ t.jsx(Le, {})
|
|
553
602
|
]
|
|
554
603
|
}
|
|
555
604
|
);
|
|
556
605
|
}
|
|
557
606
|
);
|
|
558
|
-
function
|
|
607
|
+
function Oe({
|
|
559
608
|
connectedMotionGroup: e,
|
|
560
609
|
getModel: n = Q,
|
|
561
610
|
flangeRef: r,
|
|
562
611
|
transparentColor: s,
|
|
563
612
|
postModelRender: o,
|
|
564
|
-
...
|
|
613
|
+
...c
|
|
565
614
|
}) {
|
|
566
615
|
return e.dhParameters ? /* @__PURE__ */ t.jsx(
|
|
567
616
|
ze,
|
|
@@ -573,11 +622,11 @@ function Pe({
|
|
|
573
622
|
flangeRef: r,
|
|
574
623
|
transparentColor: s,
|
|
575
624
|
postModelRender: o,
|
|
576
|
-
...
|
|
625
|
+
...c
|
|
577
626
|
}
|
|
578
627
|
) : null;
|
|
579
628
|
}
|
|
580
|
-
const
|
|
629
|
+
const rt = K(
|
|
581
630
|
he(
|
|
582
631
|
({
|
|
583
632
|
robotName: e,
|
|
@@ -585,42 +634,42 @@ const et = q(
|
|
|
585
634
|
safetyState: r,
|
|
586
635
|
operationMode: s,
|
|
587
636
|
driveToHomeEnabled: o = !1,
|
|
588
|
-
onDriveToHomePress:
|
|
589
|
-
onDriveToHomeRelease:
|
|
590
|
-
connectedMotionGroup:
|
|
591
|
-
robotComponent:
|
|
592
|
-
customContentComponent:
|
|
593
|
-
className:
|
|
637
|
+
onDriveToHomePress: c,
|
|
638
|
+
onDriveToHomeRelease: i,
|
|
639
|
+
connectedMotionGroup: f,
|
|
640
|
+
robotComponent: u = Oe,
|
|
641
|
+
customContentComponent: m,
|
|
642
|
+
className: d
|
|
594
643
|
}) => {
|
|
595
|
-
var
|
|
596
|
-
const
|
|
597
|
-
|
|
598
|
-
const
|
|
644
|
+
var P;
|
|
645
|
+
const a = fe(), { t: l } = xe(), [p, x] = _(!1), g = v(null), b = v(null), [M, ne] = _(!1), [S, oe] = _({ width: 400, height: 600 }), [Ee, se] = _(0);
|
|
646
|
+
F(() => {
|
|
647
|
+
const T = () => {
|
|
599
648
|
if (b.current) {
|
|
600
|
-
const { offsetWidth: O, offsetHeight:
|
|
601
|
-
ne(O >
|
|
649
|
+
const { offsetWidth: O, offsetHeight: U } = b.current;
|
|
650
|
+
ne(O > U), oe({ width: O, height: U });
|
|
602
651
|
}
|
|
603
652
|
};
|
|
604
|
-
|
|
605
|
-
const
|
|
606
|
-
return b.current &&
|
|
607
|
-
|
|
653
|
+
T();
|
|
654
|
+
const z = new ResizeObserver(T);
|
|
655
|
+
return b.current && z.observe(b.current), () => {
|
|
656
|
+
z.disconnect();
|
|
608
657
|
};
|
|
609
658
|
}, []);
|
|
610
|
-
const
|
|
611
|
-
se((
|
|
612
|
-
}, []),
|
|
613
|
-
!o || !
|
|
614
|
-
}, [o,
|
|
615
|
-
!o || !
|
|
616
|
-
}, [o,
|
|
617
|
-
|
|
618
|
-
}, [
|
|
659
|
+
const k = G(() => {
|
|
660
|
+
se((T) => T + 1);
|
|
661
|
+
}, []), V = G(() => {
|
|
662
|
+
!o || !c || (x(!0), c());
|
|
663
|
+
}, [o, c]), C = G(() => {
|
|
664
|
+
!o || !i || (x(!1), i());
|
|
665
|
+
}, [o, i]), A = G(() => {
|
|
666
|
+
p && i && (x(!1), i());
|
|
667
|
+
}, [p, i]), w = M ? S.width < 350 : S.height < 200, L = M ? S.height < 310 : S.height < 450;
|
|
619
668
|
return /* @__PURE__ */ t.jsx(
|
|
620
669
|
de,
|
|
621
670
|
{
|
|
622
671
|
ref: b,
|
|
623
|
-
className:
|
|
672
|
+
className: d,
|
|
624
673
|
sx: {
|
|
625
674
|
width: "100%",
|
|
626
675
|
height: "100%",
|
|
@@ -631,10 +680,10 @@ const et = q(
|
|
|
631
680
|
minWidth: { xs: 180, sm: 220, md: 250 },
|
|
632
681
|
minHeight: M ? { xs: 200, sm: 240, md: 260 } : { xs: 150, sm: 180, md: 220 },
|
|
633
682
|
// Allow progressive hiding in portrait mode
|
|
634
|
-
border: `1px solid ${
|
|
683
|
+
border: `1px solid ${a.palette.divider}`,
|
|
635
684
|
borderRadius: "18px",
|
|
636
685
|
boxShadow: "none",
|
|
637
|
-
backgroundColor: ((
|
|
686
|
+
backgroundColor: ((P = a.palette.backgroundPaperElevation) == null ? void 0 : P[8]) || "#2A2A3F",
|
|
638
687
|
backgroundImage: "none"
|
|
639
688
|
// Override any gradient from elevation
|
|
640
689
|
},
|
|
@@ -656,7 +705,7 @@ const et = q(
|
|
|
656
705
|
display: w ? "none" : "block"
|
|
657
706
|
},
|
|
658
707
|
children: !w && /* @__PURE__ */ t.jsxs(
|
|
659
|
-
|
|
708
|
+
B,
|
|
660
709
|
{
|
|
661
710
|
orthographic: !0,
|
|
662
711
|
camera: {
|
|
@@ -666,7 +715,7 @@ const et = q(
|
|
|
666
715
|
shadows: !0,
|
|
667
716
|
frameloop: "demand",
|
|
668
717
|
style: {
|
|
669
|
-
borderRadius:
|
|
718
|
+
borderRadius: a.shape.borderRadius,
|
|
670
719
|
width: "100%",
|
|
671
720
|
height: "100%",
|
|
672
721
|
background: "transparent",
|
|
@@ -677,12 +726,12 @@ const et = q(
|
|
|
677
726
|
dpr: [1, 2],
|
|
678
727
|
gl: { alpha: !0, antialias: !0 },
|
|
679
728
|
children: [
|
|
680
|
-
/* @__PURE__ */ t.jsx(
|
|
681
|
-
/* @__PURE__ */ t.jsx(
|
|
682
|
-
|
|
729
|
+
/* @__PURE__ */ t.jsx(Y, {}),
|
|
730
|
+
/* @__PURE__ */ t.jsx(W, { fit: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
|
|
731
|
+
u,
|
|
683
732
|
{
|
|
684
|
-
connectedMotionGroup:
|
|
685
|
-
postModelRender:
|
|
733
|
+
connectedMotionGroup: f,
|
|
734
|
+
postModelRender: k
|
|
686
735
|
}
|
|
687
736
|
) })
|
|
688
737
|
]
|
|
@@ -710,7 +759,7 @@ const et = q(
|
|
|
710
759
|
textAlign: "left"
|
|
711
760
|
},
|
|
712
761
|
children: [
|
|
713
|
-
/* @__PURE__ */ t.jsx(
|
|
762
|
+
/* @__PURE__ */ t.jsx($, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
|
|
714
763
|
/* @__PURE__ */ t.jsx(
|
|
715
764
|
J,
|
|
716
765
|
{
|
|
@@ -734,15 +783,15 @@ const et = q(
|
|
|
734
783
|
justifyContent: "space-between"
|
|
735
784
|
},
|
|
736
785
|
children: [
|
|
737
|
-
!
|
|
738
|
-
/* @__PURE__ */ t.jsx(
|
|
786
|
+
!L && m && /* @__PURE__ */ t.jsxs(y, { children: [
|
|
787
|
+
/* @__PURE__ */ t.jsx(m, {}),
|
|
739
788
|
/* @__PURE__ */ t.jsx(
|
|
740
|
-
|
|
789
|
+
N,
|
|
741
790
|
{
|
|
742
791
|
sx: {
|
|
743
792
|
mt: 1,
|
|
744
793
|
mb: 0,
|
|
745
|
-
borderColor:
|
|
794
|
+
borderColor: a.palette.divider,
|
|
746
795
|
opacity: 0.5
|
|
747
796
|
}
|
|
748
797
|
}
|
|
@@ -752,7 +801,7 @@ const et = q(
|
|
|
752
801
|
y,
|
|
753
802
|
{
|
|
754
803
|
sx: {
|
|
755
|
-
mt: !
|
|
804
|
+
mt: !L && m ? "auto" : 0
|
|
756
805
|
},
|
|
757
806
|
children: /* @__PURE__ */ t.jsx(
|
|
758
807
|
y,
|
|
@@ -764,24 +813,24 @@ const et = q(
|
|
|
764
813
|
mb: { xs: 0.5, sm: 0.75, md: 1 }
|
|
765
814
|
},
|
|
766
815
|
children: /* @__PURE__ */ t.jsx(
|
|
767
|
-
|
|
816
|
+
H,
|
|
768
817
|
{
|
|
769
818
|
ref: g,
|
|
770
819
|
variant: "contained",
|
|
771
820
|
color: "secondary",
|
|
772
821
|
size: "small",
|
|
773
822
|
disabled: !o,
|
|
774
|
-
onMouseDown:
|
|
775
|
-
onMouseUp:
|
|
776
|
-
onMouseLeave:
|
|
777
|
-
onTouchStart:
|
|
778
|
-
onTouchEnd:
|
|
823
|
+
onMouseDown: V,
|
|
824
|
+
onMouseUp: C,
|
|
825
|
+
onMouseLeave: A,
|
|
826
|
+
onTouchStart: V,
|
|
827
|
+
onTouchEnd: C,
|
|
779
828
|
sx: {
|
|
780
829
|
textTransform: "none",
|
|
781
830
|
px: 1.5,
|
|
782
831
|
py: 0.5
|
|
783
832
|
},
|
|
784
|
-
children:
|
|
833
|
+
children: l("RobotCard.DriveToHome.bt")
|
|
785
834
|
}
|
|
786
835
|
)
|
|
787
836
|
}
|
|
@@ -805,7 +854,7 @@ const et = q(
|
|
|
805
854
|
},
|
|
806
855
|
children: [
|
|
807
856
|
/* @__PURE__ */ t.jsxs(y, { children: [
|
|
808
|
-
/* @__PURE__ */ t.jsx(
|
|
857
|
+
/* @__PURE__ */ t.jsx($, { variant: "h6", component: "h2", sx: { mb: 1 }, children: e }),
|
|
809
858
|
/* @__PURE__ */ t.jsx(
|
|
810
859
|
J,
|
|
811
860
|
{
|
|
@@ -828,7 +877,7 @@ const et = q(
|
|
|
828
877
|
display: w ? "none" : "block"
|
|
829
878
|
},
|
|
830
879
|
children: !w && /* @__PURE__ */ t.jsxs(
|
|
831
|
-
|
|
880
|
+
B,
|
|
832
881
|
{
|
|
833
882
|
orthographic: !0,
|
|
834
883
|
camera: {
|
|
@@ -838,7 +887,7 @@ const et = q(
|
|
|
838
887
|
shadows: !0,
|
|
839
888
|
frameloop: "demand",
|
|
840
889
|
style: {
|
|
841
|
-
borderRadius:
|
|
890
|
+
borderRadius: a.shape.borderRadius,
|
|
842
891
|
width: "100%",
|
|
843
892
|
height: "100%",
|
|
844
893
|
background: "transparent",
|
|
@@ -847,12 +896,12 @@ const et = q(
|
|
|
847
896
|
dpr: [1, 2],
|
|
848
897
|
gl: { alpha: !0, antialias: !0 },
|
|
849
898
|
children: [
|
|
850
|
-
/* @__PURE__ */ t.jsx(
|
|
851
|
-
/* @__PURE__ */ t.jsx(
|
|
852
|
-
|
|
899
|
+
/* @__PURE__ */ t.jsx(Y, {}),
|
|
900
|
+
/* @__PURE__ */ t.jsx(W, { fit: !0, clip: !0, observe: !0, margin: 1, maxDuration: 1, children: /* @__PURE__ */ t.jsx(
|
|
901
|
+
u,
|
|
853
902
|
{
|
|
854
|
-
connectedMotionGroup:
|
|
855
|
-
postModelRender:
|
|
903
|
+
connectedMotionGroup: f,
|
|
904
|
+
postModelRender: k
|
|
856
905
|
}
|
|
857
906
|
) })
|
|
858
907
|
]
|
|
@@ -861,15 +910,15 @@ const et = q(
|
|
|
861
910
|
}
|
|
862
911
|
),
|
|
863
912
|
/* @__PURE__ */ t.jsxs(y, { children: [
|
|
864
|
-
!
|
|
865
|
-
/* @__PURE__ */ t.jsx(
|
|
913
|
+
!L && m && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
914
|
+
/* @__PURE__ */ t.jsx(m, {}),
|
|
866
915
|
/* @__PURE__ */ t.jsx(
|
|
867
|
-
|
|
916
|
+
N,
|
|
868
917
|
{
|
|
869
918
|
sx: {
|
|
870
919
|
mt: 1,
|
|
871
920
|
mb: 0,
|
|
872
|
-
borderColor:
|
|
921
|
+
borderColor: a.palette.divider,
|
|
873
922
|
opacity: 0.5
|
|
874
923
|
}
|
|
875
924
|
}
|
|
@@ -881,28 +930,28 @@ const et = q(
|
|
|
881
930
|
sx: {
|
|
882
931
|
display: "flex",
|
|
883
932
|
justifyContent: "flex-start",
|
|
884
|
-
mt: !
|
|
933
|
+
mt: !L && m ? { xs: 1, sm: 2, md: 5 } : { xs: 0.5, sm: 1, md: 2 },
|
|
885
934
|
mb: { xs: 0.5, sm: 0.75, md: 1 }
|
|
886
935
|
},
|
|
887
936
|
children: /* @__PURE__ */ t.jsx(
|
|
888
|
-
|
|
937
|
+
H,
|
|
889
938
|
{
|
|
890
939
|
ref: g,
|
|
891
940
|
variant: "contained",
|
|
892
941
|
color: "secondary",
|
|
893
942
|
size: "small",
|
|
894
943
|
disabled: !o,
|
|
895
|
-
onMouseDown:
|
|
896
|
-
onMouseUp:
|
|
897
|
-
onMouseLeave:
|
|
898
|
-
onTouchStart:
|
|
899
|
-
onTouchEnd:
|
|
944
|
+
onMouseDown: V,
|
|
945
|
+
onMouseUp: C,
|
|
946
|
+
onMouseLeave: A,
|
|
947
|
+
onTouchStart: V,
|
|
948
|
+
onTouchEnd: C,
|
|
900
949
|
sx: {
|
|
901
950
|
textTransform: "none",
|
|
902
951
|
px: 1.5,
|
|
903
952
|
py: 0.5
|
|
904
953
|
},
|
|
905
|
-
children:
|
|
954
|
+
children: l("RobotCard.DriveToHome.bt")
|
|
906
955
|
}
|
|
907
956
|
)
|
|
908
957
|
}
|
|
@@ -915,7 +964,7 @@ const et = q(
|
|
|
915
964
|
);
|
|
916
965
|
}
|
|
917
966
|
)
|
|
918
|
-
),
|
|
967
|
+
), nt = Array(6).fill(2 * Math.PI), q = {
|
|
919
968
|
[j.Abb]: [0, 0, 0, 0, Math.PI / 2, 0, 0],
|
|
920
969
|
[j.Fanuc]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
|
|
921
970
|
[j.Yaskawa]: [0, 0, 0, 0, -Math.PI / 2, 0, 0],
|
|
@@ -938,7 +987,7 @@ const et = q(
|
|
|
938
987
|
0
|
|
939
988
|
]
|
|
940
989
|
};
|
|
941
|
-
function
|
|
990
|
+
function Ue(e) {
|
|
942
991
|
const [n] = e.split("_");
|
|
943
992
|
switch (n) {
|
|
944
993
|
case "ABB":
|
|
@@ -955,22 +1004,22 @@ function Oe(e) {
|
|
|
955
1004
|
return null;
|
|
956
1005
|
}
|
|
957
1006
|
}
|
|
958
|
-
function
|
|
959
|
-
const r =
|
|
960
|
-
return r && r in
|
|
1007
|
+
function ot(e, n) {
|
|
1008
|
+
const r = Ue(e);
|
|
1009
|
+
return r && r in q ? q[r] : n || null;
|
|
961
1010
|
}
|
|
962
1011
|
export {
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
1012
|
+
Qe as C,
|
|
1013
|
+
q as M,
|
|
1014
|
+
Y as P,
|
|
1015
|
+
Oe as R,
|
|
1016
|
+
et as S,
|
|
1017
|
+
tt as T,
|
|
1018
|
+
rt as a,
|
|
1019
|
+
ze as b,
|
|
1020
|
+
Q as c,
|
|
1021
|
+
nt as d,
|
|
1022
|
+
Ue as e,
|
|
1023
|
+
ot as g
|
|
975
1024
|
};
|
|
976
|
-
//# sourceMappingURL=manufacturerHomePositions-
|
|
1025
|
+
//# sourceMappingURL=manufacturerHomePositions-BaS-GAxw.js.map
|