@wandelbots/wandelbots-js-react-components 6.4.0-pr.refactor-shared-hold-safety.654.1d3d9d8 → 6.4.0-pr.revamp.667.083fe11

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 (165) hide show
  1. package/README.md +124 -11
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +8 -1
  4. package/dist/3d.js +36 -18
  5. package/dist/CurrentPose/index.cjs +1 -0
  6. package/dist/CurrentPose/index.d.ts +3 -0
  7. package/dist/CurrentPose/index.js +9 -0
  8. package/dist/CurrentPoseBar/index.cjs +1 -0
  9. package/dist/CurrentPoseBar/index.d.ts +2 -0
  10. package/dist/CurrentPoseBar/index.js +5 -0
  11. package/dist/JoggingButtons/index.cjs +1 -0
  12. package/dist/JoggingButtons/index.d.ts +3 -0
  13. package/dist/JoggingButtons/index.js +5 -0
  14. package/dist/JoggingGizmo/index.cjs +1 -0
  15. package/dist/JoggingGizmo/index.d.ts +4 -0
  16. package/dist/JoggingGizmo/index.js +7 -0
  17. package/dist/JoggingJointSlider/index.cjs +1 -0
  18. package/dist/JoggingJointSlider/index.d.ts +2 -0
  19. package/dist/JoggingJointSlider/index.js +5 -0
  20. package/dist/RobotControl/index.cjs +1 -0
  21. package/dist/RobotControl/index.d.ts +3 -0
  22. package/dist/RobotControl/index.js +9 -0
  23. package/dist/RobotControlPanel/index.cjs +1 -0
  24. package/dist/RobotControlPanel/index.d.ts +2 -0
  25. package/dist/RobotControlPanel/index.js +5 -0
  26. package/dist/RobotHeader/index.cjs +1 -0
  27. package/dist/RobotHeader/index.d.ts +8 -0
  28. package/dist/RobotHeader/index.js +10 -0
  29. package/dist/SafetyBar/index.cjs +1 -1
  30. package/dist/SafetyBar/index.d.ts +1 -0
  31. package/dist/SafetyBar/index.js +4 -3
  32. package/dist/chunks/CurrentPose-BStpfgEJ.cjs +1 -0
  33. package/dist/chunks/CurrentPose-UJbSKPRp.js +51 -0
  34. package/dist/chunks/CurrentPoseBar-BmsPnLVP.js +505 -0
  35. package/dist/chunks/CurrentPoseBar-ZUhFaVdM.cjs +1 -0
  36. package/dist/chunks/JoggingButtons-9nBrKbUa.cjs +1 -0
  37. package/dist/chunks/JoggingButtons-I_Y70pg8.js +108 -0
  38. package/dist/chunks/JoggingGizmo-DBpDIbzl.js +810 -0
  39. package/dist/chunks/JoggingGizmo-DtWw6KWg.cjs +1 -0
  40. package/dist/chunks/JoggingGizmoOrientation-BwkW76fE.cjs +1 -0
  41. package/dist/chunks/JoggingGizmoOrientation-DU97IUWq.js +14 -0
  42. package/dist/chunks/JoggingJointSlider-DHBB7MwU.cjs +1 -0
  43. package/dist/chunks/JoggingJointSlider-DeMqm9Jh.js +406 -0
  44. package/dist/chunks/Pose3-B_fLR-Wv.js +80 -0
  45. package/dist/chunks/Pose3-Ch4xVeXV.cjs +1 -0
  46. package/dist/chunks/RobotControl-BDcNKq32.js +285 -0
  47. package/dist/chunks/RobotControl-DXbcloVq.cjs +1 -0
  48. package/dist/chunks/RobotControlPanel-CzhYCBAm.js +827 -0
  49. package/dist/chunks/RobotControlPanel-DHQga5uu.cjs +1 -0
  50. package/dist/chunks/SmallSelect-BdD9uLKK.js +52 -0
  51. package/dist/chunks/SmallSelect-Dcsd7_6_.cjs +1 -0
  52. package/dist/chunks/converters-BsXgcxCW.cjs +1 -0
  53. package/dist/chunks/converters-D9KpJ2HD.js +47 -0
  54. package/dist/chunks/coordSystemLabel-BJKeaGA3.cjs +1 -0
  55. package/dist/chunks/coordSystemLabel-C1jfhEh5.js +29 -0
  56. package/dist/chunks/externalizeComponent-CPAVvPKk.js +291 -0
  57. package/dist/chunks/externalizeComponent-CkWiNBu0.cjs +2 -0
  58. package/dist/chunks/holdSafety-BtoZ5We3.cjs +1 -0
  59. package/dist/chunks/holdSafety-Di1GZAWg.js +37 -0
  60. package/dist/chunks/joggingColors-CuT5u0H8.js +135 -0
  61. package/dist/chunks/joggingColors-ZDc_2UCp.cjs +1 -0
  62. package/dist/chunks/loadRobotSession--zDX8cXI.cjs +3 -0
  63. package/dist/chunks/loadRobotSession-Bz6EcTC3.js +4565 -0
  64. package/dist/chunks/robotActivationOf-DXC0E2DS.cjs +1 -0
  65. package/dist/chunks/robotActivationOf-E1GLe_69.js +477 -0
  66. package/dist/chunks/robotModelSource-8b0ZdRSU.js +1427 -0
  67. package/dist/chunks/robotModelSource-BqKMWufu.cjs +1 -0
  68. package/dist/chunks/robotSafetyOf-CwfVV9__.cjs +1 -0
  69. package/dist/chunks/{SafetyBar-B9OQgerp.js → robotSafetyOf-P4RgO2LQ.js} +49 -38
  70. package/dist/chunks/useEveryFrame-CHxg25f4.cjs +1 -0
  71. package/dist/chunks/useEveryFrame-DAuNawGP.js +155 -0
  72. package/dist/chunks/useSmoothedMotionState-DMqBEC43.cjs +1 -0
  73. package/dist/chunks/useSmoothedMotionState-ZMEreFUL.js +275 -0
  74. package/dist/components/connectionWarning/ConnectionWarning.d.ts +21 -0
  75. package/dist/components/connectionWarning/connectionWarningOf.d.ts +11 -0
  76. package/dist/components/connectionWarning/timeAgo.d.ts +5 -0
  77. package/dist/components/currentPoseBar/CurrentPose.d.ts +23 -0
  78. package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +48 -0
  79. package/dist/components/currentPoseBar/OrientationFormatPopover.d.ts +19 -0
  80. package/dist/components/currentPoseBar/StreamStatus.d.ts +10 -0
  81. package/dist/components/currentPoseBar/orientation.d.ts +34 -0
  82. package/dist/components/currentPoseBar/poseValues.d.ts +15 -0
  83. package/dist/components/currentPoseBar/useCurrentPoseProps.d.ts +16 -0
  84. package/dist/components/jogging/JoggingStore.d.ts +126 -20
  85. package/dist/components/jogging/coordSystemLabel.d.ts +7 -0
  86. package/dist/components/jogging/jogError.d.ts +9 -0
  87. package/dist/components/jogging/joggingVelocity.d.ts +21 -0
  88. package/dist/components/robotControl/CartesianJogTab.d.ts +21 -0
  89. package/dist/components/robotControl/HoldToMoveButton.d.ts +25 -0
  90. package/dist/components/robotControl/JogArea.d.ts +22 -0
  91. package/dist/components/robotControl/JogModeToggle.d.ts +8 -0
  92. package/dist/components/robotControl/JointJogTab.d.ts +11 -0
  93. package/dist/components/robotControl/MoveToTab.d.ts +18 -0
  94. package/dist/components/robotControl/PanelSelect.d.ts +13 -0
  95. package/dist/components/robotControl/PoseField.d.ts +21 -0
  96. package/dist/components/robotControl/RobotControl.d.ts +23 -0
  97. package/dist/components/robotControl/RobotControlPanel.d.ts +218 -0
  98. package/dist/components/robotControl/Section.d.ts +5 -0
  99. package/dist/components/robotControl/SmallSelect.d.ts +15 -0
  100. package/dist/components/robotControl/VelocityRow.d.ts +14 -0
  101. package/dist/components/robotControl/atPose.d.ts +8 -0
  102. package/dist/components/robotControl/poseText.d.ts +31 -0
  103. package/dist/components/robotControl/units.d.ts +16 -0
  104. package/dist/components/robotControl/useCopyText.d.ts +12 -0
  105. package/dist/components/robotControl/useEveryFrame.d.ts +6 -0
  106. package/dist/components/robotControl/useRobotControlProps.d.ts +28 -0
  107. package/dist/components/robotHeader/ActivationSwitch.d.ts +7 -0
  108. package/dist/components/robotHeader/AppNavigation.d.ts +15 -0
  109. package/dist/components/robotHeader/RobotHeader.d.ts +42 -0
  110. package/dist/components/robotHeader/robotActivationOf.d.ts +8 -0
  111. package/dist/components/robotHeader/robotSafetyOf.d.ts +11 -0
  112. package/dist/components/robotSession/RobotSessionProvider.d.ts +13 -0
  113. package/dist/components/robots/DHRobot.d.ts +1 -1
  114. package/dist/components/robots/GenericRobot.d.ts +16 -1
  115. package/dist/components/robots/LinearAxis.d.ts +12 -11
  116. package/dist/components/robots/LinearAxisAnimator.d.ts +1 -1
  117. package/dist/components/robots/Robot.d.ts +26 -9
  118. package/dist/components/robots/SupportedLinearAxis.d.ts +16 -3
  119. package/dist/components/robots/SupportedRobot.d.ts +21 -3
  120. package/dist/components/robots/modelRotation.d.ts +14 -0
  121. package/dist/components/robots/robotModelLogic.d.ts +138 -6
  122. package/dist/components/robots/robotModelSource.d.ts +45 -0
  123. package/dist/core.cjs +1 -1
  124. package/dist/core.d.ts +27 -1
  125. package/dist/core.js +73 -27
  126. package/dist/index.cjs +1 -1
  127. package/dist/index.js +109 -45
  128. package/dist/lib/ConnectedMotionGroup.d.ts +5 -1
  129. package/dist/lib/ControllerStateStream.d.ts +125 -0
  130. package/dist/lib/JoggerConnection.d.ts +108 -22
  131. package/dist/lib/MotionStreamConnection.d.ts +12 -1
  132. package/dist/lib/Pose3.d.ts +22 -0
  133. package/dist/lib/PoseTransformer.d.ts +44 -0
  134. package/dist/lib/TrajectoryExecutionStore.d.ts +129 -0
  135. package/dist/lib/connectionLogger.d.ts +9 -0
  136. package/dist/lib/controllerStateSource.d.ts +37 -0
  137. package/dist/lib/incrementalCartesianMotion.d.ts +40 -0
  138. package/dist/lib/motionGroupModelResources.d.ts +1 -0
  139. package/dist/lib/motionStateUpdate.d.ts +27 -0
  140. package/dist/lib/nats/natsControllerStateSource.d.ts +27 -0
  141. package/dist/lib/planErrorTranslation.d.ts +8 -0
  142. package/dist/lib/robotSession/RobotActivation.d.ts +48 -0
  143. package/dist/lib/robotSession/RobotDescription.d.ts +84 -0
  144. package/dist/lib/robotSession/RobotLiveState.d.ts +56 -0
  145. package/dist/lib/robotSession/RobotLoadProgress.d.ts +72 -0
  146. package/dist/lib/robotSession/RobotSafety.d.ts +59 -0
  147. package/dist/lib/robotSession/RobotSession.d.ts +78 -0
  148. package/dist/lib/robotSession/RobotTargetPose.d.ts +78 -0
  149. package/dist/lib/robotSession/loadRobotResources.d.ts +46 -0
  150. package/dist/lib/robotSession/loadRobotSession.d.ts +81 -0
  151. package/dist/lib/robotSession/robotPose.d.ts +28 -0
  152. package/dist/lib/rotation.d.ts +12 -0
  153. package/dist/nats.cjs +1 -0
  154. package/dist/nats.d.ts +4 -0
  155. package/dist/nats.js +131 -0
  156. package/package.json +11 -1
  157. package/dist/chunks/ConnectedMotionGroup-BAlTfBxM.cjs +0 -4
  158. package/dist/chunks/ConnectedMotionGroup-DezR_n_l.js +0 -3107
  159. package/dist/chunks/Robot-BLqRmhXn.js +0 -2081
  160. package/dist/chunks/Robot-BqLfTxOF.cjs +0 -1
  161. package/dist/chunks/SafetyBar-D7QT6J0m.cjs +0 -1
  162. package/dist/chunks/externalizeComponent-CZu38L-d.js +0 -192
  163. package/dist/chunks/externalizeComponent-CdX5L_lW.cjs +0 -2
  164. package/dist/chunks/useSmoothedMotionState-DaudLphD.cjs +0 -1
  165. package/dist/chunks/useSmoothedMotionState-FMSF0dtk.js +0 -378
