@wandelbots/wandelbots-js-react-components 1.24.10 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "1.24.10",
3
+ "version": "1.26.0",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -0,0 +1,248 @@
1
+ import { animated } from "@react-spring/three"
2
+ import { useGLTF } from "@react-three/drei"
3
+ import type { RobotModelProps } from "./types"
4
+
5
+ FANUC_CRX10iAL.config = {
6
+ rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0],
7
+ }
8
+
9
+ export function FANUC_CRX10iAL({ modelURL, ...props }: RobotModelProps) {
10
+ const gltf = useGLTF(modelURL) as any
11
+ const nodes = gltf.nodes
12
+ const materials = gltf.materials
13
+
14
+ return (
15
+ <group {...props} dispose={null}>
16
+ <group name="Scene">
17
+ <group name="link_0">
18
+ <mesh
19
+ name="visuals_0"
20
+ castShadow
21
+ receiveShadow
22
+ geometry={nodes.visuals_0.geometry}
23
+ material={materials.fanuc_metal_black}
24
+ />
25
+ <mesh
26
+ name="visuals_0_1"
27
+ castShadow
28
+ receiveShadow
29
+ geometry={nodes.visuals_0_1.geometry}
30
+ material={materials.fanuc_stainless_steel}
31
+ />
32
+ <mesh
33
+ name="visuals_0_2"
34
+ castShadow
35
+ receiveShadow
36
+ geometry={nodes.visuals_0_2.geometry}
37
+ material={materials.fanuc_metal_black}
38
+ />
39
+ <mesh
40
+ name="visuals_0_3"
41
+ castShadow
42
+ receiveShadow
43
+ geometry={nodes.visuals_0_3.geometry}
44
+ material={materials.fanuc_stainless_steel}
45
+ />
46
+ <mesh
47
+ name="visuals_0_4"
48
+ castShadow
49
+ receiveShadow
50
+ geometry={nodes.visuals_0_4.geometry}
51
+ material={materials.fanuc_aluminium_black}
52
+ />
53
+ <mesh
54
+ name="visuals_0_5"
55
+ castShadow
56
+ receiveShadow
57
+ geometry={nodes.visuals_0_5.geometry}
58
+ material={materials.fanuc_aluminium_black}
59
+ />
60
+ <mesh
61
+ name="visuals_0_6"
62
+ castShadow
63
+ receiveShadow
64
+ geometry={nodes.visuals_0_6.geometry}
65
+ material={materials.fanuc_rubber}
66
+ />
67
+ </group>
68
+ <animated.group name="FANUC_CRX10IAL_J00">
69
+ <animated.group
70
+ name="FANUC_CRX10IAL_J01"
71
+ rotation={[Math.PI / 2, Math.PI / 2, 0]}
72
+ >
73
+ <animated.group name="FANUC_CRX10IAL_J02" position={[0.71, 0, 0]}>
74
+ <animated.group
75
+ name="FANUC_CRX10IAL_J03"
76
+ rotation={[-Math.PI / 2, 0, 0]}
77
+ >
78
+ <animated.group
79
+ name="FANUC_CRX10IAL_J04"
80
+ position={[0, -0.54, 0]}
81
+ rotation={[Math.PI / 2, 0, 0]}
82
+ >
83
+ <animated.group
84
+ name="FANUC_CRX10IAL_J05"
85
+ position={[0, 0.15, 0]}
86
+ rotation={[-Math.PI / 2, 0, 0]}
87
+ >
88
+ <group
89
+ name="FANUC_CRX10IAL_FLG"
90
+ position={[0, -0.16, 0]}
91
+ rotation={[-Math.PI, 0, 0]}
92
+ />
93
+ <group
94
+ name="link_6"
95
+ position={[-0.71, 0.54, -0.15]}
96
+ rotation={[0, 0, -Math.PI / 2]}
97
+ >
98
+ <mesh
99
+ name="visuals_6"
100
+ castShadow
101
+ receiveShadow
102
+ geometry={nodes.visuals_6.geometry}
103
+ material={materials.fanuc_metal_black}
104
+ />
105
+ <mesh
106
+ name="visuals_6_1"
107
+ castShadow
108
+ receiveShadow
109
+ geometry={nodes.visuals_6_1.geometry}
110
+ material={materials.fanuc_stainless_steel}
111
+ />
112
+ <mesh
113
+ name="visuals_6_2"
114
+ castShadow
115
+ receiveShadow
116
+ geometry={nodes.visuals_6_2.geometry}
117
+ material={materials.fanuc_aluminium_black}
118
+ />
119
+ <mesh
120
+ name="visuals_6_3"
121
+ castShadow
122
+ receiveShadow
123
+ geometry={nodes.visuals_6_3.geometry}
124
+ material={materials.fanuc_aluminium_black}
125
+ />
126
+ </group>
127
+ </animated.group>
128
+ <group
129
+ name="link_5"
130
+ position={[-0.71, 0, -0.54]}
131
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
132
+ >
133
+ <mesh
134
+ name="visuals_5"
135
+ castShadow
136
+ receiveShadow
137
+ geometry={nodes.visuals_5.geometry}
138
+ material={materials.fanuc_white}
139
+ />
140
+ <mesh
141
+ name="visuals_5_1"
142
+ castShadow
143
+ receiveShadow
144
+ geometry={nodes.visuals_5_1.geometry}
145
+ material={materials.fanuc_green}
146
+ />
147
+ <mesh
148
+ name="visuals_5_2"
149
+ castShadow
150
+ receiveShadow
151
+ geometry={nodes.visuals_5_2.geometry}
152
+ material={materials.fanuc_stainless_steel}
153
+ />
154
+ </group>
155
+ </animated.group>
156
+ <group
157
+ name="link_4"
158
+ position={[-0.71, 0, 0]}
159
+ rotation={[0, 0, -Math.PI / 2]}
160
+ >
161
+ <mesh
162
+ name="visuals_4"
163
+ castShadow
164
+ receiveShadow
165
+ geometry={nodes.visuals_4.geometry}
166
+ material={materials.fanuc_white}
167
+ />
168
+ <mesh
169
+ name="visuals_4_1"
170
+ castShadow
171
+ receiveShadow
172
+ geometry={nodes.visuals_4_1.geometry}
173
+ material={materials.fanuc_white}
174
+ />
175
+ <mesh
176
+ name="visuals_4_2"
177
+ castShadow
178
+ receiveShadow
179
+ geometry={nodes.visuals_4_2.geometry}
180
+ material={materials.fanuc_metal_black}
181
+ />
182
+ <mesh
183
+ name="visuals_4_3"
184
+ castShadow
185
+ receiveShadow
186
+ geometry={nodes.visuals_4_3.geometry}
187
+ material={materials.fanuc_red}
188
+ />
189
+ </group>
190
+ </animated.group>
191
+ <group
192
+ name="link_3"
193
+ position={[-0.71, 0, 0]}
194
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
195
+ >
196
+ <mesh
197
+ name="visuals_3"
198
+ castShadow
199
+ receiveShadow
200
+ geometry={nodes.visuals_3.geometry}
201
+ material={materials.fanuc_white}
202
+ />
203
+ <mesh
204
+ name="visuals_3_1"
205
+ castShadow
206
+ receiveShadow
207
+ geometry={nodes.visuals_3_1.geometry}
208
+ material={materials.fanuc_green}
209
+ />
210
+ </group>
211
+ </animated.group>
212
+ <mesh
213
+ name="link_2"
214
+ castShadow
215
+ receiveShadow
216
+ geometry={nodes.link_2.geometry}
217
+ material={materials.fanuc_white}
218
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
219
+ />
220
+ </animated.group>
221
+ <group name="link_1">
222
+ <mesh
223
+ name="visuals_1"
224
+ castShadow
225
+ receiveShadow
226
+ geometry={nodes.visuals_1.geometry}
227
+ material={materials.fanuc_green}
228
+ />
229
+ <mesh
230
+ name="visuals_1_1"
231
+ castShadow
232
+ receiveShadow
233
+ geometry={nodes.visuals_1_1.geometry}
234
+ material={materials.fanuc_white}
235
+ />
236
+ <mesh
237
+ name="visuals_1_2"
238
+ castShadow
239
+ receiveShadow
240
+ geometry={nodes.visuals_1_2.geometry}
241
+ material={materials.fanuc_green}
242
+ />
243
+ </group>
244
+ </animated.group>
245
+ </group>
246
+ </group>
247
+ )
248
+ }
@@ -0,0 +1,176 @@
1
+ /*
2
+ Auto-generated by: https://github.com/pmndrs/gltfjsx
3
+ */
4
+
5
+ import { animated } from "@react-spring/three"
6
+ import { useGLTF } from "@react-three/drei"
7
+ import type { RobotModelProps } from "./types"
8
+
9
+ export function FANUC_LR_MATE_200iD7L({ modelURL, ...props }: RobotModelProps) {
10
+ const { nodes, materials } = useGLTF(modelURL) as any
11
+ return (
12
+ <group {...props} dispose={null}>
13
+ <group name="Scene">
14
+ <group name="link_0">
15
+ <mesh
16
+ name="visuals_0"
17
+ castShadow
18
+ receiveShadow
19
+ geometry={nodes.visuals_0.geometry}
20
+ material={materials.fanuc_metal_black}
21
+ />
22
+ <mesh
23
+ name="visuals_0_1"
24
+ castShadow
25
+ receiveShadow
26
+ geometry={nodes.visuals_0_1.geometry}
27
+ material={materials.fanuc_metal_black}
28
+ />
29
+ <mesh
30
+ name="visuals_0_2"
31
+ castShadow
32
+ receiveShadow
33
+ geometry={nodes.visuals_0_2.geometry}
34
+ material={materials.fanuc_aluminium_black}
35
+ />
36
+ </group>
37
+ <animated.group name="FANUC_LRMATE200ID7L_J00">
38
+ <animated.group
39
+ name="FANUC_LRMATE200ID7L_J01"
40
+ position={[0.05, 0, 0]}
41
+ rotation={[Math.PI / 2, Math.PI / 2, 0]}
42
+ >
43
+ <animated.group
44
+ name="FANUC_LRMATE200ID7L_J02"
45
+ position={[0.44, 0, 0]}
46
+ >
47
+ <animated.group
48
+ name="FANUC_LRMATE200ID7L_J03"
49
+ position={[0.035, 0, 0]}
50
+ rotation={[-Math.PI / 2, 0, 0]}
51
+ >
52
+ <animated.group
53
+ name="FANUC_LRMATE200ID7L_J04"
54
+ position={[0, -0.42, 0]}
55
+ rotation={[Math.PI / 2, 0, 0]}
56
+ >
57
+ <animated.group
58
+ name="FANUC_LRMATE200ID7L_J05"
59
+ rotation={[-Math.PI / 2, 0, 0]}
60
+ >
61
+ <animated.group
62
+ name="FANUC_LRMATE200ID7L_FLG"
63
+ position={[0, -0.08, 0]}
64
+ rotation={[-Math.PI, 0, 0]}
65
+ />
66
+ <mesh
67
+ name="link_6"
68
+ castShadow
69
+ receiveShadow
70
+ geometry={nodes.link_6.geometry}
71
+ material={materials.fanuc_metal_black}
72
+ position={[-0.475, 0.47, 0]}
73
+ rotation={[0, 0, -Math.PI / 2]}
74
+ />
75
+ </animated.group>
76
+ <group
77
+ name="link_5"
78
+ position={[-0.475, 0, -0.47]}
79
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
80
+ >
81
+ <mesh
82
+ name="visuals_5"
83
+ castShadow
84
+ receiveShadow
85
+ geometry={nodes.visuals_5.geometry}
86
+ material={materials.fanuc_yellow}
87
+ />
88
+ <mesh
89
+ name="visuals_5_1"
90
+ castShadow
91
+ receiveShadow
92
+ geometry={nodes.visuals_5_1.geometry}
93
+ material={materials.fanuc_stainless_steel}
94
+ />
95
+ <mesh
96
+ name="visuals_5_2"
97
+ castShadow
98
+ receiveShadow
99
+ geometry={nodes.visuals_5_2.geometry}
100
+ material={materials.fanuc_metal_black}
101
+ />
102
+ </group>
103
+ </animated.group>
104
+ <group
105
+ name="link_4"
106
+ position={[-0.475, 0.05, 0]}
107
+ rotation={[0, 0, -Math.PI / 2]}
108
+ >
109
+ <mesh
110
+ name="visuals_4"
111
+ castShadow
112
+ receiveShadow
113
+ geometry={nodes.visuals_4.geometry}
114
+ material={materials.fanuc_yellow}
115
+ />
116
+ <mesh
117
+ name="visuals_4_1"
118
+ castShadow
119
+ receiveShadow
120
+ geometry={nodes.visuals_4_1.geometry}
121
+ material={materials.fanuc_aluminium_black}
122
+ />
123
+ </group>
124
+ </animated.group>
125
+ <group
126
+ name="link_3"
127
+ position={[-0.44, 0, -0.05]}
128
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
129
+ >
130
+ <mesh
131
+ name="visuals_3"
132
+ castShadow
133
+ receiveShadow
134
+ geometry={nodes.visuals_3.geometry}
135
+ material={materials.fanuc_yellow}
136
+ />
137
+ <mesh
138
+ name="visuals_3_1"
139
+ castShadow
140
+ receiveShadow
141
+ geometry={nodes.visuals_3_1.geometry}
142
+ material={materials.fanuc_stainless_steel}
143
+ />
144
+ </group>
145
+ </animated.group>
146
+ <mesh
147
+ name="link_2"
148
+ castShadow
149
+ receiveShadow
150
+ geometry={nodes.link_2.geometry}
151
+ material={materials.fanuc_yellow}
152
+ position={[0, 0, -0.05]}
153
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
154
+ />
155
+ </animated.group>
156
+ <group name="link_1">
157
+ <mesh
158
+ name="visuals_1"
159
+ castShadow
160
+ receiveShadow
161
+ geometry={nodes.visuals_1.geometry}
162
+ material={materials.fanuc_yellow}
163
+ />
164
+ <mesh
165
+ name="visuals_1_1"
166
+ castShadow
167
+ receiveShadow
168
+ geometry={nodes.visuals_1_1.geometry}
169
+ material={materials.fanuc_stainless_steel}
170
+ />
171
+ </group>
172
+ </animated.group>
173
+ </group>
174
+ </group>
175
+ )
176
+ }
@@ -9,6 +9,7 @@ import { FANUC_CRX20iAL } from "./FANUC_CRX20iAL"
9
9
  import { FANUC_CRX25iA } from "./FANUC_CRX25iA"
