@wandelbots/wandelbots-js-react-components 1.3.2 → 1.4.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 (166) hide show
  1. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +11 -0
  2. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -0
  3. package/dist/components/3d-viewport/PresetEnvironment.d.ts +7 -0
  4. package/dist/components/3d-viewport/PresetEnvironment.d.ts.map +1 -0
  5. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts +7 -0
  6. package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -0
  7. package/dist/components/LoadingButton.d.ts +5 -0
  8. package/dist/components/LoadingButton.d.ts.map +1 -0
  9. package/dist/components/LoadingButton.stories.d.ts +6 -0
  10. package/dist/components/LoadingButton.stories.d.ts.map +1 -0
  11. package/dist/components/LoadingCover.d.ts +6 -0
  12. package/dist/components/LoadingCover.d.ts.map +1 -0
  13. package/dist/components/ThemeSelect.d.ts +7 -0
  14. package/dist/components/ThemeSelect.d.ts.map +1 -0
  15. package/dist/components/VelocitySlider.d.ts +14 -0
  16. package/dist/components/VelocitySlider.d.ts.map +1 -0
  17. package/dist/components/VelocitySlider.stories.d.ts +6 -0
  18. package/dist/components/VelocitySlider.stories.d.ts.map +1 -0
  19. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +15 -0
  20. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -0
  21. package/dist/components/jogging/JoggingCartesianAxisControl.stories.d.ts +6 -0
  22. package/dist/components/jogging/JoggingCartesianAxisControl.stories.d.ts.map +1 -0
  23. package/dist/components/jogging/JoggingCartesianTab.d.ts +7 -0
  24. package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -0
  25. package/dist/components/jogging/JoggingCartesianValues.d.ts +7 -0
  26. package/dist/components/jogging/JoggingCartesianValues.d.ts.map +1 -0
  27. package/dist/components/jogging/JoggingFreedriveTab.d.ts +2 -0
  28. package/dist/components/jogging/JoggingFreedriveTab.d.ts.map +1 -0
  29. package/dist/components/jogging/JoggingJointLimitDetector.d.ts +9 -0
  30. package/dist/components/jogging/JoggingJointLimitDetector.d.ts.map +1 -0
  31. package/dist/components/jogging/JoggingJointRotationControl.d.ts +14 -0
  32. package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +1 -0
  33. package/dist/components/jogging/JoggingJointRotationControl.stories.d.ts +6 -0
  34. package/dist/components/jogging/JoggingJointRotationControl.stories.d.ts.map +1 -0
  35. package/dist/components/jogging/JoggingJointTab.d.ts +7 -0
  36. package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -0
  37. package/dist/components/jogging/JoggingJointValues.d.ts +7 -0
  38. package/dist/components/jogging/JoggingJointValues.d.ts.map +1 -0
  39. package/dist/components/jogging/JoggingOptions.d.ts +7 -0
  40. package/dist/components/jogging/JoggingOptions.d.ts.map +1 -0
  41. package/dist/components/jogging/JoggingPanel.d.ts +9 -0
  42. package/dist/components/jogging/JoggingPanel.d.ts.map +1 -0
  43. package/dist/components/jogging/JoggingPanel.stories.d.ts +6 -0
  44. package/dist/components/jogging/JoggingPanel.stories.d.ts.map +1 -0
  45. package/dist/components/jogging/JoggingStore.d.ts +141 -0
  46. package/dist/components/jogging/JoggingStore.d.ts.map +1 -0
  47. package/dist/components/jogging/JoggingVelocitySlider.d.ts +7 -0
  48. package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +1 -0
  49. package/dist/components/robots/ABB_1200_07_7.d.ts +3 -0
  50. package/dist/components/robots/ABB_1200_07_7.d.ts.map +1 -0
  51. package/dist/components/robots/AxisConfig.d.ts +3 -0
  52. package/dist/components/robots/AxisConfig.d.ts.map +1 -0
  53. package/dist/components/robots/DHRobot.d.ts +3 -0
  54. package/dist/components/robots/DHRobot.d.ts.map +1 -0
  55. package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts +3 -0
  56. package/dist/components/robots/FANUC_ARC_Mate_100iD.d.ts.map +1 -0
  57. package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts +3 -0
  58. package/dist/components/robots/FANUC_ARC_Mate_120iD.d.ts.map +1 -0
  59. package/dist/components/robots/FANUC_CRX10iA.d.ts +3 -0
  60. package/dist/components/robots/FANUC_CRX10iA.d.ts.map +1 -0
  61. package/dist/components/robots/FANUC_CRX25iA.d.ts +3 -0
  62. package/dist/components/robots/FANUC_CRX25iA.d.ts.map +1 -0
  63. package/dist/components/robots/FANUC_CRX25iAL.d.ts +3 -0
  64. package/dist/components/robots/FANUC_CRX25iAL.d.ts.map +1 -0
  65. package/dist/components/robots/KUKA_KR210_R2700.d.ts +3 -0
  66. package/dist/components/robots/KUKA_KR210_R2700.d.ts.map +1 -0
  67. package/dist/components/robots/KUKA_KR270_R2700.d.ts +3 -0
  68. package/dist/components/robots/KUKA_KR270_R2700.d.ts.map +1 -0
  69. package/dist/components/robots/Robot.d.ts +19 -0
  70. package/dist/components/robots/Robot.d.ts.map +1 -0
  71. package/dist/components/robots/RobotAnimator.d.ts +12 -0
  72. package/dist/components/robots/RobotAnimator.d.ts.map +1 -0
  73. package/dist/components/robots/SupportedRobot.d.ts +19 -0
  74. package/dist/components/robots/SupportedRobot.d.ts.map +1 -0
  75. package/dist/components/robots/UniversalRobots_UR10.d.ts +3 -0
  76. package/dist/components/robots/UniversalRobots_UR10.d.ts.map +1 -0
  77. package/dist/components/robots/UniversalRobots_UR10e.d.ts +3 -0
  78. package/dist/components/robots/UniversalRobots_UR10e.d.ts.map +1 -0
  79. package/dist/components/robots/UniversalRobots_UR3.d.ts +3 -0
  80. package/dist/components/robots/UniversalRobots_UR3.d.ts.map +1 -0
  81. package/dist/components/robots/UniversalRobots_UR3e.d.ts +3 -0
  82. package/dist/components/robots/UniversalRobots_UR3e.d.ts.map +1 -0
  83. package/dist/components/robots/UniversalRobots_UR5.d.ts +3 -0
  84. package/dist/components/robots/UniversalRobots_UR5.d.ts.map +1 -0
  85. package/dist/components/robots/UniversalRobots_UR5e.d.ts +3 -0
  86. package/dist/components/robots/UniversalRobots_UR5e.d.ts.map +1 -0
  87. package/dist/components/robots/Yaskawa_AR1440.d.ts +3 -0
  88. package/dist/components/robots/Yaskawa_AR1440.d.ts.map +1 -0
  89. package/dist/components/robots/Yaskawa_AR1730.d.ts +3 -0
  90. package/dist/components/robots/Yaskawa_AR1730.d.ts.map +1 -0
  91. package/dist/components/robots/Yaskawa_AR2010.d.ts +3 -0
  92. package/dist/components/robots/Yaskawa_AR2010.d.ts.map +1 -0
  93. package/dist/components/robots/Yaskawa_AR3120.d.ts +3 -0
  94. package/dist/components/robots/Yaskawa_AR3120.d.ts.map +1 -0
  95. package/dist/components/robots/Yaskawa_AR900.d.ts +3 -0
  96. package/dist/components/robots/Yaskawa_AR900.d.ts.map +1 -0
  97. package/dist/components/utils/converters.d.ts +5 -0
  98. package/dist/components/utils/converters.d.ts.map +1 -0
  99. package/dist/components/utils/errorHandling.d.ts +4 -0
  100. package/dist/components/utils/errorHandling.d.ts.map +1 -0
  101. package/dist/components/utils/hooks.d.ts +22 -0
  102. package/dist/components/utils/hooks.d.ts.map +1 -0
  103. package/dist/components/utils/robotTreeQuery.d.ts +6 -0
  104. package/dist/components/utils/robotTreeQuery.d.ts.map +1 -0
  105. package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts +14 -0
  106. package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -0
  107. package/dist/components/wandelscript-editor/WandelscriptEditor.stories.d.ts +6 -0
  108. package/dist/components/wandelscript-editor/WandelscriptEditor.stories.d.ts.map +1 -0
  109. package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts +45 -0
  110. package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +1 -0
  111. package/dist/i18n/config.d.ts +4 -0
  112. package/dist/i18n/config.d.ts.map +1 -0
  113. package/dist/icons/arrowForwardFilled.d.ts +2 -0
  114. package/dist/icons/arrowForwardFilled.d.ts.map +1 -0
  115. package/dist/icons/expandFilled.d.ts +2 -0
  116. package/dist/icons/expandFilled.d.ts.map +1 -0
  117. package/dist/icons/home.d.ts +2 -0
  118. package/dist/icons/home.d.ts.map +1 -0
  119. package/dist/icons/index.d.ts +7 -0
  120. package/dist/icons/index.d.ts.map +1 -0
  121. package/dist/icons/infoOutlined.d.ts +2 -0
  122. package/dist/icons/infoOutlined.d.ts.map +1 -0
  123. package/dist/icons/robot.d.ts +2 -0
  124. package/dist/icons/robot.d.ts.map +1 -0
  125. package/dist/icons/wbLogo.d.ts +7 -0
  126. package/dist/icons/wbLogo.d.ts.map +1 -0
  127. package/dist/index.cjs +102 -0
  128. package/dist/index.cjs.map +1 -0
  129. package/dist/index.d.ts +9 -0
  130. package/dist/index.d.ts.map +1 -0
  131. package/dist/index.js +15200 -0
  132. package/dist/index.js.map +1 -0
  133. package/dist/themes/color.d.ts +10 -0
  134. package/dist/themes/color.d.ts.map +1 -0
  135. package/dist/themes/theme.d.ts +144 -0
  136. package/dist/themes/theme.d.ts.map +1 -0
  137. package/dist/themes/wbTheme.d.ts +73 -0
  138. package/dist/themes/wbTheme.d.ts.map +1 -0
  139. package/dist/themes/wbTheme.stories.d.ts +7 -0
  140. package/dist/themes/wbTheme.stories.d.ts.map +1 -0
  141. package/package.json +1 -2
  142. package/src/components/3d-viewport/SafetyZonesRenderer.tsx +2 -1
  143. package/src/components/robots/ABB_1200_07_7.tsx +6 -2
  144. package/src/components/robots/DHRobot.tsx +28 -29
  145. package/src/components/robots/FANUC_ARC_Mate_100iD.tsx +2 -2
  146. package/src/components/robots/FANUC_ARC_Mate_120iD.tsx +2 -2
  147. package/src/components/robots/FANUC_CRX10iA.tsx +6 -2
  148. package/src/components/robots/FANUC_CRX25iA.tsx +6 -2
  149. package/src/components/robots/FANUC_CRX25iAL.tsx +6 -2
  150. package/src/components/robots/KUKA_KR210_R2700.tsx +2 -2
  151. package/src/components/robots/KUKA_KR270_R2700.tsx +2 -2
  152. package/src/components/robots/Robot.tsx +42 -0
  153. package/src/components/robots/RobotAnimator.tsx +5 -6
  154. package/src/components/robots/SupportedRobot.tsx +23 -10
  155. package/src/components/robots/UniversalRobots_UR10.tsx +2 -2
  156. package/src/components/robots/UniversalRobots_UR10e.tsx +2 -2
  157. package/src/components/robots/UniversalRobots_UR3.tsx +2 -2
  158. package/src/components/robots/UniversalRobots_UR3e.tsx +2 -2
  159. package/src/components/robots/UniversalRobots_UR5.tsx +2 -2
  160. package/src/components/robots/UniversalRobots_UR5e.tsx +2 -2
  161. package/src/components/robots/Yaskawa_AR1440.tsx +6 -2
  162. package/src/components/robots/Yaskawa_AR1730.tsx +6 -2
  163. package/src/components/robots/Yaskawa_AR2010.tsx +6 -2
  164. package/src/components/robots/Yaskawa_AR3120.tsx +6 -2
  165. package/src/components/robots/Yaskawa_AR900.tsx +6 -2
  166. package/src/index.ts +1 -0
