@wandelbots/wandelbots-js-react-components 1.27.9 → 1.28.1

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.
Files changed (95) hide show
  1. package/dist/components/robots/ABB_1200_07_7.d.ts +1 -1
  2. package/dist/components/robots/ABB_1200_07_7.d.ts.map +1 -1
  3. package/dist/components/robots/ABB_1300_115_10.d.ts +1 -1
  4. package/dist/components/robots/ABB_1300_115_10.d.ts.map +1 -1
  5. package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts +1 -1
  6. package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +1 -1
  7. package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts +1 -1
  8. package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +1 -1
  9. package/dist/components/robots/FANUC_CRX10iA.d.ts +1 -1
  10. package/dist/components/robots/FANUC_CRX10iA.d.ts.map +1 -1
  11. package/dist/components/robots/FANUC_CRX10iAL.d.ts +1 -1
  12. package/dist/components/robots/FANUC_CRX10iAL.d.ts.map +1 -1
  13. package/dist/components/robots/FANUC_CRX20iAL.d.ts +1 -1
  14. package/dist/components/robots/FANUC_CRX20iAL.d.ts.map +1 -1
  15. package/dist/components/robots/FANUC_CRX25iA.d.ts +1 -1
  16. package/dist/components/robots/FANUC_CRX25iA.d.ts.map +1 -1
  17. package/dist/components/robots/FANUC_CRX25iAL.d.ts +1 -1
  18. package/dist/components/robots/FANUC_CRX25iAL.d.ts.map +1 -1
  19. package/dist/components/robots/FANUC_LR_MATE_200iD7L.d.ts +1 -1
  20. package/dist/components/robots/FANUC_LR_MATE_200iD7L.d.ts.map +1 -1
  21. package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts +1 -1
  22. package/dist/components/robots/FANUC_LR_Mate_200iD.d.ts.map +1 -1
  23. package/dist/components/robots/KUKA_KR16_R2010_2.d.ts +1 -1
  24. package/dist/components/robots/KUKA_KR16_R2010_2.d.ts.map +1 -1
  25. package/dist/components/robots/KUKA_KR210_R2700.d.ts +1 -1
  26. package/dist/components/robots/KUKA_KR210_R2700.d.ts.map +1 -1
  27. package/dist/components/robots/KUKA_KR270_R2700.d.ts +1 -1
  28. package/dist/components/robots/KUKA_KR270_R2700.d.ts.map +1 -1
  29. package/dist/components/robots/KUKA_KR6_R700_2.d.ts +1 -1
  30. package/dist/components/robots/KUKA_KR6_R700_2.d.ts.map +1 -1
  31. package/dist/components/robots/Robot.d.ts +3 -1
  32. package/dist/components/robots/Robot.d.ts.map +1 -1
  33. package/dist/components/robots/SupportedRobot.d.ts +3 -1
  34. package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
  35. package/dist/components/robots/UniversalRobots_UR10CB.d.ts +1 -1
  36. package/dist/components/robots/UniversalRobots_UR10CB.d.ts.map +1 -1
  37. package/dist/components/robots/UniversalRobots_UR10e.d.ts +1 -1
  38. package/dist/components/robots/UniversalRobots_UR10e.d.ts.map +1 -1
  39. package/dist/components/robots/UniversalRobots_UR3CB.d.ts +1 -1
  40. package/dist/components/robots/UniversalRobots_UR3CB.d.ts.map +1 -1
  41. package/dist/components/robots/UniversalRobots_UR3e.d.ts +1 -1
  42. package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +1 -1
  43. package/dist/components/robots/UniversalRobots_UR5CB.d.ts +1 -1
  44. package/dist/components/robots/UniversalRobots_UR5CB.d.ts.map +1 -1
  45. package/dist/components/robots/UniversalRobots_UR5e.d.ts +1 -1
  46. package/dist/components/robots/UniversalRobots_UR5e.d.ts.map +1 -1
  47. package/dist/components/robots/Yaskawa_AR1440.d.ts +1 -1
  48. package/dist/components/robots/Yaskawa_AR1440.d.ts.map +1 -1
  49. package/dist/components/robots/Yaskawa_AR1730.d.ts +1 -1
  50. package/dist/components/robots/Yaskawa_AR1730.d.ts.map +1 -1
  51. package/dist/components/robots/Yaskawa_AR2010.d.ts +1 -1
  52. package/dist/components/robots/Yaskawa_AR2010.d.ts.map +1 -1
  53. package/dist/components/robots/Yaskawa_AR3120.d.ts +1 -1
  54. package/dist/components/robots/Yaskawa_AR3120.d.ts.map +1 -1
  55. package/dist/components/robots/Yaskawa_AR900.d.ts +1 -1
  56. package/dist/components/robots/Yaskawa_AR900.d.ts.map +1 -1
  57. package/dist/components/robots/Yaskawa_GP50.d.ts +1 -1
  58. package/dist/components/robots/Yaskawa_GP50.d.ts.map +1 -1
  59. package/dist/components/robots/types.d.ts +2 -0
  60. package/dist/components/robots/types.d.ts.map +1 -1
  61. package/dist/index.cjs +27 -27
  62. package/dist/index.cjs.map +1 -1
  63. package/dist/index.js +4341 -4106
  64. package/dist/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/components/robots/ABB_1200_07_7.tsx +10 -2
  67. package/src/components/robots/ABB_1300_115_10.tsx +6 -1
  68. package/src/components/robots/FANUC_ARC_Mate_100iD.tsx +6 -1
  69. package/src/components/robots/FANUC_ARC_Mate_120iD.tsx +6 -1
  70. package/src/components/robots/FANUC_CRX10iA.tsx +6 -1
  71. package/src/components/robots/FANUC_CRX10iAL.tsx +6 -1
  72. package/src/components/robots/FANUC_CRX20iAL.tsx +6 -1
  73. package/src/components/robots/FANUC_CRX25iA.tsx +6 -1
  74. package/src/components/robots/FANUC_CRX25iAL.tsx +6 -1
  75. package/src/components/robots/FANUC_LR_MATE_200iD7L.tsx +6 -1
  76. package/src/components/robots/FANUC_LR_Mate_200iD.tsx +6 -1
  77. package/src/components/robots/KUKA_KR16_R2010_2.tsx +6 -1
  78. package/src/components/robots/KUKA_KR210_R2700.tsx +6 -1
  79. package/src/components/robots/KUKA_KR270_R2700.tsx +6 -1
  80. package/src/components/robots/KUKA_KR6_R700_2.tsx +6 -1
  81. package/src/components/robots/Robot.tsx +4 -0
  82. package/src/components/robots/SupportedRobot.tsx +10 -4
  83. package/src/components/robots/UniversalRobots_UR10CB.tsx +2 -0
  84. package/src/components/robots/UniversalRobots_UR10e.tsx +6 -1
  85. package/src/components/robots/UniversalRobots_UR3CB.tsx +10 -2
  86. package/src/components/robots/UniversalRobots_UR3e.tsx +6 -1
  87. package/src/components/robots/UniversalRobots_UR5CB.tsx +6 -1
  88. package/src/components/robots/UniversalRobots_UR5e.tsx +10 -2
  89. package/src/components/robots/Yaskawa_AR1440.tsx +6 -1
  90. package/src/components/robots/Yaskawa_AR1730.tsx +6 -1
  91. package/src/components/robots/Yaskawa_AR2010.tsx +6 -1
  92. package/src/components/robots/Yaskawa_AR3120.tsx +6 -1
  93. package/src/components/robots/Yaskawa_AR900.tsx +112 -60
  94. package/src/components/robots/Yaskawa_GP50.tsx +6 -1
  95. package/src/components/robots/types.ts +2 -0
