@wandelbots/wandelbots-js-react-components 1.30.1 → 1.31.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/SupportedRobot.d.ts.map +1 -1
- package/dist/components/robots/Yaskawa_GP88.d.ts +8 -0
- package/dist/components/robots/Yaskawa_GP88.d.ts.map +1 -0
- package/dist/index.cjs +25 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3236 -2995
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/SupportedRobot.tsx +4 -0
- package/src/components/robots/Yaskawa_GP88.tsx +169 -0
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@ import { Yaskawa_AR2010 } from "./Yaskawa_AR2010"
|
|
|
27
27
|
import { Yaskawa_AR3120 } from "./Yaskawa_AR3120"
|
|
28
28
|
import { Yaskawa_AR900 } from "./Yaskawa_AR900"
|
|
29
29
|
import { Yaskawa_GP50 } from "./Yaskawa_GP50"
|
|
30
|
+
import { Yaskawa_GP88 } from "./Yaskawa_GP88"
|
|
30
31
|
|
|
31
32
|
import { version } from "../../../package.json"
|
|
32
33
|
|
|
@@ -210,6 +211,9 @@ export const SupportedRobot = externalizeComponent(
|
|
|
210
211
|
case "Yaskawa_GP50":
|
|
211
212
|
Robot = Yaskawa_GP50
|
|
212
213
|
break
|
|
214
|
+
case "Yaskawa_GP88":
|
|
215
|
+
Robot = Yaskawa_GP88
|
|
216
|
+
break
|
|
213
217
|
case "FANUC_CRX10iA":
|
|
214
218
|
Robot = FANUC_CRX10iA
|
|
215
219
|
break
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { animated } from "@react-spring/three"
|
|
2
|
+
import { useGLTF } from "@react-three/drei"
|
|
3
|
+
import type { RobotModelProps } from "./types"
|
|
4
|
+
|
|
5
|
+
Yaskawa_GP88.config = {
|
|
6
|
+
rotationOffsets: [0, -Math.PI / 2, 0, 0, 0, 0],
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function Yaskawa_GP88({
|
|
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
|
+
<group {...props} dispose={null}>
|
|
21
|
+
<group name="Scene">
|
|
22
|
+
<group name="link_0">
|
|
23
|
+
<mesh
|
|
24
|
+
name="shape003"
|
|
25
|
+
geometry={nodes.shape003.geometry}
|
|
26
|
+
material={materials.yaskawa_blue}
|
|
27
|
+
/>
|
|
28
|
+
<mesh
|
|
29
|
+
name="shape003_1"
|
|
30
|
+
geometry={nodes.shape003_1.geometry}
|
|
31
|
+
material={materials.yaskawa_metalsilver}
|
|
32
|
+
/>
|
|
33
|
+
<mesh
|
|
34
|
+
name="shape003_2"
|
|
35
|
+
geometry={nodes.shape003_2.geometry}
|
|
36
|
+
material={materials.yaskawa_black}
|
|
37
|
+
/>
|
|
38
|
+
</group>
|
|
39
|
+
<animated.group name="YASKAWA_GP88_J00">
|
|
40
|
+
<group name="link_1">
|
|
41
|
+
<mesh
|
|
42
|
+
name="shape030"
|
|
43
|
+
geometry={nodes.shape030.geometry}
|
|
44
|
+
material={materials.yaskawa_blue}
|
|
45
|
+
/>
|
|
46
|
+
<mesh
|
|
47
|
+
name="shape030_1"
|
|
48
|
+
geometry={nodes.shape030_1.geometry}
|
|
49
|
+
material={materials.yaskawa_black}
|
|
50
|
+
/>
|
|
51
|
+
<mesh
|
|
52
|
+
name="shape030_2"
|
|
53
|
+
geometry={nodes.shape030_2.geometry}
|
|
54
|
+
material={materials.yaskawa_black}
|
|
55
|
+
/>
|
|
56
|
+
<mesh
|
|
57
|
+
name="shape030_3"
|
|
58
|
+
geometry={nodes.shape030_3.geometry}
|
|
59
|
+
material={materials.yaskawa_metalsilver}
|
|
60
|
+
/>
|
|
61
|
+
</group>
|
|
62
|
+
<animated.group
|
|
63
|
+
name="YASKAWA_GP88_J01"
|
|
64
|
+
position={[0.32, 0, 0]}
|
|
65
|
+
rotation={[-Math.PI / 2, -Math.PI / 2, 0]}
|
|
66
|
+
>
|
|
67
|
+
<group
|
|
68
|
+
name="link_2"
|
|
69
|
+
position={[0, 0, 0.32]}
|
|
70
|
+
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
71
|
+
>
|
|
72
|
+
<mesh
|
|
73
|
+
name="shape029"
|
|
74
|
+
geometry={nodes.shape029.geometry}
|
|
75
|
+
material={materials.yaskawa_blue}
|
|
76
|
+
/>
|
|
77
|
+
<mesh
|
|
78
|
+
name="shape029_1"
|
|
79
|
+
geometry={nodes.shape029_1.geometry}
|
|
80
|
+
material={materials.yaskawa_black}
|
|
81
|
+
/>
|
|
82
|
+
<mesh
|
|
83
|
+
name="shape029_2"
|
|
84
|
+
geometry={nodes.shape029_2.geometry}
|
|
85
|
+
material={materials.yaskawa_white}
|
|
86
|
+
/>
|
|
87
|
+
<mesh
|
|
88
|
+
name="shape029_3"
|
|
89
|
+
geometry={nodes.shape029_3.geometry}
|
|
90
|
+
material={materials.yaskawa_metalsilver}
|
|
91
|
+
/>
|
|
92
|
+
</group>
|
|
93
|
+
<animated.group
|
|
94
|
+
name="YASKAWA_GP88_J02"
|
|
95
|
+
position={[0.87, 0, 0]}
|
|
96
|
+
rotation={[-Math.PI, 0, 0]}
|
|
97
|
+
>
|
|
98
|
+
<group
|
|
99
|
+
name="link_3"
|
|
100
|
+
position={[-0.87, 0, -0.32]}
|
|
101
|
+
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
102
|
+
>
|
|
103
|
+
<mesh
|
|
104
|
+
name="shape021"
|
|
105
|
+
geometry={nodes.shape021.geometry}
|
|
106
|
+
material={materials.yaskawa_blue}
|
|
107
|
+
/>
|
|
108
|
+
<mesh
|
|
109
|
+
name="shape021_1"
|
|
110
|
+
geometry={nodes.shape021_1.geometry}
|
|
111
|
+
material={materials.yaskawa_black}
|
|
112
|
+
/>
|
|
113
|
+
<mesh
|
|
114
|
+
name="shape021_2"
|
|
115
|
+
geometry={nodes.shape021_2.geometry}
|
|
116
|
+
material={materials.yaskawa_metalsilver}
|
|
117
|
+
/>
|
|
118
|
+
</group>
|
|
119
|
+
<animated.group
|
|
120
|
+
name="YASKAWA_GP88_J03"
|
|
121
|
+
position={[0.21, 0, 0]}
|
|
122
|
+
rotation={[-Math.PI / 2, 0, 0]}
|
|
123
|
+
>
|
|
124
|
+
<mesh
|
|
125
|
+
name="link_4"
|
|
126
|
+
geometry={nodes.link_4.geometry}
|
|
127
|
+
material={materials.yaskawa_blue}
|
|
128
|
+
position={[-1.08, 0.32, 0]}
|
|
129
|
+
rotation={[0, 0, -Math.PI / 2]}
|
|
130
|
+
/>
|
|
131
|
+
<animated.group
|
|
132
|
+
name="YASKAWA_GP88_J04"
|
|
133
|
+
position={[0, -1.025, 0]}
|
|
134
|
+
rotation={[Math.PI / 2, 0, 0]}
|
|
135
|
+
>
|
|
136
|
+
<mesh
|
|
137
|
+
name="link_5"
|
|
138
|
+
geometry={nodes.link_5.geometry}
|
|
139
|
+
material={materials.yaskawa_blue}
|
|
140
|
+
position={[-1.08, 0, -1.345]}
|
|
141
|
+
rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
|
|
142
|
+
/>
|
|
143
|
+
<animated.group
|
|
144
|
+
name="YASKAWA_GP88_J05"
|
|
145
|
+
rotation={[-Math.PI / 2, 0, 0]}
|
|
146
|
+
>
|
|
147
|
+
<mesh
|
|
148
|
+
name="link_6"
|
|
149
|
+
geometry={nodes.link_6.geometry}
|
|
150
|
+
material={materials.yaskawa_metalgold}
|
|
151
|
+
position={[-1.08, 1.345, 0]}
|
|
152
|
+
rotation={[0, 0, -Math.PI / 2]}
|
|
153
|
+
/>
|
|
154
|
+
<group
|
|
155
|
+
name="YASKAWA_GP88_FLG"
|
|
156
|
+
ref={flangeRef}
|
|
157
|
+
position={[0, -0.175, 0]}
|
|
158
|
+
rotation={[-Math.PI, 0, 0]}
|
|
159
|
+
/>
|
|
160
|
+
</animated.group>
|
|
161
|
+
</animated.group>
|
|
162
|
+
</animated.group>
|
|
163
|
+
</animated.group>
|
|
164
|
+
</animated.group>
|
|
165
|
+
</animated.group>
|
|
166
|
+
</group>
|
|
167
|
+
</group>
|
|
168
|
+
)
|
|
169
|
+
}
|