@wandelbots/wandelbots-js-react-components 1.33.5 → 1.34.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/dist/components/robots/DHRobot.d.ts.map +1 -1
- package/dist/components/robots/GenericRobot.d.ts +3 -0
- package/dist/components/robots/GenericRobot.d.ts.map +1 -0
- package/dist/components/robots/Robot.d.ts +1 -1
- package/dist/components/robots/Robot.d.ts.map +1 -1
- package/dist/components/robots/RobotAnimator.d.ts +3 -4
- package/dist/components/robots/RobotAnimator.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/types.d.ts +1 -1
- package/dist/components/robots/types.d.ts.map +1 -1
- package/dist/index.cjs +32 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5560 -12952
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/DHRobot.tsx +1 -0
- package/src/components/robots/GenericRobot.tsx +54 -0
- package/src/components/robots/Robot.tsx +1 -1
- package/src/components/robots/RobotAnimator.tsx +11 -9
- package/src/components/robots/SupportedRobot.tsx +11 -160
- package/src/components/robots/types.ts +1 -1
- package/dist/components/robots/ABB_1200_07_7.d.ts +0 -8
- package/dist/components/robots/ABB_1200_07_7.d.ts.map +0 -1
- package/dist/components/robots/ABB_1300_115_10.d.ts +0 -8
- package/dist/components/robots/ABB_1300_115_10.d.ts.map +0 -1
- package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts +0 -8
- package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts +0 -8
- package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX10iA.d.ts +0 -8
- package/dist/components/robots/FANUC_CRX10iA.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX10iAL.d.ts +0 -8
- package/dist/components/robots/FANUC_CRX10iAL.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX20iAL.d.ts +0 -8
- package/dist/components/robots/FANUC_CRX20iAL.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX25iA.d.ts +0 -8
- package/dist/components/robots/FANUC_CRX25iA.d.ts.map +0 -1
- package/dist/components/robots/FANUC_CRX25iAL.d.ts +0 -8
- package/dist/components/robots/FANUC_CRX25iAL.d.ts.map +0 -1
- package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts +0 -8
- package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts.map +0 -1
- package/dist/components/robots/FANUC_LR_Mate_200iD4S.d.ts +0 -8
- package/dist/components/robots/FANUC_LR_Mate_200iD4S.d.ts.map +0 -1
- package/dist/components/robots/FANUC_LR_Mate_200iD7L.d.ts +0 -8
- package/dist/components/robots/FANUC_LR_Mate_200iD7L.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR16_R2010_2.d.ts +0 -9
- package/dist/components/robots/KUKA_KR16_R2010_2.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR20_R1810_2.d.ts +0 -9
- package/dist/components/robots/KUKA_KR20_R1810_2.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR210_R2700.d.ts +0 -8
- package/dist/components/robots/KUKA_KR210_R2700.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR270_R2700.d.ts +0 -8
- package/dist/components/robots/KUKA_KR270_R2700.d.ts.map +0 -1
- package/dist/components/robots/KUKA_KR6_R700_2.d.ts +0 -9
- package/dist/components/robots/KUKA_KR6_R700_2.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR10CB.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR10CB.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR10e.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR10e.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR16e.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR16e.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR3CB.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR3CB.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR3e.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR5CB.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR5CB.d.ts.map +0 -1
- package/dist/components/robots/UniversalRobots_UR5e.d.ts +0 -3
- package/dist/components/robots/UniversalRobots_UR5e.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR1440.d.ts +0 -9
- package/dist/components/robots/Yaskawa_AR1440.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR1730.d.ts +0 -9
- package/dist/components/robots/Yaskawa_AR1730.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR2010.d.ts +0 -8
- package/dist/components/robots/Yaskawa_AR2010.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR3120.d.ts +0 -9
- package/dist/components/robots/Yaskawa_AR3120.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_AR900.d.ts +0 -8
- package/dist/components/robots/Yaskawa_AR900.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_GP50.d.ts +0 -8
- package/dist/components/robots/Yaskawa_GP50.d.ts.map +0 -1
- package/dist/components/robots/Yaskawa_GP88.d.ts +0 -8
- package/dist/components/robots/Yaskawa_GP88.d.ts.map +0 -1
- package/src/components/robots/ABB_1200_07_7.tsx +0 -161
- package/src/components/robots/ABB_1300_115_10.tsx +0 -179
- package/src/components/robots/FANUC_ARC_Mate_100iD.tsx +0 -151
- package/src/components/robots/FANUC_ARC_Mate_120iD.tsx +0 -151
- package/src/components/robots/FANUC_CRX10iA.tsx +0 -137
- package/src/components/robots/FANUC_CRX10iAL.tsx +0 -205
- package/src/components/robots/FANUC_CRX20iAL.tsx +0 -142
- package/src/components/robots/FANUC_CRX25iA.tsx +0 -135
- package/src/components/robots/FANUC_CRX25iAL.tsx +0 -146
- package/src/components/robots/FANUC_LR_Mate_200iD.tsx +0 -122
- package/src/components/robots/FANUC_LR_Mate_200iD4S.tsx +0 -112
- package/src/components/robots/FANUC_LR_Mate_200iD7L.tsx +0 -157
- package/src/components/robots/KUKA_KR16_R2010_2.tsx +0 -149
- package/src/components/robots/KUKA_KR20_R1810_2.tsx +0 -205
- package/src/components/robots/KUKA_KR210_R2700.tsx +0 -232
- package/src/components/robots/KUKA_KR270_R2700.tsx +0 -194
- package/src/components/robots/KUKA_KR6_R700_2.tsx +0 -129
- package/src/components/robots/UniversalRobots_UR10CB.tsx +0 -246
- package/src/components/robots/UniversalRobots_UR10e.tsx +0 -273
- package/src/components/robots/UniversalRobots_UR16e.tsx +0 -234
- package/src/components/robots/UniversalRobots_UR3CB.tsx +0 -89
- package/src/components/robots/UniversalRobots_UR3e.tsx +0 -209
- package/src/components/robots/UniversalRobots_UR5CB.tsx +0 -203
- package/src/components/robots/UniversalRobots_UR5e.tsx +0 -219
- package/src/components/robots/Yaskawa_AR1440.tsx +0 -125
- package/src/components/robots/Yaskawa_AR1730.tsx +0 -138
- package/src/components/robots/Yaskawa_AR2010.tsx +0 -139
- package/src/components/robots/Yaskawa_AR3120.tsx +0 -133
- package/src/components/robots/Yaskawa_AR900.tsx +0 -148
- package/src/components/robots/Yaskawa_GP50.tsx +0 -196
- package/src/components/robots/Yaskawa_GP88.tsx +0 -169
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { animated } from "@react-spring/three"
|
|
2
|
-
import { useGLTF } from "@react-three/drei"
|
|
3
|
-
import type { RobotModelProps } from "./types"
|
|
4
|
-
|
|
5
|
-
FANUC_ARC_Mate_120iD.config = {
|
|
6
|
-
rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0],
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function FANUC_ARC_Mate_120iD({
|
|
10
|
-
modelURL,
|
|
11
|
-
flangeRef,
|
|
12
|
-
...props
|
|
13
|
-
}: RobotModelProps) {
|
|
14
|
-
const gltf = useGLTF(modelURL) as any
|
|
15
|
-
const nodes = gltf.nodes
|
|
16
|
-
const materials = gltf.materials
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<>
|
|
20
|
-
<group {...props} dispose={null}>
|
|
21
|
-
<group name="Scene">
|
|
22
|
-
<group name="M10iD" rotation={[0, 0, 0]}>
|
|
23
|
-
<animated.group name="M20iD25_J00">
|
|
24
|
-
<animated.group
|
|
25
|
-
name="M20iD25_J01"
|
|
26
|
-
position={[0.075, 0, 0]}
|
|
27
|
-
rotation={[Math.PI / 2, Math.PI / 2, 0]}
|
|
28
|
-
>
|
|
29
|
-
<animated.group name="M20iD25_J02" position={[0.84, 0, 0]}>
|
|
30
|
-
<animated.group
|
|
31
|
-
name="M20iD25_J03"
|
|
32
|
-
position={[0.215, 0, 0]}
|
|
33
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
34
|
-
>
|
|
35
|
-
<animated.group
|
|
36
|
-
name="M20iD25_J04"
|
|
37
|
-
position={[0, -0.89, 0]}
|
|
38
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
39
|
-
>
|
|
40
|
-
<animated.group
|
|
41
|
-
name="M20iD25_J05"
|
|
42
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
43
|
-
>
|
|
44
|
-
<group
|
|
45
|
-
ref={flangeRef}
|
|
46
|
-
name="M20iD25_FLG"
|
|
47
|
-
position={[0, -0.09, 0]}
|
|
48
|
-
rotation={[-Math.PI, 0, 0]}
|
|
49
|
-
/>
|
|
50
|
-
<mesh
|
|
51
|
-
name="M20iD25_L06"
|
|
52
|
-
geometry={nodes.M20iD25_L06.geometry}
|
|
53
|
-
material={materials.Fanuc_BlackMetal_AO}
|
|
54
|
-
position={[0, -0.09, 0]}
|
|
55
|
-
rotation={[Math.PI / 2, 0, Math.PI]}
|
|
56
|
-
/>
|
|
57
|
-
</animated.group>
|
|
58
|
-
<mesh
|
|
59
|
-
name="M20iD25_L05"
|
|
60
|
-
geometry={nodes.M20iD25_L05.geometry}
|
|
61
|
-
material={materials.Fanuc_BlackMetal_AO}
|
|
62
|
-
rotation={[Math.PI, Math.PI / 2, 0]}
|
|
63
|
-
/>
|
|
64
|
-
</animated.group>
|
|
65
|
-
<group
|
|
66
|
-
name="M20iD25_L04"
|
|
67
|
-
position={[0, -0.286, 0]}
|
|
68
|
-
rotation={[-Math.PI / 2, Math.PI / 2, 0]}
|
|
69
|
-
>
|
|
70
|
-
<mesh
|
|
71
|
-
name="Mesh_2"
|
|
72
|
-
geometry={nodes.Mesh_2.geometry}
|
|
73
|
-
material={materials.Fanuc_Yellow_Textured_AO}
|
|
74
|
-
/>
|
|
75
|
-
<mesh
|
|
76
|
-
name="Mesh_2_1"
|
|
77
|
-
geometry={nodes.Mesh_2_1.geometry}
|
|
78
|
-
material={materials.Fanuc_BlackMetal_AO}
|
|
79
|
-
/>
|
|
80
|
-
</group>
|
|
81
|
-
</animated.group>
|
|
82
|
-
<group
|
|
83
|
-
name="M20iD25_L03"
|
|
84
|
-
position={[0, 0.406, 0]}
|
|
85
|
-
rotation={[Math.PI, Math.PI / 2, 0]}
|
|
86
|
-
>
|
|
87
|
-
<mesh
|
|
88
|
-
name="Mesh_15"
|
|
89
|
-
geometry={nodes.Mesh_15.geometry}
|
|
90
|
-
material={materials.Fanuc_BlackMetal_AO}
|
|
91
|
-
/>
|
|
92
|
-
<mesh
|
|
93
|
-
name="Mesh_15_1"
|
|
94
|
-
geometry={nodes.Mesh_15_1.geometry}
|
|
95
|
-
material={materials.Fanuc_Yellow_Textured_AO}
|
|
96
|
-
/>
|
|
97
|
-
<mesh
|
|
98
|
-
name="Mesh_15_2"
|
|
99
|
-
geometry={nodes.Mesh_15_2.geometry}
|
|
100
|
-
material={materials.Material_9_AO}
|
|
101
|
-
/>
|
|
102
|
-
</group>
|
|
103
|
-
</animated.group>
|
|
104
|
-
<group
|
|
105
|
-
name="M20iD25_L02"
|
|
106
|
-
position={[0, 0.505, -0.055]}
|
|
107
|
-
rotation={[-Math.PI, Math.PI / 2, 0]}
|
|
108
|
-
>
|
|
109
|
-
<mesh
|
|
110
|
-
name="Mesh_37"
|
|
111
|
-
geometry={nodes.Mesh_37.geometry}
|
|
112
|
-
material={materials.Fanuc_BlackMetal_AO}
|
|
113
|
-
/>
|
|
114
|
-
<mesh
|
|
115
|
-
name="Mesh_37_1"
|
|
116
|
-
geometry={nodes.Mesh_37_1.geometry}
|
|
117
|
-
material={materials.Fanuc_Yellow_Textured_AO}
|
|
118
|
-
/>
|
|
119
|
-
</group>
|
|
120
|
-
</animated.group>
|
|
121
|
-
<group name="M20iD25_L01" rotation={[-Math.PI / 2, 0, 0]}>
|
|
122
|
-
<mesh
|
|
123
|
-
name="Mesh_45"
|
|
124
|
-
geometry={nodes.Mesh_45.geometry}
|
|
125
|
-
material={materials.Material_9_AO}
|
|
126
|
-
/>
|
|
127
|
-
<mesh
|
|
128
|
-
name="Mesh_45_1"
|
|
129
|
-
geometry={nodes.Mesh_45_1.geometry}
|
|
130
|
-
material={materials.Fanuc_Yellow_Textured_AO}
|
|
131
|
-
/>
|
|
132
|
-
<mesh
|
|
133
|
-
name="Mesh_45_2"
|
|
134
|
-
geometry={nodes.Mesh_45_2.geometry}
|
|
135
|
-
material={materials.Fanuc_BlackMetal_AO}
|
|
136
|
-
/>
|
|
137
|
-
</group>
|
|
138
|
-
</animated.group>
|
|
139
|
-
<mesh
|
|
140
|
-
name="M20iD25_L00"
|
|
141
|
-
geometry={nodes.M20iD25_L00.geometry}
|
|
142
|
-
material={materials.Fanuc_BlackMetal_AO}
|
|
143
|
-
position={[0, -0.425, 0]}
|
|
144
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
145
|
-
/>
|
|
146
|
-
</group>
|
|
147
|
-
</group>
|
|
148
|
-
</group>
|
|
149
|
-
</>
|
|
150
|
-
)
|
|
151
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { animated } from "@react-spring/three"
|
|
2
|
-
import { useGLTF } from "@react-three/drei"
|
|
3
|
-
import type { RobotModelProps } from "./types"
|
|
4
|
-
|
|
5
|
-
FANUC_CRX10iA.config = {
|
|
6
|
-
rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0],
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function FANUC_CRX10iA({
|
|
10
|
-
modelURL,
|
|
11
|
-
flangeRef,
|
|
12
|
-
...props
|
|
13
|
-
}: RobotModelProps) {
|
|
14
|
-
const gltf = useGLTF(modelURL) as any
|
|
15
|
-
const nodes = gltf.nodes
|
|
16
|
-
const materials = gltf.materials
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<>
|
|
20
|
-
<group {...props} dispose={null}>
|
|
21
|
-
<group name="Scene">
|
|
22
|
-
<animated.group name="CRX10iA_J00">
|
|
23
|
-
<animated.group
|
|
24
|
-
name="CRX10iA_J01"
|
|
25
|
-
rotation={[Math.PI / 2, Math.PI / 2, 0]}
|
|
26
|
-
>
|
|
27
|
-
<animated.group name="CRX10iA_J02" position={[0.54, 0, 0]}>
|
|
28
|
-
<animated.group
|
|
29
|
-
name="CRX10iA_J03"
|
|
30
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
31
|
-
>
|
|
32
|
-
<animated.group
|
|
33
|
-
name="CRX10iA_J04"
|
|
34
|
-
position={[0, -0.54, 0]}
|
|
35
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
36
|
-
>
|
|
37
|
-
<animated.group
|
|
38
|
-
name="CRX10iA_J05"
|
|
39
|
-
position={[0, 0.15, 0]}
|
|
40
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
41
|
-
>
|
|
42
|
-
<group
|
|
43
|
-
ref={flangeRef}
|
|
44
|
-
name="CRX10iA_FLG"
|
|
45
|
-
position={[0, -0.16, 0]}
|
|
46
|
-
rotation={[-Math.PI, 0, 0]}
|
|
47
|
-
/>
|
|
48
|
-
<mesh
|
|
49
|
-
name="CRX10iA_L06"
|
|
50
|
-
geometry={nodes.CRX10iA_L06.geometry}
|
|
51
|
-
material={materials.Fanuc_BlackMetal}
|
|
52
|
-
position={[0, -0.16, 0]}
|
|
53
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
54
|
-
/>
|
|
55
|
-
</animated.group>
|
|
56
|
-
<group
|
|
57
|
-
name="CRX10iA_L05"
|
|
58
|
-
position={[0, 0.15, 0]}
|
|
59
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
60
|
-
>
|
|
61
|
-
<mesh
|
|
62
|
-
name="J5CASING_UNIT001"
|
|
63
|
-
geometry={nodes.J5CASING_UNIT001.geometry}
|
|
64
|
-
material={materials.Fanuc_WhitePlastic}
|
|
65
|
-
/>
|
|
66
|
-
<mesh
|
|
67
|
-
name="J5CASING_UNIT001_1"
|
|
68
|
-
geometry={nodes.J5CASING_UNIT001_1.geometry}
|
|
69
|
-
material={materials.Fanuc_Green}
|
|
70
|
-
/>
|
|
71
|
-
</group>
|
|
72
|
-
</animated.group>
|
|
73
|
-
<group
|
|
74
|
-
name="CRX10iA_L04"
|
|
75
|
-
position={[0, -0.54, 0]}
|
|
76
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
77
|
-
>
|
|
78
|
-
<mesh
|
|
79
|
-
name="NAME_LABEL_CRX_10iA"
|
|
80
|
-
geometry={nodes.NAME_LABEL_CRX_10iA.geometry}
|
|
81
|
-
material={materials.Fanuc_RedPlastic}
|
|
82
|
-
/>
|
|
83
|
-
<mesh
|
|
84
|
-
name="NAME_LABEL_CRX_10iA_1"
|
|
85
|
-
geometry={nodes.NAME_LABEL_CRX_10iA_1.geometry}
|
|
86
|
-
material={materials.Fanuc_BlackPlastic}
|
|
87
|
-
/>
|
|
88
|
-
<mesh
|
|
89
|
-
name="NAME_LABEL_CRX_10iA_2"
|
|
90
|
-
geometry={nodes.NAME_LABEL_CRX_10iA_2.geometry}
|
|
91
|
-
material={materials.Fanuc_WhitePlastic}
|
|
92
|
-
/>
|
|
93
|
-
</group>
|
|
94
|
-
</animated.group>
|
|
95
|
-
<mesh
|
|
96
|
-
name="CRX10iA_L03"
|
|
97
|
-
geometry={nodes.CRX10iA_L03.geometry}
|
|
98
|
-
material={materials.Fanuc_WhitePlastic}
|
|
99
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
100
|
-
/>
|
|
101
|
-
</animated.group>
|
|
102
|
-
<mesh
|
|
103
|
-
name="CRX10iA_L02"
|
|
104
|
-
geometry={nodes.CRX10iA_L02.geometry}
|
|
105
|
-
material={materials.Fanuc_WhitePlastic}
|
|
106
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
107
|
-
/>
|
|
108
|
-
</animated.group>
|
|
109
|
-
<group name="CRX10iA_L01" position={[0, -0.117, 0]}>
|
|
110
|
-
<mesh
|
|
111
|
-
name="J2BASE_UNIT001"
|
|
112
|
-
geometry={nodes.J2BASE_UNIT001.geometry}
|
|
113
|
-
material={materials.Fanuc_Green}
|
|
114
|
-
/>
|
|
115
|
-
<mesh
|
|
116
|
-
name="J2BASE_UNIT001_1"
|
|
117
|
-
geometry={nodes.J2BASE_UNIT001_1.geometry}
|
|
118
|
-
material={materials.Fanuc_WhitePlastic}
|
|
119
|
-
/>
|
|
120
|
-
<mesh
|
|
121
|
-
name="J2BASE_UNIT001_2"
|
|
122
|
-
geometry={nodes.J2BASE_UNIT001_2.geometry}
|
|
123
|
-
material={materials.Fanuc_GreenLED}
|
|
124
|
-
/>
|
|
125
|
-
</group>
|
|
126
|
-
</animated.group>
|
|
127
|
-
<mesh
|
|
128
|
-
name="CRX10iA_L00"
|
|
129
|
-
geometry={nodes.CRX10iA_L00.geometry}
|
|
130
|
-
material={materials.Fanuc_BlackMetal}
|
|
131
|
-
position={[0, -0.245, 0]}
|
|
132
|
-
/>
|
|
133
|
-
</group>
|
|
134
|
-
</group>
|
|
135
|
-
</>
|
|
136
|
-
)
|
|
137
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
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({
|
|
10
|
-
modelURL,
|
|
11
|
-
flangeRef,
|
|
12
|
-
...props
|
|
13
|
-
}: RobotModelProps) {
|
|
14
|
-
const gltf = useGLTF(modelURL) as any
|
|
15
|
-
const nodes = gltf.nodes
|
|
16
|
-
const materials = gltf.materials
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<group {...props} dispose={null}>
|
|
20
|
-
<group name="Scene">
|
|
21
|
-
<group name="link_0">
|
|
22
|
-
<mesh
|
|
23
|
-
name="visuals_0"
|
|
24
|
-
geometry={nodes.visuals_0.geometry}
|
|
25
|
-
material={materials.fanuc_metal_black}
|
|
26
|
-
/>
|
|
27
|
-
<mesh
|
|
28
|
-
name="visuals_0_1"
|
|
29
|
-
geometry={nodes.visuals_0_1.geometry}
|
|
30
|
-
material={materials.fanuc_stainless_steel}
|
|
31
|
-
/>
|
|
32
|
-
<mesh
|
|
33
|
-
name="visuals_0_2"
|
|
34
|
-
geometry={nodes.visuals_0_2.geometry}
|
|
35
|
-
material={materials.fanuc_metal_black}
|
|
36
|
-
/>
|
|
37
|
-
<mesh
|
|
38
|
-
name="visuals_0_3"
|
|
39
|
-
geometry={nodes.visuals_0_3.geometry}
|
|
40
|
-
material={materials.fanuc_stainless_steel}
|
|
41
|
-
/>
|
|
42
|
-
<mesh
|
|
43
|
-
name="visuals_0_4"
|
|
44
|
-
geometry={nodes.visuals_0_4.geometry}
|
|
45
|
-
material={materials.fanuc_aluminium_black}
|
|
46
|
-
/>
|
|
47
|
-
<mesh
|
|
48
|
-
name="visuals_0_5"
|
|
49
|
-
geometry={nodes.visuals_0_5.geometry}
|
|
50
|
-
material={materials.fanuc_aluminium_black}
|
|
51
|
-
/>
|
|
52
|
-
<mesh
|
|
53
|
-
name="visuals_0_6"
|
|
54
|
-
geometry={nodes.visuals_0_6.geometry}
|
|
55
|
-
material={materials.fanuc_rubber}
|
|
56
|
-
/>
|
|
57
|
-
</group>
|
|
58
|
-
<animated.group name="FANUC_CRX10IAL_J00">
|
|
59
|
-
<animated.group
|
|
60
|
-
name="FANUC_CRX10IAL_J01"
|
|
61
|
-
rotation={[Math.PI / 2, Math.PI / 2, 0]}
|
|
62
|
-
>
|
|
63
|
-
<animated.group name="FANUC_CRX10IAL_J02" position={[0.71, 0, 0]}>
|
|
64
|
-
<animated.group
|
|
65
|
-
name="FANUC_CRX10IAL_J03"
|
|
66
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
67
|
-
>
|
|
68
|
-
<animated.group
|
|
69
|
-
name="FANUC_CRX10IAL_J04"
|
|
70
|
-
position={[0, -0.54, 0]}
|
|
71
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
72
|
-
>
|
|
73
|
-
<animated.group
|
|
74
|
-
name="FANUC_CRX10IAL_J05"
|
|
75
|
-
position={[0, 0.15, 0]}
|
|
76
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
77
|
-
>
|
|
78
|
-
<group
|
|
79
|
-
ref={flangeRef}
|
|
80
|
-
name="FANUC_CRX10IAL_FLG"
|
|
81
|
-
position={[0, -0.16, 0]}
|
|
82
|
-
rotation={[-Math.PI, 0, 0]}
|
|
83
|
-
/>
|
|
84
|
-
<group
|
|
85
|
-
name="link_6"
|
|
86
|
-
position={[-0.71, 0.54, -0.15]}
|
|
87
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
88
|
-
>
|
|
89
|
-
<mesh
|
|
90
|
-
name="visuals_6"
|
|
91
|
-
geometry={nodes.visuals_6.geometry}
|
|
92
|
-
material={materials.fanuc_metal_black}
|
|
93
|
-
/>
|
|
94
|
-
<mesh
|
|
95
|
-
name="visuals_6_1"
|
|
96
|
-
geometry={nodes.visuals_6_1.geometry}
|
|
97
|
-
material={materials.fanuc_stainless_steel}
|
|
98
|
-
/>
|
|
99
|
-
<mesh
|
|
100
|
-
name="visuals_6_2"
|
|
101
|
-
geometry={nodes.visuals_6_2.geometry}
|
|
102
|
-
material={materials.fanuc_aluminium_black}
|
|
103
|
-
/>
|
|
104
|
-
<mesh
|
|
105
|
-
name="visuals_6_3"
|
|
106
|
-
geometry={nodes.visuals_6_3.geometry}
|
|
107
|
-
material={materials.fanuc_aluminium_black}
|
|
108
|
-
/>
|
|
109
|
-
</group>
|
|
110
|
-
</animated.group>
|
|
111
|
-
<group
|
|
112
|
-
name="link_5"
|
|
113
|
-
position={[-0.71, 0, -0.54]}
|
|
114
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
115
|
-
>
|
|
116
|
-
<mesh
|
|
117
|
-
name="visuals_5"
|
|
118
|
-
geometry={nodes.visuals_5.geometry}
|
|
119
|
-
material={materials.fanuc_white}
|
|
120
|
-
/>
|
|
121
|
-
<mesh
|
|
122
|
-
name="visuals_5_1"
|
|
123
|
-
geometry={nodes.visuals_5_1.geometry}
|
|
124
|
-
material={materials.fanuc_green}
|
|
125
|
-
/>
|
|
126
|
-
<mesh
|
|
127
|
-
name="visuals_5_2"
|
|
128
|
-
geometry={nodes.visuals_5_2.geometry}
|
|
129
|
-
material={materials.fanuc_stainless_steel}
|
|
130
|
-
/>
|
|
131
|
-
</group>
|
|
132
|
-
</animated.group>
|
|
133
|
-
<group
|
|
134
|
-
name="link_4"
|
|
135
|
-
position={[-0.71, 0, 0]}
|
|
136
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
137
|
-
>
|
|
138
|
-
<mesh
|
|
139
|
-
name="visuals_4"
|
|
140
|
-
geometry={nodes.visuals_4.geometry}
|
|
141
|
-
material={materials.fanuc_white}
|
|
142
|
-
/>
|
|
143
|
-
<mesh
|
|
144
|
-
name="visuals_4_1"
|
|
145
|
-
geometry={nodes.visuals_4_1.geometry}
|
|
146
|
-
material={materials.fanuc_white}
|
|
147
|
-
/>
|
|
148
|
-
<mesh
|
|
149
|
-
name="visuals_4_2"
|
|
150
|
-
geometry={nodes.visuals_4_2.geometry}
|
|
151
|
-
material={materials.fanuc_metal_black}
|
|
152
|
-
/>
|
|
153
|
-
<mesh
|
|
154
|
-
name="visuals_4_3"
|
|
155
|
-
geometry={nodes.visuals_4_3.geometry}
|
|
156
|
-
material={materials.fanuc_red}
|
|
157
|
-
/>
|
|
158
|
-
</group>
|
|
159
|
-
</animated.group>
|
|
160
|
-
<group
|
|
161
|
-
name="link_3"
|
|
162
|
-
position={[-0.71, 0, 0]}
|
|
163
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
164
|
-
>
|
|
165
|
-
<mesh
|
|
166
|
-
name="visuals_3"
|
|
167
|
-
geometry={nodes.visuals_3.geometry}
|
|
168
|
-
material={materials.fanuc_white}
|
|
169
|
-
/>
|
|
170
|
-
<mesh
|
|
171
|
-
name="visuals_3_1"
|
|
172
|
-
geometry={nodes.visuals_3_1.geometry}
|
|
173
|
-
material={materials.fanuc_green}
|
|
174
|
-
/>
|
|
175
|
-
</group>
|
|
176
|
-
</animated.group>
|
|
177
|
-
<mesh
|
|
178
|
-
name="link_2"
|
|
179
|
-
geometry={nodes.link_2.geometry}
|
|
180
|
-
material={materials.fanuc_white}
|
|
181
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
182
|
-
/>
|
|
183
|
-
</animated.group>
|
|
184
|
-
<group name="link_1">
|
|
185
|
-
<mesh
|
|
186
|
-
name="visuals_1"
|
|
187
|
-
geometry={nodes.visuals_1.geometry}
|
|
188
|
-
material={materials.fanuc_green}
|
|
189
|
-
/>
|
|
190
|
-
<mesh
|
|
191
|
-
name="visuals_1_1"
|
|
192
|
-
geometry={nodes.visuals_1_1.geometry}
|
|
193
|
-
material={materials.fanuc_white}
|
|
194
|
-
/>
|
|
195
|
-
<mesh
|
|
196
|
-
name="visuals_1_2"
|
|
197
|
-
geometry={nodes.visuals_1_2.geometry}
|
|
198
|
-
material={materials.fanuc_green}
|
|
199
|
-
/>
|
|
200
|
-
</group>
|
|
201
|
-
</animated.group>
|
|
202
|
-
</group>
|
|
203
|
-
</group>
|
|
204
|
-
)
|
|
205
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { animated } from "@react-spring/three"
|
|
2
|
-
import { useGLTF } from "@react-three/drei"
|
|
3
|
-
import type { RobotModelProps } from "./types"
|
|
4
|
-
|
|
5
|
-
FANUC_CRX20iAL.config = {
|
|
6
|
-
rotationOffsets: [0, Math.PI / 2, 0, 0, 0, 0],
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function FANUC_CRX20iAL({
|
|
10
|
-
modelURL,
|
|
11
|
-
flangeRef,
|
|
12
|
-
...props
|
|
13
|
-
}: RobotModelProps) {
|
|
14
|
-
const gltf = useGLTF(modelURL) as any
|
|
15
|
-
const nodes = gltf.nodes
|
|
16
|
-
const materials = gltf.materials
|
|
17
|
-
|
|
18
|
-
return (
|
|
19
|
-
<>
|
|
20
|
-
<group {...props} dispose={null}>
|
|
21
|
-
<group name="Scene">
|
|
22
|
-
<mesh
|
|
23
|
-
name="link_0"
|
|
24
|
-
geometry={nodes.link_0.geometry}
|
|
25
|
-
material={materials.fanuc_metal_black}
|
|
26
|
-
/>
|
|
27
|
-
<animated.group name="FANUC_CRX20iAL_J00" position={[0, -0.245, 0]}>
|
|
28
|
-
<animated.group
|
|
29
|
-
name="FANUC_CRX20iAL_J01"
|
|
30
|
-
position={[0, 0.245, 0]}
|
|
31
|
-
rotation={[Math.PI / 2, Math.PI / 2, 0]}
|
|
32
|
-
>
|
|
33
|
-
<animated.group name="FANUC_CRX20iAL_J02" position={[0.71, 0, 0]}>
|
|
34
|
-
<animated.group
|
|
35
|
-
name="FANUC_CRX20iAL_J03"
|
|
36
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
37
|
-
>
|
|
38
|
-
<animated.group
|
|
39
|
-
name="FANUC_CRX20iAL_J04"
|
|
40
|
-
position={[0, -0.54, 0]}
|
|
41
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
42
|
-
>
|
|
43
|
-
<animated.group
|
|
44
|
-
name="FANUC_CRX20iAL_J05"
|
|
45
|
-
position={[0, 0.15, 0]}
|
|
46
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
47
|
-
>
|
|
48
|
-
<animated.group
|
|
49
|
-
ref={flangeRef}
|
|
50
|
-
name="FANUC_CRX20iAL_FLG"
|
|
51
|
-
position={[0, -0.16, 0]}
|
|
52
|
-
rotation={[-Math.PI, 0, 0]}
|
|
53
|
-
/>
|
|
54
|
-
<mesh
|
|
55
|
-
name="link_6"
|
|
56
|
-
geometry={nodes.link_6.geometry}
|
|
57
|
-
material={materials.fanuc_metal_black}
|
|
58
|
-
position={[-0.71, 0.54, -0.15]}
|
|
59
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
60
|
-
/>
|
|
61
|
-
</animated.group>
|
|
62
|
-
<animated.group
|
|
63
|
-
name="link_5"
|
|
64
|
-
position={[-0.71, 0, -0.54]}
|
|
65
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
66
|
-
>
|
|
67
|
-
<mesh
|
|
68
|
-
name="shape053"
|
|
69
|
-
geometry={nodes.shape053.geometry}
|
|
70
|
-
material={materials.fanuc_white}
|
|
71
|
-
/>
|
|
72
|
-
<mesh
|
|
73
|
-
name="shape053_1"
|
|
74
|
-
geometry={nodes.shape053_1.geometry}
|
|
75
|
-
material={materials.fanuc_green}
|
|
76
|
-
/>
|
|
77
|
-
</animated.group>
|
|
78
|
-
</animated.group>
|
|
79
|
-
<animated.group
|
|
80
|
-
name="link_4"
|
|
81
|
-
position={[-0.71, 0, 0]}
|
|
82
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
83
|
-
>
|
|
84
|
-
<mesh
|
|
85
|
-
name="shape054"
|
|
86
|
-
geometry={nodes.shape054.geometry}
|
|
87
|
-
material={materials.fanuc_white}
|
|
88
|
-
/>
|
|
89
|
-
<mesh
|
|
90
|
-
name="shape054_1"
|
|
91
|
-
geometry={nodes.shape054_1.geometry}
|
|
92
|
-
material={materials.fanuc_red}
|
|
93
|
-
/>
|
|
94
|
-
<mesh
|
|
95
|
-
name="shape054_2"
|
|
96
|
-
geometry={nodes.shape054_2.geometry}
|
|
97
|
-
material={materials.fanuc_metal_black}
|
|
98
|
-
/>
|
|
99
|
-
</animated.group>
|
|
100
|
-
</animated.group>
|
|
101
|
-
<animated.group
|
|
102
|
-
name="link_3"
|
|
103
|
-
position={[-0.71, 0, 0]}
|
|
104
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
105
|
-
>
|
|
106
|
-
<mesh
|
|
107
|
-
name="shape009"
|
|
108
|
-
geometry={nodes.shape009.geometry}
|
|
109
|
-
material={materials.fanuc_green}
|
|
110
|
-
/>
|
|
111
|
-
<mesh
|
|
112
|
-
name="shape009_1"
|
|
113
|
-
geometry={nodes.shape009_1.geometry}
|
|
114
|
-
material={materials.fanuc_white}
|
|
115
|
-
/>
|
|
116
|
-
</animated.group>
|
|
117
|
-
</animated.group>
|
|
118
|
-
<mesh
|
|
119
|
-
name="link_2"
|
|
120
|
-
geometry={nodes.link_2.geometry}
|
|
121
|
-
material={materials.fanuc_white}
|
|
122
|
-
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
123
|
-
/>
|
|
124
|
-
</animated.group>
|
|
125
|
-
<group name="link_1" position={[0, 0.245, 0]}>
|
|
126
|
-
<mesh
|
|
127
|
-
name="shape005"
|
|
128
|
-
geometry={nodes.shape005.geometry}
|
|
129
|
-
material={materials.fanuc_white}
|
|
130
|
-
/>
|
|
131
|
-
<mesh
|
|
132
|
-
name="shape005_1"
|
|
133
|
-
geometry={nodes.shape005_1.geometry}
|
|
134
|
-
material={materials.fanuc_green}
|
|
135
|
-
/>
|
|
136
|
-
</group>
|
|
137
|
-
</animated.group>
|
|
138
|
-
</group>
|
|
139
|
-
</group>
|
|
140
|
-
</>
|
|
141
|
-
)
|
|
142
|
-
}
|