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