@wandelbots/wandelbots-js-react-components 1.33.4 → 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 +5630 -13020
- package/dist/index.js.map +1 -1
- package/dist/themes/theming.d.ts +1 -1
- package/dist/themes/theming.d.ts.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/src/themes/theming.ts +9 -2
- 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,149 +0,0 @@
|
|
|
1
|
-
import { animated } from "@react-spring/three"
|
|
2
|
-
import { useGLTF } from "@react-three/drei"
|
|
3
|
-
import type { RobotModelProps } from "./types"
|
|
4
|
-
|
|
5
|
-
KUKA_KR16_R2010_2.config = {
|
|
6
|
-
rotationOffsets: [0, 0, -Math.PI / 2, 0, 0, 0],
|
|
7
|
-
rotationSign: [-1, 1, 1, 1, 1, 1],
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function KUKA_KR16_R2010_2({
|
|
11
|
-
modelURL,
|
|
12
|
-
flangeRef,
|
|
13
|
-
...props
|
|
14
|
-
}: RobotModelProps) {
|
|
15
|
-
const { nodes, materials } = useGLTF(modelURL) as any
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<>
|
|
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.material_Material_Metall}
|
|
26
|
-
/>
|
|
27
|
-
<mesh
|
|
28
|
-
name="visuals_0_1"
|
|
29
|
-
geometry={nodes.visuals_0_1.geometry}
|
|
30
|
-
material={materials.material_Material_Farbe__2_}
|
|
31
|
-
/>
|
|
32
|
-
<mesh
|
|
33
|
-
name="visuals_0_2"
|
|
34
|
-
geometry={nodes.visuals_0_2.geometry}
|
|
35
|
-
material={materials.material_Material_Metall}
|
|
36
|
-
/>
|
|
37
|
-
</group>
|
|
38
|
-
<animated.group name="KUKA_KR16R2010_2_J00">
|
|
39
|
-
<animated.group
|
|
40
|
-
name="KUKA_KR16R2010_2_J01"
|
|
41
|
-
position={[0.16, 0.52, 0]}
|
|
42
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
43
|
-
>
|
|
44
|
-
<animated.group
|
|
45
|
-
name="KUKA_KR16R2010_2_J02"
|
|
46
|
-
position={[0.98, 0, 0]}
|
|
47
|
-
rotation={[0, -Math.PI / 2, 0]}
|
|
48
|
-
>
|
|
49
|
-
<animated.group
|
|
50
|
-
name="KUKA_KR16R2010_2_J03"
|
|
51
|
-
position={[0.15, 0, 0]}
|
|
52
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
53
|
-
>
|
|
54
|
-
<animated.group
|
|
55
|
-
name="KUKA_KR16R2010_2_J04"
|
|
56
|
-
position={[0, -0.86, 0]}
|
|
57
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
58
|
-
>
|
|
59
|
-
<animated.group
|
|
60
|
-
ref={flangeRef}
|
|
61
|
-
name="KUKA_KR16R2010_2_J05"
|
|
62
|
-
rotation={[-Math.PI / 2, 0, -Math.PI]}
|
|
63
|
-
>
|
|
64
|
-
<mesh
|
|
65
|
-
name="link_6"
|
|
66
|
-
geometry={nodes.link_6.geometry}
|
|
67
|
-
material={materials.material_Material_Farbe__2_}
|
|
68
|
-
position={[0.67, 2, 0]}
|
|
69
|
-
rotation={[-Math.PI, 0, Math.PI / 2]}
|
|
70
|
-
/>
|
|
71
|
-
</animated.group>
|
|
72
|
-
<mesh
|
|
73
|
-
name="link_5"
|
|
74
|
-
geometry={nodes.link_5.geometry}
|
|
75
|
-
material={materials.material_Material_Farbe}
|
|
76
|
-
position={[-0.67, 0, 2]}
|
|
77
|
-
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
78
|
-
/>
|
|
79
|
-
</animated.group>
|
|
80
|
-
<mesh
|
|
81
|
-
name="link_4"
|
|
82
|
-
geometry={nodes.link_4.geometry}
|
|
83
|
-
material={materials.material_Material_Farbe}
|
|
84
|
-
position={[-0.67, 1.14, 0]}
|
|
85
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
86
|
-
/>
|
|
87
|
-
</animated.group>
|
|
88
|
-
<group
|
|
89
|
-
name="link_3"
|
|
90
|
-
position={[-0.52, 0, 1.14]}
|
|
91
|
-
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
92
|
-
>
|
|
93
|
-
<mesh
|
|
94
|
-
name="visuals_3"
|
|
95
|
-
geometry={nodes.visuals_3.geometry}
|
|
96
|
-
material={materials.material_Material_Farbe}
|
|
97
|
-
/>
|
|
98
|
-
<mesh
|
|
99
|
-
name="visuals_3_1"
|
|
100
|
-
geometry={nodes.visuals_3_1.geometry}
|
|
101
|
-
material={materials.material_Material_Metall}
|
|
102
|
-
/>
|
|
103
|
-
<mesh
|
|
104
|
-
name="visuals_3_2"
|
|
105
|
-
geometry={nodes.visuals_3_2.geometry}
|
|
106
|
-
material={materials.material_Material_Farbe__2_}
|
|
107
|
-
/>
|
|
108
|
-
</group>
|
|
109
|
-
</animated.group>
|
|
110
|
-
<group
|
|
111
|
-
name="link_2"
|
|
112
|
-
position={[-0.16, 0, -0.52]}
|
|
113
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
114
|
-
>
|
|
115
|
-
<mesh
|
|
116
|
-
name="visuals_2"
|
|
117
|
-
geometry={nodes.visuals_2.geometry}
|
|
118
|
-
material={materials.material_Material_Farbe}
|
|
119
|
-
/>
|
|
120
|
-
<mesh
|
|
121
|
-
name="visuals_2_1"
|
|
122
|
-
geometry={nodes.visuals_2_1.geometry}
|
|
123
|
-
material={materials.material_Material_Metall}
|
|
124
|
-
/>
|
|
125
|
-
</group>
|
|
126
|
-
</animated.group>
|
|
127
|
-
<group name="link_1">
|
|
128
|
-
<mesh
|
|
129
|
-
name="visuals_1"
|
|
130
|
-
geometry={nodes.visuals_1.geometry}
|
|
131
|
-
material={materials.material_Material_Farbe}
|
|
132
|
-
/>
|
|
133
|
-
<mesh
|
|
134
|
-
name="visuals_1_1"
|
|
135
|
-
geometry={nodes.visuals_1_1.geometry}
|
|
136
|
-
material={materials.material_Material_Farbe__2_}
|
|
137
|
-
/>
|
|
138
|
-
<mesh
|
|
139
|
-
name="visuals_1_2"
|
|
140
|
-
geometry={nodes.visuals_1_2.geometry}
|
|
141
|
-
material={materials.material_Material_Metall}
|
|
142
|
-
/>
|
|
143
|
-
</group>
|
|
144
|
-
</animated.group>
|
|
145
|
-
</group>
|
|
146
|
-
</group>
|
|
147
|
-
</>
|
|
148
|
-
)
|
|
149
|
-
}
|
|
@@ -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
|
-
KUKA_KR20_R1810_2.config = {
|
|
6
|
-
rotationOffsets: [0, 0, -Math.PI / 2, 0, 0, 0],
|
|
7
|
-
rotationSign: [-1, 1, 1, 1, 1, 1],
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export function KUKA_KR20_R1810_2({
|
|
11
|
-
modelURL,
|
|
12
|
-
flangeRef,
|
|
13
|
-
...props
|
|
14
|
-
}: RobotModelProps) {
|
|
15
|
-
const { nodes, materials } = useGLTF(modelURL) as any
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<group {...props} dispose={null}>
|
|
19
|
-
<group name="Scene">
|
|
20
|
-
<group name="link_0">
|
|
21
|
-
<mesh
|
|
22
|
-
name="visuals_0"
|
|
23
|
-
geometry={nodes.visuals_0.geometry}
|
|
24
|
-
material={materials.kuka_black}
|
|
25
|
-
/>
|
|
26
|
-
<mesh
|
|
27
|
-
name="visuals_0_1"
|
|
28
|
-
geometry={nodes.visuals_0_1.geometry}
|
|
29
|
-
material={materials.kuka_metal}
|
|
30
|
-
/>
|
|
31
|
-
</group>
|
|
32
|
-
<animated.group name="KUKA_KR20R1810_2_J00">
|
|
33
|
-
<animated.group
|
|
34
|
-
name="KUKA_KR20R1810_2_J01"
|
|
35
|
-
position={[0.16, 0.52, 0]}
|
|
36
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
37
|
-
>
|
|
38
|
-
<animated.group
|
|
39
|
-
name="KUKA_KR20R1810_2_J02"
|
|
40
|
-
position={[0.78, 0, 0]}
|
|
41
|
-
rotation={[0, -Math.PI / 2, 0]}
|
|
42
|
-
>
|
|
43
|
-
<animated.group
|
|
44
|
-
name="KUKA_KR20R1810_2_J03"
|
|
45
|
-
position={[0.15, 0, 0]}
|
|
46
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
47
|
-
>
|
|
48
|
-
<animated.group
|
|
49
|
-
name="KUKA_KR20R1810_2_J04"
|
|
50
|
-
position={[0, -0.86, 0]}
|
|
51
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
52
|
-
>
|
|
53
|
-
<animated.group
|
|
54
|
-
name="KUKA_KR20R1810_2_J05"
|
|
55
|
-
rotation={[-Math.PI / 2, 0, -Math.PI]}
|
|
56
|
-
>
|
|
57
|
-
<group
|
|
58
|
-
name="KUKA_KR20R1810_2_FLG"
|
|
59
|
-
ref={flangeRef}
|
|
60
|
-
position={[0, -0.153, 0]}
|
|
61
|
-
rotation={[-Math.PI, 0, 0]}
|
|
62
|
-
/>
|
|
63
|
-
<mesh
|
|
64
|
-
name="link_6"
|
|
65
|
-
geometry={nodes.link_6.geometry}
|
|
66
|
-
material={materials.kuka_metal}
|
|
67
|
-
position={[0.67, 1.8, 0]}
|
|
68
|
-
rotation={[-Math.PI, 0, Math.PI / 2]}
|
|
69
|
-
/>
|
|
70
|
-
</animated.group>
|
|
71
|
-
<group
|
|
72
|
-
name="link_5"
|
|
73
|
-
position={[-0.67, 0, 1.8]}
|
|
74
|
-
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
75
|
-
>
|
|
76
|
-
<mesh
|
|
77
|
-
name="visuals_5"
|
|
78
|
-
geometry={nodes.visuals_5.geometry}
|
|
79
|
-
material={materials.kuka_orange}
|
|
80
|
-
/>
|
|
81
|
-
<mesh
|
|
82
|
-
name="visuals_5_1"
|
|
83
|
-
geometry={nodes.visuals_5_1.geometry}
|
|
84
|
-
material={materials.kuka_black}
|
|
85
|
-
/>
|
|
86
|
-
<mesh
|
|
87
|
-
name="visuals_5_2"
|
|
88
|
-
geometry={nodes.visuals_5_2.geometry}
|
|
89
|
-
material={materials.kuka_metal}
|
|
90
|
-
/>
|
|
91
|
-
</group>
|
|
92
|
-
</animated.group>
|
|
93
|
-
<group
|
|
94
|
-
name="link_4"
|
|
95
|
-
position={[-0.67, 0.94, 0]}
|
|
96
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
97
|
-
>
|
|
98
|
-
<mesh
|
|
99
|
-
name="visuals_4"
|
|
100
|
-
geometry={nodes.visuals_4.geometry}
|
|
101
|
-
material={materials.kuka_orange}
|
|
102
|
-
/>
|
|
103
|
-
<mesh
|
|
104
|
-
name="visuals_4_1"
|
|
105
|
-
geometry={nodes.visuals_4_1.geometry}
|
|
106
|
-
material={materials.kuka_black}
|
|
107
|
-
/>
|
|
108
|
-
<mesh
|
|
109
|
-
name="visuals_4_2"
|
|
110
|
-
geometry={nodes.visuals_4_2.geometry}
|
|
111
|
-
material={materials.kuka_metal}
|
|
112
|
-
/>
|
|
113
|
-
</group>
|
|
114
|
-
</animated.group>
|
|
115
|
-
<group
|
|
116
|
-
name="link_3"
|
|
117
|
-
position={[-0.52, 0, 0.94]}
|
|
118
|
-
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
119
|
-
>
|
|
120
|
-
<mesh
|
|
121
|
-
name="visuals_3"
|
|
122
|
-
geometry={nodes.visuals_3.geometry}
|
|
123
|
-
material={materials.kuka_metal}
|
|
124
|
-
/>
|
|
125
|
-
<mesh
|
|
126
|
-
name="visuals_3_1"
|
|
127
|
-
geometry={nodes.visuals_3_1.geometry}
|
|
128
|
-
material={materials.kuka_black}
|
|
129
|
-
/>
|
|
130
|
-
<mesh
|
|
131
|
-
name="visuals_3_2"
|
|
132
|
-
geometry={nodes.visuals_3_2.geometry}
|
|
133
|
-
material={materials.kuka_orange}
|
|
134
|
-
/>
|
|
135
|
-
</group>
|
|
136
|
-
</animated.group>
|
|
137
|
-
<group
|
|
138
|
-
name="link_2"
|
|
139
|
-
position={[-0.16, 0, -0.52]}
|
|
140
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
141
|
-
>
|
|
142
|
-
<mesh
|
|
143
|
-
name="visuals_2"
|
|
144
|
-
geometry={nodes.visuals_2.geometry}
|
|
145
|
-
material={materials.kuka_orange}
|
|
146
|
-
/>
|
|
147
|
-
<mesh
|
|
148
|
-
name="visuals_2_1"
|
|
149
|
-
geometry={nodes.visuals_2_1.geometry}
|
|
150
|
-
material={materials.kuka_black}
|
|
151
|
-
/>
|
|
152
|
-
<mesh
|
|
153
|
-
name="visuals_2_2"
|
|
154
|
-
geometry={nodes.visuals_2_2.geometry}
|
|
155
|
-
material={nodes.visuals_2_2.material}
|
|
156
|
-
/>
|
|
157
|
-
</group>
|
|
158
|
-
</animated.group>
|
|
159
|
-
<group name="link_1">
|
|
160
|
-
<mesh
|
|
161
|
-
name="visuals_1"
|
|
162
|
-
geometry={nodes.visuals_1.geometry}
|
|
163
|
-
material={materials.kuka_orange}
|
|
164
|
-
/>
|
|
165
|
-
<mesh
|
|
166
|
-
name="visuals_1_1"
|
|
167
|
-
geometry={nodes.visuals_1_1.geometry}
|
|
168
|
-
material={materials.kuka_black}
|
|
169
|
-
/>
|
|
170
|
-
<mesh
|
|
171
|
-
name="visuals_1_2"
|
|
172
|
-
geometry={nodes.visuals_1_2.geometry}
|
|
173
|
-
material={materials.kuka_metal}
|
|
174
|
-
/>
|
|
175
|
-
<mesh
|
|
176
|
-
name="visuals_1_3"
|
|
177
|
-
geometry={nodes.visuals_1_3.geometry}
|
|
178
|
-
material={nodes.visuals_1_3.material}
|
|
179
|
-
/>
|
|
180
|
-
<mesh
|
|
181
|
-
name="visuals_1_4"
|
|
182
|
-
geometry={nodes.visuals_1_4.geometry}
|
|
183
|
-
material={nodes.visuals_1_4.material}
|
|
184
|
-
/>
|
|
185
|
-
<mesh
|
|
186
|
-
name="visuals_1_5"
|
|
187
|
-
geometry={nodes.visuals_1_5.geometry}
|
|
188
|
-
material={nodes.visuals_1_5.material}
|
|
189
|
-
/>
|
|
190
|
-
<mesh
|
|
191
|
-
name="visuals_1_6"
|
|
192
|
-
geometry={nodes.visuals_1_6.geometry}
|
|
193
|
-
material={nodes.visuals_1_6.material}
|
|
194
|
-
/>
|
|
195
|
-
<mesh
|
|
196
|
-
name="visuals_1_7"
|
|
197
|
-
geometry={nodes.visuals_1_7.geometry}
|
|
198
|
-
material={nodes.visuals_1_7.material}
|
|
199
|
-
/>
|
|
200
|
-
</group>
|
|
201
|
-
</animated.group>
|
|
202
|
-
</group>
|
|
203
|
-
</group>
|
|
204
|
-
)
|
|
205
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { animated } from "@react-spring/three"
|
|
2
|
-
import { useGLTF } from "@react-three/drei"
|
|
3
|
-
import type { RobotModelProps } from "./types"
|
|
4
|
-
|
|
5
|
-
KUKA_KR210_R2700.config = {
|
|
6
|
-
rotationOffsets: [0, 0, -Math.PI / 2, 0, 0, 0],
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export function KUKA_KR210_R2700({
|
|
10
|
-
modelURL,
|
|
11
|
-
flangeRef,
|
|
12
|
-
...props
|
|
13
|
-
}: RobotModelProps) {
|
|
14
|
-
const gltf = useGLTF(modelURL) as any
|
|
15
|
-
|
|
16
|
-
const nodes = gltf.nodes
|
|
17
|
-
const materials = gltf.materials
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<>
|
|
21
|
-
<group {...props} dispose={null}>
|
|
22
|
-
<group name="Scene">
|
|
23
|
-
<group name="kuka_kr210_2700">
|
|
24
|
-
<animated.group name="joint_01">
|
|
25
|
-
<animated.group
|
|
26
|
-
name="joint_02"
|
|
27
|
-
position={[0.33, 0.645, 0]}
|
|
28
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
29
|
-
>
|
|
30
|
-
<animated.group
|
|
31
|
-
name="joint_03"
|
|
32
|
-
position={[1.15, 0, 0]}
|
|
33
|
-
rotation={[0, -Math.PI / 2, 0]}
|
|
34
|
-
>
|
|
35
|
-
<animated.group
|
|
36
|
-
name="joint_04"
|
|
37
|
-
position={[0.115, 0, 0]}
|
|
38
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
39
|
-
>
|
|
40
|
-
<animated.group
|
|
41
|
-
name="joint_05"
|
|
42
|
-
position={[0, -1.22, 0]}
|
|
43
|
-
rotation={[-Math.PI / 2, 0, 0]}
|
|
44
|
-
>
|
|
45
|
-
<animated.group
|
|
46
|
-
name="joint_06"
|
|
47
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
48
|
-
>
|
|
49
|
-
<group
|
|
50
|
-
ref={flangeRef}
|
|
51
|
-
name="flange"
|
|
52
|
-
position={[0, -0.215, 0]}
|
|
53
|
-
rotation={[-Math.PI, 0, 0]}
|
|
54
|
-
/>
|
|
55
|
-
<group
|
|
56
|
-
name="link_6"
|
|
57
|
-
position={[0, -0.17, 0]}
|
|
58
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
59
|
-
>
|
|
60
|
-
<mesh
|
|
61
|
-
name="visuals006"
|
|
62
|
-
geometry={nodes.visuals006.geometry}
|
|
63
|
-
material={materials.material_Material_Metall_black}
|
|
64
|
-
/>
|
|
65
|
-
</group>
|
|
66
|
-
</animated.group>
|
|
67
|
-
<group
|
|
68
|
-
name="link_5"
|
|
69
|
-
position={[0, 0.059, 0]}
|
|
70
|
-
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
71
|
-
>
|
|
72
|
-
<group name="visuals005">
|
|
73
|
-
<mesh
|
|
74
|
-
name="visuals005_1"
|
|
75
|
-
geometry={nodes.visuals005_1.geometry}
|
|
76
|
-
material={materials.material_Material_metal_black}
|
|
77
|
-
/>
|
|
78
|
-
<mesh
|
|
79
|
-
name="visuals005_2"
|
|
80
|
-
geometry={nodes.visuals005_2.geometry}
|
|
81
|
-
material={materials.material_Material_kuka_orange}
|
|
82
|
-
/>
|
|
83
|
-
</group>
|
|
84
|
-
</group>
|
|
85
|
-
</animated.group>
|
|
86
|
-
<group
|
|
87
|
-
name="link_4"
|
|
88
|
-
position={[0, -0.869, 0]}
|
|
89
|
-
rotation={[0, 0, -Math.PI / 2]}
|
|
90
|
-
>
|
|
91
|
-
<group name="visuals004">
|
|
92
|
-
<mesh
|
|
93
|
-
name="visuals004_1"
|
|
94
|
-
geometry={nodes.visuals004_1.geometry}
|
|
95
|
-
material={materials.material_Material_metal_black}
|
|
96
|
-
/>
|
|
97
|
-
<mesh
|
|
98
|
-
name="visuals004_2"
|
|
99
|
-
geometry={nodes.visuals004_2.geometry}
|
|
100
|
-
material={materials.material_Material_kuka_orange}
|
|
101
|
-
/>
|
|
102
|
-
</group>
|
|
103
|
-
</group>
|
|
104
|
-
</animated.group>
|
|
105
|
-
<group
|
|
106
|
-
name="link_3"
|
|
107
|
-
position={[0, -0.105, 0]}
|
|
108
|
-
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
109
|
-
>
|
|
110
|
-
<group name="visuals003">
|
|
111
|
-
<mesh
|
|
112
|
-
name="visuals003_1"
|
|
113
|
-
geometry={nodes.visuals003_1.geometry}
|
|
114
|
-
material={materials.material_Material_rubber}
|
|
115
|
-
/>
|
|
116
|
-
<mesh
|
|
117
|
-
name="visuals003_2"
|
|
118
|
-
geometry={nodes.visuals003_2.geometry}
|
|
119
|
-
material={materials.material_Material_aluminium}
|
|
120
|
-
/>
|
|
121
|
-
<mesh
|
|
122
|
-
name="visuals003_3"
|
|
123
|
-
geometry={nodes.visuals003_3.geometry}
|
|
124
|
-
material={materials.material_Material_metal_black}
|
|
125
|
-
/>
|
|
126
|
-
<mesh
|
|
127
|
-
name="visuals003_4"
|
|
128
|
-
geometry={nodes.visuals003_4.geometry}
|
|
129
|
-
material={materials.material_Material_kuka_black}
|
|
130
|
-
/>
|
|
131
|
-
<mesh
|
|
132
|
-
name="visuals003_5"
|
|
133
|
-
geometry={nodes.visuals003_5.geometry}
|
|
134
|
-
material={materials.material_Material_Rubber_black}
|
|
135
|
-
/>
|
|
136
|
-
<mesh
|
|
137
|
-
name="visuals003_6"
|
|
138
|
-
geometry={nodes.visuals003_6.geometry}
|
|
139
|
-
material={materials.material_Material_kuka_orange}
|
|
140
|
-
/>
|
|
141
|
-
<mesh
|
|
142
|
-
name="visuals003_7"
|
|
143
|
-
geometry={nodes.visuals003_7.geometry}
|
|
144
|
-
material={materials.material_Material_stainless_steel}
|
|
145
|
-
/>
|
|
146
|
-
</group>
|
|
147
|
-
</group>
|
|
148
|
-
</animated.group>
|
|
149
|
-
<group
|
|
150
|
-
name="link_2"
|
|
151
|
-
position={[0, 0.009, 0]}
|
|
152
|
-
rotation={[Math.PI / 2, 0, 0]}
|
|
153
|
-
>
|
|
154
|
-
<group name="visuals002">
|
|
155
|
-
<mesh
|
|
156
|
-
name="visuals002_1"
|
|
157
|
-
geometry={nodes.visuals002_1.geometry}
|
|
158
|
-
material={materials.material_Material_metal_black}
|
|
159
|
-
/>
|
|
160
|
-
<mesh
|
|
161
|
-
name="visuals002_2"
|
|
162
|
-
geometry={nodes.visuals002_2.geometry}
|
|
163
|
-
material={materials.material_Material_Rubber_black}
|
|
164
|
-
/>
|
|
165
|
-
<mesh
|
|
166
|
-
name="visuals002_3"
|
|
167
|
-
geometry={nodes.visuals002_3.geometry}
|
|
168
|
-
material={materials.material_Material_kuka_orange}
|
|
169
|
-
/>
|
|
170
|
-
</group>
|
|
171
|
-
</group>
|
|
172
|
-
</animated.group>
|
|
173
|
-
<group name="link_1" position={[0, 0.236, 0]}>
|
|
174
|
-
<group name="visuals001">
|
|
175
|
-
<mesh
|
|
176
|
-
name="visuals001_1"
|
|
177
|
-
geometry={nodes.visuals001_1.geometry}
|
|
178
|
-
material={materials.material_Material_kuka_black}
|
|
179
|
-
/>
|
|
180
|
-
<mesh
|
|
181
|
-
name="visuals001_2"
|
|
182
|
-
geometry={nodes.visuals001_2.geometry}
|
|
183
|
-
material={materials.material_Material_kuka_orange}
|
|
184
|
-
/>
|
|
185
|
-
<mesh
|
|
186
|
-
name="visuals001_3"
|
|
187
|
-
geometry={nodes.visuals001_3.geometry}
|
|
188
|
-
material={materials.material_Material_rubber}
|
|
189
|
-
/>
|
|
190
|
-
<mesh
|
|
191
|
-
name="visuals001_4"
|
|
192
|
-
geometry={nodes.visuals001_4.geometry}
|
|
193
|
-
material={materials.material_Material_metal_black}
|
|
194
|
-
/>
|
|
195
|
-
<mesh
|
|
196
|
-
name="visuals001_5"
|
|
197
|
-
geometry={nodes.visuals001_5.geometry}
|
|
198
|
-
material={materials.material_Material_aluminium}
|
|
199
|
-
/>
|
|
200
|
-
<mesh
|
|
201
|
-
name="visuals001_6"
|
|
202
|
-
geometry={nodes.visuals001_6.geometry}
|
|
203
|
-
material={materials.material_Material_rubber_black}
|
|
204
|
-
/>
|
|
205
|
-
<mesh
|
|
206
|
-
name="visuals001_7"
|
|
207
|
-
geometry={nodes.visuals001_7.geometry}
|
|
208
|
-
material={materials.material_Material_stainless_steel}
|
|
209
|
-
/>
|
|
210
|
-
</group>
|
|
211
|
-
</group>
|
|
212
|
-
</animated.group>
|
|
213
|
-
<group name="link_0">
|
|
214
|
-
<group name="visuals">
|
|
215
|
-
<mesh
|
|
216
|
-
name="visuals_1"
|
|
217
|
-
geometry={nodes.visuals_1.geometry}
|
|
218
|
-
material={materials.material_Material_kuka_black}
|
|
219
|
-
/>
|
|
220
|
-
<mesh
|
|
221
|
-
name="visuals_2"
|
|
222
|
-
geometry={nodes.visuals_2.geometry}
|
|
223
|
-
material={materials.material_Material_metal_black}
|
|
224
|
-
/>
|
|
225
|
-
</group>
|
|
226
|
-
</group>
|
|
227
|
-
</group>
|
|
228
|
-
</group>
|
|
229
|
-
</group>
|
|
230
|
-
</>
|
|
231
|
-
)
|
|
232
|
-
}
|