package/README.md CHANGED
@@ -68,7 +68,18 @@ Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/
68
68
  - **`.`** (Main) — All components. Requires the peer dependencies of `/core` and `/3d`.
69
69
  - **`/core`** — The parts without 3D (jogging, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), the NOVA connections and `JoggingStore`, the motion state helpers and `i18n`.
70
70
  - **`/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.
71
72
  - **`/SafetyBar`** — Only `SafetyBar` (also as the default export).
73
+ - **`/JoggingGizmo`** — Only `JoggingGizmo` (also as the default export) and `JoggingGizmoOrientation`. Requires in addition three and @react-three/fiber.
74
+ - **`/JoggingButtons`** — Only `JoggingButtons` (also as the default export). No 3D packages needed.
75
+ - **`/JoggingJointSlider`** — Only `JoggingJointSlider` (also as the default export). No 3D packages needed.
76
+ - **`/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.
77
+
78
+ 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
+
80
+ ```tsx
81
+ import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
82
+ ```
72
83
 
73
84
  ### Peer dependencies
74
85
 
@@ -80,10 +91,11 @@ Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/
80
91
  | `@wandelbots/mui` | ^2 |
81
92
  | `mobx` | ^6.13.6 |
82
93
  | `mobx-react-lite` | ^4.1.0 |
