@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.4e5a9e6 → 6.4.0-pr.revamp.667.58dae5c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -14
- package/dist/3d.cjs +1 -1
- package/dist/3d.d.ts +10 -2
- package/dist/3d.js +44 -30
- package/dist/CurrentPose/index.cjs +1 -1
- package/dist/CurrentPose/index.js +2 -2
- package/dist/CurrentPoseBar/index.cjs +1 -1
- package/dist/CurrentPoseBar/index.js +1 -1
- package/dist/JoggingButtons/index.cjs +1 -1
- package/dist/JoggingButtons/index.js +1 -1
- package/dist/JoggingGizmo/index.cjs +1 -1
- package/dist/JoggingGizmo/index.d.ts +1 -0
- package/dist/JoggingGizmo/index.js +2 -2
- package/dist/JoggingJointSlider/index.cjs +1 -1
- package/dist/JoggingJointSlider/index.js +1 -1
- package/dist/RobotControl/index.cjs +1 -1
- package/dist/RobotControl/index.js +2 -2
- package/dist/RobotControlPanel/index.cjs +1 -1
- package/dist/RobotControlPanel/index.d.ts +1 -1
- package/dist/RobotControlPanel/index.js +1 -1
- package/dist/RobotHeader/index.cjs +1 -1
- package/dist/RobotHeader/index.d.ts +2 -0
- package/dist/RobotHeader/index.js +6 -4
- package/dist/RobotScene/index.cjs +1 -0
- package/dist/RobotScene/index.d.ts +5 -0
- package/dist/RobotScene/index.js +11 -0
- package/dist/RobotView/index.cjs +1 -0
- package/dist/RobotView/index.d.ts +4 -0
- package/dist/RobotView/index.js +9 -0
- package/dist/SafetyBar/IndicatorWithExplanation.d.ts +12 -1
- package/dist/SafetyBar/index.cjs +1 -1
- package/dist/SafetyBar/index.js +1 -1
- package/dist/chunks/ConnectedMotionGroup-B8GUihu0.js +1822 -0
- package/dist/chunks/ConnectedMotionGroup-Df8Igvna.cjs +3 -0
- package/dist/chunks/CurrentPose-DxeimMeU.cjs +1 -0
- package/dist/chunks/{CurrentPose-DYKoKD2D.js → CurrentPose-N5MWQHi8.js} +13 -12
- package/dist/chunks/{CurrentPoseBar-Cb_Pk2jp.js → CurrentPoseBar-DGW1vpUW.js} +9 -8
- package/dist/chunks/CurrentPoseBar-DoOUfRRs.cjs +1 -0
- package/dist/chunks/{JoggingButtons-DluWqNuO.js → JoggingButtons-BNOnpcTH.js} +2 -2
- package/dist/chunks/{JoggingButtons-DC0jII72.cjs → JoggingButtons-Boaym2hQ.cjs} +1 -1
- package/dist/chunks/JoggingGizmo-CNFjpWDv.cjs +1 -0
- package/dist/chunks/JoggingGizmo-RDiEVQes.js +847 -0
- package/dist/chunks/{JoggingGizmoOrientation-Bba8HLQJ.js → JoggingGizmoOrientation-Dzzz2gEz.js} +1 -1
- package/dist/chunks/{JoggingGizmoOrientation-l2slmUE_.cjs → JoggingGizmoOrientation-laUrgY0N.cjs} +1 -1
- package/dist/chunks/JoggingJointSlider-BY-Tof8G.js +378 -0
- package/dist/chunks/JoggingJointSlider-Dm3vILd3.cjs +1 -0
- package/dist/chunks/JoggingRefusedError-C4D8_YR_.js +38 -0
- package/dist/chunks/JoggingRefusedError-DqyrfUcc.cjs +1 -0
- package/dist/chunks/PoseTransformer-2QIzECOZ.cjs +1 -0
- package/dist/chunks/PoseTransformer-CmuoS76S.js +364 -0
- package/dist/chunks/Robot-DBZdSKsG.js +428 -0
- package/dist/chunks/Robot-DIJbjjSt.cjs +1 -0
- package/dist/chunks/RobotActivation-BaPImZRq.cjs +1 -0
- package/dist/chunks/RobotActivation-D5SPSBED.js +130 -0
- package/dist/chunks/RobotControl-BdJ7RAAo.js +318 -0
- package/dist/chunks/RobotControl-CscCNoSM.cjs +1 -0
- package/dist/chunks/RobotControlPanel-BJ80O4ER.cjs +1 -0
- package/dist/chunks/RobotControlPanel-D5ke3Ntx.js +1019 -0
- package/dist/chunks/RobotScene-DWFKwcNM.js +1255 -0
- package/dist/chunks/RobotScene-Dc7UpxxA.cjs +1 -0
- package/dist/chunks/RobotSessionProvider--AekyPqD.cjs +1 -0
- package/dist/chunks/RobotSessionProvider-TVaKGzqa.js +25 -0
- package/dist/chunks/RobotView-BemOONOj.cjs +1 -0
- package/dist/chunks/RobotView-CfOUuvEc.js +158 -0
- package/dist/chunks/coordSystemLabel-BThpFG9n.cjs +1 -0
- package/dist/chunks/coordSystemLabel-Bfy9MUsV.js +6 -0
- package/dist/chunks/externalizeComponent-CA_sHzyH.cjs +2 -0
- package/dist/chunks/{externalizeComponent-CSzPVfuG.js → externalizeComponent-CChY_1bN.js} +66 -14
- package/dist/chunks/holdSafety-Cbej6-Kc.js +62 -0
- package/dist/chunks/holdSafety-TeMXlYQe.cjs +1 -0
- package/dist/chunks/joggingColors-Cqpfuw4G.cjs +1 -0
- package/dist/chunks/joggingColors-sb6IFdj2.js +133 -0
- package/dist/chunks/json-3cqBD7UQ.js +18 -0
- package/dist/chunks/json-Bd6uGfgP.cjs +1 -0
- package/dist/chunks/loadRobotSession-DWixPw7W.js +3012 -0
- package/dist/chunks/loadRobotSession-qoLKP8Hu.cjs +1 -0
- package/dist/chunks/poseText-CX7mvWIB.js +48 -0
- package/dist/chunks/poseText-CwplkbDM.cjs +1 -0
- package/dist/chunks/robotActivationOf-BsFcsAdF.cjs +1 -0
- package/dist/chunks/robotActivationOf-CY-F1A3W.js +368 -0
- package/dist/chunks/robotSafetyOf-Cbp35lO-.cjs +1 -0
- package/dist/chunks/{robotSafetyOf-Dr5Q4rCp.js → robotSafetyOf-kNLaX0_5.js} +255 -228
- package/dist/chunks/useEveryFrame-D04ygIe7.js +116 -0
- package/dist/chunks/useEveryFrame-NeKiPXY-.cjs +1 -0
- package/dist/chunks/useSmoothedMotionState-B9WO73k0.cjs +1 -0
- package/dist/chunks/{useSmoothedMotionState-COMJRcOt.js → useSmoothedMotionState-BSSV8aZN.js} +74 -86
- package/dist/chunks/useWebGLRenderer-BozrbZz-.js +45 -0
- package/dist/chunks/useWebGLRenderer-CtddVDDb.cjs +1 -0
- package/dist/components/connectionWarning/ConnectionWarning.d.ts +21 -0
- package/dist/components/connectionWarning/connectionWarningOf.d.ts +11 -0
- package/dist/components/connectionWarning/timeAgo.d.ts +5 -0
- package/dist/components/jogging/JoggingButtons.d.ts +3 -1
- package/dist/components/jogging/JoggingRefusedError.d.ts +24 -0
- package/dist/components/jogging/JoggingStore.d.ts +144 -4
- package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +14 -4
- package/dist/components/jogging/gizmo/RotationHandles.d.ts +3 -3
- package/dist/components/jogging/gizmo/gizmoShared.d.ts +19 -9
- package/dist/components/jogging/holdSafety.d.ts +51 -13
- package/dist/components/jogging/joint/JoggingJointSlider.d.ts +9 -5
- package/dist/components/jogging/joint/useJointJogHold.d.ts +10 -15
- package/dist/components/jogging/useHold.d.ts +17 -13
- package/dist/components/jogging/useJogControls.d.ts +2 -3
- package/dist/components/robotControl/CartesianJogTab.d.ts +14 -3
- package/dist/components/robotControl/HoldToMoveButton.d.ts +8 -7
- package/dist/components/robotControl/JogArea.d.ts +10 -4
- package/dist/components/robotControl/JogDisabledReason.d.ts +15 -0
- package/dist/components/robotControl/JointJogTab.d.ts +10 -2
- package/dist/components/robotControl/MoveToTab.d.ts +22 -4
- package/dist/components/robotControl/PoseField.d.ts +3 -1
- package/dist/components/robotControl/RobotControl.d.ts +3 -0
- package/dist/components/robotControl/RobotControlPanel.d.ts +84 -22
- package/dist/components/robotControl/VelocityRow.d.ts +8 -2
- package/dist/components/robotControl/atPose.d.ts +6 -0
- package/dist/components/robotControl/poseText.d.ts +13 -1
- package/dist/components/robotControl/units.d.ts +10 -2
- package/dist/components/robotControl/useRobotControlProps.d.ts +11 -2
- package/dist/components/robotControl/velocityText.d.ts +18 -0
- package/dist/components/robotScene/JoggingAxes.d.ts +38 -0
- package/dist/components/robotScene/RobotScene.d.ts +28 -0
- package/dist/components/robotScene/RobotSceneView.d.ts +53 -0
- package/dist/components/robotScene/useRobotSceneProps.d.ts +18 -0
- package/dist/components/robotView/RobotCanvas.d.ts +42 -0
- package/dist/components/robotView/RobotView.d.ts +23 -0
- package/dist/components/robotView/WebGLUnavailable.d.ts +5 -0
- package/dist/components/robots/DHRobot.d.ts +1 -1
- package/dist/components/robots/GenericRobot.d.ts +16 -1
- package/dist/components/robots/LinearAxisAnimator.d.ts +1 -1
- package/dist/components/robots/SupportedLinearAxis.d.ts +16 -3
- package/dist/components/robots/SupportedRobot.d.ts +21 -3
- package/dist/components/robots/ghostStyle.d.ts +21 -0
- package/dist/components/robots/modelRotation.d.ts +14 -0
- package/dist/components/robots/robotModelLogic.d.ts +138 -6
- package/dist/components/robots/robotModelSource.d.ts +14 -1
- package/dist/components/utils/converters.d.ts +0 -2
- package/dist/components/utils/json.d.ts +4 -0
- package/dist/components/utils/useWebGLRenderer.d.ts +32 -0
- package/dist/components/utils/webglSupport.d.ts +11 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +3 -0
- package/dist/core.js +76 -69
- package/dist/index.cjs +1 -1
- package/dist/index.js +121 -100
- package/dist/lib/JoggerConnection.d.ts +32 -13
- package/dist/lib/TrajectoryExecutionStore.d.ts +103 -9
- package/dist/lib/incrementalCartesianMotion.d.ts +2 -2
- package/dist/lib/poseMath.d.ts +51 -0
- package/dist/lib/robotSession/RobotActivation.d.ts +49 -5
- package/dist/lib/robotSession/RobotLiveState.d.ts +13 -4
- package/dist/lib/robotSession/RobotSession.d.ts +28 -2
- package/dist/lib/robotSession/RobotTargetPose.d.ts +44 -8
- package/dist/lib/robotSession/robotPose.d.ts +5 -0
- package/dist/nats.cjs +1 -1
- package/dist/nats.js +1 -1
- package/dist/session.cjs +1 -0
- package/dist/session.d.ts +22 -0
- package/dist/session.js +44 -0
- package/package.json +6 -1
- package/dist/chunks/CurrentPose-BIPvpQLG.cjs +0 -1
- package/dist/chunks/CurrentPoseBar-CAEEifBY.cjs +0 -1
- package/dist/chunks/JoggingGizmo-DT7iX5Ka.cjs +0 -1
- package/dist/chunks/JoggingGizmo-Hy42DAQU.js +0 -810
- package/dist/chunks/JoggingJointSlider-C0lI_9W5.cjs +0 -1
- package/dist/chunks/JoggingJointSlider-DePZ3JHW.js +0 -406
- package/dist/chunks/RobotControl-C1JzXIAa.js +0 -285
- package/dist/chunks/RobotControl-ku4CNQCb.cjs +0 -1
- package/dist/chunks/RobotControlPanel-B4u3D3yO.cjs +0 -1
- package/dist/chunks/RobotControlPanel-Cy5LwU1h.js +0 -827
- package/dist/chunks/converters-BsXgcxCW.cjs +0 -1
- package/dist/chunks/converters-D9KpJ2HD.js +0 -47
- package/dist/chunks/coordSystemLabel-BJKeaGA3.cjs +0 -1
- package/dist/chunks/coordSystemLabel-C1jfhEh5.js +0 -29
- package/dist/chunks/externalizeComponent-Bl23ayrr.cjs +0 -2
- package/dist/chunks/holdSafety-BtoZ5We3.cjs +0 -1
- package/dist/chunks/holdSafety-Di1GZAWg.js +0 -37
- package/dist/chunks/joggingColors-CuT5u0H8.js +0 -135
- package/dist/chunks/joggingColors-ZDc_2UCp.cjs +0 -1
- package/dist/chunks/loadRobotSession-DVkuHA-V.js +0 -4624
- package/dist/chunks/loadRobotSession-cQNeaBOf.cjs +0 -3
- package/dist/chunks/robotActivationOf-DUHukd46.js +0 -371
- package/dist/chunks/robotActivationOf-DeJsI4H5.cjs +0 -1
- package/dist/chunks/robotModelSource-C2Mi0LtR.js +0 -1296
- package/dist/chunks/robotModelSource-D7VR89r_.cjs +0 -1
- package/dist/chunks/robotSafetyOf-Cb4qlwd_.cjs +0 -1
- package/dist/chunks/useEveryFrame-CHxg25f4.cjs +0 -1
- package/dist/chunks/useEveryFrame-DAuNawGP.js +0 -155
- package/dist/chunks/useSmoothedMotionState-Con0E5Bx.cjs +0 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ 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.
|
|
20
|
+
The 3D parts need three.js and React Three Fiber in addition. `/core` has the parts without 3D:
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
23
|
import {
|
|
@@ -41,6 +41,8 @@ pnpm add three three-stdlib @react-three/fiber @react-three/drei
|
|
|
41
41
|
|
|
42
42
|
You can also import from the top-level package, but then you'll need to provide all optional dependencies.
|
|
43
43
|
|
|
44
|
+
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).
|
|
45
|
+
|
|
44
46
|
The parts use the theme of your app. Create it with `createNovaMuiTheme` of `@wandelbots/mui`:
|
|
45
47
|
|
|
46
48
|
```tsx
|
|
@@ -66,7 +68,8 @@ Browse the full icon set at https://wandelbotsgmbh.github.io/nova-design-system/
|
|
|
66
68
|
**Available Entry Points:**
|
|
67
69
|
|
|
68
70
|
- **`.`** (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`.
|
|
71
|
+
- **`/core`** — The parts without 3D (jogging, `SafetyBar`, `AppHeader`, `LoadingCover`, `NoMotionGroupModal`), the NOVA connections and `JoggingStore`, the motion state helpers and `i18n`. Draws nothing in 3D, but still needs three.js installed (see [Without three.js or without React](#without-threejs-or-without-react)).
|
|
72
|
+
- **`/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`, `TrajectoryExecutionStore`, the NOVA connections (`ControllerStateStream`, `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
73
|
- **`/3d`** — The 3D parts (`Robot`, `MotionGroupVisualizer`, `SafetyZonesRenderer`, …). Requires in addition three, three-stdlib, @react-three/fiber and @react-three/drei.
|
|
71
74
|
- **`/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
75
|
- **`/SafetyBar`** — Only `SafetyBar` (also as the default export).
|
|
@@ -81,6 +84,21 @@ A component's own entry point brings only what that component needs, e.g. `/Jogg
|
|
|
81
84
|
import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
|
|
82
85
|
```
|
|
83
86
|
|
|
87
|
+
### Without three.js or without React
|
|
88
|
+
|
|
89
|
+
- **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`.
|
|
90
|
+
- **`/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.
|
|
91
|
+
- **An app without React**, or with a UI of its own, uses `/session` alone (and `/nats`). Of the peer dependencies it loads only `mobx`:
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
import { loadRobotSession } from "@wandelbots/wandelbots-js-react-components/session"
|
|
95
|
+
|
|
96
|
+
const load = loadRobotSession("https://my-instance.wandelbots.io", "0@ur5e")
|
|
97
|
+
const session = await load.ready
|
|
98
|
+
console.log(session.state.displayedTcpPose)
|
|
99
|
+
load.dispose()
|
|
100
|
+
```
|
|
101
|
+
|
|
84
102
|
### Peer dependencies
|
|
85
103
|
|
|
86
104
|
| Package | Version |
|
|
@@ -91,7 +109,7 @@ import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/Joggi
|
|
|
91
109
|
| `@wandelbots/mui` | ^2 |
|
|
92
110
|
| `mobx` | ^6.13.6 |
|
|
93
111
|
| `mobx-react-lite` | ^4.1.0 |
|
|
94
|
-
| `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | >=0.182 |
|
|
112
|
+
| `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`, and `/core` until `ConnectedMotionGroup` is removed) | >=0.182 |
|
|
95
113
|
| `three-stdlib` (only `/3d`) | >=2 |
|
|
96
114
|
| `@react-three/fiber` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | ^9 |
|
|
97
115
|
| `@react-three/drei` (only `/3d`) | ^10 |
|
|
@@ -152,7 +170,8 @@ load.dispose()
|
|
|
152
170
|
What changes besides the names:
|
|
153
171
|
|
|
154
172
|
- **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`.
|
|
173
|
+
- **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`.
|
|
174
|
+
- **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
175
|
- **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
176
|
- **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
177
|
- **Several robots:** load one session per robot instead of `ConnectedMotionGroup.connectMultiple`.
|
|
@@ -222,7 +241,7 @@ Manual robot control interfaces.
|
|
|
222
241
|
- **JoggingCartesianAxisControl** - Single-axis cartesian movement
|
|
223
242
|
- **JoggingJointValueControl** - Individual joint controls
|
|
224
243
|
- **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.
|
|
244
|
+
- **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. 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
245
|
|
|
227
246
|
**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
247
|
|
|
@@ -231,7 +250,9 @@ Manual robot control interfaces.
|
|
|
231
250
|
- `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
251
|
- `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
252
|
- 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.
|
|
253
|
+
- 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`.
|
|
254
|
+
- 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.
|
|
255
|
+
- 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
256
|
- 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
257
|
|
|
237
258
|
```tsx
|
|
@@ -255,7 +276,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
255
276
|
/>
|
|
256
277
|
```
|
|
257
278
|
|
|
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`.
|
|
279
|
+
**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
280
|
|
|
260
281
|
```tsx
|
|
261
282
|
<JoggingButtons
|
|
@@ -269,7 +290,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
269
290
|
/>
|
|
270
291
|
```
|
|
271
292
|
|
|
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
|
|
293
|
+
**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
294
|
|
|
274
295
|
- `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
296
|
- `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 +325,16 @@ const [active, setActive] = useState<number | null>(null)
|
|
|
304
325
|
))}
|
|
305
326
|
```
|
|
306
327
|
|
|
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
|
|
328
|
+
**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
329
|
|
|
309
330
|
- 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.
|
|
331
|
+
- 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
332
|
- `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
333
|
- `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
|
|
334
|
+
- `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 `useRobotControlProps` 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. `useRobotControlProps` 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: the hook gives it after another client held the jogging connection, and the next jog then asks NOVA for it again.
|
|
314
335
|
- 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
336
|
- `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)
|
|
337
|
+
- `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
338
|
|
|
318
339
|
```tsx
|
|
319
340
|
const orientation = useRef<Quaternion | null>(null)
|
|
@@ -347,7 +368,8 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
347
368
|
}}
|
|
348
369
|
moveTo={{
|
|
349
370
|
getCurrentPose: () => currentTcpPose(),
|
|
350
|
-
|
|
371
|
+
getCurrentJoints: () => currentJoints(), // the field takes [j1, …, jn] too
|
|
372
|
+
onTargetChange: (target) => planAndLoad(target), // a pose or { joints }, or drop the plan (null)
|
|
351
373
|
state: trajectoryState, // "planning" | "planned" | "moving" | "stopping" | "idle"
|
|
352
374
|
error,
|
|
353
375
|
onMoveStart: () => startTrajectory(),
|
|
@@ -394,6 +416,7 @@ Safety components for production environments.
|
|
|
394
416
|
|
|
395
417
|
- Real-time safety monitoring
|
|
396
418
|
- Emergency stop integration
|
|
419
|
+
- 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
420
|
|
|
398
421
|
### App Frame
|
|
399
422
|
|
|
@@ -404,6 +427,7 @@ Safety components for production environments.
|
|
|
404
427
|
### Logic
|
|
405
428
|
|
|
406
429
|
- **loadRobotSession** and **RobotSession** - A robot of a cell, loaded and connected: its description, live state, safety, activation, jogging and Move to
|
|
430
|
+
- **TrajectoryExecutionStore** (`session.trajectory`) and **RobotTargetPose** (`session.targetPose`) - Move to without a UI. `planTrajectory(target)` plans a trajectory and loads it; `hold(target)` 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. `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
431
|
- **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
432
|
- **MotionStreamConnection** and **JoggerConnection** - The motion state stream and the jogging connection of a motion group
|
|
409
433
|
- **jointValuesEqual**, **poseEqual**, **tcpMotionEqual**, **unwrapRotationVector** - Helpers for the motion state
|
|
@@ -472,7 +496,7 @@ pnpm playground:preview # serves playground/dist on http://localhost:4180
|
|
|
472
496
|
|
|
473
497
|
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
498
|
|
|
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.
|
|
499
|
+
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
500
|
|
|
477
501
|
The built playground contains the URL and the access token of the instance: never publish or upload `playground/dist`.
|
|
478
502
|
|
package/dist/3d.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunks/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-DIJbjjSt.cjs"),o=require("./chunks/RobotScene-Dc7UpxxA.cjs"),a=require("./chunks/JoggingGizmo-CNFjpWDv.cjs"),s=require("./chunks/JoggingGizmoOrientation-laUrgY0N.cjs"),u=require("./chunks/RobotControlPanel-BJ80O4ER.cjs"),r=require("./chunks/RobotControl-CscCNoSM.cjs"),n=require("./chunks/RobotView-BemOONOj.cjs"),i=require("./chunks/useSmoothedMotionState-B9WO73k0.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=a.JoggingGizmo;exports.JoggingGizmoOrientation=s.JoggingGizmoOrientation;exports.RobotControlPanel=u.RobotControlPanel;exports.RobotControl=r.RobotControl;exports.useRobotControlProps=r.useRobotControlProps;exports.RobotCanvas=n.RobotCanvas;exports.RobotView=n.RobotView;exports.ValueInterpolator=i.ValueInterpolator;exports.useSmoothedMotionState=i.useSmoothedMotionState;exports.Pose3=t.Pose3;exports.parseRotationToQuaternion=t.parseRotationToQuaternion;exports.quaternionToRotationVector=t.quaternionToRotationVector;
|
package/dist/3d.d.ts
CHANGED
|
@@ -7,13 +7,21 @@ 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
12
|
export { type RobotControlOptions, useRobotControlProps, } from "./components/robotControl/useRobotControlProps";
|
|
13
|
+
export { JoggingAxes, type JoggingAxesProps, } from "./components/robotScene/JoggingAxes";
|
|
14
|
+
export { RobotScene, type RobotSceneProps, } from "./components/robotScene/RobotScene";
|
|
15
|
+
export { RobotSceneView, type RobotSceneViewProps, } from "./components/robotScene/RobotSceneView";
|
|
16
|
+
export { useRobotSceneProps } from "./components/robotScene/useRobotSceneProps";
|
|
17
|
+
export { RobotCanvas, type RobotCanvasProps, } from "./components/robotView/RobotCanvas";
|
|
18
|
+
export { RobotView, type RobotViewProps, } from "./components/robotView/RobotView";
|
|
19
|
+
export type { WebGLUnavailableContext } from "./components/utils/useWebGLRenderer";
|
|
13
20
|
export * from "./components/robots/LinearAxis";
|
|
14
21
|
export * from "./components/robots/MotionGroupVisualizer";
|
|
15
22
|
export * from "./components/robots/Robot";
|
|
16
|
-
export {
|
|
23
|
+
export { MODEL_ROTATION } from "./components/robots/modelRotation";
|
|
24
|
+
export { defaultGetModel, FLANGE_NODE_SUFFIX, JOINT_NODE_NAME, JOINT_REST_SUFFIX, jointIndexOf, revokeAllModelUrls, } from "./components/robots/robotModelLogic";
|
|
17
25
|
export { type RobotModelSource, robotModelOf, } from "./components/robots/robotModelSource";
|
|
18
26
|
export * from "./components/robots/SupportedLinearAxis";
|
|
19
27
|
export * from "./components/robots/SupportedRobot";
|
package/dist/3d.js
CHANGED
|
@@ -1,34 +1,48 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { J as c } from "./chunks/
|
|
3
|
-
import { J as
|
|
4
|
-
import {
|
|
5
|
-
import { R as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-DBZdSKsG.js";
|
|
2
|
+
import { F as p, J as R, a as l, b as u, M as x, c as m, d as S, P as d, 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-DWFKwcNM.js";
|
|
3
|
+
import { J as N } from "./chunks/JoggingGizmo-RDiEVQes.js";
|
|
4
|
+
import { J as V } from "./chunks/JoggingGizmoOrientation-Dzzz2gEz.js";
|
|
5
|
+
import { R as C } from "./chunks/RobotControlPanel-D5ke3Ntx.js";
|
|
6
|
+
import { R as z, u as j } from "./chunks/RobotControl-BdJ7RAAo.js";
|
|
7
|
+
import { R as D, a as U } from "./chunks/RobotView-CfOUuvEc.js";
|
|
8
|
+
import { V as k, a as q } from "./chunks/useSmoothedMotionState-BSSV8aZN.js";
|
|
9
|
+
import { P as y, p as X, q as Q } from "./chunks/Pose3-B_fLR-Wv.js";
|
|
8
10
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
a as CollisionSceneRenderer,
|
|
12
|
+
p as FLANGE_NODE_SUFFIX,
|
|
13
|
+
R as JOINT_NODE_NAME,
|
|
14
|
+
l as JOINT_REST_SUFFIX,
|
|
15
|
+
u as JoggingAxes,
|
|
16
|
+
N as JoggingGizmo,
|
|
17
|
+
V as JoggingGizmoOrientation,
|
|
18
|
+
t as JointLimitGizmo,
|
|
13
19
|
r as LinearAxis,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
x as MODEL_ROTATION,
|
|
21
|
+
m as MotionGroupVisualizer,
|
|
22
|
+
S as MotionGroupVisualizerExact,
|
|
23
|
+
y as Pose3,
|
|
24
|
+
d as PresetEnvironment,
|
|
25
|
+
s as Robot,
|
|
26
|
+
D as RobotCanvas,
|
|
19
27
|
z as RobotControl,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
C as RobotControlPanel,
|
|
29
|
+
f as RobotScene,
|
|
30
|
+
b as RobotSceneView,
|
|
31
|
+
U as RobotView,
|
|
32
|
+
c as SafetyZonesRenderer,
|
|
33
|
+
g as SupportedLinearAxis,
|
|
34
|
+
E as SupportedLinearAxisExact,
|
|
35
|
+
J as SupportedRobot,
|
|
36
|
+
O as SupportedRobotExact,
|
|
37
|
+
n as TrajectoryRenderer,
|
|
38
|
+
k as ValueInterpolator,
|
|
39
|
+
M as defaultGetModel,
|
|
40
|
+
T as jointIndexOf,
|
|
41
|
+
X as parseRotationToQuaternion,
|
|
42
|
+
Q as quaternionToRotationVector,
|
|
43
|
+
A as revokeAllModelUrls,
|
|
44
|
+
G as robotModelOf,
|
|
45
|
+
j as useRobotControlProps,
|
|
46
|
+
I as useRobotSceneProps,
|
|
47
|
+
q as useSmoothedMotionState
|
|
34
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-DxeimMeU.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,5 +1,5 @@
|
|
|
1
|
-
import { C as e, C as r, u as t } from "../chunks/CurrentPose-
|
|
2
|
-
import { R as a, u as n } from "../chunks/
|
|
1
|
+
import { C as e, C as r, u as t } from "../chunks/CurrentPose-N5MWQHi8.js";
|
|
2
|
+
import { R as a, u as n } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
|
|
3
3
|
export {
|
|
4
4
|
e as CurrentPose,
|
|
5
5
|
a as RobotSessionProvider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("../chunks/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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../chunks/JoggingGizmo-
|
|
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;
|
|
@@ -2,3 +2,4 @@ export { JoggingGizmo, JoggingGizmo as default, type JoggingGizmoProps, } from "
|
|
|
2
2
|
export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "../components/jogging/gizmo/JoggingGizmoOrientation";
|
|
3
3
|
export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
|
|
4
4
|
export type { JogControlsProps } from "../components/jogging/useJogControls";
|
|
5
|
+
export type { WebGLUnavailableContext } from "../components/utils/useWebGLRenderer";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as i, J as a } from "../chunks/JoggingGizmo-
|
|
2
|
-
import { J as t } from "../chunks/JoggingGizmoOrientation-
|
|
1
|
+
import { J as i, J as a } from "../chunks/JoggingGizmo-RDiEVQes.js";
|
|
2
|
+
import { J as t } from "../chunks/JoggingGizmoOrientation-Dzzz2gEz.js";
|
|
3
3
|
export {
|
|
4
4
|
i as JoggingGizmo,
|
|
5
5
|
t as JoggingGizmoOrientation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/JoggingJointSlider-Dm3vILd3.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-CscCNoSM.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotControl=o.RobotControl;exports.default=o.RobotControl;exports.useRobotControlProps=o.useRobotControlProps;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as r, R as t, u as e } from "../chunks/RobotControl-
|
|
2
|
-
import { R as a, u } from "../chunks/
|
|
1
|
+
import { R as r, R as t, u as e } from "../chunks/RobotControl-BdJ7RAAo.js";
|
|
2
|
+
import { R as a, u } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
|
|
3
3
|
export {
|
|
4
4
|
r as RobotControl,
|
|
5
5
|
a as RobotSessionProvider,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControlPanel-BJ80O4ER.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
|
|
@@ -1,2 +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";
|
|
1
|
+
export { type JogMotion, RobotControlPanel, RobotControlPanel as default, 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";
|
|
2
2
|
export type { JogAxis, JogDirection, JogHandle, } from "../components/jogging/jogHandle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-BsFcsAdF.cjs"),t=require("../chunks/robotSafetyOf-Cbp35lO-.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;
|
|
@@ -4,3 +4,5 @@ export { RobotHeader, RobotHeader as default, type RobotHeaderActivation, type R
|
|
|
4
4
|
export { robotActivationOf } from "../components/robotHeader/robotActivationOf";
|
|
5
5
|
export { robotSafetyOf } from "../components/robotHeader/robotSafetyOf";
|
|
6
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";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as s } from "../chunks/robotSafetyOf-
|
|
1
|
+
import { C as n, R as r, c as t, R as e, r as f } from "../chunks/robotActivationOf-CY-F1A3W.js";
|
|
2
|
+
import { r as s } from "../chunks/robotSafetyOf-kNLaX0_5.js";
|
|
3
3
|
export {
|
|
4
|
+
n as ConnectionWarning,
|
|
4
5
|
r as RobotHeader,
|
|
5
|
-
t as
|
|
6
|
-
e as
|
|
6
|
+
t as connectionWarningOf,
|
|
7
|
+
e as default,
|
|
8
|
+
f as robotActivationOf,
|
|
7
9
|
s as robotSafetyOf
|
|
8
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-Dc7UpxxA.cjs"),o=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.JoggingAxes=e.JoggingAxes;exports.RobotScene=e.RobotScene;exports.RobotSceneView=e.RobotSceneView;exports.default=e.RobotScene;exports.useRobotSceneProps=e.useRobotSceneProps;exports.RobotSessionProvider=o.RobotSessionProvider;exports.useRobotSession=o.useRobotSession;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { JoggingAxes, type JoggingAxesProps, } from "../components/robotScene/JoggingAxes";
|
|
2
|
+
export { RobotScene, RobotScene as default, type RobotSceneProps, } from "../components/robotScene/RobotScene";
|
|
3
|
+
export { RobotSceneView, type RobotSceneViewProps, } from "../components/robotScene/RobotSceneView";
|
|
4
|
+
export { useRobotSceneProps } from "../components/robotScene/useRobotSceneProps";
|
|
5
|
+
export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-DWFKwcNM.js";
|
|
2
|
+
import { R as n, u as i } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
|
|
3
|
+
export {
|
|
4
|
+
s as JoggingAxes,
|
|
5
|
+
a as RobotScene,
|
|
6
|
+
t as RobotSceneView,
|
|
7
|
+
n as RobotSessionProvider,
|
|
8
|
+
R as default,
|
|
9
|
+
r as useRobotSceneProps,
|
|
10
|
+
i as useRobotSession
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotView-BemOONOj.cjs"),e=require("../chunks/RobotSessionProvider--AekyPqD.cjs");exports.RobotCanvas=o.RobotCanvas;exports.RobotView=o.RobotView;exports.default=o.RobotView;exports.RobotSessionProvider=e.RobotSessionProvider;exports.useRobotSession=e.useRobotSession;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { RobotCanvas, type RobotCanvasProps, } from "../components/robotView/RobotCanvas";
|
|
2
|
+
export { RobotView, RobotView as default, type RobotViewProps, } from "../components/robotView/RobotView";
|
|
3
|
+
export type { WebGLUnavailableContext } from "../components/utils/useWebGLRenderer";
|
|
4
|
+
export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { R as a, a as e, a as t } from "../chunks/RobotView-CfOUuvEc.js";
|
|
2
|
+
import { R, u as b } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
|
|
3
|
+
export {
|
|
4
|
+
a as RobotCanvas,
|
|
5
|
+
R as RobotSessionProvider,
|
|
6
|
+
e as RobotView,
|
|
7
|
+
t as default,
|
|
8
|
+
b as useRobotSession
|
|
9
|
+
};
|
|
@@ -2,7 +2,18 @@ import { type PopoverOrigin } from "@mui/material/Popover";
|
|
|
2
2
|
import { type TypographyProps } from "@mui/material/Typography";
|
|
3
3
|
import type { ElementType, ReactNode } from "react";
|
|
4
4
|
export type IndicatorWithExplanationProps = {
|
|
5
|
+
/** The id of the popover: one per state and component, so not stable */
|
|
5
6
|
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* What a test finds the indicator by, whatever it shows: the same for
|
|
9
|
+
* every state, e.g. "safety-state-indicator"
|
|
10
|
+
*/
|
|
11
|
+
testId: string;
|
|
12
|
+
/**
|
|
13
|
+
* The name of the indicator for a screen reader and a test, e.g. "Safety
|
|
14
|
+
* state: Safe": it shows an icon, and its text only in the popover
|
|
15
|
+
*/
|
|
16
|
+
accessibleName: string;
|
|
6
17
|
icon: ElementType;
|
|
7
18
|
color: TypographyProps["color"];
|
|
8
19
|
title?: ReactNode;
|
|
@@ -13,7 +24,7 @@ export type IndicatorWithExplanationProps = {
|
|
|
13
24
|
anchorOrigin?: PopoverOrigin;
|
|
14
25
|
transformOrigin?: PopoverOrigin;
|
|
15
26
|
};
|
|
16
|
-
export declare const IndicatorWithExplanation: (({ id, icon, color, title, name, label, explanation, literalValue, anchorOrigin, transformOrigin, }: IndicatorWithExplanationProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
27
|
+
export declare const IndicatorWithExplanation: (({ id, testId, accessibleName, icon, color, title, name, label, explanation, literalValue, anchorOrigin, transformOrigin, }: IndicatorWithExplanationProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
17
28
|
displayName: string;
|
|
18
29
|
};
|
|
19
30
|
export default IndicatorWithExplanation;
|
package/dist/SafetyBar/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-Cbp35lO-.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
|
package/dist/SafetyBar/index.js
CHANGED