@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.d45cc87 → 6.4.0-pr.revamp.667.db25d46

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 (215) hide show
  1. package/README.md +192 -44
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +8 -7
  4. package/dist/3d.js +32 -35
  5. package/dist/CurrentPose/index.cjs +1 -1
  6. package/dist/CurrentPose/index.d.ts +0 -2
  7. package/dist/CurrentPose/index.js +3 -7
  8. package/dist/CurrentPoseBar/index.cjs +1 -1
  9. package/dist/CurrentPoseBar/index.d.ts +1 -1
  10. package/dist/CurrentPoseBar/index.js +1 -1
  11. package/dist/JoggingButtons/index.cjs +1 -1
  12. package/dist/JoggingButtons/index.js +1 -1
  13. package/dist/JoggingGizmo/index.cjs +1 -1
  14. package/dist/JoggingGizmo/index.d.ts +1 -0
  15. package/dist/JoggingGizmo/index.js +2 -2
  16. package/dist/JoggingJointSlider/index.cjs +1 -1
  17. package/dist/JoggingJointSlider/index.js +1 -1
  18. package/dist/RobotControl/index.cjs +1 -1
  19. package/dist/RobotControl/index.d.ts +1 -2
  20. package/dist/RobotControl/index.js +3 -7
  21. package/dist/RobotControlPanel/index.cjs +1 -1
  22. package/dist/RobotControlPanel/index.d.ts +1 -1
  23. package/dist/RobotControlPanel/index.js +1 -1
  24. package/dist/RobotHeader/index.cjs +1 -1
  25. package/dist/RobotHeader/index.d.ts +3 -5
  26. package/dist/RobotHeader/index.js +6 -7
  27. package/dist/RobotScene/index.cjs +1 -1
  28. package/dist/RobotScene/index.d.ts +0 -2
  29. package/dist/RobotScene/index.js +4 -8
  30. package/dist/RobotView/index.cjs +1 -0
  31. package/dist/RobotView/index.d.ts +3 -0
  32. package/dist/RobotView/index.js +6 -0
  33. package/dist/SafetyBar/IndicatorWithExplanation.d.ts +12 -1
  34. package/dist/SafetyBar/SafetyBar.d.ts +15 -1
  35. package/dist/SafetyBar/index.cjs +1 -1
  36. package/dist/SafetyBar/index.d.ts +0 -1
  37. package/dist/SafetyBar/index.js +3 -4
  38. package/dist/SafetyBar/robotSafetyOf.d.ts +1 -0
  39. package/dist/chunks/ConnectedMotionGroup-BYClkPAT.js +1822 -0
  40. package/dist/chunks/ConnectedMotionGroup-HvJuBQPp.cjs +3 -0
  41. package/dist/chunks/CurrentPose-B8tXT5Tq.js +50 -0
  42. package/dist/chunks/CurrentPose-qBC8VCPy.cjs +1 -0
  43. package/dist/chunks/{CurrentPoseBar-BmsPnLVP.js → CurrentPoseBar--HkZBGnN.js} +17 -16
  44. package/dist/chunks/CurrentPoseBar-DoOUfRRs.cjs +1 -0
  45. package/dist/chunks/{JoggingButtons-I_Y70pg8.js → JoggingButtons-BNOnpcTH.js} +2 -2
  46. package/dist/chunks/{JoggingButtons-9nBrKbUa.cjs → JoggingButtons-Boaym2hQ.cjs} +1 -1
  47. package/dist/chunks/JoggingGizmo-CNFjpWDv.cjs +1 -0
  48. package/dist/chunks/JoggingGizmo-RDiEVQes.js +847 -0
  49. package/dist/chunks/{JoggingGizmoOrientation-DU97IUWq.js → JoggingGizmoOrientation-Dzzz2gEz.js} +1 -1
  50. package/dist/chunks/{JoggingGizmoOrientation-BwkW76fE.cjs → JoggingGizmoOrientation-laUrgY0N.cjs} +1 -1
  51. package/dist/chunks/JoggingJointSlider-BY-Tof8G.js +378 -0
  52. package/dist/chunks/JoggingJointSlider-Dm3vILd3.cjs +1 -0
  53. package/dist/chunks/JoggingRefusedError-C4D8_YR_.js +38 -0
  54. package/dist/chunks/JoggingRefusedError-DqyrfUcc.cjs +1 -0
  55. package/dist/chunks/Pose3-BfBNPRDM.cjs +1 -0
  56. package/dist/chunks/{Pose3-B_fLR-Wv.js → Pose3-DWxfC6Dj.js} +1 -2
  57. package/dist/chunks/PoseTransformer-2QIzECOZ.cjs +1 -0
  58. package/dist/chunks/PoseTransformer-CmuoS76S.js +364 -0
  59. package/dist/chunks/{Robot-DYSBpijG.cjs → Robot-BrpXU2uK.cjs} +1 -1
  60. package/dist/chunks/{Robot-DULi-BRh.js → Robot-CGHX7jNl.js} +5 -5
  61. package/dist/chunks/RobotActivation-CRVxXvlx.cjs +1 -0
  62. package/dist/chunks/RobotActivation-oR-8Y0iq.js +143 -0
  63. package/dist/chunks/RobotControl-BA7g3gXi.js +330 -0
  64. package/dist/chunks/RobotControl-DCDIkFRN.cjs +1 -0
  65. package/dist/chunks/RobotControlPanel-B7NxoHsO.cjs +1 -0
  66. package/dist/chunks/RobotControlPanel-CkQlkq8x.js +1029 -0
  67. package/dist/chunks/RobotHeader-BK3aterQ.js +392 -0
  68. package/dist/chunks/RobotHeader-QJEMyVYN.cjs +1 -0
  69. package/dist/chunks/RobotScene-BrOl3ypZ.cjs +1 -0
  70. package/dist/chunks/RobotScene-_TGUZ5nP.js +1281 -0
  71. package/dist/chunks/RobotView-BV_1i0af.cjs +1 -0
  72. package/dist/chunks/RobotView-Btd9xrsG.js +157 -0
  73. package/dist/chunks/SafetyBar-BjHC-CXB.cjs +1 -0
  74. package/dist/chunks/{robotSafetyOf-P4RgO2LQ.js → SafetyBar-CUHeULnA.js} +247 -219
  75. package/dist/chunks/externalizeComponent-CA_sHzyH.cjs +2 -0
  76. package/dist/chunks/{externalizeComponent-CPAVvPKk.js → externalizeComponent-CChY_1bN.js} +60 -14
  77. package/dist/chunks/holdSafety-Cbej6-Kc.js +62 -0
  78. package/dist/chunks/holdSafety-TeMXlYQe.cjs +1 -0
  79. package/dist/chunks/hooks-BWoeBWLV.js +158 -0
  80. package/dist/chunks/hooks-BXe2bNMo.cjs +1 -0
  81. package/dist/chunks/joggingColors-Cqpfuw4G.cjs +1 -0
  82. package/dist/chunks/joggingColors-sb6IFdj2.js +133 -0
  83. package/dist/chunks/json-3cqBD7UQ.js +18 -0
  84. package/dist/chunks/json-Bd6uGfgP.cjs +1 -0
  85. package/dist/chunks/loadRobotSession-BzY9H3F8.cjs +1 -0
  86. package/dist/chunks/loadRobotSession-pZlkRmlB.js +3279 -0
  87. package/dist/chunks/poseText-BxG4Caa-.js +48 -0
  88. package/dist/chunks/poseText-CwplkbDM.cjs +1 -0
  89. package/dist/chunks/useEveryFrame-D04ygIe7.js +116 -0
  90. package/dist/chunks/useEveryFrame-NeKiPXY-.cjs +1 -0
  91. package/dist/chunks/useSmoothedMotionState-CCXmMZ0S.cjs +1 -0
  92. package/dist/chunks/useSmoothedMotionState-CELh-YJa.js +50 -0
  93. package/dist/chunks/useWebGLRenderer-BozrbZz-.js +45 -0
  94. package/dist/chunks/useWebGLRenderer-CtddVDDb.cjs +1 -0
  95. package/dist/components/VelocitySlider.d.ts +14 -1
  96. package/dist/components/connectionWarning/ConnectionWarning.d.ts +17 -4
  97. package/dist/components/connectionWarning/connectionWarningOf.d.ts +1 -11
  98. package/dist/components/currentPoseBar/CurrentPose.d.ts +9 -13
  99. package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +1 -1
  100. package/dist/components/currentPoseBar/poseValues.d.ts +1 -1
  101. package/dist/components/currentPoseBar/useCurrentPoseProps.d.ts +1 -16
  102. package/dist/components/jogging/JoggingButtons.d.ts +3 -1
  103. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +7 -1
  104. package/dist/components/jogging/JoggingCartesianTab.d.ts +6 -0
  105. package/dist/components/jogging/JoggingJointTab.d.ts +5 -0
  106. package/dist/components/jogging/JoggingJointValueControl.d.ts +7 -1
  107. package/dist/components/jogging/JoggingPanel.d.ts +10 -0
  108. package/dist/components/jogging/JoggingRefusedError.d.ts +24 -0
  109. package/dist/components/jogging/JoggingStore.d.ts +296 -12
  110. package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +14 -4
  111. package/dist/components/jogging/gizmo/RotationHandles.d.ts +3 -3
  112. package/dist/components/jogging/gizmo/gizmoShared.d.ts +19 -9
  113. package/dist/components/jogging/holdSafety.d.ts +51 -13
  114. package/dist/components/jogging/joggingColors.d.ts +6 -0
  115. package/dist/components/jogging/joint/JoggingJointSlider.d.ts +9 -5
  116. package/dist/components/jogging/joint/useJointJogHold.d.ts +10 -15
  117. package/dist/components/jogging/useHold.d.ts +17 -13
  118. package/dist/components/jogging/useJogControls.d.ts +2 -3
  119. package/dist/components/robotControl/CartesianJogTab.d.ts +14 -3
  120. package/dist/components/robotControl/HoldToMoveButton.d.ts +8 -7
  121. package/dist/components/robotControl/JogArea.d.ts +10 -4
  122. package/dist/components/robotControl/JogDisabledReason.d.ts +15 -0
  123. package/dist/components/robotControl/JointJogTab.d.ts +10 -2
  124. package/dist/components/robotControl/MoveToTab.d.ts +27 -4
  125. package/dist/components/robotControl/PanelSelect.d.ts +1 -1
  126. package/dist/components/robotControl/PoseField.d.ts +3 -1
  127. package/dist/components/robotControl/RobotControl.d.ts +20 -10
  128. package/dist/components/robotControl/RobotControlPanel.d.ts +84 -45
  129. package/dist/components/robotControl/SmallSelect.d.ts +1 -1
  130. package/dist/components/robotControl/VelocityRow.d.ts +8 -2
  131. package/dist/components/robotControl/atPose.d.ts +6 -0
  132. package/dist/components/robotControl/poseText.d.ts +13 -1
  133. package/dist/components/robotControl/robotControlTypes.d.ts +36 -0
  134. package/dist/components/robotControl/units.d.ts +11 -3
  135. package/dist/components/robotControl/useRobotControlProps.d.ts +0 -17
  136. package/dist/components/robotControl/velocityText.d.ts +18 -0
  137. package/dist/components/robotHeader/ActivationSwitch.d.ts +13 -2
  138. package/dist/components/robotHeader/RobotHeader.d.ts +24 -4
  139. package/dist/components/robotHeader/robotActivationOf.d.ts +1 -8
  140. package/dist/components/robotScene/RobotScene.d.ts +16 -12
  141. package/dist/components/robotScene/useRobotSceneProps.d.ts +1 -18
  142. package/dist/components/robotView/RobotCanvas.d.ts +42 -0
  143. package/dist/components/robotView/RobotView.d.ts +22 -0
  144. package/dist/components/robotView/WebGLUnavailable.d.ts +5 -0
  145. package/dist/components/robots/LinearAxis.d.ts +1 -1
  146. package/dist/components/robots/MotionGroupVisualizer.d.ts +6 -4
  147. package/dist/components/robots/Robot.d.ts +3 -3
  148. package/dist/components/robots/SupportedLinearAxis.d.ts +6 -4
  149. package/dist/components/robots/SupportedRobot.d.ts +7 -5
  150. package/dist/components/robots/robotModelSource.d.ts +2 -12
  151. package/dist/components/robots/useFrameSmoothedMotionState.d.ts +25 -0
  152. package/dist/components/utils/converters.d.ts +0 -2
  153. package/dist/components/utils/json.d.ts +4 -0
  154. package/dist/components/utils/useSmoothedMotionState.d.ts +11 -2
  155. package/dist/components/utils/useWebGLRenderer.d.ts +32 -0
  156. package/dist/components/utils/webglSupport.d.ts +11 -0
  157. package/dist/core.cjs +1 -1
  158. package/dist/core.d.ts +9 -12
  159. package/dist/core.js +66 -74
  160. package/dist/index.cjs +1 -1
  161. package/dist/index.js +97 -109
  162. package/dist/lib/ConnectedMotionGroup.d.ts +13 -2
  163. package/dist/lib/ControllerStateStream.d.ts +9 -9
  164. package/dist/lib/JoggerConnection.d.ts +48 -13
  165. package/dist/lib/MotionStreamConnection.d.ts +3 -2
  166. package/dist/lib/TrajectoryExecutionStore.d.ts +144 -13
  167. package/dist/lib/controllerStateSource.d.ts +6 -5
  168. package/dist/lib/incrementalCartesianMotion.d.ts +2 -2
  169. package/dist/lib/poseMath.d.ts +51 -0
  170. package/dist/lib/robotSession/RobotActivation.d.ts +58 -16
  171. package/dist/lib/robotSession/RobotLiveState.d.ts +13 -4
  172. package/dist/lib/robotSession/RobotSession.d.ts +43 -4
  173. package/dist/lib/robotSession/RobotTargetPose.d.ts +46 -8
  174. package/dist/lib/robotSession/loadRobotSession.d.ts +1 -1
  175. package/dist/lib/robotSession/robotPose.d.ts +3 -4
  176. package/dist/nats.cjs +1 -1
  177. package/dist/nats.js +1 -1
  178. package/dist/session.cjs +1 -0
  179. package/dist/session.d.ts +22 -0
  180. package/dist/session.js +36 -0
  181. package/package.json +27 -1
  182. package/dist/chunks/CurrentPose-CFxf6D2n.cjs +0 -1
  183. package/dist/chunks/CurrentPose-e37CnT1C.js +0 -52
  184. package/dist/chunks/CurrentPoseBar-ZUhFaVdM.cjs +0 -1
  185. package/dist/chunks/JoggingGizmo-DBpDIbzl.js +0 -810
  186. package/dist/chunks/JoggingGizmo-DtWw6KWg.cjs +0 -1
  187. package/dist/chunks/JoggingJointSlider-DHBB7MwU.cjs +0 -1
  188. package/dist/chunks/JoggingJointSlider-DeMqm9Jh.js +0 -406
  189. package/dist/chunks/Pose3-Ch4xVeXV.cjs +0 -1
  190. package/dist/chunks/PoseTransformer-dP4nzrPG.cjs +0 -1
  191. package/dist/chunks/PoseTransformer-tafab65c.js +0 -454
  192. package/dist/chunks/RobotControl-CI99-2nW.js +0 -286
  193. package/dist/chunks/RobotControl-DDNDc-aE.cjs +0 -1
  194. package/dist/chunks/RobotControlPanel-CzhYCBAm.js +0 -827
  195. package/dist/chunks/RobotControlPanel-DHQga5uu.cjs +0 -1
  196. package/dist/chunks/RobotScene-BtgO_xot.js +0 -1230
  197. package/dist/chunks/RobotScene-irOI2iEa.cjs +0 -1
  198. package/dist/chunks/RobotSessionProvider--AekyPqD.cjs +0 -1
  199. package/dist/chunks/RobotSessionProvider-TVaKGzqa.js +0 -25
  200. package/dist/chunks/converters-BsXgcxCW.cjs +0 -1
  201. package/dist/chunks/converters-D9KpJ2HD.js +0 -47
  202. package/dist/chunks/externalizeComponent-CkWiNBu0.cjs +0 -2
  203. package/dist/chunks/holdSafety-BtoZ5We3.cjs +0 -1
  204. package/dist/chunks/holdSafety-Di1GZAWg.js +0 -37
  205. package/dist/chunks/joggingColors-CuT5u0H8.js +0 -135
  206. package/dist/chunks/joggingColors-ZDc_2UCp.cjs +0 -1
  207. package/dist/chunks/loadRobotSession-BEWsNORK.cjs +0 -3
  208. package/dist/chunks/loadRobotSession-CpOwI_86.js +0 -4389
  209. package/dist/chunks/robotActivationOf-DXC0E2DS.cjs +0 -1
  210. package/dist/chunks/robotActivationOf-E1GLe_69.js +0 -477
  211. package/dist/chunks/robotSafetyOf-CwfVV9__.cjs +0 -1
  212. package/dist/chunks/useEveryFrame-CHxg25f4.cjs +0 -1
  213. package/dist/chunks/useEveryFrame-DAuNawGP.js +0 -155
  214. package/dist/components/robotHeader/robotSafetyOf.d.ts +0 -11
  215. package/dist/components/robotSession/RobotSessionProvider.d.ts +0 -13