@@ -21,34 +21,42 @@ import { FANUC_ARC_Mate_120iD } from "./FANUC_ARC_Mate_120iD"
21
21
  import { ABB_1200_07_7 } from "./ABB_1200_07_7"
22
22
 
23
23
  import type { GroupProps } from "@react-three/fiber"
24
- import type { ConnectedMotionGroup } from "@wandelbots/wandelbots-js"
24
+ import type {
25
+ MotionGroupStateResponse,
26
+ DHParameter,
27
+ } from "@wandelbots/wandelbots-api-client"
25
28
  import { DHRobot } from "./DHRobot"
26
29
 
27
30
  export type DHRobotProps = {
28
- connectedMotionGroup: ConnectedMotionGroup
31
+ rapidlyChangingMotionState: MotionGroupStateResponse
32
+ dhParameters: Array<DHParameter>
29
33
  } & GroupProps
30
34
 
31
35
  export type RobotProps = {
32
- connectedMotionGroup: ConnectedMotionGroup
36
+ rapidlyChangingMotionState: MotionGroupStateResponse
33
37
  modelURL: string
34
38
  } & GroupProps
35
39
 
36
40
  export type SupportedRobotProps = {
37
- connectedMotionGroup: ConnectedMotionGroup
41
+ rapidlyChangingMotionState: MotionGroupStateResponse
42
+ modelFromController: string
43
+ dhParameters: DHParameter[]
38
44
  getModel?: (modelFromController: string) => string
39
45
  } & GroupProps
