@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.9fadf2c → 6.4.0-pr.revamp.667.a961def
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 +84 -13
- package/dist/3d.cjs +1 -1
- package/dist/3d.d.ts +12 -1
- package/dist/3d.js +43 -24
- package/dist/CurrentPose/index.cjs +1 -0
- package/dist/CurrentPose/index.d.ts +3 -0
- package/dist/CurrentPose/index.js +9 -0
- 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 -0
- package/dist/RobotControl/index.d.ts +3 -0
- package/dist/RobotControl/index.js +9 -0
- 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.d.ts +4 -0
- package/dist/RobotHeader/index.js +8 -3
- 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/index.cjs +1 -1
- package/dist/SafetyBar/index.d.ts +1 -0
- package/dist/SafetyBar/index.js +4 -3
- package/dist/chunks/ConnectedMotionGroup-CV-9JcMR.cjs +3 -0
- package/dist/chunks/ConnectedMotionGroup-DRZePyKr.js +1824 -0
- package/dist/chunks/CurrentPose-B2k1YoBx.cjs +1 -0
- package/dist/chunks/CurrentPose-CMkPnaXN.js +52 -0
- package/dist/chunks/CurrentPoseBar-C4wB482_.cjs +1 -0
- package/dist/chunks/{CurrentPoseBar-zTZi68tY.js → CurrentPoseBar-GhVif6kH.js} +9 -8
- package/dist/chunks/{JoggingButtons-CbL-5LMK.cjs → JoggingButtons-CDs_NWPT.cjs} +1 -1
- package/dist/chunks/{JoggingButtons-CXaozFVz.js → JoggingButtons-dR1m8I9M.js} +2 -2
- package/dist/chunks/JoggingGizmo-B84rMNKl.cjs +1 -0
- package/dist/chunks/JoggingGizmo-CZagy8VY.js +847 -0
- package/dist/chunks/{JoggingGizmoOrientation-dzned4f4.cjs → JoggingGizmoOrientation-BrI3aOMk.cjs} +1 -1
- package/dist/chunks/{JoggingGizmoOrientation-x_crT_64.js → JoggingGizmoOrientation-C0Ip0s33.js} +1 -1
- package/dist/chunks/JoggingJointSlider-DYjAzQZq.js +378 -0
- package/dist/chunks/JoggingJointSlider-xz725ItY.cjs +1 -0
- package/dist/chunks/JoggingRefusedError-2q4x_fDF.cjs +1 -0
- package/dist/chunks/JoggingRefusedError-M954yLQO.js +23 -0
- package/dist/chunks/Pose3-B_fLR-Wv.js +80 -0
- package/dist/chunks/Pose3-Ch4xVeXV.cjs +1 -0
- package/dist/chunks/PoseTransformer-C_EfofnJ.cjs +1 -0
- package/dist/chunks/PoseTransformer-MLAm4_Ad.js +364 -0
- package/dist/chunks/Robot-B1j3VKwk.js +428 -0
- package/dist/chunks/Robot-v8trFpVT.cjs +1 -0
- package/dist/chunks/RobotActivation-Bb0oNSBN.cjs +1 -0
- package/dist/chunks/RobotActivation-C0rrwpQZ.js +115 -0
- package/dist/chunks/RobotControl-C7c6MWyL.js +282 -0
- package/dist/chunks/RobotControl-CD9PKmrE.cjs +1 -0
- package/dist/chunks/RobotControlPanel-69F3kOBc.cjs +1 -0
- package/dist/chunks/{RobotControlPanel-BiLexAWI.js → RobotControlPanel-6HBz7oke.js} +253 -250
- package/dist/chunks/RobotScene-CldpfxRT.js +1255 -0
- package/dist/chunks/RobotScene-ztJZ4EKT.cjs +1 -0
- package/dist/chunks/RobotSessionProvider--AekyPqD.cjs +1 -0
- package/dist/chunks/RobotSessionProvider-TVaKGzqa.js +25 -0
- package/dist/chunks/RobotView-BTL3FAIE.js +158 -0
- package/dist/chunks/RobotView-wketM8bf.cjs +1 -0
- package/dist/chunks/coordSystemLabel-BThpFG9n.cjs +1 -0
- package/dist/chunks/coordSystemLabel-Bfy9MUsV.js +6 -0
- package/dist/chunks/externalizeComponent-BW1UV6Gh.cjs +2 -0
- package/dist/chunks/{externalizeComponent-_w2d1_pz.js → externalizeComponent-TgclPxwg.js} +34 -10
- 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-Br55rLAm.cjs +1 -0
- package/dist/chunks/loadRobotSession-CbIAb7KE.js +2721 -0
- package/dist/chunks/poseText-BXUaQWnK.cjs +1 -0
- package/dist/chunks/poseText-pg4cxE8R.js +41 -0
- package/dist/chunks/robotActivationOf-BKoP11GA.js +368 -0
- package/dist/chunks/robotActivationOf-vhmAEc3e.cjs +1 -0
- package/dist/chunks/{SafetyBar-Cuak4ffd.js → robotSafetyOf-BmZMcgc_.js} +45 -35
- package/dist/chunks/robotSafetyOf-CZBuhHgO.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/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/currentPoseBar/CurrentPose.d.ts +23 -0
- package/dist/components/currentPoseBar/useCurrentPoseProps.d.ts +16 -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 +127 -6
- package/dist/components/jogging/coordSystemLabel.d.ts +7 -0
- 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/HoldToMoveButton.d.ts +8 -7
- package/dist/components/robotControl/JogArea.d.ts +5 -2
- package/dist/components/robotControl/RobotControl.d.ts +23 -0
- package/dist/components/robotControl/poseText.d.ts +21 -5
- package/dist/components/robotControl/useRobotControlProps.d.ts +34 -0
- package/dist/components/robotHeader/robotActivationOf.d.ts +8 -0
- package/dist/components/robotHeader/robotSafetyOf.d.ts +11 -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/robotSession/RobotSessionProvider.d.ts +13 -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/LinearAxis.d.ts +12 -11
- package/dist/components/robots/LinearAxisAnimator.d.ts +1 -1
- package/dist/components/robots/Robot.d.ts +26 -9
- 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 +51 -0
- 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 +21 -1
- package/dist/core.js +76 -39
- package/dist/index.cjs +1 -1
- package/dist/index.js +121 -65
- package/dist/lib/ConnectedMotionGroup.d.ts +5 -1
- package/dist/lib/ControllerStateStream.d.ts +125 -0
- package/dist/lib/controllerStateSource.d.ts +37 -0
- package/dist/lib/incrementalCartesianMotion.d.ts +2 -2
- package/dist/lib/motionGroupModelResources.d.ts +1 -0
- package/dist/lib/nats/natsControllerStateSource.d.ts +27 -0
- package/dist/lib/poseMath.d.ts +51 -0
- package/dist/lib/robotSession/RobotActivation.d.ts +59 -0
- package/dist/lib/robotSession/RobotDescription.d.ts +84 -0
- package/dist/lib/robotSession/RobotLiveState.d.ts +56 -0
- package/dist/lib/robotSession/RobotLoadProgress.d.ts +72 -0
- package/dist/lib/robotSession/RobotSafety.d.ts +59 -0
- package/dist/lib/robotSession/RobotSession.d.ts +96 -0
- package/dist/lib/robotSession/RobotTargetPose.d.ts +78 -0
- package/dist/lib/robotSession/loadRobotResources.d.ts +46 -0
- package/dist/lib/robotSession/loadRobotSession.d.ts +81 -0
- package/dist/lib/robotSession/robotPose.d.ts +28 -0
- package/dist/nats.cjs +1 -0
- package/dist/nats.d.ts +4 -0
- package/dist/nats.js +131 -0
- package/dist/session.cjs +1 -0
- package/dist/session.d.ts +22 -0
- package/dist/session.js +44 -0
- package/package.json +16 -1
- package/dist/chunks/CurrentPoseBar-CyHUWmjM.cjs +0 -1
- package/dist/chunks/JoggingGizmo-DGbFLWgT.cjs +0 -1
- package/dist/chunks/JoggingGizmo-SuS9MmL7.js +0 -810
- package/dist/chunks/JoggingJointSlider-CZ-k6XCa.js +0 -406
- package/dist/chunks/JoggingJointSlider-R3_A9Ppj.cjs +0 -1
- package/dist/chunks/Pose3-DIyg-aZA.cjs +0 -1
- package/dist/chunks/Pose3-pocKPrHN.js +0 -292
- package/dist/chunks/Robot-BeTWgowU.cjs +0 -1
- package/dist/chunks/Robot-D4XbngYI.js +0 -1272
- package/dist/chunks/RobotControlPanel-BXtBHEe9.cjs +0 -1
- package/dist/chunks/RobotHeader-BZci9ahT.js +0 -244
- package/dist/chunks/RobotHeader-CqK0700U.cjs +0 -1
- package/dist/chunks/SafetyBar-Bbg-o8h9.cjs +0 -1
- package/dist/chunks/TrajectoryExecutionStore-BlmjJeEw.cjs +0 -3
- package/dist/chunks/TrajectoryExecutionStore-DG2Ztg9g.js +0 -3371
- package/dist/chunks/converters-C8I_A_tA.cjs +0 -1
- package/dist/chunks/converters-DpNB_WNQ.js +0 -39
- package/dist/chunks/externalizeComponent-BdxGBLIv.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/useEveryFrame-G_-ma1nC.js +0 -142
- package/dist/chunks/useEveryFrame-dmPPTKtT.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,8 +68,10 @@ 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.
|
|
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.
|
|
71
75
|
- **`/SafetyBar`** — Only `SafetyBar` (also as the default export).
|
|
72
76
|
- **`/JoggingGizmo`** — Only `JoggingGizmo` (also as the default export) and `JoggingGizmoOrientation`. Requires in addition three and @react-three/fiber.
|
|
73
77
|
- **`/JoggingButtons`** — Only `JoggingButtons` (also as the default export). No 3D packages needed.
|
|
@@ -80,6 +84,21 @@ A component's own entry point brings only what that component needs, e.g. `/Jogg
|
|
|
80
84
|
import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/JoggingJointSlider"
|
|
81
85
|
```
|
|
82
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
|
+
|
|
83
102
|
### Peer dependencies
|
|
84
103
|
|
|
85
104
|
| Package | Version |
|
|
@@ -90,10 +109,11 @@ import JoggingJointSlider from "@wandelbots/wandelbots-js-react-components/Joggi
|
|
|
90
109
|
| `@wandelbots/mui` | ^2 |
|
|
91
110
|
| `mobx` | ^6.13.6 |
|
|
92
111
|
| `mobx-react-lite` | ^4.1.0 |
|
|
93
|
-
| `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | >=0.182 |
|
|
112
|
+
| `three` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`, and `/core` until `ConnectedMotionGroup` is removed) | >=0.182 |
|
|
94
113
|
| `three-stdlib` (only `/3d`) | >=2 |
|
|
95
114
|
| `@react-three/fiber` (only `/3d`, `/JoggingGizmo`, `/RobotControlPanel`) | ^9 |
|
|
96
115
|
| `@react-three/drei` (only `/3d`) | ^10 |
|
|
116
|
+
| `nats.ws` (only `/nats`) | ^1.30.3 |
|
|
97
117
|
|
|
98
118
|
These packages are peer dependencies because the app and the library must use the same copy: React, the MUI theme of the app, the MobX stores that the app reads with its own `observer`, and the `<Canvas>` of React Three Fiber.
|
|
99
119
|
|
|
@@ -130,6 +150,53 @@ These packages are peer dependencies because the app and the library must use th
|
|
|
130
150
|
- **Look:** `AppHeader` and `LoadingCover` use the styles of the design system, so they look a little different.
|
|
131
151
|
- **Release asset:** `no-draco-models.zip` is gone. The models come from the NOVA API (since 4.0.0).
|
|
132
152
|
|
|
153
|
+
### From ConnectedMotionGroup to RobotSession
|
|
154
|
+
|
|
155
|
+
`ConnectedMotionGroup` is deprecated. `RobotSession` replaces it: one robot of a cell, loaded and connected, with its description, live state, safety, activation, jogging and Move to. `ConnectedMotionGroup` keeps working until a later major version removes it, and `Robot` and `LinearAxis` still take it.
|
|
156
|
+
|
|
157
|
+
```tsx
|
|
158
|
+
// Before
|
|
159
|
+
const motionGroup = await ConnectedMotionGroup.connect(nova, "0@ur5e", { cellId })
|
|
160
|
+
<Robot connectedMotionGroup={motionGroup} />
|
|
161
|
+
motionGroup.dispose()
|
|
162
|
+
|
|
163
|
+
// After
|
|
164
|
+
const load = loadRobotSession(nova, "0@ur5e", { cellId })
|
|
165
|
+
const session = await load.ready
|
|
166
|
+
<Robot motionGroup={robotModelOf(session)} />
|
|
167
|
+
load.dispose()
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
What changes besides the names:
|
|
171
|
+
|
|
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.
|
|
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
|
+
- **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`.
|
|
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`.
|
|
176
|
+
- **Several robots:** load one session per robot instead of `ConnectedMotionGroup.connectMultiple`.
|
|
177
|
+
|
|
178
|
+
| `ConnectedMotionGroup` | `RobotSession` |
|
|
179
|
+
| --- | --- |
|
|
180
|
+
| `motionGroupId`, `controllerId` | `motionGroupId`, `controllerId` (and `cellId`) |
|
|
181
|
+
| `modelFromController` | `description.motionGroupModel` |
|
|
182
|
+
| `dhParameters` | `description.dhParameters` |
|
|
183
|
+
| `safetyZones` | `description.safetyZones` |
|
|
184
|
+
| `description` | `description.motionGroupDescription` |
|
|
185
|
+
| `isVirtual` | `description.isVirtual` |
|
|
186
|
+
| `tcps` | `description.tcps` (id and name), `description.tcpOffsetsById` (position and orientation) |
|
|
187
|
+
| `joints` | One per joint: `description.dhParameters`, or the joint limits in `description.jointLimits` |
|
|
188
|
+
| `mountingPosition`, `mountingQuaternion` | `robotModelOf(session)` of `/3d` (metres and a quaternion), or `description.mounting` (mm and a rotation vector) |
|
|
189
|
+
| `rapidlyChangingMotionState` | `state.rapidlyChangingMotionState` |
|
|
190
|
+
| `controllerState` | `state.controllerState` |
|
|
191
|
+
| `initialMotionState`, `controller`, `motionGroup`, `motionStateSocket` | No replacement: the session keeps its connections. Read `state` instead. |
|
|
192
|
+
| `activationState` | `activation.state` |
|
|
193
|
+
| `activate()`, `deactivate()`, `toggleActivation()` | `activation.activate()`, `activation.deactivate()`, `activation.toggle()` |
|
|
194
|
+
| `isEstopActive`, `isMoveableSafetyState`, `isMoveableOperationMode`, `canBeMoved` | `safety.isEstopActive`, `safety.isMoveableSafetyState`, `safety.isMoveableOperationMode`, `safety.canBeMoved`; why the robot may not move: `safety.notMoveableReason` |
|
|
195
|
+
| `joggingVelocity`, `joggingVelocityRads`, `setJoggingVelocity()` | The velocities of `jogging`: `rotationVelocityDegPerSec`, `rotationVelocityRadsPerSec`, `translationVelocityMmPerSec`, `setVelocityFromSlider()` |
|
|
196
|
+
| `connectedJoggingSocket`, `planData` | No replacement (unused) |
|
|
197
|
+
| `dispose()` | `load.dispose()`, or `session.dispose()` |
|
|
198
|
+
| `<Robot connectedMotionGroup={…}>`, `<LinearAxis connectedMotionGroup={…}>` | `<Robot motionGroup={robotModelOf(session)}>`, the same for `LinearAxis`. `motionGroup` also takes a `ConnectedMotionGroup`, or the app's own data (see `RobotModelSource`). |
|
|
199
|
+
|
|
133
200
|
### 4.x Core Changes
|
|
134
201
|
|
|
135
202
|
Robot data is now fetched from a running nova instance. This eliminates the need of shipping every react application with the robot data attached.
|
|
@@ -173,7 +240,7 @@ Manual robot control interfaces.
|
|
|
173
240
|
- **JoggingCartesianAxisControl** - Single-axis cartesian movement
|
|
174
241
|
- **JoggingJointValueControl** - Individual joint controls
|
|
175
242
|
- **VelocitySlider** (and **VelocitySliderLabel**) - Speed adjustment interface
|
|
176
|
-
- **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.
|
|
177
244
|
|
|
178
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.
|
|
179
246
|
|
|
@@ -182,7 +249,9 @@ Manual robot control interfaces.
|
|
|
182
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.
|
|
183
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.
|
|
184
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.
|
|
185
|
-
- 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.
|
|
186
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.
|
|
187
256
|
|
|
188
257
|
```tsx
|
|
@@ -206,7 +275,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
206
275
|
/>
|
|
207
276
|
```
|
|
208
277
|
|
|
209
|
-
**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.
|
|
210
279
|
|
|
211
280
|
```tsx
|
|
212
281
|
<JoggingButtons
|
|
@@ -220,7 +289,7 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
220
289
|
/>
|
|
221
290
|
```
|
|
222
291
|
|
|
223
|
-
**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.
|
|
224
293
|
|
|
225
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.
|
|
226
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.
|
|
@@ -264,7 +333,7 @@ const [active, setActive] = useState<number | null>(null)
|
|
|
264
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.
|
|
265
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.
|
|
266
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.
|
|
267
|
-
- `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). Then Reset shows. 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.
|
|
268
337
|
|
|
269
338
|
```tsx
|
|
270
339
|
const orientation = useRef<Quaternion | null>(null)
|
|
@@ -313,12 +382,13 @@ const orientation = useRef<Quaternion | null>(null)
|
|
|
313
382
|
|
|
314
383
|
**Robot** - Real-time 3D robot rendering
|
|
315
384
|
|
|
316
|
-
-
|
|
385
|
+
- Takes the robot as plain data (`RobotModelSource`): `robotModelOf(session)` of a `RobotSession`, a `ConnectedMotionGroup`, or the app's own data
|
|
386
|
+
- Live pose updates from its motion state, at its mounting
|
|
317
387
|
- The model of the motion group from the NOVA instance (`defaultGetModel`)
|
|
318
388
|
|
|
319
389
|
**LinearAxis** - The same for a linear axis
|
|
320
390
|
|
|
321
|
-
**SupportedRobot**, **SupportedLinearAxis** and **MotionGroupVisualizer** - The same
|
|
391
|
+
**SupportedRobot**, **SupportedLinearAxis** and **MotionGroupVisualizer** - The same with single props: they take a motion state, the model name and the DH parameters. `MotionGroupVisualizer` picks the robot or the linear axis. The `…Exact` variants show the pose without smoothing.
|
|
322
392
|
|
|
323
393
|
**SafetyZonesRenderer** - 3D safety visualization
|
|
324
394
|
|
|
@@ -353,7 +423,8 @@ Safety components for production environments.
|
|
|
353
423
|
|
|
354
424
|
### Logic
|
|
355
425
|
|
|
356
|
-
- **
|
|
426
|
+
- **loadRobotSession** and **RobotSession** - A robot of a cell, loaded and connected: its description, live state, safety, activation, jogging and Move to
|
|
427
|
+
- **ConnectedMotionGroup** (deprecated, see [From ConnectedMotionGroup to RobotSession](#from-connectedmotiongroup-to-robotsession)) - A motion group with its live motion state, safety state and operation mode
|
|
357
428
|
- **MotionStreamConnection** and **JoggerConnection** - The motion state stream and the jogging connection of a motion group
|
|
358
429
|
- **jointValuesEqual**, **poseEqual**, **tcpMotionEqual**, **unwrapRotationVector** - Helpers for the motion state
|
|
359
430
|
- **ValueInterpolator**, **useInterpolation**, **useSmoothedMotionState** - Smooth joint values for the 3D view
|
|
@@ -365,9 +436,9 @@ Safety components for production environments.
|
|
|
365
436
|
|
|
366
437
|
Components integrate with the Wandelbots Nova ecosystem:
|
|
367
438
|
|
|
368
|
-
- **NovaConnection** - Where the library connects to NOVA (`nova` of `JoggingPanel`, `ConnectedMotionGroup.connect`, `MotionStreamConnection.open`, `JoggerConnection.open`, `defaultGetModel`), it takes a `NovaConnection`: the URL of the instance, or the NOVA client of the app (`Nova` of `@wandelbots/nova-js`, of any version). The library reads only the URL and the access token of the client, and connects with its own client (nova-js 4.13.0). So the app configures the connection in one place.
|
|
439
|
+
- **NovaConnection** - Where the library connects to NOVA (`nova` of `JoggingPanel`, `loadRobotSession`, `ConnectedMotionGroup.connect`, `MotionStreamConnection.open`, `JoggerConnection.open`, `defaultGetModel`), it takes a `NovaConnection`: the URL of the instance, or the NOVA client of the app (`Nova` of `@wandelbots/nova-js`, of any version). The library reads only the URL and the access token of the client, and connects with its own client (nova-js 4.13.0). So the app configures the connection in one place.
|
|
369
440
|
- **Real-time Updates** - WebSocket connections for live robot state updates
|
|
370
|
-
- **Motion Group Management** -
|
|
441
|
+
- **Motion Group Management** - One `RobotSession` per robot (`ConnectedMotionGroup` in earlier versions)
|
|
371
442
|
- **State Synchronization** - Automatic state management with MobX reactivity
|
|
372
443
|
|
|
373
444
|
### Technical Foundation
|
package/dist/3d.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/Robot-v8trFpVT.cjs"),o=require("./chunks/RobotScene-ztJZ4EKT.cjs"),a=require("./chunks/JoggingGizmo-B84rMNKl.cjs"),s=require("./chunks/JoggingGizmoOrientation-BrI3aOMk.cjs"),u=require("./chunks/RobotControlPanel-69F3kOBc.cjs"),r=require("./chunks/RobotControl-CD9PKmrE.cjs"),n=require("./chunks/RobotView-wketM8bf.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
|
@@ -8,10 +8,21 @@ export { JoggingGizmoOrientation, type JoggingGizmoOrientationProps, } from "./c
|
|
|
8
8
|
export type { JogAxis, JogDirection, JogHandle, } from "./components/jogging/jogHandle";
|
|
9
9
|
export type { JogControlsProps } from "./components/jogging/useJogControls";
|
|
10
10
|
export { type JogMotion, RobotControlPanel, type RobotControlIncrements, type RobotControlJogMode, type RobotControlJoint, type RobotControlJoints, type RobotControlMoveState, type RobotControlMoveTo, type RobotControlOption, type RobotControlPanelProps, type RobotControlPose, type RobotControlSelect, type RobotControlTab, type RobotControlVelocity, } from "./components/robotControl/RobotControlPanel";
|
|
11
|
+
export { RobotControl, type RobotControlProps, } from "./components/robotControl/RobotControl";
|
|
12
|
+
export { type RobotControlOptions, useRobotControlProps, } from "./components/robotControl/useRobotControlProps";
|
|
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";
|
|
11
20
|
export * from "./components/robots/LinearAxis";
|
|
12
21
|
export * from "./components/robots/MotionGroupVisualizer";
|
|
13
22
|
export * from "./components/robots/Robot";
|
|
14
|
-
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";
|
|
25
|
+
export { type RobotModelSource, robotModelOf, } from "./components/robots/robotModelSource";
|
|
15
26
|
export * from "./components/robots/SupportedLinearAxis";
|
|
16
27
|
export * from "./components/robots/SupportedRobot";
|
|
17
28
|
export { ValueInterpolator, type InterpolationOptions, } from "./components/utils/interpolation";
|
package/dist/3d.js
CHANGED
|
@@ -1,29 +1,48 @@
|
|
|
1
|
-
import { C as a, J as t, L as r,
|
|
2
|
-
import { J as c } from "./chunks/
|
|
3
|
-
import { J as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { C as a, J as t, L as r, R as s, T as n } from "./chunks/Robot-B1j3VKwk.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-CldpfxRT.js";
|
|
3
|
+
import { J as N } from "./chunks/JoggingGizmo-CZagy8VY.js";
|
|
4
|
+
import { J as V } from "./chunks/JoggingGizmoOrientation-C0Ip0s33.js";
|
|
5
|
+
import { R as C } from "./chunks/RobotControlPanel-6HBz7oke.js";
|
|
6
|
+
import { R as z, u as j } from "./chunks/RobotControl-C7c6MWyL.js";
|
|
7
|
+
import { R as D, a as U } from "./chunks/RobotView-BTL3FAIE.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";
|
|
6
10
|
export {
|
|
7
11
|
a as CollisionSceneRenderer,
|
|
8
|
-
|
|
9
|
-
|
|
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,
|
|
10
18
|
t as JointLimitGizmo,
|
|
11
19
|
r as LinearAxis,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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,
|
|
27
|
+
z as RobotControl,
|
|
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
|
|
29
48
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/CurrentPose-B2k1YoBx.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;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { CurrentPose, CurrentPose as default, type CurrentPoseProps, } from "../components/currentPoseBar/CurrentPose";
|
|
2
|
+
export { useCurrentPoseProps } from "../components/currentPoseBar/useCurrentPoseProps";
|
|
3
|
+
export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { C as e, C as r, u as t } from "../chunks/CurrentPose-CMkPnaXN.js";
|
|
2
|
+
import { R as a, u as n } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
|
|
3
|
+
export {
|
|
4
|
+
e as CurrentPose,
|
|
5
|
+
a as RobotSessionProvider,
|
|
6
|
+
r as default,
|
|
7
|
+
t as useCurrentPoseProps,
|
|
8
|
+
n as useRobotSession
|
|
9
|
+
};
|
|
@@ -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-C4wB482_.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-CDs_NWPT.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-B84rMNKl.cjs"),o=require("../chunks/JoggingGizmoOrientation-BrI3aOMk.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-CZagy8VY.js";
|
|
2
|
+
import { J as t } from "../chunks/JoggingGizmoOrientation-C0Ip0s33.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-xz725ItY.cjs");exports.JoggingJointSlider=e.JoggingJointSlider;exports.default=e.JoggingJointSlider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/RobotControl-CD9PKmrE.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;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { RobotControl, RobotControl as default, type RobotControlProps, } from "../components/robotControl/RobotControl";
|
|
2
|
+
export { type RobotControlOptions, useRobotControlProps, } from "../components/robotControl/useRobotControlProps";
|
|
3
|
+
export { RobotSessionProvider, useRobotSession, } from "../components/robotSession/RobotSessionProvider";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { R as r, R as t, u as e } from "../chunks/RobotControl-C7c6MWyL.js";
|
|
2
|
+
import { R as a, u } from "../chunks/RobotSessionProvider-TVaKGzqa.js";
|
|
3
|
+
export {
|
|
4
|
+
r as RobotControl,
|
|
5
|
+
a as RobotSessionProvider,
|
|
6
|
+
t as default,
|
|
7
|
+
e as useRobotControlProps,
|
|
8
|
+
u as useRobotSession
|
|
9
|
+
};
|
|
@@ -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-69F3kOBc.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
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../chunks/robotActivationOf-vhmAEc3e.cjs"),t=require("../chunks/robotSafetyOf-CZBuhHgO.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,4 +1,8 @@
|
|
|
1
1
|
export type { AppItem } from "../components/AppHeader";
|
|
2
2
|
export type { RobotControlOption, RobotControlSelect, } from "../components/robotControl/RobotControlPanel";
|
|
3
3
|
export { RobotHeader, RobotHeader as default, type RobotHeaderActivation, type RobotHeaderActivationState, type RobotHeaderProps, } from "../components/robotHeader/RobotHeader";
|
|
4
|
+
export { robotActivationOf } from "../components/robotHeader/robotActivationOf";
|
|
5
|
+
export { robotSafetyOf } from "../components/robotHeader/robotSafetyOf";
|
|
4
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,5 +1,10 @@
|
|
|
1
|
-
import { R as
|
|
1
|
+
import { C as n, R as r, c as t, R as e, r as f } from "../chunks/robotActivationOf-BKoP11GA.js";
|
|
2
|
+
import { r as s } from "../chunks/robotSafetyOf-BmZMcgc_.js";
|
|
2
3
|
export {
|
|
3
|
-
|
|
4
|
-
r as
|
|
4
|
+
n as ConnectionWarning,
|
|
5
|
+
r as RobotHeader,
|
|
6
|
+
t as connectionWarningOf,
|
|
7
|
+
e as default,
|
|
8
|
+
f as robotActivationOf,
|
|
9
|
+
s as robotSafetyOf
|
|
5
10
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/RobotScene-ztJZ4EKT.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-CldpfxRT.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-wketM8bf.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-BTL3FAIE.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
|
+
};
|
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/
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../chunks/robotSafetyOf-CZBuhHgO.cjs");exports.SafetyBar=e.SafetyBar;exports.default=e.SafetyBar;exports.robotSafetyOf=e.robotSafetyOf;
|
package/dist/SafetyBar/index.js
CHANGED