package/README.md CHANGED
@@ -17,11 +17,13 @@ pnpm add @wandelbots/wandelbots-js-react-components \
17
17
  @wandelbots/mui mobx mobx-react-lite
18
18
  ```
19
19
 
20
- The 3D parts need three.js and React Three Fiber in addition. If you don't need 3D rendering in your application, always import from `/core`.
20
+ An app without the library's UI, which takes only `/session`, installs the library and `mobx` (see [Peer dependencies](#peer-dependencies)).
21
+
22
+ The 3D parts need three.js and React Three Fiber in addition. `/core` has the parts without 3D:
21
23
 
22
24
  ```typescript
23
25
  import {
24
- JoggingPanel,
26
+ JoggingButtons,
25
27
  SafetyBar,
26
28
  } from "@wandelbots/wandelbots-js-react-components/core"
27
29
  ```
@@ -41,6 +43,8 @@ pnpm add three three-stdlib @react-three/fiber @react-three/drei
41
43
 
42
44
  You can also import from the top-level package, but then you'll need to provide all optional dependencies.
43
45
 
46
+ An app that installs no three.js imports from `/session` and from the entry points of single components instead of `/core`, see [Without three.js or without React](#without-threejs-or-without-react).
47
+
44
48
  The parts use the theme of your app. Create it with `createNovaMuiTheme` of `@wandelbots/mui`:
45
49
 
46
50
  ```tsx
@@ -66,14 +70,23 @@ Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/
66
70
  **Available Entry Points:**
67
71
 
68
72
  - **`.`** (Main) — All components. Requires the peer dependencies of `/core` and `/3d`.