@@ -6,7 +6,11 @@ Yaskawa_AR900.config = {
6
6
  rotationOffsets: [0, -Math.PI / 2, 0, 0, 0, 0],
7
7
  }
8
8
 
9
- export function Yaskawa_AR900({ modelURL, ...props }: RobotModelProps) {
9
+ export function Yaskawa_AR900({
10
+ modelURL,
11
+ flangeRef,
12
+ ...props
13
+ }: RobotModelProps) {
10
14
  const gltf = useGLTF(modelURL) as any
11
15
  const nodes = gltf.nodes
12
16
  const materials = gltf.materials
@@ -15,80 +19,128 @@ export function Yaskawa_AR900({ modelURL, ...props }: RobotModelProps) {
15
19
  <>
16
20
  <group {...props} dispose={null}>
17
21
  <group name="Scene">
18
- <group name="AR900" rotation={[Math.PI / 2, 0, 0]}>
19
- <animated.group name="AR900_J01" rotation={[-Math.PI / 2, 0, 0]}>
22
+ <group name="link_0">
23
+ <mesh
24
+ name="visuals"
25
+ geometry={nodes.visuals.geometry}
26
+ material={materials.yaskawa_blue}
27
+ />
28
+ <mesh
29
+ name="visuals_1"
30
+ geometry={nodes.visuals_1.geometry}
31
+ material={materials.yaskawa_black}
32
+ />
33
+ <mesh
34
+ name="visuals_2"
35
+ geometry={nodes.visuals_2.geometry}
36
+ material={materials.yaskawa_metalsilver}
37
+ />
38
+ </group>
39
+ <animated.group name="YASKAWA_GP7_J00">
40
+ <mesh
41
+ name="link_1"
42
+ geometry={nodes.link_1.geometry}
43
+ material={materials.yaskawa_blue}
44
+ />
45
+ <animated.group
46
+ name="YASKAWA_GP7_J01"
47
+ position={[0.04, 0, 0]}
48
+ rotation={[-Math.PI / 2, -Math.PI / 2, 0]}
49
+ >
50
+ <mesh
51
+ name="link_2"
52
+ geometry={nodes.link_2.geometry}
53
+ material={materials.yaskawa_blue}
54
+ position={[0, 0, 0.04]}
55
+ rotation={[Math.PI / 2, 0, -Math.PI / 2]}
56
+ />
20
57
  <animated.group
21
- name="AR900_J02"
22
- position={[0.04, 0, 0]}
23
- rotation={[-Math.PI / 2, -Math.PI / 2, 0]}
58
+ name="YASKAWA_GP7_J02"
59
+ position={[0.445, 0, 0]}
60
+ rotation={[-Math.PI, 0, 0]}
24
61
  >
62
+ <group
63
+ name="link_3"
64
+ position={[-0.445, 0, -0.04]}
65
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
66
+ >
67
+ <mesh
68
+ name="visuals003"
69
+ geometry={nodes.visuals003.geometry}
70
+ material={materials.yaskawa_blue}
71
+ />
72
+ <mesh
73
+ name="visuals003_1"
74
+ geometry={nodes.visuals003_1.geometry}
75
+ material={materials.material_Material_Metall__1_}
76
+ />
77
+ <mesh
78
+ name="visuals003_2"
79
+ geometry={nodes.visuals003_2.geometry}
80
+ material={materials.yaskawa_black}
81
+ />
82
+ </group>
25
83
  <animated.group
26
- name="AR900_J03"
27
- position={[0.445, 0, 0]}
28
- rotation={[-Math.PI, 0, 0]}
84
+ name="YASKAWA_GP7_J03"
85
+ position={[0.04, 0, 0]}
86
+ rotation={[-Math.PI / 2, 0, 0]}
29
87
  >
88
+ <group
89
+ name="link_4"
90
+ position={[-0.485, 0.04, 0]}
91
+ rotation={[0, 0, -Math.PI / 2]}
92
+ >
93
+ <mesh
94
+ name="visuals004"
95
+ geometry={nodes.visuals004.geometry}
96
+ material={materials.yaskawa_white}
97
+ />
98
+ <mesh
99
+ name="visuals004_1"
100
+ geometry={nodes.visuals004_1.geometry}
101
+ material={materials.yaskawa_black}
102
+ />
103
+ <mesh
104
+ name="visuals004_2"
105
+ geometry={nodes.visuals004_2.geometry}
106
+ material={materials.yaskawa_blue}
107
+ />
108
+ </group>
30
109
  <animated.group
31
- name="AR900_J04"
32
- position={[0.04, 0, 0]}
33
- rotation={[-Math.PI / 2, 0, 0]}
110
+ name="YASKAWA_GP7_J04"
111
+ position={[0, -0.44, 0]}
112
+ rotation={[Math.PI / 2, 0, 0]}
34
113
  >
114
+ <mesh
115
+ name="link_5"
116
+ geometry={nodes.link_5.geometry}
117
+ material={materials.yaskawa_blue}
118
+ position={[-0.485, 0, -0.48]}
119
+ rotation={[-Math.PI / 2, 0, -Math.PI / 2]}
120
+ />
35
121
  <animated.group
36
- name="AR900_J05"
37
- position={[0, -0.44, 0]}
38
- rotation={[Math.PI / 2, 0, 0]}
122
+ name="YASKAWA_GP7_J05"
123
+ rotation={[-Math.PI / 2, 0, 0]}
39
124
  >
40
- <animated.group
41
- name="AR900_J06"
42
- rotation={[-Math.PI / 2, 0, 0]}
43
- >
44
- <group
45
- name="AR900_FLG"
46
- position={[0, -0.08, 0]}
47
- rotation={[-Math.PI, 0, 0]}
48
- />
49
- <mesh
50
- name="AR900_L06"
51
- geometry={nodes.AR900_L06.geometry}
52
- material={materials["#BBA474.001"]}
53
- />
54
- </animated.group>
55
125
  <mesh
56
- name="AR900_L05"
57
- geometry={nodes.AR900_L05.geometry}
58
- material={materials["#0056b9.001"]}
126
+ name="link_6"
127
+ geometry={nodes.link_6.geometry}
128
+ material={materials.yaskawa_metalgold}
129
+ position={[-0.485, 0.48, 0]}
130
+ rotation={[0, 0, -Math.PI / 2]}
131
+ />
132
+ <group
133
+ ref={flangeRef}
134
+ name="YASKAWA_GP7_FLG"
135
+ position={[0, -0.08, 0]}
136
+ rotation={[-Math.PI, 0, 0]}
59
137
  />
60
138
  </animated.group>
61
- <mesh
62
- name="AR900_L04"
63
- geometry={nodes.AR900_L04.geometry}
64
- material={materials["#0056b9.001"]}
65
- />
66
139
  </animated.group>
67
- <mesh
68
- name="AR900_L03"
69
- geometry={nodes.AR900_L03.geometry}
70
- material={materials["#0056b9.001"]}
71
- />
72
140
  </animated.group>
73
- <mesh
74
- name="AR900_L02"
75
- geometry={nodes.AR900_L02.geometry}
76
- material={materials["#0056b9.001"]}
77
- />
78
141
  </animated.group>
79
- <mesh
80
- name="AR900_L01"
81
- geometry={nodes.AR900_L01.geometry}
82
- material={materials["#0056b9.001"]}
83
- />
84
142
  </animated.group>
85
- <mesh
86
- name="AR900_L00"
87
- geometry={nodes.AR900_L00.geometry}
88
- material={materials["#0056b9.001"]}
89
- rotation={[-Math.PI / 2, 0, 0]}
90
- />
91
- </group>
143
+ </animated.group>
92
144
  </group>
93
145
  </group>
94
146
  </>
@@ -6,7 +6,11 @@ Yaskawa_GP50.config = {
6
6
  rotationOffsets: [0, -Math.PI / 2, 0, 0, 0, 0],
7
7
  }
8
8
 
9
- export function Yaskawa_GP50({ modelURL, ...props }: RobotModelProps) {
9
+ export function Yaskawa_GP50({
10
+ modelURL,
11
+ flangeRef,
12
+ ...props
13
+ }: RobotModelProps) {
10
14
  const gltf = useGLTF(modelURL) as any
11
15
 
12
16
  const nodes = gltf.nodes
@@ -174,6 +178,7 @@ export function Yaskawa_GP50({ modelURL, ...props }: RobotModelProps) {
174
178
  rotation={[0, 0, -Math.PI / 2]}
175
179
  />
176
180
  <group
181
+ ref={flangeRef}
177
182
  name="YASKAWA_GP50_FLG"
178
183
  position={[0, -0.175, 0]}
179
184
  rotation={[-Math.PI, 0, 0]}
@@ -1,7 +1,9 @@
1
1
  import type { GroupProps } from "@react-three/fiber"
2
+ import type { Group } from "three"
2
3
 
3
4
  export type RobotModelProps = {
4
5
  modelURL: string
6
+ flangeRef?: React.MutableRefObject<Group>
5
7
  } & GroupProps
6
8
 
7
9
  /**