10
10
  import { FANUC_CRX25iAL } from "./FANUC_CRX25iAL"
11
11
  import { FANUC_LR_Mate_200iD } from "./FANUC_LR_Mate_200iD"
12
+ import { FANUC_LR_MATE_200iD7L } from "./FANUC_LR_MATE_200iD7L"
12
13
  import { KUKA_KR16_R2010_2 } from "./KUKA_KR16_R2010_2"
13
14
  import { KUKA_KR210_R2700 } from "./KUKA_KR210_R2700"
14
15
  import { KUKA_KR270_R2700 } from "./KUKA_KR270_R2700"
@@ -37,6 +38,7 @@ import { ErrorBoundary } from "react-error-boundary"
37
38
  import * as THREE from "three"
38
39
  import { externalizeComponent } from "../../externalizeComponent"
39
40
  import ConsoleFilter from "../ConsoleFilter"
41
+ import { FANUC_CRX10iAL } from "./FANUC_CRX10iAL"
40
42
  import RobotAnimator from "./RobotAnimator"
41
43
  import type { RobotModelComponent } from "./types"
42
44
 
@@ -199,6 +201,9 @@ export const SupportedRobot = externalizeComponent(
199
201
  case "FANUC_CRX10iA":
200
202
  Robot = FANUC_CRX10iA
201
203
  break
204
+ case "FANUC_CRX10iAL":
205
+ Robot = FANUC_CRX10iAL
206
+ break
202
207
  case "FANUC_CRX20iAL":
203
208
  Robot = FANUC_CRX20iAL
204
209
  break
@@ -211,6 +216,9 @@ export const SupportedRobot = externalizeComponent(
211
216
  case "FANUC_LR_Mate_200iD":
212
217
  Robot = FANUC_LR_Mate_200iD
213
218
  break
219
+ case "FANUC_LR_Mate_200iD7L":
220
+ Robot = FANUC_LR_MATE_200iD7L
221
+ break
214
222
  case "FANUC_ARC_Mate_120iD":
215
223
  Robot = FANUC_ARC_Mate_120iD
216
224
  break