@wandelbots/wandelbots-js-react-components 1.23.0 → 1.24.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/ABB_1300_115_10.d.ts +8 -0
- package/dist/components/robots/ABB_1300_115_10.d.ts.map +1 -0
- package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
- package/dist/index.cjs +24 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1428 -1234
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/robots/ABB_1300_115_10.tsx +142 -0
- package/src/components/robots/SupportedRobot.tsx +4 -0
package/package.json
CHANGED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { animated } from "@react-spring/three"
|
|
2
|
+
import { useGLTF } from "@react-three/drei"
|
|
3
|
+
import type { RobotModelProps } from "./types"
|
|
4
|
+
|
|
5
|
+
ABB_1300_115_10.config = {
|
|
6
|
+
rotationOffsets: [0, -Math.PI / 2, 0, 0, 0, 0],
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function ABB_1300_115_10({ 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
|
+
<mesh
|
|
18
|
+
name="link_0"
|
|
19
|
+
castShadow
|
|
20
|
+
receiveShadow
|
|
21
|
+
geometry={nodes.link_0.geometry}
|
|
22
|
+
material={materials.Plastic}
|
|
23
|
+
/>
|
|
24
|
+
<animated.group name="ABB_IRB_1300_115_10_J00">
|
|
25
|
+
<animated.group
|
|
26
|
+
name="ABB_IRB_1300_115_10_J01"
|
|
27
|
+
position={[0.15, 0.544, 0]}
|
|
28
|
+
rotation={[-Math.PI / 2, -Math.PI / 2, 0]}
|
|
29
|
+
>
|
|
30
|
+
<animated.group
|
|
31
|
+
name="ABB_IRB_1300_115_10_J02"
|
|
32
|
+
position={[0.575, 0, 0]}
|
|
33
|
+
>
|
|
34
|
+
<animated.group
|
|
35
|
+
name="ABB_IRB_1300_115_10_J03"
|
|
36
|
+
position={[0.04, 0, 0]}
|
|
37
|
+
rotation={[-Math.PI / 2, 0, 0]}
|
|
38
|
+
>
|
|
39
|
+
<animated.group
|
|
40
|
+
name="ABB_IRB_1300_115_10_J04"
|
|
41
|
+
position={[0, 0.425, 0]}
|
|
42
|
+
rotation={[Math.PI / 2, 0, 0]}
|
|
43
|
+
>
|
|
44
|
+
<animated.group
|
|
45
|
+
name="ABB_IRB_1300_115_10_J05"
|
|
46
|
+
rotation={[Math.PI / 2, 0, -Math.PI]}
|
|
47
|
+
>
|
|
48
|
+
<group
|
|
49
|
+
name="ABB_IRB_1300_115_10_FLG"
|
|
50
|
+
position={[0, 0.092, 0]}
|
|
51
|
+
/>
|
|
52
|
+
<mesh
|
|
53
|
+
name="link_6"
|
|
54
|
+
castShadow
|
|
55
|
+
receiveShadow
|
|
56
|
+
geometry={nodes.link_6.geometry}
|
|
57
|
+
material={materials.Metal}
|
|
58
|
+
position={[1.159, -0.575, 0]}
|
|
59
|
+
rotation={[0, 0, Math.PI / 2]}
|
|
60
|
+
/>
|
|
61
|
+
</animated.group>
|
|
62
|
+
<mesh
|
|
63
|
+
name="link_5"
|
|
64
|
+
castShadow
|
|
65
|
+
receiveShadow
|
|
66
|
+
geometry={nodes.link_5.geometry}
|
|
67
|
+
material={materials.Plastic}
|
|
68
|
+
position={[-1.159, 0, 0.575]}
|
|
69
|
+
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
70
|
+
/>
|
|
71
|
+
</animated.group>
|
|
72
|
+
<group
|
|
73
|
+
name="link_4"
|
|
74
|
+
position={[-1.159, -0.15, 0]}
|
|
75
|
+
rotation={[-Math.PI, 0, -Math.PI / 2]}
|
|
76
|
+
>
|
|
77
|
+
<mesh
|
|
78
|
+
name="visuals004"
|
|
79
|
+
castShadow
|
|
80
|
+
receiveShadow
|
|
81
|
+
geometry={nodes.visuals004.geometry}
|
|
82
|
+
material={materials.Plastic}
|
|
83
|
+
/>
|
|
84
|
+
<mesh
|
|
85
|
+
name="visuals004_1"
|
|
86
|
+
castShadow
|
|
87
|
+
receiveShadow
|
|
88
|
+
geometry={nodes.visuals004_1.geometry}
|
|
89
|
+
material={materials.PlasticRed}
|
|
90
|
+
/>
|
|
91
|
+
</group>
|
|
92
|
+
</animated.group>
|
|
93
|
+
<group
|
|
94
|
+
name="link_3"
|
|
95
|
+
position={[-1.119, 0, 0.15]}
|
|
96
|
+
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
97
|
+
>
|
|
98
|
+
<mesh
|
|
99
|
+
name="visuals003"
|
|
100
|
+
castShadow
|
|
101
|
+
receiveShadow
|
|
102
|
+
geometry={nodes.visuals003.geometry}
|
|
103
|
+
material={materials.Plastic}
|
|
104
|
+
/>
|
|
105
|
+
<mesh
|
|
106
|
+
name="visuals003_1"
|
|
107
|
+
castShadow
|
|
108
|
+
receiveShadow
|
|
109
|
+
geometry={nodes.visuals003_1.geometry}
|
|
110
|
+
material={materials.PlasticRed}
|
|
111
|
+
/>
|
|
112
|
+
<mesh
|
|
113
|
+
name="visuals003_2"
|
|
114
|
+
castShadow
|
|
115
|
+
receiveShadow
|
|
116
|
+
geometry={nodes.visuals003_2.geometry}
|
|
117
|
+
material={materials.Plastic}
|
|
118
|
+
/>
|
|
119
|
+
</group>
|
|
120
|
+
</animated.group>
|
|
121
|
+
<mesh
|
|
122
|
+
name="link_2"
|
|
123
|
+
castShadow
|
|
124
|
+
receiveShadow
|
|
125
|
+
geometry={nodes.link_2.geometry}
|
|
126
|
+
material={materials.Plastic}
|
|
127
|
+
position={[-0.544, 0, 0.15]}
|
|
128
|
+
rotation={[Math.PI / 2, 0, -Math.PI / 2]}
|
|
129
|
+
/>
|
|
130
|
+
</animated.group>
|
|
131
|
+
<mesh
|
|
132
|
+
name="link_1"
|
|
133
|
+
castShadow
|
|
134
|
+
receiveShadow
|
|
135
|
+
geometry={nodes.link_1.geometry}
|
|
136
|
+
material={materials.Plastic}
|
|
137
|
+
/>
|
|
138
|
+
</animated.group>
|
|
139
|
+
</group>
|
|
140
|
+
</group>
|
|
141
|
+
)
|
|
142
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Suspense, useCallback, useEffect, useRef } from "react"
|
|
2
2
|
|
|
3
3
|
import { ABB_1200_07_7 } from "./ABB_1200_07_7"
|
|
4
|
+
import { ABB_1300_115_10 } from "./ABB_1300_115_10"
|
|
4
5
|
import { FANUC_ARC_Mate_100iD } from "./FANUC_ARC_Mate_100iD"
|
|
5
6
|
import { FANUC_ARC_Mate_120iD } from "./FANUC_ARC_Mate_120iD"
|
|
6
7
|
import { FANUC_CRX10iA } from "./FANUC_CRX10iA"
|
|
@@ -234,6 +235,9 @@ export const SupportedRobot = externalizeComponent(
|
|
|
234
235
|
case "ABB_1200_07_7":
|
|
235
236
|
Robot = ABB_1200_07_7
|
|
236
237
|
break
|
|
238
|
+
case "ABB_1300_115_10":
|
|
239
|
+
Robot = ABB_1300_115_10
|
|
240
|
+
break
|
|
237
241
|
default:
|
|
238
242
|
console.warn(`Unknown robot type: ${modelFromController}`)
|
|
239
243
|
Robot = null
|