69
- - **`/core`** — The parts without 3D (jogging, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), the NOVA connections and `JoggingStore`, the motion state helpers and `i18n`.
73
+ - **`/core`** — The parts without 3D (jogging, `RobotHeader`, `CurrentPose`, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), everything of `/session` (the robot session, `JoggingStore`, the NOVA connections, the motion state helpers), the deprecated `ConnectedMotionGroup` and `i18n`. Draws nothing in 3D, but still needs three.js installed (see [Without three.js or without React](#without-threejs-or-without-react)).
74
+ - **`/session`** — The library without React: a robot of a NOVA cell, loaded and connected (`loadRobotSession`, `RobotSession` with its description, live state, safety, activation, jogging and Move to), `JoggingStore`, the NOVA connections (`JoggerConnection`, `MotionStreamConnection`), the pose math and the motion state helpers. Loads no React, no MUI and no three.js. `/core` exports all of it as well.
70
75
  - **`/3d`** — The 3D parts (`Robot`, `MotionGroupVisualizer`, `SafetyZonesRenderer`, …). Requires in addition three, three-stdlib, @react-three/fiber and @react-three/drei.
71
- - **`/nats`** — A robot's live controller state over NOVA's NATS server (`natsControllerStateSource`, `natsUrlOf`), a source for `ControllerStateStream` of `/core` instead of its websocket (`controllerStateWebsocket`). Requires in addition nats.ws; no other entry point loads it.
72
- - **`/SafetyBar`** — Only `SafetyBar` (also as the default export).
76
+ - **`/nats`** — A robot's live controller state over NOVA's NATS server (`natsControllerStateSource`, `natsUrlOf`): the `stateSource` of `loadRobotSession` instead of NOVA's websocket. Requires in addition nats.ws; no other entry point loads it.
77
+ - **`/SafetyBar`** — Only `SafetyBar` (also as the default export), also for a robot session (`session`).
73
78
  - **`/JoggingGizmo`** — Only `JoggingGizmo` (also as the default export) and `JoggingGizmoOrientation`. Requires in addition three and @react-three/fiber.
74
79
  - **`/JoggingButtons`** — Only `JoggingButtons` (also as the default export). No 3D packages needed.
75
80
  - **`/JoggingJointSlider`** — Only `JoggingJointSlider` (also as the default export). No 3D packages needed.
76
81
  - **`/RobotControlPanel`** — The whole Robot control panel, `RobotControlPanel` (also as the default export). It shows the jog gizmo, so it requires in addition three and @react-three/fiber, as `/JoggingGizmo` does.
82
+ - **`/RobotControl`** — `RobotControl` (also as the default export), the Robot control panel of a robot session. Requires in addition three and @react-three/fiber, as `/RobotControlPanel` does.
83
+ - **`/RobotView`** — `RobotView` (also as the default export), the 3D view of a robot session, and `RobotCanvas`. Requires in addition three, three-stdlib, @react-three/fiber and @react-three/drei.
84
+ - **`/RobotScene`** — `RobotScene` (also as the default export), the 3D scene of a robot session for the app's own `<Canvas>`, `RobotSceneView` and `JoggingAxes`. Requires in addition three, three-stdlib, @react-three/fiber and @react-three/drei.
85
+ - **`/CurrentPose`** — `CurrentPose` (also as the default export), the current pose bar of a robot session. No 3D packages needed.
86
+ - **`/CurrentPoseBar`** — Only `CurrentPoseBar` (also as the default export). No 3D packages needed.
87
+ - **`/RobotHeader`** — `RobotHeader` (also as the default export), and its parts for an app's own header: `SafetyBar`, `ActivationSwitch` and `ConnectionWarning`. No 3D packages needed.
88
+
89
+ Each part of a robot session (`RobotControl`, `RobotView`, `RobotScene`, `CurrentPose`, and `RobotHeader` with its parts) takes its robot as `session` and follows it by itself: the app passes the session, nothing else. Several robots on a page: each part gets its own.
77
90
 
78
91
  A component's own entry point brings only what that component needs, e.g. `/JoggingButtons` no three.js and no NOVA client, unlike `/core`. The entry points share their common code, so an app that imports a component from both `/core` and its own entry point gets one copy of it:
79
92
 
@@ -81,21 +94,53 @@ A component's own entry point brings only what that component needs, e.g. `/Jogg
81
94
  import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
82
95
  ```
83
96
 
97
+ ### Without three.js or without React
98
+
99
+ - **An app without a 3D view** needs no three.js. It takes the robot from `/session` and its parts from the component entry points that draw nothing in 3D: `/RobotHeader`, `/CurrentPose`, `/CurrentPoseBar`, `/SafetyBar`, `/JoggingButtons` and `/JoggingJointSlider`.
100
+ - **`/core` needs three.js installed**, although it draws nothing in 3D: the deprecated `ConnectedMotionGroup` that it exports gives a three.js quaternion (`mountingQuaternion`). That ends when `ConnectedMotionGroup` is removed.
101
+ - **An app without React**, or with a UI of its own, uses `/session` alone (and `/nats`). Of the peer dependencies it needs only `mobx` (see [Peer dependencies](#peer-dependencies)). The parts of a session are MobX stores: such an app follows them with `autorun` or `reaction` of MobX. What it calls returns a promise that rejects when it fails (a jog that may not start rejects with a `JoggingRefusedError`); what fails in the background goes to `onError`. `load.dispose()` closes the session's connections.
102
+
103
+ ```typescript
104
+ import { autorun } from "mobx"
105
+ import { loadRobotSession } from "@wandelbots/wandelbots-js-react-components/session"
106
+
107
+ const load = loadRobotSession("https://my-instance.wandelbots.io", "0@ur5e", {
108
+ onError: (error) => console.warn(error.kind, error.message),
109
+ })
110
+ // Rejects when the load fails; load.retry() loads again
111
+ const session = await load.ready
112
+
113
+ const stopFollowing = autorun(() => {
114
+ console.log(session.safety.canBeMoved, session.state.displayedTcpPose)
115
+ })
116
+
117
+ // Jog along X while a key of the app's own UI is held
118
+ await session.activation.activate()
119
+ await session.jogging.startCartesianJogging("translate", "x", "+")
120
+ // … and when it is let go
121
+ await session.jogging.stopJogging()
122
+
123
+ stopFollowing()
124
+ load.dispose()
125
+ ```
126
+
84
127
  ### Peer dependencies
85
128
 
86
- | Package | Version |
87
- | --- | --- |
88
- | `react`, `react-dom` | ^19 |
89
- | `@mui/material`, `@mui/icons-material` | ^7 |
90
- | `@emotion/react`, `@emotion/styled` | ^11 |
91
- | `@wandelbots/mui` | ^2 |
92
- | `mobx` | ^6.13.6 |
93
- | `mobx-react-lite` | ^4.1.0 |
94
- | `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | >=0.182 |
95
- | `three-stdlib` (only `/3d`) | >=2 |
96
- | `@react-three/fiber` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | ^9 |
97
- | `@react-three/drei` (only `/3d`) | ^10 |
98
- | `nats.ws` (only `/nats`) | ^1.30.3 |
129
+ | Package | Version | Needed by |
130
+ | --- | --- | --- |
131
+ | `mobx` | ^6.13.6 | Every entry point |
132
+ | `react`, `react-dom` | ^19 | Every entry point with UI: all but `/session` and `/nats` |
133
+ | `@mui/material`, `@mui/icons-material` | ^7 | Every entry point with UI |
134
+ | `@emotion/react`, `@emotion/styled` | ^11 | Every entry point with UI |
135
+ | `@wandelbots/mui` | ^2 | Every entry point with UI |
136
+ | `mobx-react-lite` | ^4.1.0 | Every entry point with UI |
137
+ | `three` | >=0.182 | `.`, `/3d`, `/JoggingGizmo`, `/RobotControlPanel`, `/RobotControl`, `/RobotScene`, `/RobotView`, and `/core` until `ConnectedMotionGroup` is removed |
138
+ | `@react-three/fiber` | ^9 | `.`, `/3d`, `/JoggingGizmo`, `/RobotControlPanel`, `/RobotControl`, `/RobotScene`, `/RobotView` |
139
+ | `three-stdlib` | >=2 | `.`, `/3d`, `/RobotScene`, `/RobotView` |
140
+ | `@react-three/drei` | ^10 | `.`, `/3d`, `/RobotScene`, `/RobotView` |
141
+ | `nats.ws` | ^1.30.3 | `/nats` |
142
+
143
+ Only `mobx` is a required peer. The others are optional in `package.json`, so an app installs those of the entry points it imports: an app that takes only `/session` (and `/nats`) installs `mobx` (and `nats.ws`), and no React, MUI or three.js. Three of the library's own dependencies (`react-i18next`, `react-error-boundary` and `@wandelbots/icons`) name `react` as their peer, so a package manager may still warn about React, or install it, for such an app; `/session` does not load it.
99
144
 
100
145
  These packages are peer dependencies because the app and the library must use the same copy: React, the MUI theme of the app, the MobX stores that the app reads with its own `observer`, and the `<Canvas>` of React Three Fiber.
101
146
 
@@ -145,14 +190,15 @@ motionGroup.dispose()
145
190
  // After
146
191
  const load = loadRobotSession(nova, "0@ur5e", { cellId })
147
192
  const session = await load.ready
148
- <Robot motionGroup={robotModelOf(session)} />
193
+ <RobotScene session={session} />
149
194
  load.dispose()
150
195
  ```
151
196
 
152
197
  What changes besides the names:
153
198
 
154
199
  - **Loading:** `loadRobotSession` returns at once. `load.state` ("loading", "ready", "failed") and `load.progress` tell how far it is, `load.retry()` loads again after a failure, `await load.ready` gives the session. A failed step is retried on its own, after 1 and 2 seconds unless `retryDelaysMs` says otherwise.
155
- - **Jogging comes with it:** `session.jogging` is the robot's `JoggingStore`. An app no longer opens it with `JoggerConnection.open` and `JoggingStore.loadFor`.
200
+ - **Jogging comes with it:** `session.jogging` is the robot's `JoggingStore`. An app no longer opens it with `JoggerConnection.open` and `JoggingStore.loadFor`. It starts no jog while the robot may not move (`safety.canBeMoved` is false, so also while the robot is activating): the start rejects with a `JoggingRefusedError`.
201
+ - **The activation follows the controller:** `activation.state` is the mode that the controller reports ("inactive" while its live state does not come), or the mode change in progress. A change that the controller has not confirmed after 30 seconds is over, and can be asked for again.
156
202
  - **Nothing happens unasked:** without `storage` the jogging settings are not kept (pass `localStorage` to keep them), and a virtual robot is activated only with `autoActivateVirtual: true`.
157
203
  - **Errors:** what the app calls rejects (`session.activation.activate()` with a `RobotModeChangeError`); what fails in the background (a jog, a message of the live state) goes to `onError`.
158
204
  - **Several robots:** load one session per robot instead of `ConnectedMotionGroup.connectMultiple`.
@@ -167,7 +213,7 @@ What changes besides the names:
167
213
  | `isVirtual` | `description.isVirtual` |
168
214
  | `tcps` | `description.tcps` (id and name), `description.tcpOffsetsById` (position and orientation) |
169
215
  | `joints` | One per joint: `description.dhParameters`, or the joint limits in `description.jointLimits` |
170
- | `mountingPosition`, `mountingQuaternion` | `robotModelOf(session)` of `/3d` (metres and a quaternion), or `description.mounting` (mm and a rotation vector) |
216
+ | `mountingPosition`, `mountingQuaternion` | `description.mounting` (mm and a rotation vector); `RobotScene` draws the robot at it |
171
217
  | `rapidlyChangingMotionState` | `state.rapidlyChangingMotionState` |
172
218
  | `controllerState` | `state.controllerState` |
173
219
  | `initialMotionState`, `controller`, `motionGroup`, `motionStateSocket` | No replacement: the session keeps its connections. Read `state` instead. |
@@ -177,7 +223,41 @@ What changes besides the names:
177
223
  | `joggingVelocity`, `joggingVelocityRads`, `setJoggingVelocity()` | The velocities of `jogging`: `rotationVelocityDegPerSec`, `rotationVelocityRadsPerSec`, `translationVelocityMmPerSec`, `setVelocityFromSlider()` |
178
224
  | `connectedJoggingSocket`, `planData` | No replacement (unused) |
179
225
  | `dispose()` | `load.dispose()`, or `session.dispose()` |
180
- | `<Robot connectedMotionGroup={…}>`, `<LinearAxis connectedMotionGroup={…}>` | `<Robot motionGroup={robotModelOf(session)}>`, the same for `LinearAxis`. `motionGroup` also takes a `ConnectedMotionGroup`, or the app's own data (see `RobotModelSource`). |
226
+ | `<Robot connectedMotionGroup={…}>`, `<LinearAxis connectedMotionGroup={…}>` | `<RobotScene session={session} />` draws the session's robot or linear axis. `Robot` and `LinearAxis` take `motionGroup`: a `ConnectedMotionGroup`, or the app's own data (see `RobotModelSource`). |
227
+
228
+ ### From JoggingPanel to RobotControl
229
+
230
+ `JoggingPanel` and the older parts it is built from (`JoggingCartesianAxisControl`, `JoggingJointValueControl`, `VelocitySlider`, which reads a `JoggingStore`, and `VelocitySliderLabel`) are deprecated. They keep working until a later major version removes them. `RobotControl` replaces the panel: the Robot control panel of the design (Translate, Rotate, Joint and Move to) for a [robot session](#from-connectedmotiongroup-to-robotsession).
231
+
232
+ ```tsx
233
+ // Before
234
+ <JoggingPanel nova={nova} motionGroupId="0@ur5e" cellId={cellId} locked={programRuns} />
235
+
236
+ // After
237
+ const load = loadRobotSession(nova, "0@ur5e", { cellId, storage: localStorage })
238
+ const session = await load.ready
239
+ <RobotControl session={session} disabled={programRuns} />
240
+ ```
241
+
242
+ | `JoggingPanel` | Instead |
243
+ | --- | --- |
244
+ | `nova`, `motionGroupId`, `cellId` | `loadRobotSession(nova, motionGroupId, { cellId })`; its session goes to `session` |
245
+ | `locked` | `disabled` |
246
+ | `onSetup(store)`, `store` | `session.jogging`, the session's `JoggingStore`. It lives as long as the session, also while the panel is hidden. |
247
+ | The jogging settings in `localStorage` | Only with `storage: localStorage` (or a storage of the app) for `loadRobotSession`; without it nothing is kept |
248
+ | `sx` | `sx` |
249
+ | `children` | No replacement: the app puts its own parts next to the panel, see [Placing the parts](#placing-the-parts) |
250
+ | The `show…` flags of `JoggingStore` (`showTcpSelect`, `showIncrementSelect`, …), its `tabs` and `onTabChange` | The props of `RobotControlPanel`, given to `RobotControl`: each replaces the session's, e.g. `<RobotControl session={session} increments={undefined} />` for no Increment mode |
251
+ | `JoggingCartesianAxisControl` | `JoggingButtons` (a minus and a plus button per axis), or `JoggingGizmo` |
252
+ | `JoggingJointValueControl` | `JoggingJointSlider` |
253
+ | `VelocitySlider`, `VelocitySliderLabel` | The velocity of `RobotControlPanel` |
254
+ | `JoggingStore.activate()` | `startCartesianJogging`, `startJointJogging` and `runIncrementalCartesianJog` of `JoggingStore` activate what they need; `session.ensureMovementOwnership("jogging")` hands the robot to jogging |
255
+
256
+ What changes besides the names:
257
+
258
+ - **Props in, callbacks out:** `RobotControlPanel`, `JoggingButtons`, `JoggingGizmo` and `JoggingJointSlider` take no store and move nothing themselves (`onJogStart`, `onJogStop`). `RobotControl` is `RobotControlPanel` wired to a session: it jogs the session's robot.
259
+ - **The gizmo** needs the camera of the app's 3D view: `gizmoOrientation`, written by a `JoggingGizmoOrientation` in the view. Without it the panel jogs with buttons.
260
+ - **Jogging is off** while the robot may not move (not activated, its safety, no live state), while a trajectory moves it or another client jogs it: `RobotControl` says why in the panel. `disabled` is only the app's own lock.
181
261
 
182
262
  ### 4.x Core Changes
183
263
 
@@ -211,18 +291,9 @@ Breaking changes for each major version are documented in the [GitHub Releases](
211
291
 
212
292
  Manual robot control interfaces.
213
293
 
214
- **JoggingPanel** - Complete jogging interface with cartesian and joint controls
215
-
216
- - Dual-mode operation (Cartesian & Joint space)
217
- - Real-time velocity control
218
- - Multiple coordinate systems support (Robot base or Tool)
294
+ **JoggingPanel** (deprecated, see [From JoggingPanel to RobotControl](#from-joggingpanel-to-robotcontrol)) - The jogging panel of earlier versions, with cartesian and joint controls. The older parts it is built from are deprecated with it: **JoggingCartesianAxisControl** (use `JoggingButtons`), **JoggingJointValueControl** (use `JoggingJointSlider`), **VelocitySlider** and **VelocitySliderLabel** (use the velocity of `RobotControlPanel`).
219
295
 
220
- **Individual Jogging Controls**
221
-
222
- - **JoggingCartesianAxisControl** - Single-axis cartesian movement
223
- - **JoggingJointValueControl** - Individual joint controls
224
- - **VelocitySlider** (and **VelocitySliderLabel**) - Speed adjustment interface
225
- - **JoggingStore** - The state of the jogging (velocity, coordinate system, the jogging connection). `JoggingPanel` gives it to `onSetup`, and `JoggingStore.loadFor` creates one for your own controls.
296
+ **JoggingStore** - The state of the jogging (velocity, coordinate system, the jogging connection). A robot session has one (`session.jogging`), and `JoggingStore.loadFor` creates one for your own controls. It also jogs for them: `startCartesianJogging(motion, axis, direction)` or `startJointJogging(joint, direction)` when a control is pressed and `stopJogging()` when it is let go, and `runIncrementalCartesianJog(motion, axis, direction, increment)` for one step. The store keeps the order that hold-to-jog needs: a press that ends before the jogging connection is ready moves nothing, and one step runs at a time. While the store is locked, or its owner says that the robot may not move (the option `notMoveableReason`, which a `RobotSession` gives its store), or after NOVA refused the jogging connection because another client jogs (`blocked`, until `unblock()`), it starts no jog: the start rejects with a `JoggingRefusedError`, whose `reason.code` says why. The same holds for everything else that opens the jogging connection, a TCP change (`requestTcpChange`) and `session.ensureMovementOwnership("jogging")`: NOVA switches a controller to control mode by itself for it. The store asks again once the connection is open, and closes it when the robot may no longer move by then.
226
297
 
227
298
  **JoggingGizmo** and **JoggingGizmoOrientation** (from `/3d` or `/JoggingGizmo`) - Jogging by the axes of the jog frame as the camera of the 3D view sees them: orbit the view and the gizmo turns with it, so the arrow pointing right on screen moves the robot right on screen. Hold a handle to jog.
228
299
 
@@ -231,7 +302,9 @@ Manual robot control interfaces.
231
302
  - `frameQuaternion` of `JoggingGizmo` is the frame the gizmo jogs along, in NOVA's coordinates: by default NOVA's world frame. The app gives it to the gizmo where it picks the frame, e.g. "Move along the axes of: Tool". Only the camera's view comes from the 3D scene. A frame that turns, such as the tool's, can be a function: the gizmo calls it every animation frame.
232
303
  - `motion` is `"translate"` (arrows, the default) or `"rotate"`: a circle about each axis with an arc per direction, whose arrowhead shows the way it turns (`+` counterclockwise seen from the tip of the axis). The handles are named as the jog buttons: "Jog X+", or "Jog Rx+" when rotating. A jog that runs when `motion` changes stops.
233
304
  - The gizmo moves nothing itself: `onJogStart(axis, direction)` and `onJogStop` leave that to the app, in the frame it jogs in. The app knows its `motion`, so it knows whether to move along the axis or turn about it.
234
- - A press jogs along the arrow drawn where it lands. Where a press could not tell two handles apart, it jogs neither: an arrow that points (almost) at or away from the viewer, or the farther of two arrowheads drawn over each other. The keyboard reaches every handle by its name.
305
+ - A press jogs along the arrow drawn where it lands. Where a press could not tell two handles apart, it jogs neither: an arrow that points (almost) at or away from the viewer, or the farther of two arrowheads drawn over each other. To jog with such a handle, orbit the view, or use `JoggingButtons`.
306
+ - A jog runs while a pointer holds a handle. It stops when the pointer is let go, wherever that happens, and when the pointer leaves the handle (the bar along its arrow, or the band along its arc and its arrowhead), as RobotPad's jog buttons do. A pointer that comes back without a new press jogs nothing.
307
+ - Only a pointer jogs. A handle is a named button, so the keyboard's focus reaches it, but Space or Enter on it start nothing.
235
308
  - When rotating, a press turns the way the arc drawn there points: an arc is grabbed anywhere along it, an arrowhead above everything else. Where two arcs cross, the one drawn nearer there takes the press. An axis seen (almost) edge on, whose arcs lie over each other, takes no press.
236
309
 
237
310
  ```tsx
@@ -255,7 +328,7 @@ const orientation = useRef<Quaternion | null>(null)
255
328
  />
256
329
  ```
257
330
 
258
- **JoggingButtons** (from `/core` or `/JoggingButtons`) - Jogging by buttons: a row per axis with a minus and a plus button, held to jog (X-, X+; or Rx-, Rx+ when `motion` is `"rotate"`). It takes the same props as `JoggingGizmo` (`JogControlsProps`: `motion`, `onJogStart`, `onJogStop`, `activeHandle`, `disabled`), so an app wires both the same way and can offer both. Unlike the gizmo, the buttons do not turn with the 3D view: X+ is X+ of the jog frame, wherever the camera looks from. They draw nothing in 3D, so they need no `<Canvas>` and no `JoggingGizmoOrientation`.
331
+ **JoggingButtons** (from `/core` or `/JoggingButtons`) - Jogging by buttons: a row per axis with a minus and a plus button, held to jog (X-, X+; or Rx-, Rx+ when `motion` is `"rotate"`). It takes the same props as `JoggingGizmo` (`JogControlsProps`: `motion`, `onJogStart`, `onJogStop`, `activeHandle`, `disabled`), so an app wires both the same way and can offer both. Unlike the gizmo, the buttons do not turn with the 3D view: X+ is X+ of the jog frame, wherever the camera looks from. They draw nothing in 3D, so they need no `<Canvas>` and no `JoggingGizmoOrientation`. As with the gizmo, a jog stops when the pointer is let go or leaves the button, and only a pointer jogs: the keyboard's focus reaches a button, but Space or Enter on it start nothing.
259
332
 
260
333
  ```tsx
261
334
  <JoggingButtons
@@ -269,7 +342,7 @@ const orientation = useRef<Quaternion | null>(null)
269
342
  />
270
343
  ```
271
344
 
272
- **JoggingJointSlider** (from `/core` or `/JoggingJointSlider`) - One joint as a slider across its limits, with the thumb at the joint's value and the limits below; an app shows one per joint. Hover the track to see the goal under the pointer, and press there to jog the joint toward it: it stops when it gets there or when the slider is let go. While held, the goal follows the pointer, and the joint turns around when the goal passes it. An arrow key held on the focused slider jogs toward that limit.
345
+ **JoggingJointSlider** (from `/core` or `/JoggingJointSlider`) - One joint as a slider across its limits, with the thumb at the joint's value and the limits below; an app shows one per joint. Hover the track to see the goal under the pointer, and press there to jog the joint toward it: it stops when it gets there, when the slider is let go, wherever that happens, or when the pointer leaves the slider (it may stray 8 px off it, so a drag to a limit can overshoot the end of the track). While held, the goal follows the pointer, and the joint turns around when the goal passes it. Only a pointer jogs: the keyboard's focus reaches the slider, which says the joint's value, but an arrow key on it moves nothing.
273
346
 
274
347
  - `value`, `min` and `max` are in NOVA's units: radians, or mm with `linear`. A revolute joint with one limit spans one turn from it, and without limits the turn it stands in. A linear axis needs both limits to be jogged with the slider; without them it only shows its value. `angleUnit` shows degrees (default) or radians.
275
348
  - `onJogStart(direction)` and `onJogStop` leave the jogging to the app, as for `JoggingGizmo` and `JoggingButtons`. One press can bring several starts and stops, always in turn: the joint stops at the goal, and starts again when the goal moves on. When the goal passes the joint, `onJogStop` and the `onJogStart` of the other way come in the same event: an app with asynchronous jog commands must apply them in that order, and must not tear down its jogging connection on that stop.
@@ -304,16 +377,16 @@ const [active, setActive] = useState<number | null>(null)
304
377
  ))}
305
378
  ```
306
379
 
307
- **RobotControlPanel** (from `/3d` or `/RobotControlPanel`) - The Robot control panel of the design, built from the parts above: the tabs Translate and Rotate, with the TCP and the frame to jog along, Continuous or Increment, the velocity, the step size, and the gizmo or the buttons with a switch between them; the tab Joint, with a `JoggingJointSlider` per joint and the joint velocity; and the tab Move to, with a typed target pose (or the current one), the frame it is relative to, and a button to hold to move there. An app that wants the whole panel imports this; an app that wants one part imports that part.
380
+ **RobotControlPanel** (from `/3d` or `/RobotControlPanel`) - The Robot control panel of the design, built from the parts above: the tabs Translate and Rotate, with the TCP and the frame to jog along, Continuous or Increment, the velocity, the step size, and the gizmo or the buttons with a switch between them; the tab Joint, with a `JoggingJointSlider` per joint and the joint velocity; and the tab Move to, with a typed target (a pose of the TCP or joint values; else the current pose), the frame it is relative to, and a button to hold to move there. An app that wants the whole panel imports this; an app that wants one part imports that part.
308
381
 
309
382
  - It moves nothing itself, as its parts: `onJogStart(motion, axis, direction)` and `onJogStop` for jogging while held, and `increments.onStep(motion, axis, direction, distance)` for one step per press. The app keeps the velocity and the selects in its own store; the panel keeps the tab, the mode, the step size and the view.
310
- - Velocities and step sizes are in NOVA's units: mm and mm/s to translate, rad and rad/s to rotate. The panel shows mm/s and °/s.
383
+ - Velocities and step sizes are in NOVA's units: mm and mm/s to translate, rad and rad/s to rotate. The panel shows mm/s and °/s. The velocity has a slider, in whole units, and a field to type it into: Enter, or leaving the field, applies it (`onVelocityChange`). A text that is no number, or a velocity outside `min` to `max`, is flagged at the field and neither applied nor corrected.
311
384
  - `tcp` and `jogFrame` show a select each, filled by the app. Without `increments`, there is no Continuous/Increment toggle. Without `gizmoOrientation` (from a `JoggingGizmoOrientation` in the app's 3D scene), it jogs with buttons only.
312
385
  - `onJogStop` also comes when the tab, the mode or the view changes while a control is held: the jog of that press must not go on.
313
- - `disabled` turns off every control: nothing may move. `jogDisabled` turns off only the jogging of Translate, Rotate and Joint, e.g. while a trajectory moves the robot; Move to stays usable, so a move of its own does not end when the app locks jogging during it.
386
+ - `disabled` turns off every control: nothing may move and no setting may change (the app's lock). `jogDisabled` turns off only what jogs on Translate, Rotate and Joint (the gizmo, the buttons, the joint sliders) and the TCP select, whose change needs the jogging connection: e.g. while the robot is not activated or a trajectory moves it. The settings that move nothing stay usable then (Move relative to, Continuous or Increment, the step size, the velocity), and so does Move to, so a move of its own does not end when the app locks jogging during it. An app that used to pass `disabled={locked || !canBeMoved}` passes `disabled={locked}` and leaves the robot's state to `jogDisabled`, which `RobotControl` sets. `jogDisabledReason` is the text that says why jogging is off: Translate and Rotate show it in place of their hint of how to jog, Joint under its joints. `RobotControl` fills it with the robot's reason (not activated, its safety state or operation mode, no connection), with a trajectory that moves the robot, or with another client that jogs it. With `onJogRetry`, a Try again button shows under the reason: `RobotControl` gives it after another client held the jogging connection, and the next jog then asks NOVA for it again.
314
387
  - The panel keeps its tab, jog mode and step size itself. An app that keeps them in its own store (to remember them, or because its jogging depends on them) gives `tab`, `jogMode` and `increments.step`, and gets `onTabChange`, `onJogModeChange` and `increments.onStepChange`; each also works alone, to follow a choice without keeping it.
315
388
  - `joints` gives the Joint tab: the joints' values and limits (rad, or mm with `linear`), their names, the joint velocity, and `onJogStart(index, direction)` and `onJogStop`. The panel jogs one joint at a time; the turn-around of a slider brings `onJogStop` and `onJogStart` in the same event, as described for `JoggingJointSlider`. Without `joints`, there is no Joint tab.
316
- - `moveTo` gives the Move to tab. It works as RobotPad's pose field: the coordinates `(x, y, z, rx, ry, rz)` (mm, rotation vector in rad: the format RobotPad copies and pastes) show the TCP's current pose (`getCurrentPose`, read every animation frame), with Copy and Edit pose, and Move to, off until a pose is the target. Edit pose, or a click on the field, makes it editable; Save pose edit (Enter) makes the typed pose the target (`onTargetChange(pose)`): the app plans the move and loads it, and reports `state` (`"planning"`, `"planned"`, `"moving"`, `"stopping"` or `"idle"`, as RobotPad's trajectory) and an `error` (e.g. out of reach). Then Reset shows. Held for 200 ms while `"planned"`, Move to calls `onMoveStart(pose)`, the release `onMoveStop`: the app starts and pauses its trajectory; the button says Moving… and Stopping…. At the target (within 0.5 mm and 0.01 rad) it turns off; once the move no longer runs, the field shows the current pose again (`onTargetChange(null)`), as do Reset, another tab and another TCP or frame (a held move gets its `onMoveStop` first). While another pose is typed, Move to stays off. `frame` is the "Relative to" select. It moves with `velocity.translate`. Without `moveTo`, there is no Move to tab.
389
+ - `moveTo` gives the Move to tab. It works as RobotPad's pose field: the coordinates `(x, y, z, rx, ry, rz)` (mm, rotation vector in rad: the format RobotPad copies and pastes) show the TCP's current pose (`getCurrentPose`, read every animation frame), with Copy and Edit pose, and Move to, off until a pose is the target. Edit pose, or a click on the field, makes it editable; Save pose edit (Enter) makes the typed pose the target (`onTargetChange(pose)`): the app plans the move and loads it, and reports `state` (`"planning"`, `"planned"`, `"moving"`, `"stopping"` or `"idle"`, as RobotPad's trajectory) and an `error` (e.g. out of reach, or why the move to it failed). With `getCurrentJoints` (the joints' positions now, in rad, or mm for a linear axis), the field also takes joint values as the target, in square brackets and as many as the robot has joints: `[j1, …, jn]`. `onTargetChange` and `onMoveStart` then get `{ joints }` in place of a pose (`RobotControlTarget`). A robot that takes no TCP poses (`cartesian` is false: a linear axis, a turntable) moves to joint values only: the field shows its joints, live, and reads numbers without brackets as joint values. Then Reset shows, and with an `error` also Plan again, which gives the app the same pose once more (`onTargetChange(pose)`), so a failed move needs no typing. Held with a pointer for 200 ms while `"planned"`, Move to calls `onMoveStart(pose)`; the release, or the pointer leaving the button, calls `onMoveStop`: the app starts and pauses its trajectory (the keyboard starts no move); the button says Moving… and Stopping…. At the target (within 0.5 mm and 0.01 rad) it turns off; once the move no longer runs, the field shows the current pose again (`onTargetChange(null)`), as do Reset, another tab and another TCP or frame (a held move gets its `onMoveStop` first). While another pose is typed, Move to stays off. `notMoveableReason` is why the robot may not move now, whatever the target (e.g. it is not activated): the field says so with a target and also while one is typed, and Move to stays off. Typing stays possible, and a typed target still comes (`onTargetChange`), to plan once the robot may move. `frame` is the "Relative to" select. The tab shows the velocity of the move to its target: `velocity.translate` for a pose of the TCP, and for joint values the velocity of the Joint tab (`joints.velocity`), or without that tab `velocity.rotate`. Without `moveTo`, there is no Move to tab.
317
390
 
318
391
  ```tsx
319
392
  const orientation = useRef<Quaternion | null>(null)
@@ -347,7 +420,8 @@ const orientation = useRef<Quaternion | null>(null)
347
420
  }}
348
421
  moveTo={{
349
422
  getCurrentPose: () => currentTcpPose(),
350
- onTargetChange: (pose) => planAndLoad(pose), // or drop the plan (null)
423
+ getCurrentJoints: () => currentJoints(), // the field takes [j1, …, jn] too
424
+ onTargetChange: (target) => planAndLoad(target), // a pose or { joints }, or drop the plan (null)
351
425
  state: trajectoryState, // "planning" | "planned" | "moving" | "stopping" | "idle"
352
426
  error,
353
427
  onMoveStart: () => startTrajectory(),
@@ -356,13 +430,85 @@ const orientation = useRef<Quaternion | null>(null)
356
430
  />
357
431
  ```
358
432
 
433
+ ### The parts of a robot session
434
+
435
+ `RobotControl`, `RobotView`, `RobotScene` and `CurrentPose` are connected components: a UI component, which takes props and reports through callbacks, filled from the `RobotSession` given as `session`. A prop given to the connected component replaces the session's: `<RobotControl session={session} increments={undefined} />` has no Increment mode. An app without a `RobotSession` uses the UI component with props of its own.
436
+
437
+ | Connected component | UI component |
438
+ | --- | --- |
439
+ | `RobotControl` | `RobotControlPanel` |
440
+ | `RobotScene` | `RobotSceneView` |
441
+ | `RobotView` | `RobotScene` in a `RobotCanvas` |
442
+ | `CurrentPose` | `CurrentPoseBar` |
443
+
444
+ **RobotControl** (from `/3d` or `/RobotControl`) - The Robot control panel (see `RobotControlPanel` above) of a session: Translate and Rotate jog the TCP with the session's jogging store, Joint jogs the joints, and Move to plans the typed pose and moves along it while held. `disabled` is the app's lock; jogging is also off, with the reason in the panel, while the robot may not move. `gizmoOrientation` gives the gizmo the camera of the app's 3D view; without it, the panel jogs with buttons. Another session gets a new panel: what the panel held for the old robot ends.
445
+
446
+ **RobotView**, **RobotCanvas**, **RobotScene**, **RobotSceneView** and **JoggingAxes** (from `/3d`, `/RobotView` or `/RobotScene`) - The 3D view of a session:
447
+
448
+ - `RobotView` is the view, ready to use: `RobotScene` in a `RobotCanvas` whose camera orbits the robot's base. It fills its parent. Its children are the app's own parts of the scene, in NOVA's coordinates (Z up, metres), e.g. a `JoggingGizmoOrientation`. Any prop of `RobotSceneView` given to it replaces the session's; `robot` replaces only the parts it gives, e.g. `robot={{ rapidlyChangingMotionState }}` for other joints to show.
449
+ - `RobotCanvas` is the canvas alone, prop-only: a floor grid and a camera that orbits `orbitTarget`. When the browser cannot draw 3D, it says so (and calls `onWebGLUnavailable`) instead of loading forever.
450
+ - `RobotScene` goes into the app's own `<Canvas>`, whose camera and controls are the app's: the robot at its mounting, the ghost of a planned motion's end, the safety zones, the axes that jogging moves along and the light. It draws in NOVA's coordinates; in a scene that is Y up, turn it: `<group rotation={[-Math.PI / 2, 0, 0]}>`. `RobotSceneView` is its UI component.
451
+ - `JoggingAxes` is one part of that scene alone: the axes of a coordinate system and of the TCP, with those that jogging does not move along in grey.
452
+
453
+ **CurrentPose** (from `/core` or `/CurrentPose`) - The current pose bar of a session: the TCP's pose in a TCP and a coordinate system of the bar's own, the state of the motion stream and the last jog error. `CurrentPoseBar` is its UI component.
454
+
455
+ **RobotHeader** and **ConnectionWarning** (from `/core` or `/RobotHeader`) - The header of a robot app, as Figma's top bar: the app menu and the app's name, the motion group select, the robot's `SafetyBar` and activation switch, and the app's own `actions`. Given a `session` it shows the robot's safety state, operation mode and controller type and follows them, e.g. an emergency stop as soon as NOVA reports it; its switch is off while NOVA would refuse a mode change, and a refused change goes to the session's `onError`. Without a robot, e.g. while none is loaded, it shows the app's name and menu only. `ConnectionWarning` goes into its `actions`: an icon that shows once the robot's live state stops arriving, also for its `session`. An app that builds its own header places `SafetyBar`, `ActivationSwitch` and `ConnectionWarning` itself, each with `session`; an app without a `RobotSession` gives the header `safety` and `activation` as plain props instead.
456
+
457
+ #### Placing the parts
458
+
459
+ The library has no layout: an app puts `RobotHeader`, `RobotView`, `RobotControl` and `CurrentPose` where it wants, and each fills the box that the app gives it. The Layouts page of the playground (`playground/src/pages/LayoutsPage.tsx`) places them as the Figma design does: the header on top, the 3D view under it, the panel floating at the view's top right and the pose bar along its bottom.
460
+
461
+ ```tsx
462
+ import Box from "@mui/material/Box"
463
+ import Stack from "@mui/material/Stack"
464
+ import {
465
+ ConnectionWarning,
466
+ CurrentPose,
467
+ JoggingGizmoOrientation,
468
+ RobotControl,
469
+ RobotHeader,
470
+ type RobotSession,
471
+ RobotView,
472
+ } from "@wandelbots/wandelbots-js-react-components"
473
+ import { useRef } from "react"
474
+ import type { Quaternion } from "three"
475
+
476
+ export function RobotApp({ session }: { session: RobotSession }) {
477
+ // The camera of the 3D view, for the panel's gizmo
478
+ const orientation = useRef<Quaternion | null>(null)
479
+
480
+ return (
481
+ <Stack sx={{ height: "100vh" }}>
482
+ <RobotHeader
483
+ appName="My robot app"
484
+ session={session}
485
+ actions={<ConnectionWarning session={session} />}
486
+ />
487
+ <Box sx={{ position: "relative", flex: 1, minHeight: 0 }}>
488
+ <Box sx={{ position: "absolute", inset: 0 }}>
489
+ <RobotView session={session}>
490
+ <JoggingGizmoOrientation target={orientation} />
491
+ </RobotView>
492
+ </Box>
493
+ <Box sx={{ position: "absolute", top: 12, right: 12, width: 444 }}>
494
+ <RobotControl session={session} gizmoOrientation={orientation} />
495
+ </Box>
496
+ <Box sx={{ position: "absolute", left: 12, right: 12, bottom: 12 }}>
497
+ <CurrentPose session={session} />
498
+ </Box>
499
+ </Box>
500
+ </Stack>
501
+ )
502
+ }
503
+ ```
504
+
359
505
  ### 3D Visualization & Robotics
360
506
 
361
507
  3D components for robot visualization. They render inside the `<Canvas>` of React Three Fiber.
362
508
 
363
509
  **Robot** - Real-time 3D robot rendering
364
510
 
365
- - Takes the robot as plain data (`RobotModelSource`): `robotModelOf(session)` of a `RobotSession`, a `ConnectedMotionGroup`, or the app's own data
511
+ - Takes the robot as plain data (`RobotModelSource`): a `ConnectedMotionGroup`, or the app's own data. A `RobotSession`'s robot: `RobotScene`
366
512
  - Live pose updates from its motion state, at its mounting
367
513
  - The model of the motion group from the NOVA instance (`defaultGetModel`)
368
514
 
@@ -394,6 +540,7 @@ Safety components for production environments.
394
540
 
395
541
  - Real-time safety monitoring
396
542
  - Emergency stop integration
543
+ - Each indicator has a stable `data-testid` (`safety-state-indicator`, `operation-mode-indicator`, `controller-type-indicator`) and, as an image, a name that says its state, e.g. "Safety state: E-Stop", "Operation mode: Manual" or "Controller type: Virtual": the compact bar shows only icons, with their texts in a popover on hover
397
544
 
398
545
  ### App Frame
399
546
 
@@ -403,7 +550,8 @@ Safety components for production environments.
403
550
 
404
551
  ### Logic
405
552
 
406
- - **loadRobotSession** and **RobotSession** - A robot of a cell, loaded and connected: its description, live state, safety, activation, jogging and Move to
553
+ - **loadRobotSession** and **RobotSession** - A robot of a cell, loaded and connected: its description, live state, safety, activation, jogging and Move to. In a React app, its UI is [the parts of a robot session](#the-parts-of-a-robot-session); without React, see [Without three.js or without React](#without-threejs-or-without-react).
554
+ - **TrajectoryExecutionStore** (`session.trajectory`) and **RobotTargetPose** (`session.targetPose`) - Move to without a UI. `planTrajectory(pose)` plans a trajectory and loads it; `hold(pose)` moves along it while a button is held and `release()` stops the robot, whatever the order of NOVA's messages, and both are safe to repeat. Both take a pose as the app saves it (`RobotPose`: joints, or a TCP pose in a coordinate system, planned for the selected TCP), or a `TrajectoryTarget`; a pose of another motion group is refused. `hold` starts nothing along a trajectory that was planned for another target, or with another velocity than the jogging store has now (`isPlanOutdated`: plan it again). `targetPose.plan(pose)`, `holdMove(pose)` and `releaseMove()` do the same for the typed pose that the Robot control shows, which also keeps why its plan or its move failed (`staged.errorKey`, `staged.errorMessage`)
407
555
  - **ConnectedMotionGroup** (deprecated, see [From ConnectedMotionGroup to RobotSession](#from-connectedmotiongroup-to-robotsession)) - A motion group with its live motion state, safety state and operation mode
408
556
  - **MotionStreamConnection** and **JoggerConnection** - The motion state stream and the jogging connection of a motion group
409
557
  - **jointValuesEqual**, **poseEqual**, **tcpMotionEqual**, **unwrapRotationVector** - Helpers for the motion state
@@ -472,7 +620,7 @@ pnpm playground:preview # serves playground/dist on http://localhost:4180
472
620
 
473
621
  Vite reads these values when it starts (see [A NOVA instance](#a-nova-instance)). `CELL_ID` in the environment selects the cell (default `cell`). The cell needs a robot: without a motion group, the playground shows `NoMotionGroupModal`.
474
622
 
475
- The pages are Jogging, Joint limits, Safety and collisions, Robot models, Layouts and Building blocks. Each page combines parts that work together. Layouts puts `RobotControlPanel` and `CurrentPoseBar` over the robot's 3D view as the Figma design does; Building blocks shows the smaller parts alone. The app menu of the `AppHeader` switches the pages, and the URL selects the page and the motion group, for example `?page=jogging&motionGroup=0@ur5e`. The dev server uses React StrictMode, so a part that leaves a connection open shows up.
623
+ The pages are Jogging, Joint limits, Safety and collisions, Robot models, Layouts and Building blocks. Each page combines parts that work together. Layouts puts `RobotControlPanel` and `CurrentPoseBar` over the robot's 3D view as the Figma design does; Building blocks shows the smaller parts alone. The app menu of the `AppHeader` switches the pages, and the URL selects the page and the motion group, for example `?page=jogging&motionGroup=0@ur5e`. The top bar has a switch that activates the robot: the parts that jog with the session's `JoggingStore` (on Layouts, Building blocks and Joint limits) move only an activated robot, and show their jog controls as off until then. The dev server uses React StrictMode, so a part that leaves a connection open shows up.
476
624
 
477
625
  The built playground contains the URL and the access token of the instance: never publish or upload `playground/dist`.
478
626
 
package/dist/3d.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-DYSBpijG.cjs"),o=require("./chunks/RobotScene-irOI2iEa.cjs"),i=require("./chunks/JoggingGizmo-DtWw6KWg.cjs"),a=require("./chunks/JoggingGizmoOrientation-BwkW76fE.cjs"),s=require("./chunks/RobotControlPanel-DHQga5uu.cjs"),r=require("./chunks/RobotControl-DDNDc-aE.cjs"),n=require("./chunks/PoseTransformer-dP4nzrPG.cjs"),t=require("./chunks/Pose3-Ch4xVeXV.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.Robot=e.Robot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=o.FLANGE_NODE_SUFFIX;exports.JOINT_NODE_NAME=o.JOINT_NODE_NAME;exports.JOINT_REST_SUFFIX=o.JOINT_REST_SUFFIX;exports.JoggingAxes=o.JoggingAxes;exports.MODEL_ROTATION=o.MODEL_ROTATION;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.RobotScene=o.RobotScene;exports.RobotSceneView=o.RobotSceneView;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.defaultGetModel=o.defaultGetModel;exports.jointIndexOf=o.jointIndexOf;exports.revokeAllModelUrls=o.revokeAllModelUrls;exports.robotModelOf=o.robotModelOf;exports.useRobotSceneProps=o.useRobotSceneProps;exports.JoggingGizmo=i.JoggingGizmo;exports.JoggingGizmoOrientation=a.JoggingGizmoOrientation;exports.RobotControlPanel=s.RobotControlPanel;exports.RobotControl=r.RobotControl;exports.useRobotControlProps=r.useRobotControlProps;exports.ValueInterpolator=n.ValueInterpolator;exports.useSmoothedMotionState=n.useSmoothedMotionState;exports.Pose3=t.Pose3;exports.parseRotationToQuaternion=t.parseRotationToQuaternion;exports.quaternionToRotationVector=t.quaternionToRotationVector;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-BrpXU2uK.cjs"),o=require("./chunks/RobotScene-BrOl3ypZ.cjs"),i=require("./chunks/JoggingGizmo-CNFjpWDv.cjs"),r=require("./chunks/JoggingGizmoOrientation-laUrgY0N.cjs"),a=require("./chunks/RobotControlPanel-B7NxoHsO.cjs"),s=require("./chunks/RobotControl-DCDIkFRN.cjs"),t=require("./chunks/RobotView-BV_1i0af.cjs"),u=require("./chunks/hooks-BXe2bNMo.cjs"),R=require("./chunks/useSmoothedMotionState-CCXmMZ0S.cjs"),n=require("./chunks/Pose3-BfBNPRDM.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.Robot=e.Robot;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=o.FLANGE_NODE_SUFFIX;exports.JOINT_REST_SUFFIX=o.JOINT_REST_SUFFIX;exports.JoggingAxes=o.JoggingAxes;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.RobotScene=o.RobotScene;exports.RobotSceneView=o.RobotSceneView;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.defaultGetModel=o.defaultGetModel;exports.jointIndexOf=o.jointIndexOf;exports.JoggingGizmo=i.JoggingGizmo;exports.JoggingGizmoOrientation=r.JoggingGizmoOrientation;exports.RobotControlPanel=a.RobotControlPanel;exports.RobotControl=s.RobotControl;exports.RobotCanvas=t.RobotCanvas;exports.RobotView=t.RobotView;exports.ValueInterpolator=u.ValueInterpolator;exports.useSmoothedMotionState=R.useSmoothedMotionState;exports.Pose3=n.Pose3;exports.parseRotationToQuaternion=n.parseRotationToQuaternion;
package/dist/3d.d.ts CHANGED
@@ -7,22 +7,23 @@ export { JoggingGizmo, type JoggingGizmoProps, } from "./components/jogging/gizm
7
7
  export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "./components/jogging/gizmo/JoggingGizmoOrientation";
8
8
  export type { JogAxis, JogDirection, JogHandle, } from "./components/jogging/jogHandle";
9
9
  export type { JogControlsProps } from "./components/jogging/useJogControls";
10
- export { type JogMotion, RobotControlPanel, type RobotControlIncrements, type RobotControlJogMode, type RobotControlJoint, type RobotControlJoints, type RobotControlMoveState, type RobotControlMoveTo, type RobotControlOption, type RobotControlPanelProps, type RobotControlPose, type RobotControlSelect, type RobotControlTab, type RobotControlVelocity, } from "./components/robotControl/RobotControlPanel";
10
+ export { type JogMotion, RobotControlPanel, type RobotControlIncrements, type RobotControlJogMode, type RobotControlJoint, type RobotControlJoints, type RobotControlJointTarget, type RobotControlMoveState, type RobotControlMoveTo, type RobotControlOption, type RobotControlPanelProps, type RobotControlPose, type RobotControlSelect, type RobotControlTab, type RobotControlTarget, type RobotControlVelocity, } from "./components/robotControl/RobotControlPanel";
11
11
  export { RobotControl, type RobotControlProps, } from "./components/robotControl/RobotControl";
12
- export { type RobotControlOptions, useRobotControlProps, } from "./components/robotControl/useRobotControlProps";
12
+ export type { RobotControlOptions } from "./components/robotControl/useRobotControlProps";
13
13
  export { JoggingAxes, type JoggingAxesProps, } from "./components/robotScene/JoggingAxes";
14
14
  export { RobotScene, type RobotSceneProps, } from "./components/robotScene/RobotScene";
15
15
  export { RobotSceneView, type RobotSceneViewProps, } from "./components/robotScene/RobotSceneView";
16
- export { useRobotSceneProps } from "./components/robotScene/useRobotSceneProps";
16
+ export { RobotCanvas, type RobotCanvasProps, } from "./components/robotView/RobotCanvas";
17
+ export { RobotView, type RobotViewProps, } from "./components/robotView/RobotView";
18
+ export type { WebGLUnavailableContext } from "./components/utils/useWebGLRenderer";
17
19
  export * from "./components/robots/LinearAxis";
18
20
  export * from "./components/robots/MotionGroupVisualizer";
19
21
  export * from "./components/robots/Robot";
20
- export { MODEL_ROTATION } from "./components/robots/modelRotation";
21
- export { defaultGetModel, FLANGE_NODE_SUFFIX, JOINT_NODE_NAME, JOINT_REST_SUFFIX, jointIndexOf, revokeAllModelUrls, } from "./components/robots/robotModelLogic";
22
- export { type RobotModelSource, robotModelOf, } from "./components/robots/robotModelSource";
22
+ export { defaultGetModel, FLANGE_NODE_SUFFIX, JOINT_REST_SUFFIX, jointIndexOf, } from "./components/robots/robotModelLogic";
23
+ export type { RobotModelSource } from "./components/robots/robotModelSource";
23
24
  export * from "./components/robots/SupportedLinearAxis";
24
25
  export * from "./components/robots/SupportedRobot";
25
26
  export { ValueInterpolator, type InterpolationOptions, } from "./components/utils/interpolation";
26
27
  export * from "./components/utils/useSmoothedMotionState";
27
28
  export { Pose3 } from "./lib/Pose3";
28
- export { parseRotationToQuaternion, quaternionToRotationVector, } from "./lib/rotation";
29
+ export { parseRotationToQuaternion } from "./lib/rotation";
package/dist/3d.js CHANGED
@@ -1,45 +1,42 @@
1
- import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-DULi-BRh.js";
2
- import { F as p, J as R, a as l, b as u, M as x, c as S, d, P as m, R as f, e as b, S as c, f as g, g as E, h as J, i as O, j as M, k as T, r as A, l as G, u as I } from "./chunks/RobotScene-BtgO_xot.js";
3
- import { J as N } from "./chunks/JoggingGizmo-DBpDIbzl.js";
4
- import { J as _ } from "./chunks/JoggingGizmoOrientation-DU97IUWq.js";
5
- import { R as V } from "./chunks/RobotControlPanel-CzhYCBAm.js";
6
- import { R as C, u as j } from "./chunks/RobotControl-CI99-2nW.js";
7
- import { V as U, a as h } from "./chunks/PoseTransformer-tafab65c.js";
8
- import { P as q, p as v, q as y } from "./chunks/Pose3-B_fLR-Wv.js";
1
+ import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-CGHX7jNl.js";
2
+ import { F as p, J as R, a as x, M as m, b as f, P as S, R as u, c as d, S as l, d as b, e as g, f as J, g as c, h as E, j as G } from "./chunks/RobotScene-_TGUZ5nP.js";
3
+ import { J as L } from "./chunks/JoggingGizmo-RDiEVQes.js";
4
+ import { J as z } from "./chunks/JoggingGizmoOrientation-Dzzz2gEz.js";
5
+ import { R as C } from "./chunks/RobotControlPanel-CkQlkq8x.js";
6
+ import { R as M } from "./chunks/RobotControl-BA7g3gXi.js";
7
+ import { R as T, a as O } from "./chunks/RobotView-Btd9xrsG.js";
8
+ import { V as j } from "./chunks/hooks-BWoeBWLV.js";
9
+ import { u as h } from "./chunks/useSmoothedMotionState-CELh-YJa.js";
10
+ import { P as w, p as y } from "./chunks/Pose3-DWxfC6Dj.js";
9
11
  export {
10
12
  a as CollisionSceneRenderer,
11
13
  p as FLANGE_NODE_SUFFIX,
12
- R as JOINT_NODE_NAME,
13
- l as JOINT_REST_SUFFIX,
14
- u as JoggingAxes,
15
- N as JoggingGizmo,
16
- _ as JoggingGizmoOrientation,
14
+ R as JOINT_REST_SUFFIX,
15
+ x as JoggingAxes,
16
+ L as JoggingGizmo,
17
+ z as JoggingGizmoOrientation,
17
18
  t as JointLimitGizmo,
18
19
  r as LinearAxis,
19
- x as MODEL_ROTATION,
20
- S as MotionGroupVisualizer,
21
- d as MotionGroupVisualizerExact,
22
- q as Pose3,
23
- m as PresetEnvironment,
20
+ m as MotionGroupVisualizer,
21
+ f as MotionGroupVisualizerExact,
22
+ w as Pose3,
23
+ S as PresetEnvironment,
24
24
  s as Robot,
25
- C as RobotControl,
26
- V as RobotControlPanel,
27
- f as RobotScene,
28
- b as RobotSceneView,
29
- c as SafetyZonesRenderer,
30
- g as SupportedLinearAxis,
31
- E as SupportedLinearAxisExact,
25
+ T as RobotCanvas,
26
+ M as RobotControl,
27
+ C as RobotControlPanel,
28
+ u as RobotScene,
29
+ d as RobotSceneView,
30
+ O as RobotView,
31
+ l as SafetyZonesRenderer,
32
+ b as SupportedLinearAxis,
33
+ g as SupportedLinearAxisExact,
32
34
  J as SupportedRobot,
33
- O as SupportedRobotExact,
35
+ c as SupportedRobotExact,
34
36
  n as TrajectoryRenderer,
35
- U as ValueInterpolator,
36
- M as defaultGetModel,
37
- T as jointIndexOf,
38
- v as parseRotationToQuaternion,
39
- y as quaternionToRotationVector,
40
- A as revokeAllModelUrls,
41
- G as robotModelOf,
42
- j as useRobotControlProps,
43
- I as useRobotSceneProps,
37
+ j as ValueInterpolator,
38
+ E as defaultGetModel,
39
+ G as jointIndexOf,
40
+ y as parseRotationToQuaternion,
44
41
  h as useSmoothedMotionState
45
42
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-CFxf6D2n.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.CurrentPose=e.CurrentPose;exports.default=e.CurrentPose;exports.useCurrentPoseProps=e.useCurrentPoseProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-qBC8VCPy.cjs");exports.CurrentPose=e.CurrentPose;exports.default=e.CurrentPose;
@@ -1,3 +1 @@
1
1
  export { CurrentPose, CurrentPose as default, type CurrentPoseProps, } from "../components/currentPoseBar/CurrentPose";
2
- export { useCurrentPoseProps } from "../components/currentPoseBar/useCurrentPoseProps";
3
- export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
@@ -1,9 +1,5 @@
1
- import { C as e, C as r, u as t } from "../chunks/CurrentPose-e37CnT1C.js";
2
- import { R as a, u as n } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
1
+ import { C as a, C as o } from "../chunks/CurrentPose-B8tXT5Tq.js";
3
2
  export {
4
- e as CurrentPose,
5
- a as RobotSessionProvider,
6
- r as default,
7
- t as useCurrentPoseProps,
8
- n as useRobotSession
3
+ a as CurrentPose,
4
+ o as default
9
5
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-ZUhFaVdM.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPoseBar-DoOUfRRs.cjs");exports.CurrentPoseBar=e.CurrentPoseBar;exports.default=e.CurrentPoseBar;
@@ -1,2 +1,2 @@
1
1
  export { CurrentPoseBar, CurrentPoseBar as default, type CurrentPoseBarProps, type CurrentPoseBarState, type EulerConvention, type OrientationFormat, } from "../components/currentPoseBar/CurrentPoseBar";
2
- export type { RobotControlOption, RobotControlPose, RobotControlSelect, } from "../components/robotControl/RobotControlPanel";
2
+ export type { RobotControlOption, RobotControlPose, RobotControlSelect, } from "../components/robotControl/robotControlTypes";
@@ -1,4 +1,4 @@
1
- import { C as e, C as o } from "../chunks/CurrentPoseBar-BmsPnLVP.js";
1
+ import { C as e, C as o } from "../chunks/CurrentPoseBar--HkZBGnN.js";
2
2
  export {
3
3
  e as CurrentPoseBar,
4
4
  o as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-9nBrKbUa.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/JoggingButtons-Boaym2hQ.cjs");exports.JoggingButtons=t.JoggingButtons;exports.default=t.JoggingButtons;
@@ -1,4 +1,4 @@
1
- import { J as a, J as g } from "../chunks/JoggingButtons-I_Y70pg8.js";
1
+ import { J as a, J as g } from "../chunks/JoggingButtons-BNOnpcTH.js";
2
2
  export {
3
3
  a as JoggingButtons,
4
4
  g as default
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-DtWw6KWg.cjs"),o=require("../chunks/JoggingGizmoOrientation-BwkW76fE.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-CNFjpWDv.cjs"),o=require("../chunks/JoggingGizmoOrientation-laUrgY0N.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;