@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.adaa917 → 6.4.0-pr.revamp.667.bd2ec84
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 +30 -9
- package/dist/3d.cjs +1 -1
- package/dist/3d.js +8 -8
- package/dist/CurrentPose/index.cjs +1 -1
- package/dist/CurrentPose/index.js +1 -1
- 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.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 +1 -1
- package/dist/RobotControlPanel/index.cjs +1 -1
- package/dist/RobotControlPanel/index.js +1 -1
- package/dist/RobotHeader/index.cjs +1 -1
- package/dist/RobotHeader/index.js +2 -2
- package/dist/RobotScene/index.cjs +1 -1
- package/dist/RobotScene/index.js +1 -1
- package/dist/RobotView/index.cjs +1 -1
- package/dist/RobotView/index.js +1 -1
- package/dist/SafetyBar/index.cjs +1 -1
- package/dist/SafetyBar/index.js +1 -1
- package/dist/chunks/ConnectedMotionGroup-BifrgwV1.js +1821 -0
- package/dist/chunks/ConnectedMotionGroup-CybwJHkh.cjs +3 -0
- package/dist/chunks/{CurrentPose-fWc6ySnk.cjs → CurrentPose-CMqO8oqX.cjs} +1 -1
- package/dist/chunks/{CurrentPose-DQ-FaAnr.js → CurrentPose-CdD2ZB7B.js} +2 -2
- package/dist/chunks/CurrentPoseBar-BTBAwIO4.cjs +1 -0
- package/dist/chunks/{CurrentPoseBar-B3-XLeu2.js → CurrentPoseBar-CX1xFBtm.js} +9 -8
- package/dist/chunks/{JoggingButtons-nXLqJLIr.cjs → JoggingButtons-BOHl7hVq.cjs} +1 -1
- package/dist/chunks/{JoggingButtons-D4S2oJGt.js → JoggingButtons-aijK-3g6.js} +2 -2
- package/dist/chunks/JoggingGizmo-CoKYUtXq.cjs +1 -0
- package/dist/chunks/{JoggingGizmo-9wEBSe1P.js → JoggingGizmo-DHvrJouR.js} +276 -260
- package/dist/chunks/{JoggingGizmoOrientation-DYeHwowd.js → JoggingGizmoOrientation-CIvIAIeO.js} +1 -1
- package/dist/chunks/{JoggingGizmoOrientation-D9VS6nag.cjs → JoggingGizmoOrientation-DVcagPRJ.cjs} +1 -1
- package/dist/chunks/JoggingJointSlider-CTFYKzsU.cjs +1 -0
- package/dist/chunks/JoggingJointSlider-DQtt4-pa.js +378 -0
- package/dist/chunks/JoggingRefusedError-BIkUM6-g.js +36 -0
- package/dist/chunks/JoggingRefusedError-BuCGsVsa.cjs +1 -0
- package/dist/chunks/PoseTransformer-2QIzECOZ.cjs +1 -0
- package/dist/chunks/PoseTransformer-CmuoS76S.js +364 -0
- package/dist/chunks/{Robot-IG0yo_YD.js → Robot-C-IWfxP9.js} +1 -1
- package/dist/chunks/{Robot-DEJXhv-D.cjs → Robot-Cfhjv9Z8.cjs} +1 -1
- package/dist/chunks/RobotActivation-Bb0oNSBN.cjs +1 -0
- package/dist/chunks/RobotActivation-C0rrwpQZ.js +115 -0
- package/dist/chunks/RobotControl-Cv6Sr1Ni.js +289 -0
- package/dist/chunks/RobotControl-DFnOYMAa.cjs +1 -0
- package/dist/chunks/{RobotControlPanel-BzqLtecA.js → RobotControlPanel-B1_9g9D-.js} +318 -297
- package/dist/chunks/RobotControlPanel-BpTpRBgy.cjs +1 -0
- package/dist/chunks/RobotScene-0ZJzXL50.cjs +1 -0
- package/dist/chunks/{RobotScene-BS77SUtN.js → RobotScene-DpFeFpnx.js} +381 -356
- package/dist/chunks/{RobotView-BlV3MdCy.cjs → RobotView-BGYlAWj-.cjs} +1 -1
- package/dist/chunks/{RobotView-CGvHcO7j.js → RobotView-D-v8jCM7.js} +2 -2
- package/dist/chunks/{externalizeComponent-TgclPxwg.js → externalizeComponent-4juwPKL5.js} +4 -0
- package/dist/chunks/externalizeComponent-Br_U-QAr.cjs +2 -0
- 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-DYbeNnTI.cjs +1 -0
- package/dist/chunks/loadRobotSession-GHHtv5dv.js +2893 -0
- package/dist/chunks/poseText-BXUaQWnK.cjs +1 -0
- package/dist/chunks/poseText-pg4cxE8R.js +41 -0
- package/dist/chunks/robotActivationOf-B4oV10Za.cjs +1 -0
- package/dist/chunks/robotActivationOf-EzcT9g07.js +368 -0
- package/dist/chunks/{robotSafetyOf-BGSW_Ql3.js → robotSafetyOf-DuKKma1_.js} +2 -2
- package/dist/chunks/robotSafetyOf-Dxm6s7Pp.cjs +1 -0
- 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-BSSV8aZN.js +202 -0
- package/dist/components/jogging/JoggingButtons.d.ts +3 -1
- package/dist/components/jogging/JoggingRefusedError.d.ts +19 -0
- package/dist/components/jogging/JoggingStore.d.ts +98 -3
- package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +6 -3
- 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/HoldToMoveButton.d.ts +8 -7
- package/dist/components/robotControl/MoveToTab.d.ts +3 -1
- package/dist/components/robotControl/useRobotControlProps.d.ts +6 -0
- package/dist/components/utils/converters.d.ts +0 -2
- package/dist/components/utils/json.d.ts +4 -0
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +1 -0
- package/dist/core.js +79 -74
- package/dist/index.cjs +1 -1
- package/dist/index.js +108 -103
- package/dist/lib/TrajectoryExecutionStore.d.ts +100 -7
- package/dist/lib/incrementalCartesianMotion.d.ts +2 -2
- package/dist/lib/poseMath.d.ts +51 -0
- package/dist/lib/robotSession/RobotActivation.d.ts +13 -2
- package/dist/lib/robotSession/RobotLiveState.d.ts +13 -4
- package/dist/lib/robotSession/RobotSession.d.ts +21 -1
- 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/CurrentPoseBar-CSHQ26mR.cjs +0 -1
- package/dist/chunks/JoggingGizmo-BJ3wDpAJ.cjs +0 -1
- package/dist/chunks/JoggingJointSlider-D7AsxkrT.cjs +0 -1
- package/dist/chunks/JoggingJointSlider-DQneQhXH.js +0 -406
- package/dist/chunks/PoseTransformer-dP4nzrPG.cjs +0 -1
- package/dist/chunks/PoseTransformer-tafab65c.js +0 -454
- package/dist/chunks/RobotControl-0tL4CY3m.cjs +0 -1
- package/dist/chunks/RobotControl-C59I0tMh.js +0 -317
- package/dist/chunks/RobotControlPanel-BXUgib6Z.cjs +0 -1
- package/dist/chunks/RobotScene-BjctJ5z1.cjs +0 -1
- package/dist/chunks/converters-BsXgcxCW.cjs +0 -1
- package/dist/chunks/converters-D9KpJ2HD.js +0 -47
- package/dist/chunks/externalizeComponent-BW1UV6Gh.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-Bg0R0p8D.cjs +0 -3
- package/dist/chunks/loadRobotSession-CA9NInkt.js +0 -4389
- package/dist/chunks/robotActivationOf-BKUn_piZ.js +0 -477
- package/dist/chunks/robotActivationOf-jrHDUzfW.cjs +0 -1
- package/dist/chunks/robotSafetyOf-Y4NuRInk.cjs +0 -1
- package/dist/chunks/useEveryFrame-CHxg25f4.cjs +0 -1
- package/dist/chunks/useEveryFrame-DAuNawGP.js +0 -155
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,7 @@ 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`.
|
|
156
174
|
- **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
175
|
- **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
176
|
- **Several robots:** load one session per robot instead of `ConnectedMotionGroup.connectMultiple`.
|
|
@@ -222,7 +240,7 @@ Manual robot control interfaces.
|
|
|
222
240
|
- **JoggingCartesianAxisControl** - Single-axis cartesian movement
|
|
223
241
|
- **JoggingJointValueControl** - Individual joint controls
|
|
224
242
|
- **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.
|
|
243
|
+
- **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), it starts no jog: the start rejects with a `JoggingRefusedError`, whose `reason.code` says why.
|
|
226
244
|
|
|
227
245
|
**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
246
|
|
|
@@ -231,7 +249,9 @@ Manual robot control interfaces.
|
|
|
231
249
|
- `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
250
|
- `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
251
|
- 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.
|
|
252
|
+
- 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`.
|
|
253
|
+
- 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.
|
|
254
|
+
- 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
255
|
- 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
256
|
|
|
237
257
|
```tsx
|
|
@@ -255,7 +275,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
255
275
|
/>
|
|
256
276
|
```
|
|
257
277
|
|
|
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`.
|
|
278
|
+
**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
279
|
|
|
260
280
|
```tsx
|
|
261
281
|
<JoggingButtons
|
|
@@ -269,7 +289,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
269
289
|
/>
|
|
270
290
|
```
|
|
271
291
|
|
|
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
|
|
292
|
+
**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
293
|
|
|
274
294
|
- `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
295
|
- `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.
|
|
@@ -313,7 +333,7 @@ const [active, setActive] = useState<number | null>(null)
|
|
|
313
333
|
- `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
334
|
- 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
335
|
- `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)
|
|
336
|
+
- `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). 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. `frame` is the "Relative to" select. It moves with `velocity.translate`. Without `moveTo`, there is no Move to tab.
|
|
317
337
|
|
|
318
338
|
```tsx
|
|
319
339
|
const orientation = useRef<Quaternion | null>(null)
|
|
@@ -404,6 +424,7 @@ Safety components for production environments.
|
|
|
404
424
|
### Logic
|
|
405
425
|
|
|
406
426
|
- **loadRobotSession** and **RobotSession** - A robot of a cell, loaded and connected: its description, live state, safety, activation, jogging and Move to
|
|
427
|
+
- **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
428
|
- **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
429
|
- **MotionStreamConnection** and **JoggerConnection** - The motion state stream and the jogging connection of a motion group
|
|
409
430
|
- **jointValuesEqual**, **poseEqual**, **tcpMotionEqual**, **unwrapRotationVector** - Helpers for the motion state
|
package/dist/3d.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-Cfhjv9Z8.cjs"),o=require("./chunks/RobotScene-0ZJzXL50.cjs"),a=require("./chunks/JoggingGizmo-CoKYUtXq.cjs"),s=require("./chunks/JoggingGizmoOrientation-DVcagPRJ.cjs"),u=require("./chunks/RobotControlPanel-BpTpRBgy.cjs"),r=require("./chunks/RobotControl-DFnOYMAa.cjs"),n=require("./chunks/RobotView-BGYlAWj-.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.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-
|
|
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-
|
|
3
|
-
import { J as N } from "./chunks/JoggingGizmo-
|
|
4
|
-
import { J as V } from "./chunks/JoggingGizmoOrientation-
|
|
5
|
-
import { R as C } from "./chunks/RobotControlPanel-
|
|
6
|
-
import { R as z, u as j } from "./chunks/RobotControl-
|
|
7
|
-
import { R as D, a as U } from "./chunks/RobotView-
|
|
8
|
-
import { V as k, a as q } from "./chunks/
|
|
1
|
+
import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-C-IWfxP9.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-DpFeFpnx.js";
|
|
3
|
+
import { J as N } from "./chunks/JoggingGizmo-DHvrJouR.js";
|
|
4
|
+
import { J as V } from "./chunks/JoggingGizmoOrientation-CIvIAIeO.js";
|
|
5
|
+
import { R as C } from "./chunks/RobotControlPanel-B1_9g9D-.js";
|
|
6
|
+
import { R as z, u as j } from "./chunks/RobotControl-Cv6Sr1Ni.js";
|
|
7
|
+
import { R as D, a as U } from "./chunks/RobotView-D-v8jCM7.js";
|
|
8
|
+
import { V as k, a as q } from "./chunks/useSmoothedMotionState-BSSV8aZN.js";
|
|
9
9
|
import { P as y, p as X, q as Q } from "./chunks/Pose3-B_fLR-Wv.js";
|
|
10
10
|
export {
|
|
11
11
|
a as CollisionSceneRenderer,
|
|
@@ -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-CMqO8oqX.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 +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-BTBAwIO4.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-BOHl7hVq.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-CoKYUtXq.cjs"),o=require("../chunks/JoggingGizmoOrientation-DVcagPRJ.cjs");exports.JoggingGizmo=i.JoggingGizmo;exports.default=i.JoggingGizmo;exports.JoggingGizmoOrientation=o.JoggingGizmoOrientation;
|
|
@@ -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-DHvrJouR.js";
|
|
2
|
+
import { J as t } from "../chunks/JoggingGizmoOrientation-CIvIAIeO.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-CTFYKzsU.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-DFnOYMAa.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 +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-BpTpRBgy.cjs");exports.RobotControlPanel=o.RobotControlPanel;exports.default=o.RobotControlPanel;
|
|
@@ -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-B4oV10Za.cjs"),t=require("../chunks/robotSafetyOf-Dxm6s7Pp.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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as n,
|
|
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-EzcT9g07.js";
|
|
2
|
+
import { r as s } from "../chunks/robotSafetyOf-DuKKma1_.js";
|
|
3
3
|
export {
|
|
4
4
|
n as ConnectionWarning,
|
|
5
5
|
r as RobotHeader,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-0ZJzXL50.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;
|
package/dist/RobotScene/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-
|
|
1
|
+
import { b as s, R as a, e as t, R, u as r } from "../chunks/RobotScene-DpFeFpnx.js";
|
|
2
2
|
import { R as n, u as i } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
|
|
3
3
|
export {
|
|
4
4
|
s as JoggingAxes,
|
package/dist/RobotView/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotView-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotView-BGYlAWj-.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;
|
package/dist/RobotView/index.js
CHANGED
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-Dxm6s7Pp.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
|
package/dist/SafetyBar/index.js
CHANGED