83
- | `three` (only `/3d`) | >=0.182 |
94
+ | `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | >=0.182 |
84
95
  | `three-stdlib` (only `/3d`) | >=2 |
85
- | `@react-three/fiber` (only `/3d`) | ^9 |
96
+ | `@react-three/fiber` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | ^9 |
86
97
  | `@react-three/drei` (only `/3d`) | ^10 |
98
+ | `nats.ws` (only `/nats`) | ^1.30.3 |
87
99
 
88
100
  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.
89
101
 
@@ -120,6 +132,53 @@ These packages are peer dependencies because the app and the library must use th
120
132
  - **Look:** `AppHeader` and `LoadingCover` use the styles of the design system, so they look a little different.
121
133
  - **Release asset:** `no-draco-models.zip` is gone. The models come from the NOVA API (since 4.0.0).
122
134
 
135
+ ### From ConnectedMotionGroup to RobotSession
136
+
137
+ `ConnectedMotionGroup` is deprecated. `RobotSession` replaces it: one robot of a cell, loaded and connected, with its description, live state, safety, activation, jogging and Move to. `ConnectedMotionGroup` keeps working until a later major version removes it, and `Robot` and `LinearAxis` still take it.
138
+
139
+ ```tsx
140
+ // Before
141
+ const motionGroup = await ConnectedMotionGroup.connect(nova, "0@ur5e", { cellId })
142
+ <Robot connectedMotionGroup={motionGroup} />
143
+ motionGroup.dispose()
144
+
145
+ // After
146
+ const load = loadRobotSession(nova, "0@ur5e", { cellId })
147
+ const session = await load.ready
148
+ <Robot motionGroup={robotModelOf(session)} />
149
+ load.dispose()
150
+ ```
151
+
152
+ What changes besides the names:
153
+
154
+ - **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`.
156
+ - **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
+ - **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
+ - **Several robots:** load one session per robot instead of `ConnectedMotionGroup.connectMultiple`.
159
+
160
+ | `ConnectedMotionGroup` | `RobotSession` |
161
+ | --- | --- |
162
+ | `motionGroupId`, `controllerId` | `motionGroupId`, `controllerId` (and `cellId`) |
163
+ | `modelFromController` | `description.motionGroupModel` |
164
+ | `dhParameters` | `description.dhParameters` |
165
+ | `safetyZones` | `description.safetyZones` |
166
+ | `description` | `description.motionGroupDescription` |
167
+ | `isVirtual` | `description.isVirtual` |
168
+ | `tcps` | `description.tcps` (id and name), `description.tcpOffsetsById` (position and orientation) |
169
+ | `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) |
171
+ | `rapidlyChangingMotionState` | `state.rapidlyChangingMotionState` |
172
+ | `controllerState` | `state.controllerState` |
173
+ | `initialMotionState`, `controller`, `motionGroup`, `motionStateSocket` | No replacement: the session keeps its connections. Read `state` instead. |
174
+ | `activationState` | `activation.state` |
175
+ | `activate()`, `deactivate()`, `toggleActivation()` | `activation.activate()`, `activation.deactivate()`, `activation.toggle()` |
176
+ | `isEstopActive`, `isMoveableSafetyState`, `isMoveableOperationMode`, `canBeMoved` | `safety.isEstopActive`, `safety.isMoveableSafetyState`, `safety.isMoveableOperationMode`, `safety.canBeMoved`; why the robot may not move: `safety.notMoveableReason` |
177
+ | `joggingVelocity`, `joggingVelocityRads`, `setJoggingVelocity()` | The velocities of `jogging`: `rotationVelocityDegPerSec`, `rotationVelocityRadsPerSec`, `translationVelocityMmPerSec`, `setVelocityFromSlider()` |
178
+ | `connectedJoggingSocket`, `planData` | No replacement (unused) |
179
+ | `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`). |
181
+
123
182
  ### 4.x Core Changes
124
183
 
125
184
  Robot data is now fetched from a running nova instance. This eliminates the need of shipping every react application with the robot data attached.
@@ -165,7 +224,7 @@ Manual robot control interfaces.
165
224
  - **VelocitySlider** (and **VelocitySliderLabel**) - Speed adjustment interface
166
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.
167
226
 
168
- **JoggingGizmo** and **JoggingGizmoOrientation** (from `/3d`) - 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.
227
+ **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.
169
228
 
170
229
  - The gizmo draws in its own small canvas, so it can sit in a panel next to the 3D view. `JoggingGizmoOrientation` goes inside the app's `<Canvas>` and passes the camera's view to the gizmo through a shared ref. Until it has, the gizmo stays disabled.
171
230
  - `JoggingGizmoOrientation` goes anywhere in the scene. It follows the camera's up: in a scene that is Y up, like that of this library's robots, it translates NOVA's axes (Z up), so NOVA's Z is the scene's Y. In a scene that is Z up like NOVA's world, whose camera has Z up, it takes NOVA's axes as they are.
@@ -196,7 +255,7 @@ const orientation = useRef<Quaternion | null>(null)
196
255
  />
197
256
  ```
