@wandelbots/wandelbots-js-react-components 3.0.0 → 3.1.0-pr.feat-more-robots-v2.410.697afdb
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 +1 -1
- package/dist/auth0-spa-js.production.esm-1QXzndwB.js +950 -0
- package/dist/auth0-spa-js.production.esm-1QXzndwB.js.map +1 -0
- package/dist/auth0-spa-js.production.esm-BLRAk7Yh.cjs +5 -0
- package/dist/auth0-spa-js.production.esm-BLRAk7Yh.cjs.map +1 -0
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +1 -1
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -1
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -1
- package/dist/components/3d-viewport/collider/ColliderCollection.d.ts +1 -1
- package/dist/components/3d-viewport/collider/ColliderCollection.d.ts.map +1 -1
- package/dist/components/3d-viewport/collider/ColliderElement.d.ts +1 -1
- package/dist/components/3d-viewport/collider/ColliderElement.d.ts.map +1 -1
- package/dist/components/3d-viewport/collider/CollisionSceneRenderer.d.ts +1 -1
- package/dist/components/3d-viewport/collider/CollisionSceneRenderer.d.ts.map +1 -1
- package/dist/components/3d-viewport/collider/colliderShapeToBufferGeometry.d.ts +1 -1
- package/dist/components/3d-viewport/collider/colliderShapeToBufferGeometry.d.ts.map +1 -1
- package/dist/components/ProgramStateIndicator.d.ts +3 -3
- package/dist/components/ProgramStateIndicator.d.ts.map +1 -1
- package/dist/components/RobotCard.d.ts +3 -4
- package/dist/components/RobotCard.d.ts.map +1 -1
- package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -1
- package/dist/components/jogging/JoggingPanel.d.ts +1 -1
- package/dist/components/jogging/JoggingPanel.d.ts.map +1 -1
- package/dist/components/jogging/JoggingStore.d.ts +5 -10
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/components/jogging/PoseCartesianValues.d.ts +2 -2
- package/dist/components/jogging/PoseCartesianValues.d.ts.map +1 -1
- package/dist/components/jogging/PoseJointValues.d.ts +2 -1
- package/dist/components/jogging/PoseJointValues.d.ts.map +1 -1
- package/dist/components/robots/DHRobot.d.ts.map +1 -1
- package/dist/components/robots/Robot.d.ts +1 -1
- package/dist/components/robots/Robot.d.ts.map +1 -1
- package/dist/components/robots/RobotAnimator.d.ts +2 -2
- package/dist/components/robots/RobotAnimator.d.ts.map +1 -1
- package/dist/components/robots/SupportedRobot.d.ts +3 -3
- package/dist/components/robots/SupportedRobot.d.ts.map +1 -1
- package/dist/components/robots/manufacturerHomePositions.d.ts +1 -1
- package/dist/components/robots/manufacturerHomePositions.d.ts.map +1 -1
- package/dist/components/safetyBar/OperationModeIndicator.d.ts +2 -2
- package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -1
- package/dist/components/safetyBar/SafetyBar.d.ts +3 -3
- package/dist/components/safetyBar/SafetyBar.d.ts.map +1 -1
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts +2 -2
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -1
- package/dist/components/utils/errorHandling.d.ts.map +1 -1
- package/dist/index.cjs +50 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +20431 -15783
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/3d-viewport/CoordinateSystemTransform.tsx +1 -1
- package/src/components/3d-viewport/SafetyZonesRenderer.tsx +2 -1
- package/src/components/3d-viewport/collider/ColliderCollection.tsx +1 -1
- package/src/components/3d-viewport/collider/ColliderElement.tsx +1 -1
- package/src/components/3d-viewport/collider/CollisionSceneRenderer.tsx +1 -1
- package/src/components/3d-viewport/collider/colliderShapeToBufferGeometry.ts +1 -1
- package/src/components/ProgramStateIndicator.tsx +6 -3
- package/src/components/RobotCard.tsx +7 -4
- package/src/components/jogging/JoggingCartesianTab.tsx +11 -13
- package/src/components/jogging/JoggingJointLimitDetector.tsx +2 -2
- package/src/components/jogging/JoggingJointTab.tsx +3 -4
- package/src/components/jogging/JoggingPanel.tsx +3 -6
- package/src/components/jogging/JoggingStore.ts +39 -66
- package/src/components/jogging/PoseCartesianValues.tsx +4 -3
- package/src/components/jogging/PoseJointValues.tsx +4 -3
- package/src/components/robots/DHRobot.tsx +3 -2
- package/src/components/robots/Robot.tsx +1 -1
- package/src/components/robots/RobotAnimator.test.tsx +22 -7
- package/src/components/robots/RobotAnimator.tsx +13 -8
- package/src/components/robots/SupportedRobot.tsx +6 -3
- package/src/components/robots/manufacturerHomePositions.ts +1 -1
- package/src/components/safetyBar/OperationModeIndicator.tsx +2 -2
- package/src/components/safetyBar/SafetyBar.tsx +6 -3
- package/src/components/safetyBar/SafetyStateIndicator.tsx +2 -2
- package/src/components/utils/errorHandling.ts +0 -4
- package/src/i18n/locales/de/translations.json +0 -3
- package/src/i18n/locales/en/translations.json +0 -3
- package/dist/auth0-spa-js.production.esm-Bb4L9JDU.js +0 -1423
- package/dist/auth0-spa-js.production.esm-Bb4L9JDU.js.map +0 -1
- package/dist/auth0-spa-js.production.esm-CEI5Uihg.cjs +0 -5
- package/dist/auth0-spa-js.production.esm-CEI5Uihg.cjs.map +0 -1
- package/dist/components/jogging/JoggingBlocked.d.ts +0 -7
- package/dist/components/jogging/JoggingBlocked.d.ts.map +0 -1
- package/dist/components/utils/errorHandling.test.d.ts +0 -2
- package/dist/components/utils/errorHandling.test.d.ts.map +0 -1
- package/dist/lib/ConnectedMotionGroup.d.ts +0 -90
- package/dist/lib/ConnectedMotionGroup.d.ts.map +0 -1
- package/dist/lib/JoggerConnection.d.ts +0 -113
- package/dist/lib/JoggerConnection.d.ts.map +0 -1
- package/dist/lib/JoggerConnection.test.d.ts +0 -2
- package/dist/lib/JoggerConnection.test.d.ts.map +0 -1
- package/dist/lib/MotionStreamConnection.d.ts +0 -24
- package/dist/lib/MotionStreamConnection.d.ts.map +0 -1
- package/dist/lib/MotionStreamConnection.test.d.ts +0 -2
- package/dist/lib/MotionStreamConnection.test.d.ts.map +0 -1
- package/dist/lib/motionStateUpdate.d.ts +0 -7
- package/dist/lib/motionStateUpdate.d.ts.map +0 -1
- package/dist/lib/motionStateUpdate.test.d.ts +0 -2
- package/dist/lib/motionStateUpdate.test.d.ts.map +0 -1
- package/src/components/jogging/JoggingBlocked.tsx +0 -37
- package/src/components/utils/errorHandling.test.ts +0 -41
- package/src/lib/ConnectedMotionGroup.ts +0 -444
- package/src/lib/JoggerConnection.test.ts +0 -120
- package/src/lib/JoggerConnection.ts +0 -674
- package/src/lib/MotionStreamConnection.test.ts +0 -23
- package/src/lib/MotionStreamConnection.ts +0 -186
- package/src/lib/motionStateUpdate.test.ts +0 -28
- package/src/lib/motionStateUpdate.ts +0 -117
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ThreeElements } from "@react-three/fiber"
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
DHParameter,
|
|
4
|
+
MotionGroupStateResponse,
|
|
5
|
+
} from "@wandelbots/nova-api/v1"
|
|
3
6
|
import { Suspense, useCallback, useEffect, useState } from "react"
|
|
4
7
|
import { DHRobot } from "./DHRobot"
|
|
5
8
|
|
|
@@ -13,12 +16,12 @@ import { applyGhostStyle, removeGhostStyle } from "./ghostStyle"
|
|
|
13
16
|
import { defaultGetModel } from "./robotModelLogic"
|
|
14
17
|
|
|
15
18
|
export type DHRobotProps = {
|
|
16
|
-
rapidlyChangingMotionState:
|
|
19
|
+
rapidlyChangingMotionState: MotionGroupStateResponse
|
|
17
20
|
dhParameters: Array<DHParameter>
|
|
18
21
|
} & ThreeElements["group"]
|
|
19
22
|
|
|
20
23
|
export type SupportedRobotProps = {
|
|
21
|
-
rapidlyChangingMotionState:
|
|
24
|
+
rapidlyChangingMotionState: MotionGroupStateResponse
|
|
22
25
|
modelFromController: string
|
|
23
26
|
dhParameters: DHParameter[]
|
|
24
27
|
flangeRef?: React.Ref<THREE.Group>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTheme, type PopoverOrigin } from "@mui/material"
|
|
2
|
-
import type {
|
|
2
|
+
import type { RobotControllerStateOperationModeEnum } from "@wandelbots/nova-js/v1"
|
|
3
3
|
import { observer } from "mobx-react-lite"
|
|
4
4
|
import { Trans, useTranslation } from "react-i18next"
|
|
5
5
|
import OperationModeAutomaticIcon from "./icons/operation-mode-automatic.svg"
|
|
@@ -8,7 +8,7 @@ import OperationModeManualIcon from "./icons/operation-mode-manual.svg"
|
|
|
8
8
|
import { IndicatorWithExplanation } from "./IndicatorWithExplanation"
|
|
9
9
|
|
|
10
10
|
interface OperationModeIndicatorProps {
|
|
11
|
-
operationMode:
|
|
11
|
+
operationMode: RobotControllerStateOperationModeEnum
|
|
12
12
|
anchorOrigin?: PopoverOrigin
|
|
13
13
|
transformOrigin?: PopoverOrigin
|
|
14
14
|
compact: boolean
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Divider, Stack, type PopoverOrigin } from "@mui/material"
|
|
2
|
-
import type {
|
|
2
|
+
import type {
|
|
3
|
+
RobotControllerStateOperationModeEnum,
|
|
4
|
+
RobotControllerStateSafetyStateEnum,
|
|
5
|
+
} from "@wandelbots/nova-js/v1"
|
|
3
6
|
import { observer } from "mobx-react-lite"
|
|
4
7
|
import { externalizeComponent } from "../../externalizeComponent"
|
|
5
8
|
import { ControllerTypeIndicator } from "./ControllerTypeIndicator"
|
|
@@ -9,8 +12,8 @@ import { SafetyStateIndicator } from "./SafetyStateIndicator"
|
|
|
9
12
|
export interface SafetyBarProps {
|
|
10
13
|
isVirtual: boolean
|
|
11
14
|
motionGroupId: string
|
|
12
|
-
operationMode:
|
|
13
|
-
safetyState:
|
|
15
|
+
operationMode: RobotControllerStateOperationModeEnum
|
|
16
|
+
safetyState: RobotControllerStateSafetyStateEnum
|
|
14
17
|
anchorOrigin?: PopoverOrigin
|
|
15
18
|
transformOrigin?: PopoverOrigin
|
|
16
19
|
compact?: boolean
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTheme, type PopoverOrigin } from "@mui/material"
|
|
2
|
-
import type {
|
|
2
|
+
import type { RobotControllerStateSafetyStateEnum } from "@wandelbots/nova-js/v1"
|
|
3
3
|
import { observer } from "mobx-react-lite"
|
|
4
4
|
import { Trans, useTranslation } from "react-i18next"
|
|
5
5
|
import { assertUnreachable } from "../utils/errorHandling"
|
|
@@ -11,7 +11,7 @@ import SafetyStateStopIcon from "./icons/safety-state-stop.svg"
|
|
|
11
11
|
import { IndicatorWithExplanation } from "./IndicatorWithExplanation"
|
|
12
12
|
|
|
13
13
|
interface SafetyStateIndicatorProps {
|
|
14
|
-
safetyState:
|
|
14
|
+
safetyState: RobotControllerStateSafetyStateEnum
|
|
15
15
|
anchorOrigin?: PopoverOrigin
|
|
16
16
|
transformOrigin?: PopoverOrigin
|
|
17
17
|
compact: boolean
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { AxiosError } from "axios"
|
|
2
2
|
import { tryStringifyJson } from "./converters"
|
|
3
3
|
|
|
4
|
-
// Please note: These helper functions also exist in nova.js
|
|
5
|
-
// (with slightly different formatting), and will be unified
|
|
6
|
-
// at some point in the future.
|
|
7
|
-
|
|
8
4
|
export function delay(ms: number) {
|
|
9
5
|
return new Promise((resolve) => setTimeout(resolve, ms))
|
|
10
6
|
}
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
"Jogging.Velocity.lb": "Geschwindigkeit",
|
|
5
5
|
"General.degree.variable": "{{amount}}°",
|
|
6
6
|
"General.mm.variable": "{{amount}} mm",
|
|
7
|
-
"Jogging.Blocked.ti": "Verbindung blockiert",
|
|
8
|
-
"Jogging.Blocked.lb": "Ein anderer Client kontrolliert das Jogging.",
|
|
9
|
-
"Jogging.Blocked.Reenable.bt": "Neu verbinden",
|
|
10
7
|
"Jogging.Cartesian.MotionType.lb": "Bewegungstyp",
|
|
11
8
|
"Jogging.Cartesian.Translation.bt": "Translation",
|
|
12
9
|
"Jogging.Cartesian.Rotation.bt": "Rotation",
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
"Jogging.Velocity.lb": "Velocity",
|
|
5
5
|
"General.degree.variable": "{{amount}}°",
|
|
6
6
|
"General.mm.variable": "{{amount}} mm",
|
|
7
|
-
"Jogging.Blocked.ti": "Connection blocked",
|
|
8
|
-
"Jogging.Blocked.lb": "Another client is currently controlling the jogging.",
|
|
9
|
-
"Jogging.Blocked.Reenable.bt": "Reconnect",
|
|
10
7
|
"Jogging.Cartesian.MotionType.lb": "Motion type",
|
|
11
8
|
"Jogging.Cartesian.Translation.bt": "Translation",
|
|
12
9
|
"Jogging.Cartesian.Rotation.bt": "Rotation",
|