40
46
 
41
- function defaultGetModel(modelFromController: string): string {
47
+ export function defaultGetModel(modelFromController: string): string {
42
48
  return `https://cdn.jsdelivr.net/gh/wandelbotsgmbh/wandelbots-js-react-components/public/models/${modelFromController}.glb`
43
49
  }
44
50
 
45
51
  export function SupportedRobot({
46
- connectedMotionGroup,
52
+ rapidlyChangingMotionState,
53
+ modelFromController,
54
+ dhParameters,
47
55
  getModel = defaultGetModel,
48
56
  ...props
49
57
  }: SupportedRobotProps) {
50
58
  let Robot
51
- const modelFromController = connectedMotionGroup.modelFromController
59
+
52
60
  switch (modelFromController) {
53
61
  case "UniversalRobots_UR3":
54
62
  Robot = UniversalRobots_UR3
@@ -118,12 +126,17 @@ export function SupportedRobot({
118
126
  return (
119
127
  <Suspense
120
128
  fallback={
121
- <DHRobot connectedMotionGroup={connectedMotionGroup} {...props} />
129
+ <DHRobot
130
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
131
+ dhParameters={dhParameters}
132
+ {...props}
133
+ />
122
134
  }
123
135
  >
124
136
  <Robot
125
- connectedMotionGroup={connectedMotionGroup}
126
- modelURL={getModel(modelFromController||"")}
137
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
138
+ modelURL={getModel(modelFromController)}
139
+ dhParameters={dhParameters}
127
140
  {...props}
128
141
  />
129
142
  </Suspense>
@@ -6,7 +6,7 @@ import { animated } from "@react-spring/three"
6
6
 
7
7
  export function UniversalRobots_UR10({
8
8
  modelURL,
9
- connectedMotionGroup,
9
+ rapidlyChangingMotionState,
10
10
  ...props
11
11
  }: RobotProps) {
12
12
  const gltf = useGLTF(modelURL) as any
@@ -22,7 +22,7 @@ export function UniversalRobots_UR10({
22
22
  return (
23
23
  <>
24
24
  <RobotAnimator
25
- connectedMotionGroup={connectedMotionGroup}
25
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
26
26
  robotRootObjectName="Scene"
27
27
  onRotationChanged={setRotation}
28
28
  />
@@ -6,7 +6,7 @@ import type * as THREE from "three"
6
6
 
7
7
  export function UniversalRobots_UR10e({
8
8
  modelURL,
9
- connectedMotionGroup,
9
+ rapidlyChangingMotionState,
10
10
  ...props
11
11
  }: RobotProps) {
12
12
  const gltf = useGLTF(modelURL) as any
@@ -22,7 +22,7 @@ export function UniversalRobots_UR10e({
22
22
  return (
23
23
  <>
24
24
  <RobotAnimator
25
- connectedMotionGroup={connectedMotionGroup}
25
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
26
26
  robotRootObjectName="Scene"
27
27
  onRotationChanged={setRotation}
28
28
  />
@@ -6,7 +6,7 @@ import RobotAnimator from "./RobotAnimator"
6
6
 
7
7
  export function UniversalRobots_UR3({
8
8
  modelURL,
9
- connectedMotionGroup,
9
+ rapidlyChangingMotionState,
10
10
  ...props
11
11
  }: RobotProps) {
12
12
  const gltf = useGLTF(modelURL) as any
@@ -22,7 +22,7 @@ export function UniversalRobots_UR3({
22
22
  return (
23
23
  <>
24
24
  <RobotAnimator
25
- connectedMotionGroup={connectedMotionGroup}
25
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
26
26
  robotRootObjectName="Scene"
27
27
  onRotationChanged={setRotation}
28
28
  />
@@ -6,7 +6,7 @@ import RobotAnimator from "./RobotAnimator"
6
6
 
7
7
  export function UniversalRobots_UR3e({
8
8
  modelURL,
9
- connectedMotionGroup,
9
+ rapidlyChangingMotionState,
10
10
  ...props
11
11
  }: RobotProps) {
12
12
  const gltf = useGLTF(modelURL) as any
@@ -22,7 +22,7 @@ export function UniversalRobots_UR3e({
22
22
  return (
23
23
  <>
24
24
  <RobotAnimator
25
- connectedMotionGroup={connectedMotionGroup}
25
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
26
26
  robotRootObjectName="Scene"
27
27
  onRotationChanged={setRotation}
28
28
  />
@@ -6,7 +6,7 @@ import RobotAnimator from "./RobotAnimator"
6
6
 
7
7
  export function UniversalRobots_UR5({
8
8
  modelURL,
9
- connectedMotionGroup,
9
+ rapidlyChangingMotionState,
10
10
  ...props
11
11
  }: RobotProps) {
12
12
  const gltf = useGLTF(modelURL) as any
@@ -21,7 +21,7 @@ export function UniversalRobots_UR5({
21
21
  return (
22
22
  <>
23
23
  <RobotAnimator
24
- connectedMotionGroup={connectedMotionGroup}
24
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
25
25
  robotRootObjectName="Scene"
26
26
  onRotationChanged={setRotation}
27
27
  />
@@ -6,7 +6,7 @@ import RobotAnimator from "./RobotAnimator"
6
6
 
7
7
  export function UniversalRobots_UR5e({
8
8
  modelURL,
9
- connectedMotionGroup,
9
+ rapidlyChangingMotionState,
10
10
  ...props
11
11
  }: RobotProps) {
12
12
  const gltf = useGLTF(modelURL) as any
@@ -22,7 +22,7 @@ export function UniversalRobots_UR5e({
22
22
  return (
23
23
  <>
24
24
  <RobotAnimator
25
- connectedMotionGroup={connectedMotionGroup}
25
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
26
26
  robotRootObjectName="Scene"
27
27
  onRotationChanged={setRotation}
28
28
  />
@@ -4,7 +4,11 @@ import type { RobotProps } from "./SupportedRobot"
4
4
  import { animated } from "@react-spring/three"
5
5
  import RobotAnimator from "./RobotAnimator"
6
6
 
7
- export function Yaskawa_AR1440({ modelURL, connectedMotionGroup, ...props }: RobotProps) {
7
+ export function Yaskawa_AR1440({
8
+ modelURL,
9
+ rapidlyChangingMotionState,
10
+ ...props
11
+ }: RobotProps) {
8
12
  const gltf = useGLTF(modelURL) as any
9
13
 
10
14
  const nodes = gltf.nodes
@@ -23,7 +27,7 @@ export function Yaskawa_AR1440({ modelURL, connectedMotionGroup, ...props }: Rob
23
27
  return (
24
28
  <>
25
29
  <RobotAnimator
26
- connectedMotionGroup={connectedMotionGroup}
30
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
27
31
  robotRootObjectName="Scene"
28
32
  onRotationChanged={setRotation}
29
33
  />
@@ -4,7 +4,11 @@ import type { RobotProps } from "./SupportedRobot"
4
4
  import { animated } from "@react-spring/three"
5
5
  import RobotAnimator from "./RobotAnimator"
6
6
 
7
- export function Yaskawa_AR1730({ modelURL, connectedMotionGroup, ...props }: RobotProps) {
7
+ export function Yaskawa_AR1730({
8
+ modelURL,
9
+ rapidlyChangingMotionState,
10
+ ...props
11
+ }: RobotProps) {
8
12
  const gltf = useGLTF(modelURL) as any
9
13
 
10
14
  const nodes = gltf.nodes
@@ -23,7 +27,7 @@ export function Yaskawa_AR1730({ modelURL, connectedMotionGroup, ...props }: Rob
23
27
  return (
24
28
  <>
25
29
  <RobotAnimator
26
- connectedMotionGroup={connectedMotionGroup}
30
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
27
31
  robotRootObjectName="Scene"
28
32
  onRotationChanged={setRotation}
29
33
  />
@@ -4,7 +4,11 @@ import type { RobotProps } from "./SupportedRobot"
4
4
  import { animated } from "@react-spring/three"
5
5
  import RobotAnimator from "./RobotAnimator"
6
6
 
7
- export function Yaskawa_AR2010({ modelURL, connectedMotionGroup, ...props }: RobotProps) {
7
+ export function Yaskawa_AR2010({
8
+ modelURL,
9
+ rapidlyChangingMotionState,
10
+ ...props
11
+ }: RobotProps) {
8
12
  const gltf = useGLTF(modelURL) as any
9
13
  const nodes = gltf.nodes
10
14
  const materials = gltf.materials
@@ -22,7 +26,7 @@ export function Yaskawa_AR2010({ modelURL, connectedMotionGroup, ...props }: Rob
22
26
  return (
23
27
  <>
24
28
  <RobotAnimator
25
- connectedMotionGroup={connectedMotionGroup}
29
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
26
30
  robotRootObjectName="Scene"
27
31
  onRotationChanged={setRotation}
28
32
  />
@@ -4,7 +4,11 @@ import type { RobotProps } from "./SupportedRobot"
4
4
  import RobotAnimator from "./RobotAnimator"
5
5
  import { animated } from "@react-spring/three"
6
6
 
7
- export function Yaskawa_AR3120({ modelURL, connectedMotionGroup, ...props }: RobotProps) {
7
+ export function Yaskawa_AR3120({
8
+ modelURL,
9
+ rapidlyChangingMotionState,
10
+ ...props
11
+ }: RobotProps) {
8
12
  const gltf = useGLTF(modelURL) as any
9
13
 
10
14
  const nodes = gltf.nodes
@@ -23,7 +27,7 @@ export function Yaskawa_AR3120({ modelURL, connectedMotionGroup, ...props }: Rob
23
27
  return (
24
28
  <>
25
29
  <RobotAnimator
26
- connectedMotionGroup={connectedMotionGroup}
30
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
27
31
  robotRootObjectName="Scene"
28
32
  onRotationChanged={setRotation}
29
33
  />
@@ -4,7 +4,11 @@ import type { RobotProps } from "./SupportedRobot"
4
4
  import { animated } from "@react-spring/three"
5
5
  import RobotAnimator from "./RobotAnimator"
6
6
 
7
- export function Yaskawa_AR900({ modelURL, connectedMotionGroup, ...props }: RobotProps) {
7
+ export function Yaskawa_AR900({
8
+ modelURL,
9
+ rapidlyChangingMotionState,
10
+ ...props
11
+ }: RobotProps) {
8
12
  const gltf = useGLTF(modelURL) as any
9
13
  const nodes = gltf.nodes
10
14
  const materials = gltf.materials
@@ -20,7 +24,7 @@ export function Yaskawa_AR900({ modelURL, connectedMotionGroup, ...props }: Robo
20
24
  return (
21
25
  <>
22
26
  <RobotAnimator
23
- connectedMotionGroup={connectedMotionGroup}
27
+ rapidlyChangingMotionState={rapidlyChangingMotionState}
24
28
  robotRootObjectName="Scene"
25
29
  onRotationChanged={setRotation}
26
30
  />
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./components/robots/SupportedRobot"
2
+ export * from "./components/robots/Robot"
2
3
  export * from "./components/robots/AxisConfig"
3
4
  export * from "./components/3d-viewport/PresetEnvironment"
4
5
  export * from "./components/3d-viewport/SafetyZonesRenderer"