198
257
 
199
- **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`.
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`.
200
259
 
201
260
  ```tsx
202
261
  <JoggingButtons
@@ -210,7 +269,7 @@ const orientation = useRef<Quaternion | null>(null)
210
269
  />
211
270
  ```
212
271
 
213
- **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.
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.
214
273
 
215
274
  - `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.
216
275
  - `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.
@@ -245,18 +304,71 @@ const [active, setActive] = useState<number | null>(null)
245
304
  ))}
246
305
  ```
247
306
 
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.
308
+
309
+ - 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.
311
+ - `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
+ - `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.
314
+ - 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
+ - `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.
317
+
318
+ ```tsx
319
+ const orientation = useRef<Quaternion | null>(null)
320
+
321
+ <RobotControlPanel
322
+ gizmoOrientation={orientation}
323
+ tcp={{ options: tcps, value: tcp, onChange: setTcp }}
324
+ jogFrame={{ options: frames, value: frame, onChange: setFrame }}
325
+ velocity={{
326
+ translate: { value: mmPerSec, min: 1, max: 250 },
327
+ rotate: { value: radPerSec, min: 0.02, max: 1 },
328
+ }}
329
+ onVelocityChange={(motion, value) => setVelocity(motion, value)}
330
+ onJogStart={(motion, axis, direction) => startJogging(motion, axis, direction)}
331
+ onJogStop={() => stopJogging()}
332
+ increments={{
333
+ steps: { translate: [0.1, 1, 5, 10], rotate: [0.001, 0.01, 0.05] },
334
+ onStep: (motion, axis, direction, distance) =>
335
+ jogStep(motion, axis, direction, distance),
336
+ }}
337
+ joints={{
338
+ joints: jointValues.map((value, index) => ({
339
+ value,
340
+ min: limits[index].lower_limit,
341
+ max: limits[index].upper_limit,
342
+ })),
343
+ velocity: { value: jointRadPerSec, min: 0.02, max: 1 },
344
+ onVelocityChange: setJointVelocity,
345
+ onJogStart: (index, direction) => startJointJogging(index, direction),
346
+ onJogStop: () => stopJogging(),
347
+ }}
348
+ moveTo={{
349
+ getCurrentPose: () => currentTcpPose(),
350
+ onTargetChange: (pose) => planAndLoad(pose), // or drop the plan (null)
351
+ state: trajectoryState, // "planning" | "planned" | "moving" | "stopping" | "idle"
352
+ error,
353
+ onMoveStart: () => startTrajectory(),
354
+ onMoveStop: () => pauseTrajectory(),
355
+ }}
356
+ />
357
+ ```
358
+
248
359
  ### 3D Visualization & Robotics
249
360
 
250
361
  3D components for robot visualization. They render inside the `<Canvas>` of React Three Fiber.
251
362
 
252
363
  **Robot** - Real-time 3D robot rendering
253
364
 
254
- - Live pose updates from a `ConnectedMotionGroup`
365
+ - Takes the robot as plain data (`RobotModelSource`): `robotModelOf(session)` of a `RobotSession`, a `ConnectedMotionGroup`, or the app's own data
366
+ - Live pose updates from its motion state, at its mounting
255
367
  - The model of the motion group from the NOVA instance (`defaultGetModel`)
256
368
 
257
369
  **LinearAxis** - The same for a linear axis
258
370
 
259
- **SupportedRobot**, **SupportedLinearAxis** and **MotionGroupVisualizer** - The same without a `ConnectedMotionGroup`: they take a motion state, the model name and the DH parameters. `MotionGroupVisualizer` picks the robot or the linear axis. The `…Exact` variants show the pose without smoothing.
371
+ **SupportedRobot**, **SupportedLinearAxis** and **MotionGroupVisualizer** - The same with single props: they take a motion state, the model name and the DH parameters. `MotionGroupVisualizer` picks the robot or the linear axis. The `…Exact` variants show the pose without smoothing.
260
372
 
261
373
  **SafetyZonesRenderer** - 3D safety visualization
262
374
 
@@ -291,7 +403,8 @@ Safety components for production environments.
291
403
 
292
404
  ### Logic
293
405
 
294
- - **ConnectedMotionGroup** - A motion group with its live motion state, safety state and operation mode
406
+ - **loadRobotSession** and **RobotSession** - A robot of a cell, loaded and connected: its description, live state, safety, activation, jogging and Move to
407
+ - **ConnectedMotionGroup** (deprecated, see [From ConnectedMotionGroup to RobotSession](#from-connectedmotiongroup-to-robotsession)) - A motion group with its live motion state, safety state and operation mode
295
408
  - **MotionStreamConnection** and **JoggerConnection** - The motion state stream and the jogging connection of a motion group
296
409
  - **jointValuesEqual**, **poseEqual**, **tcpMotionEqual**, **unwrapRotationVector** - Helpers for the motion state
297
410
  - **ValueInterpolator**, **useInterpolation**, **useSmoothedMotionState** - Smooth joint values for the 3D view
@@ -303,9 +416,9 @@ Safety components for production environments.
303
416
 
304
417
  Components integrate with the Wandelbots Nova ecosystem:
305
418
 
306
- - **NovaConnection** - Where the library connects to NOVA (`nova` of `JoggingPanel`, `ConnectedMotionGroup.connect`, `MotionStreamConnection.open`, `JoggerConnection.open`, `defaultGetModel`), it takes a `NovaConnection`: the URL of the instance, or the NOVA client of the app (`Nova` of `@wandelbots/nova-js`, of any version). The library reads only the URL and the access token of the client, and connects with its own client (nova-js 4.13.0). So the app configures the connection in one place.
419
+ - **NovaConnection** - Where the library connects to NOVA (`nova` of `JoggingPanel`, `loadRobotSession`, `ConnectedMotionGroup.connect`, `MotionStreamConnection.open`, `JoggerConnection.open`, `defaultGetModel`), it takes a `NovaConnection`: the URL of the instance, or the NOVA client of the app (`Nova` of `@wandelbots/nova-js`, of any version). The library reads only the URL and the access token of the client, and connects with its own client (nova-js 4.13.0). So the app configures the connection in one place.
307
420
  - **Real-time Updates** - WebSocket connections for live robot state updates
308
- - **Motion Group Management** - Direct integration with `ConnectedMotionGroup` objects
421
+ - **Motion Group Management** - One `RobotSession` per robot (`ConnectedMotionGroup` in earlier versions)
309
422
  - **State Synchronization** - Automatic state management with MobX reactivity
310
423
 
311
424
  ### Technical Foundation
@@ -359,7 +472,7 @@ pnpm playground:preview # serves playground/dist on http://localhost:4180
359
472
 
360
473
  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`.
361
474
 
362
- The pages are Jogging, Joint limits, Safety and collisions, Robot models and Building blocks. Each page combines parts that work together. 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.
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.
363
476
 
364
477
  The built playground contains the URL and the access token of the instance: never publish or upload `playground/dist`.
365
478
 
package/dist/3d.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-BqLfTxOF.cjs"),o=require("./chunks/useSmoothedMotionState-DaudLphD.cjs");exports.CollisionSceneRenderer=e.CollisionSceneRenderer;exports.JoggingGizmo=e.JoggingGizmo;exports.JoggingGizmoOrientation=e.JoggingGizmoOrientation;exports.JointLimitGizmo=e.JointLimitGizmo;exports.LinearAxis=e.LinearAxis;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=e.MotionGroupVisualizerExact;exports.PresetEnvironment=e.PresetEnvironment;exports.Robot=e.Robot;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedLinearAxisExact=e.SupportedLinearAxisExact;exports.SupportedRobot=e.SupportedRobot;exports.SupportedRobotExact=e.SupportedRobotExact;exports.TrajectoryRenderer=e.TrajectoryRenderer;exports.defaultGetModel=e.defaultGetModel;exports.ValueInterpolator=o.ValueInterpolator;exports.useSmoothedMotionState=o.useSmoothedMotionState;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunks/robotModelSource-BqKMWufu.cjs"),n=require("./chunks/JoggingGizmo-DtWw6KWg.cjs"),i=require("./chunks/JoggingGizmoOrientation-BwkW76fE.cjs"),a=require("./chunks/RobotControlPanel-DHQga5uu.cjs"),t=require("./chunks/RobotControl-DXbcloVq.cjs"),r=require("./chunks/useSmoothedMotionState-DMqBEC43.cjs"),e=require("./chunks/Pose3-Ch4xVeXV.cjs");exports.CollisionSceneRenderer=o.CollisionSceneRenderer;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.JointLimitGizmo=o.JointLimitGizmo;exports.LinearAxis=o.LinearAxis;exports.MODEL_ROTATION=o.MODEL_ROTATION;exports.MotionGroupVisualizer=o.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=o.MotionGroupVisualizerExact;exports.PresetEnvironment=o.PresetEnvironment;exports.Robot=o.Robot;exports.SafetyZonesRenderer=o.SafetyZonesRenderer;exports.SupportedLinearAxis=o.SupportedLinearAxis;exports.SupportedLinearAxisExact=o.SupportedLinearAxisExact;exports.SupportedRobot=o.SupportedRobot;exports.SupportedRobotExact=o.SupportedRobotExact;exports.TrajectoryRenderer=o.TrajectoryRenderer;exports.defaultGetModel=o.defaultGetModel;exports.jointIndexOf=o.jointIndexOf;exports.revokeAllModelUrls=o.revokeAllModelUrls;exports.robotModelOf=o.robotModelOf;exports.JoggingGizmo=n.JoggingGizmo;exports.JoggingGizmoOrientation=i.JoggingGizmoOrientation;exports.RobotControlPanel=a.RobotControlPanel;exports.RobotControl=t.RobotControl;exports.useRobotControlProps=t.useRobotControlProps;exports.ValueInterpolator=r.ValueInterpolator;exports.useSmoothedMotionState=r.useSmoothedMotionState;exports.Pose3=e.Pose3;exports.parseRotationToQuaternion=e.parseRotationToQuaternion;exports.quaternionToRotationVector=e.quaternionToRotationVector;
package/dist/3d.d.ts CHANGED
@@ -7,11 +7,18 @@ 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";
11
+ export { RobotControl, type RobotControlProps, } from "./components/robotControl/RobotControl";
12
+ export { type RobotControlOptions, useRobotControlProps, } from "./components/robotControl/useRobotControlProps";
10
13
  export * from "./components/robots/LinearAxis";
11
14
  export * from "./components/robots/MotionGroupVisualizer";
12
15
  export * from "./components/robots/Robot";
13
- export { defaultGetModel } from "./components/robots/robotModelLogic";
16
+ export { MODEL_ROTATION } from "./components/robots/modelRotation";
17
+ export { defaultGetModel, FLANGE_NODE_SUFFIX, JOINT_NODE_NAME, JOINT_REST_SUFFIX, jointIndexOf, revokeAllModelUrls, } from "./components/robots/robotModelLogic";
18
+ export { type RobotModelSource, robotModelOf, } from "./components/robots/robotModelSource";
14
19
  export * from "./components/robots/SupportedLinearAxis";
15
20
  export * from "./components/robots/SupportedRobot";
16
21
  export { ValueInterpolator, type InterpolationOptions, } from "./components/utils/interpolation";
17
22
  export * from "./components/utils/useSmoothedMotionState";
23
+ export { Pose3 } from "./lib/Pose3";
24
+ export { parseRotationToQuaternion, quaternionToRotationVector, } from "./lib/rotation";
package/dist/3d.js CHANGED
@@ -1,22 +1,40 @@
1
- import { C as a, J as t, a as r, b as s, L as i, M as n, c as p, P as d, R as u, S, d as l, e as m, f as x, g, T as R, h as c } from "./chunks/Robot-BLqRmhXn.js";
2
- import { V as f, a as z } from "./chunks/useSmoothedMotionState-FMSF0dtk.js";
1
+ import { C as a, F as r, J as t, a as s, b as n, L as i, M as p, c as l, d as R, P as u, R as d, S as x, e as m, f, g as S, h as E, T as O, i as M, j as T, r as b, k as J } from "./chunks/robotModelSource-8b0ZdRSU.js";
2
+ import { J as g } from "./chunks/JoggingGizmo-DBpDIbzl.js";
3
+ import { J as G } from "./chunks/JoggingGizmoOrientation-DU97IUWq.js";
4
+ import { R as L } from "./chunks/RobotControlPanel-CzhYCBAm.js";
5
+ import { R as _, u as F } from "./chunks/RobotControl-BDcNKq32.js";
6
+ import { V as z, a as C } from "./chunks/useSmoothedMotionState-ZMEreFUL.js";
7
+ import { P as j, p as D, q as U } from "./chunks/Pose3-B_fLR-Wv.js";
3
8
  export {
4
9
  a as CollisionSceneRenderer,
5
- t as JoggingGizmo,
6
- r as JoggingGizmoOrientation,
7
- s as JointLimitGizmo,
10
+ r as FLANGE_NODE_SUFFIX,
11
+ t as JOINT_NODE_NAME,
12
+ s as JOINT_REST_SUFFIX,
13
+ g as JoggingGizmo,
14
+ G as JoggingGizmoOrientation,
15
+ n as JointLimitGizmo,
8
16
  i as LinearAxis,
9
- n as MotionGroupVisualizer,
10
- p as MotionGroupVisualizerExact,
11
- d as PresetEnvironment,
12
- u as Robot,
13
- S as SafetyZonesRenderer,
14
- l as SupportedLinearAxis,
15
- m as SupportedLinearAxisExact,
16
- x as SupportedRobot,
17
- g as SupportedRobotExact,
18
- R as TrajectoryRenderer,
19
- f as ValueInterpolator,
20
- c as defaultGetModel,
21
- z as useSmoothedMotionState
17
+ p as MODEL_ROTATION,
18
+ l as MotionGroupVisualizer,
19
+ R as MotionGroupVisualizerExact,
20
+ j as Pose3,
21
+ u as PresetEnvironment,
22
+ d as Robot,
23
+ _ as RobotControl,
24
+ L as RobotControlPanel,
25
+ x as SafetyZonesRenderer,
26
+ m as SupportedLinearAxis,
27
+ f as SupportedLinearAxisExact,
28
+ S as SupportedRobot,
29
+ E as SupportedRobotExact,
30
+ O as TrajectoryRenderer,
31
+ z as ValueInterpolator,
32
+ M as defaultGetModel,
33
+ T as jointIndexOf,
34
+ D as parseRotationToQuaternion,
35
+ U as quaternionToRotationVector,
36
+ b as revokeAllModelUrls,
37
+ J as robotModelOf,
38
+ F as useRobotControlProps,
39
+ C as useSmoothedMotionState
22
40
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-BStpfgEJ.cjs"),o=require("../chunks/coordSystemLabel-BJKeaGA3.cjs");exports.CurrentPose=e.CurrentPose;exports.default=e.CurrentPose;exports.useCurrentPoseProps=e.useCurrentPoseProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
@@ -0,0 +1,3 @@
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";
@@ -0,0 +1,9 @@
1
+ import { C as e, C as r, u as t } from "../chunks/CurrentPose-UJbSKPRp.js";
2
+ import { R as a, u as n } from "../chunks/coordSystemLabel-C1jfhEh5.js";
3
+ export {
4
+ e as CurrentPose,
5
+ a as RobotSessionProvider,
6
+ r as default,
7
+ t as useCurrentPoseProps,
8
+ n as useRobotSession
9
+ };
@@ -0,0 +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;
@@ -0,0 +1,2 @@
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";
@@ -0,0 +1,5 @@
1
+ import { C as e, C as o } from "../chunks/CurrentPoseBar-BmsPnLVP.js";
2
+ export {
3
+ e as CurrentPoseBar,
4
+ o as default
5
+ };
@@ -0,0 +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;
@@ -0,0 +1,3 @@
1
+ export { JoggingButtons, JoggingButtons as default, type JoggingButtonsProps, } from "../components/jogging/JoggingButtons";
2
+ export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
3
+ export type { JogControlsProps } from "../components/jogging/useJogControls";
@@ -0,0 +1,5 @@
1
+ import { J as a, J as g } from "../chunks/JoggingButtons-I_Y70pg8.js";
2
+ export {
3
+ a as JoggingButtons,
4
+ g as default
5
+ };
@@ -0,0 +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;
@@ -0,0 +1,4 @@
1
+ export { JoggingGizmo, JoggingGizmo as default, type JoggingGizmoProps, } from "../components/jogging/gizmo/JoggingGizmo";
2
+ export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "../components/jogging/gizmo/JoggingGizmoOrientation";
3
+ export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
4
+ export type { JogControlsProps } from "../components/jogging/useJogControls";
@@ -0,0 +1,7 @@
1
+ import { J as i, J as a } from "../chunks/JoggingGizmo-DBpDIbzl.js";
2
+ import { J as t } from "../chunks/JoggingGizmoOrientation-DU97IUWq.js";
3
+ export {
4
+ i as JoggingGizmo,
5
+ t as JoggingGizmoOrientation,
6
+ a as default
7
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-DHBB7MwU.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
@@ -0,0 +1,2 @@
1
+ export { JoggingJointSlider, JoggingJointSlider as default, type JoggingJointSliderProps, } from "../components/jogging/joint/JoggingJointSlider";
2
+ export type { JogDirection } from "../components/jogging/jogHandle";
@@ -0,0 +1,5 @@
1
+ import { J as a, J as e } from "../chunks/JoggingJointSlider-DeMqm9Jh.js";
2
+ export {
3
+ a as JoggingJointSlider,
4
+ e as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-DXbcloVq.cjs"),e=require("../chunks/coordSystemLabel-BJKeaGA3.cjs");exports.RobotControl=o.RobotControl;exports.default=o.RobotControl;exports.useRobotControlProps=o.useRobotControlProps;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
@@ -0,0 +1,3 @@
1
+ export { RobotControl, RobotControl as default, type RobotControlProps, } from "../components/robotControl/RobotControl";
2
+ export { type RobotControlOptions, useRobotControlProps, } from "../components/robotControl/useRobotControlProps";
3
+ export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
@@ -0,0 +1,9 @@
1
+ import { R as r, R as t, u as e } from "../chunks/RobotControl-BDcNKq32.js";
2
+ import { R as a, u } from "../chunks/coordSystemLabel-C1jfhEh5.js";
3
+ export {
4
+ r as RobotControl,
5
+ a as RobotSessionProvider,
6
+ t as default,
7
+ e as useRobotControlProps,
8
+ u as useRobotSession
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-DHQga5uu.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
@@ -0,0 +1,2 @@
1
+ export { type JogMotion, RobotControlPanel, RobotControlPanel as default, 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";
2
+ export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
@@ -0,0 +1,5 @@
1
+ import { R as t, R as e } from "../chunks/RobotControlPanel-CzhYCBAm.js";
2
+ export {
3
+ t as RobotControlPanel,
4
+ e as default
5
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-DXC0E2DS.cjs"),t=require("../chunks/robotSafetyOf-CwfVV9__.cjs");exports.ConnectionWarning=o.ConnectionWarning;exports.RobotHeader=o.RobotHeader;exports.connectionWarningOf=o.connectionWarningOf;exports.default=o.RobotHeader;exports.robotActivationOf=o.robotActivationOf;exports.robotSafetyOf=t.robotSafetyOf;
@@ -0,0 +1,8 @@
1
+ export type { AppItem } from "../components/AppHeader";
2
+ export type { RobotControlOption, RobotControlSelect, } from "../components/robotControl/RobotControlPanel";
3
+ export { RobotHeader, RobotHeader as default, type RobotHeaderActivation, type RobotHeaderActivationState, type RobotHeaderProps, } from "../components/robotHeader/RobotHeader";
4
+ export { robotActivationOf } from "../components/robotHeader/robotActivationOf";
5
+ export { robotSafetyOf } from "../components/robotHeader/robotSafetyOf";
6
+ export type { SafetyBarProps } from "../SafetyBar/SafetyBar";
7
+ export { type ConnectionQuality, ConnectionWarning, type ConnectionWarningProps, } from "../components/connectionWarning/ConnectionWarning";
8
+ export { connectionWarningOf } from "../components/connectionWarning/connectionWarningOf";
@@ -0,0 +1,10 @@
1
+ import { C as n, a as r, c as t, a as e, r as f } from "../chunks/robotActivationOf-E1GLe_69.js";
2
+ import { r as s } from "../chunks/robotSafetyOf-P4RgO2LQ.js";
3
+ export {
4
+ n as ConnectionWarning,
5
+ r as RobotHeader,
6
+ t as connectionWarningOf,
7
+ e as default,
8
+ f as robotActivationOf,
9
+ s as robotSafetyOf
10
+ };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/SafetyBar-D7QT6J0m.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-CwfVV9__.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
@@ -1,2 +1,3 @@
1
1
  export * from "./SafetyBar";
2
2
  export { SafetyBar as default } from "./SafetyBar";
3
+ export { robotSafetyOf } from "../components/robotHeader/robotSafetyOf";
@@ -1,5 +1,6 @@
1
- import { S as f, S as r } from "../chunks/SafetyBar-B9OQgerp.js";
1
+ import { S as r, S as t, r as e } from "../chunks/robotSafetyOf-P4RgO2LQ.js";
2
2
  export {
3
- f as SafetyBar,
4
- r as default
3
+ r as SafetyBar,
4
+ t as default,
5
+ e as robotSafetyOf
5
6
  };
@@ -0,0 +1 @@
1
+ "use strict";const S=require("react/jsx-runtime"),b=require("mobx-react-lite"),m=require("./coordSystemLabel-BJKeaGA3.cjs"),f=require("./CurrentPoseBar-ZUhFaVdM.cjs"),p=require("react"),q=require("react-i18next"),x=require("./externalizeComponent-CkWiNBu0.cjs");function g(s){var u,d,l;const e=s.jogging,{t:r}=q.useTranslation(void 0,{i18n:x.i18n}),[o,n]=p.useState(e.selectedTcpId),[i,C]=p.useState(e.selectedCoordSystemId),c=e.tcpsById[o]?o:e.selectedTcpId,a=e.coordSystemsById[i]?i:e.selectedCoordSystemId,y=(l=(d=(u=e.jogger.motionStream.rapidlyChangingMotionState.execute)==null?void 0:u.details)==null?void 0:d.state)==null?void 0:l.kind,I=e.lastJogErrorTranslationKey?r(e.lastJogErrorTranslationKey):e.lastJogError;function P(){const t=e.tcpPoseIn(c,a);return!(t!=null&&t.position)||!t.orientation?null:{position:t.position,orientation:t.orientation}}return{getCurrentPose:P,tcp:e.tcps.length>0?{options:e.tcps.map(t=>({id:t.id,label:t.id})),value:c,onChange:n}:void 0,frame:{options:e.coordSystems.map(t=>({id:t.coordinate_system,label:m.coordSystemLabel(e,t)})),value:a,onChange:C},state:y,error:I}}const T=b.observer(function({session:e,...r}){const o=m.useRobotSessionOf(e),n=g(o);return S.jsx(f.CurrentPoseBar,{...n,...r})});exports.CurrentPose=T;exports.useCurrentPoseProps=g;
@@ -0,0 +1,51 @@
1
+ import { jsx as y } from "react/jsx-runtime";
2
+ import { observer as I } from "mobx-react-lite";
3
+ import { c as S, a as P } from "./coordSystemLabel-C1jfhEh5.js";
4
+ import { C as b } from "./CurrentPoseBar-BmsPnLVP.js";
5
+ import { useState as l } from "react";
6
+ import { useTranslation as T } from "react-i18next";
7
+ import { i as v } from "./externalizeComponent-CPAVvPKk.js";
8
+ function h(n) {
9
+ var d, p, m;
10
+ const o = n.jogging, { t: r } = T(void 0, { i18n: v }), [e, s] = l(o.selectedTcpId), [i, u] = l(o.selectedCoordSystemId), a = o.tcpsById[e] ? e : o.selectedTcpId, c = o.coordSystemsById[i] ? i : o.selectedCoordSystemId, f = (m = (p = (d = o.jogger.motionStream.rapidlyChangingMotionState.execute) == null ? void 0 : d.details) == null ? void 0 : p.state) == null ? void 0 : m.kind, g = o.lastJogErrorTranslationKey ? r(o.lastJogErrorTranslationKey) : o.lastJogError;
11
+ function C() {
12
+ const t = o.tcpPoseIn(a, c);
13
+ return !(t != null && t.position) || !t.orientation ? null : {
14
+ position: t.position,
15
+ orientation: t.orientation
16
+ };
17
+ }
18
+ return {
19
+ getCurrentPose: C,
20
+ tcp: o.tcps.length > 0 ? {
21
+ // As the Robot control panel names them
22
+ options: o.tcps.map((t) => ({
23
+ id: t.id,
24
+ label: t.id
25
+ })),
26
+ value: a,
27
+ onChange: s
28
+ } : void 0,
29
+ frame: {
30
+ options: o.coordSystems.map((t) => ({
31
+ id: t.coordinate_system,
32
+ label: S(o, t)
33
+ })),
34
+ value: c,
35
+ onChange: u
36
+ },
37
+ state: f,
38
+ error: g
39
+ };
40
+ }
41
+ const F = I(function({
42
+ session: o,
43
+ ...r
44
+ }) {
45
+ const e = P(o), s = h(e);
46
+ return /* @__PURE__ */ y(b, { ...s, ...r });
47
+ });
48
+ export {
49
+ F as C,
50
+ h as u
51
+ };