@wandelbots/wandelbots-js-react-components 2.10.3-pr.react-19-upgrade.262.338485b → 2.11.0-pr.feat-collision-scene.263.31aff0c
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/dist/Setup.d.ts +12 -0
- package/dist/Setup.d.ts.map +1 -0
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +11 -0
- package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts.map +1 -0
- package/dist/components/3d-viewport/PresetEnvironment.d.ts +7 -0
- package/dist/components/3d-viewport/PresetEnvironment.d.ts.map +1 -0
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts +7 -0
- package/dist/components/3d-viewport/SafetyZonesRenderer.d.ts.map +1 -0
- package/dist/components/3d-viewport/TrajectoryRenderer.d.ts +6 -0
- package/dist/components/3d-viewport/TrajectoryRenderer.d.ts.map +1 -0
- package/dist/components/3d-viewport/collider/ColliderCollection.d.ts +11 -0
- package/dist/components/3d-viewport/collider/ColliderCollection.d.ts.map +1 -0
- package/dist/components/3d-viewport/collider/ColliderElement.d.ts +10 -0
- package/dist/components/3d-viewport/collider/ColliderElement.d.ts.map +1 -0
- package/dist/components/3d-viewport/collider/CollisionMotionGroup.d.ts +12 -0
- package/dist/components/3d-viewport/collider/CollisionMotionGroup.d.ts.map +1 -0
- package/dist/components/3d-viewport/collider/CollisionScene.d.ts +10 -0
- package/dist/components/3d-viewport/collider/CollisionScene.d.ts.map +1 -0
- package/dist/components/3d-viewport/collider/ToolElement.d.ts +10 -0
- package/dist/components/3d-viewport/collider/ToolElement.d.ts.map +1 -0
- package/dist/components/3d-viewport/collider/colliderShapeToBufferGeometry.d.ts +4 -0
- package/dist/components/3d-viewport/collider/colliderShapeToBufferGeometry.d.ts.map +1 -0
- package/dist/components/ConsoleFilter.d.ts +2 -0
- package/dist/components/ConsoleFilter.d.ts.map +1 -0
- package/dist/components/CopyableText.d.ts +5 -0
- package/dist/components/CopyableText.d.ts.map +1 -0
- package/dist/components/LoadingCover.d.ts +10 -0
- package/dist/components/LoadingCover.d.ts.map +1 -0
- package/dist/components/SelectableFab.d.ts +7 -0
- package/dist/components/SelectableFab.d.ts.map +1 -0
- package/dist/components/ThemeSelect.d.ts +7 -0
- package/dist/components/ThemeSelect.d.ts.map +1 -0
- package/dist/components/TransparentOverlay.d.ts +4 -0
- package/dist/components/TransparentOverlay.d.ts.map +1 -0
- package/dist/components/VelocitySlider.d.ts +21 -0
- package/dist/components/VelocitySlider.d.ts.map +1 -0
- package/dist/components/experimental/utils/AdornedSelect.d.ts +8 -0
- package/dist/components/experimental/utils/AdornedSelect.d.ts.map +1 -0
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +20 -0
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts.map +1 -0
- package/dist/components/jogging/JoggingCartesianTab.d.ts +8 -0
- package/dist/components/jogging/JoggingCartesianTab.d.ts.map +1 -0
- package/dist/components/jogging/JoggingFreedriveTab.d.ts +2 -0
- package/dist/components/jogging/JoggingFreedriveTab.d.ts.map +1 -0
- package/dist/components/jogging/JoggingJointLimitDetector.d.ts +9 -0
- package/dist/components/jogging/JoggingJointLimitDetector.d.ts.map +1 -0
- package/dist/components/jogging/JoggingJointRotationControl.d.ts +15 -0
- package/dist/components/jogging/JoggingJointRotationControl.d.ts.map +1 -0
- package/dist/components/jogging/JoggingJointTab.d.ts +9 -0
- package/dist/components/jogging/JoggingJointTab.d.ts.map +1 -0
- package/dist/components/jogging/JoggingOptions.d.ts +7 -0
- package/dist/components/jogging/JoggingOptions.d.ts.map +1 -0
- package/dist/components/jogging/JoggingPanel.d.ts +29 -0
- package/dist/components/jogging/JoggingPanel.d.ts.map +1 -0
- package/dist/components/jogging/JoggingStore.d.ts +189 -0
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -0
- package/dist/components/jogging/JoggingToggleButtonGroup.d.ts +3 -0
- package/dist/components/jogging/JoggingToggleButtonGroup.d.ts.map +1 -0
- package/dist/components/jogging/JoggingVelocitySlider.d.ts +7 -0
- package/dist/components/jogging/JoggingVelocitySlider.d.ts.map +1 -0
- package/dist/components/jogging/PoseCartesianValues.d.ts +7 -0
- package/dist/components/jogging/PoseCartesianValues.d.ts.map +1 -0
- package/dist/components/jogging/PoseJointValues.d.ts +7 -0
- package/dist/components/jogging/PoseJointValues.d.ts.map +1 -0
- package/dist/components/modal/NoMotionGroupModal.d.ts +5 -0
- package/dist/components/modal/NoMotionGroupModal.d.ts.map +1 -0
- package/dist/components/robots/AxisConfig.d.ts +3 -0
- package/dist/components/robots/AxisConfig.d.ts.map +1 -0
- package/dist/components/robots/DHRobot.d.ts +3 -0
- package/dist/components/robots/DHRobot.d.ts.map +1 -0
- package/dist/components/robots/GenericRobot.d.ts +14 -0
- package/dist/components/robots/GenericRobot.d.ts.map +1 -0
- package/dist/components/robots/Robot.d.ts +22 -0
- package/dist/components/robots/Robot.d.ts.map +1 -0
- package/dist/components/robots/RobotAnimator.d.ts +12 -0
- package/dist/components/robots/RobotAnimator.d.ts.map +1 -0
- package/dist/components/robots/SupportedRobot.d.ts +18 -0
- package/dist/components/robots/SupportedRobot.d.ts.map +1 -0
- package/dist/components/robots/ghostStyle.d.ts +4 -0
- package/dist/components/robots/ghostStyle.d.ts.map +1 -0
- package/dist/components/robots/robotModelLogic.d.ts +25 -0
- package/dist/components/robots/robotModelLogic.d.ts.map +1 -0
- package/dist/components/safetyBar/ControllerTypeIndicator.d.ts +9 -0
- package/dist/components/safetyBar/ControllerTypeIndicator.d.ts.map +1 -0
- package/dist/components/safetyBar/IndicatorWithExplanation.d.ts +15 -0
- package/dist/components/safetyBar/IndicatorWithExplanation.d.ts.map +1 -0
- package/dist/components/safetyBar/OperationModeIndicator.d.ts +9 -0
- package/dist/components/safetyBar/OperationModeIndicator.d.ts.map +1 -0
- package/dist/components/safetyBar/SafetyBar.d.ts +11 -0
- package/dist/components/safetyBar/SafetyBar.d.ts.map +1 -0
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts +9 -0
- package/dist/components/safetyBar/SafetyStateIndicator.d.ts.map +1 -0
- package/dist/components/utils/converters.d.ts +5 -0
- package/dist/components/utils/converters.d.ts.map +1 -0
- package/dist/components/utils/dhParameter.d.ts +7 -0
- package/dist/components/utils/dhParameter.d.ts.map +1 -0
- package/dist/components/utils/errorHandling.d.ts +5 -0
- package/dist/components/utils/errorHandling.d.ts.map +1 -0
- package/dist/components/utils/hooks.d.ts +22 -0
- package/dist/components/utils/hooks.d.ts.map +1 -0
- package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts +16 -0
- package/dist/components/wandelscript-editor/WandelscriptEditor.d.ts.map +1 -0
- package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts +45 -0
- package/dist/components/wandelscript-editor/wandelscript.tmLanguage.d.ts.map +1 -0
- package/dist/externalizeComponent.d.ts +7 -0
- package/dist/externalizeComponent.d.ts.map +1 -0
- package/dist/i18n/config.d.ts +4 -0
- package/dist/i18n/config.d.ts.map +1 -0
- package/dist/icons/index.d.ts +7 -0
- package/dist/icons/index.d.ts.map +1 -0
- package/dist/index.cjs +40 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4776 -4173
- package/dist/index.js.map +1 -1
- package/dist/themes/createDarkTheme.d.ts +3 -0
- package/dist/themes/createDarkTheme.d.ts.map +1 -0
- package/dist/themes/createLightTheme.d.ts +2 -0
- package/dist/themes/createLightTheme.d.ts.map +1 -0
- package/dist/themes/themeTypes.d.ts +83 -0
- package/dist/themes/themeTypes.d.ts.map +1 -0
- package/dist/themes/theming.d.ts +7 -0
- package/dist/themes/theming.d.ts.map +1 -0
- package/package.json +29 -38
- package/src/components/3d-viewport/collider/ColliderCollection.tsx +34 -0
- package/src/components/3d-viewport/collider/ColliderElement.tsx +32 -0
- package/src/components/3d-viewport/collider/CollisionMotionGroup.tsx +80 -0
- package/src/components/3d-viewport/collider/CollisionScene.tsx +91 -0
- package/src/components/3d-viewport/collider/ToolElement.tsx +17 -0
- package/src/components/3d-viewport/collider/colliderShapeToBufferGeometry.ts +36 -0
- package/src/components/robots/DHRobot.tsx +22 -44
- package/src/components/safetyBar/ControllerTypeIndicator.tsx +59 -0
- package/src/components/safetyBar/IndicatorWithExplanation.tsx +117 -0
- package/src/components/safetyBar/OperationModeIndicator.tsx +76 -0
- package/src/components/safetyBar/SafetyBar.tsx +43 -0
- package/src/components/safetyBar/SafetyStateIndicator.tsx +131 -0
- package/src/components/safetyBar/icons/controller-type-physical.svg +1 -0
- package/src/components/safetyBar/icons/controller-type-virtual.svg +1 -0
- package/src/components/safetyBar/icons/operation-mode-automatic.svg +1 -0
- package/src/components/safetyBar/icons/operation-mode-error.svg +1 -0
- package/src/components/safetyBar/icons/operation-mode-manual.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-error.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-estop.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-manual-action-required.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-normal.svg +1 -0
- package/src/components/safetyBar/icons/safety-state-stop.svg +1 -0
- package/src/components/utils/dhParameter.ts +58 -0
- package/src/components/utils/errorHandling.ts +4 -0
- package/src/i18n/locales/de/translations.json +27 -1
- package/src/i18n/locales/en/translations.json +27 -1
- package/src/index.ts +1 -0
package/dist/Setup.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Vector3 } from "three";
|
|
3
|
+
import { type Props as CanvasProps } from "@react-three/fiber";
|
|
4
|
+
type Props = React.PropsWithChildren<CanvasProps & {
|
|
5
|
+
cameraFov?: number;
|
|
6
|
+
cameraPosition?: Vector3;
|
|
7
|
+
controls?: boolean;
|
|
8
|
+
lights?: boolean;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const Setup: ({ children, cameraFov, cameraPosition, controls, lights, ...restProps }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=Setup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Setup.d.ts","sourceRoot":"","sources":["../src/Setup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAU,KAAK,KAAK,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAItE,KAAK,KAAK,GAAG,KAAK,CAAC,iBAAiB,CAClC,WAAW,GAAG;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CACF,CAAA;AAED,eAAO,MAAM,KAAK,4EAOf,KAAK,4CAcP,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CoordinateSystem } from "@wandelbots/wandelbots-api-client";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Applies a API coordinate system transformation to
|
|
5
|
+
* all react-three child components.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CoordinateSystemTransform: ({ coordinateSystem, children, }: {
|
|
8
|
+
coordinateSystem?: CoordinateSystem;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=CoordinateSystemTransform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CoordinateSystemTransform.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/CoordinateSystemTransform.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC;;;GAGG;AACH,eAAO,MAAM,yBAAyB,oCAGnC;IACD,gBAAgB,CAAC,EAAE,gBAAgB,CAAA;IACnC,QAAQ,EAAE,SAAS,CAAA;CACpB,4CA6BA,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Renders a preset environment for the 3D scene.
|
|
3
|
+
* This component wraps the scene with an `Environment` component
|
|
4
|
+
* and builds a lightmap build with `Lightformers`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function PresetEnvironment(): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=PresetEnvironment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresetEnvironment.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/PresetEnvironment.tsx"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,wBAAgB,iBAAiB,4CAMhC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type GroupProps } from "@react-three/fiber";
|
|
2
|
+
import type { SafetySetupSafetyZone } from "@wandelbots/wandelbots-js";
|
|
3
|
+
export type SafetyZonesRendererProps = {
|
|
4
|
+
safetyZones: SafetySetupSafetyZone[];
|
|
5
|
+
} & GroupProps;
|
|
6
|
+
export declare function SafetyZonesRenderer({ safetyZones, ...props }: SafetyZonesRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=SafetyZonesRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafetyZonesRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/SafetyZonesRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAEpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAItE,MAAM,MAAM,wBAAwB,GAAG;IACrC,WAAW,EAAE,qBAAqB,EAAE,CAAA;CACrC,GAAG,UAAU,CAAA;AAqCd,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,GAAG,KAAK,EACT,EAAE,wBAAwB,2CA6D1B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { GetTrajectoryResponse } from "@wandelbots/wandelbots-js";
|
|
2
|
+
export type TrajectoryRendererProps = {
|
|
3
|
+
trajectory: GetTrajectoryResponse;
|
|
4
|
+
} & JSX.IntrinsicElements["group"];
|
|
5
|
+
export declare function TrajectoryRenderer({ trajectory, ...props }: TrajectoryRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=TrajectoryRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrajectoryRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/3d-viewport/TrajectoryRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAGtE,MAAM,MAAM,uBAAuB,GAAG;IACpC,UAAU,EAAE,qBAAqB,CAAA;CAClC,GAAG,GAAG,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAA;AAElC,wBAAgB,kBAAkB,CAAC,EACjC,UAAU,EACV,GAAG,KAAK,EACT,EAAE,uBAAuB,2CA4BzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { GroupProps } from "@react-three/fiber";
|
|
2
|
+
import type { Collider } from "@wandelbots/wandelbots-js";
|
|
3
|
+
export type MeshChildrenProvider = (key: string, collider: Collider) => React.ReactNode;
|
|
4
|
+
type ColliderCollectionProps = {
|
|
5
|
+
name?: string;
|
|
6
|
+
colliders: Record<string, Collider>;
|
|
7
|
+
meshChildrenProvider: MeshChildrenProvider;
|
|
8
|
+
} & GroupProps;
|
|
9
|
+
export default function ColliderCollection({ name, colliders, meshChildrenProvider, ...props }: ColliderCollectionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ColliderCollection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColliderCollection.d.ts","sourceRoot":"","sources":["../../../../src/components/3d-viewport/collider/ColliderCollection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AAGzD,MAAM,MAAM,oBAAoB,GAAG,CACjC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,KACf,KAAK,CAAC,SAAS,CAAA;AAEpB,KAAK,uBAAuB,GAAG;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;IACnC,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,GAAG,UAAU,CAAA;AAEd,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,IAAI,EACJ,SAAS,EACT,oBAAoB,EACpB,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAazB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Collider } from "@wandelbots/wandelbots-js";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
type ColliderElementProps = {
|
|
4
|
+
name?: string;
|
|
5
|
+
collider: Collider;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function ColliderElement({ name, collider, children, }: ColliderElementProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ColliderElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColliderElement.d.ts","sourceRoot":"","sources":["../../../../src/components/3d-viewport/collider/ColliderElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,KAAK,oBAAoB,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAI,EACJ,QAAQ,EACR,QAAQ,GACT,EAAE,oBAAoB,2CAgBtB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CollisionMotionGroup, DHParameter, MotionGroupStateResponse } from "@wandelbots/wandelbots-js";
|
|
2
|
+
import { type MeshChildrenProvider } from "./ColliderCollection";
|
|
3
|
+
type CollisionMotionGroupElementProps = {
|
|
4
|
+
name?: string;
|
|
5
|
+
motionGroup: CollisionMotionGroup;
|
|
6
|
+
rapidlyChangingMotionState: MotionGroupStateResponse;
|
|
7
|
+
dhParameters: DHParameter[];
|
|
8
|
+
meshChildrenProvider: MeshChildrenProvider;
|
|
9
|
+
};
|
|
10
|
+
export default function CollisionMotionGroupElement({ name, motionGroup, rapidlyChangingMotionState, dhParameters, meshChildrenProvider, }: CollisionMotionGroupElementProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=CollisionMotionGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollisionMotionGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/3d-viewport/collider/CollisionMotionGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,WAAW,EACX,wBAAwB,EACzB,MAAM,2BAA2B,CAAA;AAIlC,OAA2B,EACzB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAE7B,KAAK,gCAAgC,GAAG;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,oBAAoB,CAAA;IACjC,0BAA0B,EAAE,wBAAwB,CAAA;IACpD,YAAY,EAAE,WAAW,EAAE,CAAA;IAE3B,oBAAoB,EAAE,oBAAoB,CAAA;CAC3C,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,2BAA2B,CAAC,EAClD,IAAI,EACJ,WAAW,EACX,0BAA0B,EAC1B,YAAY,EACZ,oBAAoB,GACrB,EAAE,gCAAgC,kDAoDlC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CollisionScene, MotionGroupStateResponse } from "@wandelbots/wandelbots-js";
|
|
2
|
+
import { type MeshChildrenProvider } from "./ColliderCollection";
|
|
3
|
+
type CollisionSceneElementProps = {
|
|
4
|
+
scene: CollisionScene;
|
|
5
|
+
meshChildrenProvider: MeshChildrenProvider;
|
|
6
|
+
rapidlyChangingMotionStates: Record<string, MotionGroupStateResponse>;
|
|
7
|
+
};
|
|
8
|
+
export default function CollisionSceneElement({ scene, rapidlyChangingMotionStates, meshChildrenProvider, }: CollisionSceneElementProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=CollisionScene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollisionScene.d.ts","sourceRoot":"","sources":["../../../../src/components/3d-viewport/collider/CollisionScene.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EAEd,wBAAwB,EACzB,MAAM,2BAA2B,CAAA;AAClC,OAA2B,EACzB,KAAK,oBAAoB,EAC1B,MAAM,sBAAsB,CAAA;AAG7B,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,cAAc,CAAA;IACrB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,2BAA2B,EAAE,MAAM,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAA;CACtE,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,KAAK,EACL,2BAA2B,EAC3B,oBAAoB,GACrB,EAAE,0BAA0B,2CAyB5B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Collider } from "@wandelbots/wandelbots-js";
|
|
2
|
+
import type React from "react";
|
|
3
|
+
type ToolElementProps = {
|
|
4
|
+
name?: string;
|
|
5
|
+
collider: Collider;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export default function ToolElement({ name, collider, children, }: ToolElementProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ToolElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolElement.d.ts","sourceRoot":"","sources":["../../../../src/components/3d-viewport/collider/ToolElement.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,KAAK,gBAAgB,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,QAAQ,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B,CAAA;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,IAAI,EACJ,QAAQ,EACR,QAAQ,GACT,EAAE,gBAAgB,2CAElB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colliderShapeToBufferGeometry.d.ts","sourceRoot":"","sources":["../../../../src/components/3d-viewport/collider/colliderShapeToBufferGeometry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,aAAa,GACnB,KAAK,CAAC,cAAc,CA6BtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConsoleFilter.d.ts","sourceRoot":"","sources":["../../src/components/ConsoleFilter.tsx"],"names":[],"mappings":"AAKA,MAAM,CAAC,OAAO,UAAU,aAAa,4CAkBpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CopyableText.d.ts","sourceRoot":"","sources":["../../src/components/CopyableText.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;YAMX,MAAM;WACP,MAAM;kDA4ElB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const LoadingCover: (props: {
|
|
2
|
+
message?: string;
|
|
3
|
+
error?: unknown;
|
|
4
|
+
softTimeout?: number;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const LoadingErrorMessage: (props: {
|
|
7
|
+
loadingMessage?: string;
|
|
8
|
+
error: unknown;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=LoadingCover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingCover.d.ts","sourceRoot":"","sources":["../../src/components/LoadingCover.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY,UAAW;IAClC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,4CA4CA,CAAA;AAED,eAAO,MAAM,mBAAmB,UAAW;IACzC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,KAAK,EAAE,OAAO,CAAA;CACf,4CA2BA,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type FabProps } from "@mui/material";
|
|
2
|
+
type CodeFabProps = {
|
|
3
|
+
selected?: boolean;
|
|
4
|
+
} & Omit<FabProps, "variant" | "color">;
|
|
5
|
+
export declare const SelectableFab: import("react").ForwardRefExoticComponent<Omit<CodeFabProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=SelectableFab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectableFab.d.ts","sourceRoot":"","sources":["../../src/components/SelectableFab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAA;AAkC1D,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAAC,CAAA;AAEvC,eAAO,MAAM,aAAa,yHAYzB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Select } from "@mui/material";
|
|
2
|
+
type ThemeSelectProps = {
|
|
3
|
+
kind: "filled" | "outlined" | "text";
|
|
4
|
+
} & React.ComponentProps<typeof Select>;
|
|
5
|
+
export declare const ThemeSelect: ({ kind, sx, ...rest }: ThemeSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=ThemeSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeSelect.d.ts","sourceRoot":"","sources":["../../src/components/ThemeSelect.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAA0B,MAAM,eAAe,CAAA;AAG9D,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAA;CACrC,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAA;AAEvC,eAAO,MAAM,WAAW,0BAA2B,gBAAgB,4CAsClE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransparentOverlay.d.ts","sourceRoot":"","sources":["../../src/components/TransparentOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA;AAErC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,kBAAkB,UACtB,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,4CAoB1C,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type SxProps } from "@mui/material";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
type VelocitySliderProps = {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
velocity: number;
|
|
7
|
+
onVelocityChange: (newVelocity: number) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
renderValue?: (value: number) => ReactNode;
|
|
10
|
+
};
|
|
11
|
+
/** A slider for controlling the movement velocity of a robot */
|
|
12
|
+
export declare const VelocitySlider: ((props: VelocitySliderProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
type VelocitySliderLabelProps = {
|
|
16
|
+
value: string;
|
|
17
|
+
sx?: SxProps;
|
|
18
|
+
};
|
|
19
|
+
export declare function VelocitySliderLabel({ value, sx }: VelocitySliderLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=VelocitySlider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VelocitySlider.d.ts","sourceRoot":"","sources":["../../src/components/VelocitySlider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;AAIzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,KAAK,mBAAmB,GAAG;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,gBAAgB,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,SAAS,CAAA;CAC3C,CAAA;AAED,gEAAgE;AAChE,eAAO,MAAM,cAAc,WAAoB,mBAAmB;;CAkChE,CAAA;AAEF,KAAK,wBAAwB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,OAAO,CAAA;CACb,CAAA;AAED,wBAAgB,mBAAmB,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,wBAAwB,2CA8B1E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SelectProps } from "@mui/material";
|
|
2
|
+
type AdornedSelectProps = {
|
|
3
|
+
labelValue: string;
|
|
4
|
+
labelId: string;
|
|
5
|
+
} & SelectProps;
|
|
6
|
+
export default function AdornedSelect({ labelValue, ...props }: AdornedSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=AdornedSelect.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AdornedSelect.d.ts","sourceRoot":"","sources":["../../../../src/components/experimental/utils/AdornedSelect.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,eAAe,CAAA;AAoBtB,KAAK,kBAAkB,GAAG;IACxB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;CAChB,GAAG,WAAW,CAAA;AAEf,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,UAAU,EACV,GAAG,KAAK,EACT,EAAE,kBAAkB,2CAOpB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import Stack from "@mui/material/Stack";
|
|
2
|
+
import React, { type ReactNode } from "react";
|
|
3
|
+
import type { AxisControlComponentColors } from "../../themes/themeTypes";
|
|
4
|
+
import type { JoggingDirection } from "./JoggingStore";
|
|
5
|
+
type JoggingCartesianAxisControlProps = {
|
|
6
|
+
colors?: AxisControlComponentColors;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
getDisplayedValue: () => string;
|
|
9
|
+
startJogging: (direction: JoggingDirection) => void;
|
|
10
|
+
stopJogging: () => void;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** If set, the corresponding button will be rendered in the pressed state */
|
|
13
|
+
activeJoggingDirection?: JoggingDirection;
|
|
14
|
+
} & React.ComponentProps<typeof Stack>;
|
|
15
|
+
/** A input widget to control an individual cartesian axis */
|
|
16
|
+
export declare const JoggingCartesianAxisControl: (({ colors, label, getDisplayedValue, startJogging, stopJogging, disabled, activeJoggingDirection, ...rest }: JoggingCartesianAxisControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=JoggingCartesianAxisControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingCartesianAxisControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianAxisControl.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAEvC,OAAO,KAAK,EAAE,EAA+B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAI1E,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAEtD,KAAK,gCAAgC,GAAG;IACtC,MAAM,CAAC,EAAE,0BAA0B,CAAA;IACnC,KAAK,EAAE,SAAS,CAAA;IAChB,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,YAAY,EAAE,CAAC,SAAS,EAAE,gBAAgB,KAAK,IAAI,CAAA;IACnD,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,6EAA6E;IAC7E,sBAAsB,CAAC,EAAE,gBAAgB,CAAA;CAC1C,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAA;AAEtC,6DAA6D;AAC7D,eAAO,MAAM,2BAA2B,gHAWjC,gCAAgC;;CAiMtC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { JoggingStore } from "./JoggingStore";
|
|
2
|
+
export declare const JoggingCartesianTab: (({ store, children, }: {
|
|
3
|
+
store: JoggingStore;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=JoggingCartesianTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingCartesianTab.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingCartesianTab.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAIV,YAAY,EACb,MAAM,gBAAgB,CAAA;AAUvB,eAAO,MAAM,mBAAmB,0BAI3B;IACD,KAAK,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;;CA4QF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingFreedriveTab.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingFreedriveTab.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,+CAM/B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { JoggingStore } from "./JoggingStore";
|
|
2
|
+
/**
|
|
3
|
+
* Monitors the active robot motion state and displays a message if
|
|
4
|
+
* any joint limits are reached.
|
|
5
|
+
*/
|
|
6
|
+
export declare const JoggingJointLimitDetector: ({ store, }: {
|
|
7
|
+
store: JoggingStore;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=JoggingJointLimitDetector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingJointLimitDetector.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointLimitDetector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAElD;;;GAGG;AACH,eAAO,MAAM,yBAAyB,eAEnC;IACD,KAAK,EAAE,YAAY,CAAA;CACpB,4CAwCA,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import Stack from "@mui/material/Stack";
|
|
2
|
+
type JoggingJointRotationControlProps = {
|
|
3
|
+
startJogging: (direction: "-" | "+") => void;
|
|
4
|
+
stopJogging: () => void;
|
|
5
|
+
lowerLimitDegs?: number;
|
|
6
|
+
upperLimitDegs?: number;
|
|
7
|
+
getValueDegs: () => number | undefined;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & React.ComponentProps<typeof Stack>;
|
|
10
|
+
/** A input widget to control an individual joint */
|
|
11
|
+
export declare const JoggingJointRotationControl: (({ startJogging, stopJogging, lowerLimitDegs, upperLimitDegs, getValueDegs, disabled, ...rest }: JoggingJointRotationControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=JoggingJointRotationControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingJointRotationControl.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointRotationControl.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAQvC,KAAK,gCAAgC,GAAG;IACtC,YAAY,EAAE,CAAC,SAAS,EAAE,GAAG,GAAG,GAAG,KAAK,IAAI,CAAA;IAC5C,WAAW,EAAE,MAAM,IAAI,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,YAAY,EAAE,MAAM,MAAM,GAAG,SAAS,CAAA;IAEtC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAA;AAEtC,oDAAoD;AACpD,eAAO,MAAM,2BAA2B,oGAUjC,gCAAgC;;CAiNtC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { JoggingStore } from "./JoggingStore";
|
|
3
|
+
export declare const JoggingJointTab: (({ store, children }: {
|
|
4
|
+
store: JoggingStore;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element) & {
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=JoggingJointTab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingJointTab.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingJointTab.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAGlD,eAAO,MAAM,eAAe,yBACJ;IAAE,KAAK,EAAE,YAAY,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE;;CA8EnE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingOptions.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingOptions.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,YAAY,EAElB,MAAM,gBAAgB,CAAA;AAEvB,eAAO,MAAM,cAAc,eAAwB;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE;;CAsHxE,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type SxProps } from "@mui/material";
|
|
2
|
+
import { NovaClient } from "@wandelbots/wandelbots-js";
|
|
3
|
+
import { JoggingStore } from "./JoggingStore";
|
|
4
|
+
export type JoggingPanelTabId = "cartesian" | "joint";
|
|
5
|
+
export type JoggingPanelProps = {
|
|
6
|
+
/** Either an existing NovaClient or the base url of a deployed Nova instance */
|
|
7
|
+
nova: NovaClient | string;
|
|
8
|
+
/** Id of the motion group to move e.g. 0@ur5e */
|
|
9
|
+
motionGroupId: string;
|
|
10
|
+
/** Callback with the jogging panel's state store for further customization/config */
|
|
11
|
+
onSetup?: (store: JoggingStore) => void;
|
|
12
|
+
/** Any children will go at the bottom of the panel under the default contents */
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
/** Set this to true to disable jogging UI temporarily e.g. when a program is executing */
|
|
15
|
+
locked?: boolean;
|
|
16
|
+
sx?: SxProps;
|
|
17
|
+
/**
|
|
18
|
+
* To preserve state while the jogging panel is hidden, you can create and pass a
|
|
19
|
+
* JoggingStore here and it will be used instead of creating a new one.
|
|
20
|
+
*/
|
|
21
|
+
store?: JoggingStore;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A high-level, opinionated UI panel for jogging a robot using the Wandelbots Platform API
|
|
25
|
+
*/
|
|
26
|
+
export declare const JoggingPanel: ((props: JoggingPanelProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=JoggingPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingPanel.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,eAAe,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAStD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,OAAO,CAAA;AAErD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,gFAAgF;IAChF,IAAI,EAAE,UAAU,GAAG,MAAM,CAAA;IACzB,iDAAiD;IACjD,aAAa,EAAE,MAAM,CAAA;IACrB,qFAAqF;IACrF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAA;IACvC,iFAAiF;IACjF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,0FAA0F;IAC1F,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,EAAE,CAAC,EAAE,OAAO,CAAA;IAEZ;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,WACN,iBAAiB;;CAyEnC,CAAA"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
import type { CoordinateSystem, JoggerConnection, MotionGroupSpecification, RobotTcp } from "@wandelbots/wandelbots-js";
|
|
2
|
+
import { type IReactionDisposer } from "mobx";
|
|
3
|
+
declare const discreteIncrementOptions: {
|
|
4
|
+
id: string;
|
|
5
|
+
mm: number;
|
|
6
|
+
degrees: number;
|
|
7
|
+
}[];
|
|
8
|
+
declare const incrementOptions: readonly [{
|
|
9
|
+
readonly id: "continuous";
|
|
10
|
+
}, ...{
|
|
11
|
+
id: string;
|
|
12
|
+
mm: number;
|
|
13
|
+
degrees: number;
|
|
14
|
+
}[]];
|
|
15
|
+
export type JoggingAxis = "x" | "y" | "z";
|
|
16
|
+
export type JoggingDirection = "+" | "-";
|
|
17
|
+
export type DiscreteIncrementOption = (typeof discreteIncrementOptions)[number];
|
|
18
|
+
export type IncrementOption = (typeof incrementOptions)[number];
|
|
19
|
+
export type IncrementOptionId = IncrementOption["id"];
|
|
20
|
+
export declare const ORIENTATION_IDS: string[];
|
|
21
|
+
export type OrientationId = (typeof ORIENTATION_IDS)[number];
|
|
22
|
+
export type IncrementJogInProgress = {
|
|
23
|
+
direction: JoggingDirection;
|
|
24
|
+
axis: JoggingAxis;
|
|
25
|
+
};
|
|
26
|
+
export declare class JoggingStore {
|
|
27
|
+
readonly jogger: JoggerConnection;
|
|
28
|
+
readonly motionGroupSpec: MotionGroupSpecification;
|
|
29
|
+
readonly coordSystems: CoordinateSystem[];
|
|
30
|
+
readonly tcps: RobotTcp[];
|
|
31
|
+
selectedTabId: "cartesian" | "joint" | "debug";
|
|
32
|
+
/**
|
|
33
|
+
* State of the jogging panel. Starts as "inactive"
|
|
34
|
+
*/
|
|
35
|
+
activationState: "inactive" | "loading" | "active";
|
|
36
|
+
/**
|
|
37
|
+
* If an error occurred connecting to the jogging websocket
|
|
38
|
+
*/
|
|
39
|
+
activationError: unknown | null;
|
|
40
|
+
/** To avoid activation race conditions */
|
|
41
|
+
activationCounter: number;
|
|
42
|
+
/** Locks to prevent UI interactions during certain operations */
|
|
43
|
+
locks: Set<string>;
|
|
44
|
+
/**
|
|
45
|
+
* Id of selected coordinate system from among those defined on the API side
|
|
46
|
+
*/
|
|
47
|
+
selectedCoordSystemId: string;
|
|
48
|
+
/** Id of selected tool center point from among the options available on the robot */
|
|
49
|
+
selectedTcpId: string;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the user is jogging in the coordinate system or tool orientation.
|
|
52
|
+
* When in tool orientation, the robot moves in a direction relative to the
|
|
53
|
+
* attached tool rotation.
|
|
54
|
+
*/
|
|
55
|
+
selectedOrientation: OrientationId;
|
|
56
|
+
/**
|
|
57
|
+
* Id of selected increment amount for jogging. Options are defined by robot pad.
|
|
58
|
+
* When non-continuous, jogging moves the robot by a fixed number of mm or degrees
|
|
59
|
+
* each time the button is pressed, for extra precision
|
|
60
|
+
*/
|
|
61
|
+
selectedIncrementId: IncrementOptionId;
|
|
62
|
+
/**
|
|
63
|
+
* When on the cartesian tab, jogging can be either translating or rotating
|
|
64
|
+
* around the TCP.
|
|
65
|
+
*/
|
|
66
|
+
selectedCartesianMotionType: "translate" | "rotate";
|
|
67
|
+
/**
|
|
68
|
+
* If the jogger is busy running an incremental jog, this will be set
|
|
69
|
+
* with the information about the motion
|
|
70
|
+
*/
|
|
71
|
+
incrementJogInProgress: IncrementJogInProgress | null;
|
|
72
|
+
/** How fast the robot goes when doing cartesian translate jogging in mm/s */
|
|
73
|
+
translationVelocityMmPerSec: number;
|
|
74
|
+
/** How fast the robot goes when doing cartesian or joint rotation jogging in °/s */
|
|
75
|
+
rotationVelocityDegPerSec: number;
|
|
76
|
+
/** Minimum translation velocity user can choose on the velocity slider in °/s */
|
|
77
|
+
minTranslationVelocityMmPerSec: number;
|
|
78
|
+
/** Maximum translation velocity user can choose on the velocity slider in °/s */
|
|
79
|
+
maxTranslationVelocityMmPerSec: number;
|
|
80
|
+
/** Minimum rotation velocity user can choose on the velocity slider in °/s */
|
|
81
|
+
minRotationVelocityDegPerSec: number;
|
|
82
|
+
/** Maximum rotation velocity user can choose on the velocity slider in °/s */
|
|
83
|
+
maxRotationVelocityDegPerSec: number;
|
|
84
|
+
disposers: IReactionDisposer[];
|
|
85
|
+
/**
|
|
86
|
+
* Load a jogging store with the relevant data it needs
|
|
87
|
+
* from the backend
|
|
88
|
+
*/
|
|
89
|
+
static loadFor(jogger: JoggerConnection): Promise<JoggingStore>;
|
|
90
|
+
constructor(jogger: JoggerConnection, motionGroupSpec: MotionGroupSpecification, coordSystems: CoordinateSystem[], tcps: RobotTcp[]);
|
|
91
|
+
dispose(): void;
|
|
92
|
+
get coordSystemCountByName(): import("lodash").Dictionary<number>;
|
|
93
|
+
deactivate(): Promise<void>;
|
|
94
|
+
/** Activate the jogger with current settings */
|
|
95
|
+
activate(): Promise<JoggerConnection>;
|
|
96
|
+
loadFromLocalStorage(): void;
|
|
97
|
+
saveToLocalStorage(): void;
|
|
98
|
+
get isLocked(): boolean;
|
|
99
|
+
get localStorageSave(): {
|
|
100
|
+
selectedTabId: "cartesian" | "joint" | "debug";
|
|
101
|
+
selectedCoordSystemId: string;
|
|
102
|
+
selectedTcpId: string;
|
|
103
|
+
selectedOrientation: string;
|
|
104
|
+
selectedIncrementId: string;
|
|
105
|
+
selectedCartesianMotionType: "translate" | "rotate";
|
|
106
|
+
};
|
|
107
|
+
get tabs(): readonly [{
|
|
108
|
+
readonly id: "cartesian";
|
|
109
|
+
readonly label: "Cartesian";
|
|
110
|
+
}, {
|
|
111
|
+
readonly id: "joint";
|
|
112
|
+
readonly label: "Joints";
|
|
113
|
+
}];
|
|
114
|
+
get incrementOptions(): readonly [{
|
|
115
|
+
readonly id: "continuous";
|
|
116
|
+
}, ...{
|
|
117
|
+
id: string;
|
|
118
|
+
mm: number;
|
|
119
|
+
degrees: number;
|
|
120
|
+
}[]];
|
|
121
|
+
get discreteIncrementOptions(): {
|
|
122
|
+
id: string;
|
|
123
|
+
mm: number;
|
|
124
|
+
degrees: number;
|
|
125
|
+
}[];
|
|
126
|
+
get incrementOptionsById(): import("lodash").Dictionary<{
|
|
127
|
+
id: string;
|
|
128
|
+
mm: number;
|
|
129
|
+
degrees: number;
|
|
130
|
+
} | {
|
|
131
|
+
readonly id: "continuous";
|
|
132
|
+
}>;
|
|
133
|
+
get tabsById(): import("lodash").Dictionary<{
|
|
134
|
+
readonly id: "cartesian";
|
|
135
|
+
readonly label: "Cartesian";
|
|
136
|
+
} | {
|
|
137
|
+
readonly id: "joint";
|
|
138
|
+
readonly label: "Joints";
|
|
139
|
+
}>;
|
|
140
|
+
get currentTab(): {
|
|
141
|
+
readonly id: "cartesian";
|
|
142
|
+
readonly label: "Cartesian";
|
|
143
|
+
} | {
|
|
144
|
+
readonly id: "joint";
|
|
145
|
+
readonly label: "Joints";
|
|
146
|
+
};
|
|
147
|
+
get tabIndex(): number;
|
|
148
|
+
get coordSystemsById(): import("lodash").Dictionary<CoordinateSystem>;
|
|
149
|
+
get selectedCoordSystem(): CoordinateSystem;
|
|
150
|
+
/**
|
|
151
|
+
* The id of the coordinate system to use for jogging.
|
|
152
|
+
* If in tool orientation, this is set to "tool", not the
|
|
153
|
+
* selected coordinate system.
|
|
154
|
+
*/
|
|
155
|
+
get activeCoordSystemId(): string;
|
|
156
|
+
get tcpsById(): import("lodash").Dictionary<RobotTcp>;
|
|
157
|
+
get activeDiscreteIncrement(): {
|
|
158
|
+
id: string;
|
|
159
|
+
mm: number;
|
|
160
|
+
degrees: number;
|
|
161
|
+
} | undefined;
|
|
162
|
+
/** The selected rotation velocity converted to radians per second */
|
|
163
|
+
get rotationVelocityRadsPerSec(): number;
|
|
164
|
+
/** Selected velocity in mm/sec or deg/sec */
|
|
165
|
+
get velocityInDisplayUnits(): number;
|
|
166
|
+
/** Minimum selectable velocity in mm/sec or deg/sec */
|
|
167
|
+
get minVelocityInDisplayUnits(): number;
|
|
168
|
+
/** Maximum selectable velocity in mm/sec or deg/sec */
|
|
169
|
+
get maxVelocityInDisplayUnits(): number;
|
|
170
|
+
/**
|
|
171
|
+
* For velocity unit purposes, joint and cartesian rotation
|
|
172
|
+
* are treated as the same type of motion
|
|
173
|
+
*/
|
|
174
|
+
get currentMotionType(): "translate" | "rotate";
|
|
175
|
+
onTabChange(_event: React.SyntheticEvent, newValue: number): void;
|
|
176
|
+
setSelectedCoordSystemId(id: string): void;
|
|
177
|
+
setSelectedTcpId(id: string): void;
|
|
178
|
+
setSelectedOrientation(orientation: OrientationId): void;
|
|
179
|
+
setSelectedIncrementId(id: IncrementOptionId): void;
|
|
180
|
+
setCurrentIncrementJog(incrementJog: IncrementJogInProgress | null): void;
|
|
181
|
+
setVelocityFromSlider(velocity: number): void;
|
|
182
|
+
setSelectedCartesianMotionType(type: "translate" | "rotate"): void;
|
|
183
|
+
lock(id: string): void;
|
|
184
|
+
unlock(id: string): void;
|
|
185
|
+
/** Lock the UI until the given async callback resolves */
|
|
186
|
+
withMotionLock(fn: () => Promise<void>): Promise<void>;
|
|
187
|
+
}
|
|
188
|
+
export {};
|
|
189
|
+
//# sourceMappingURL=JoggingStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"JoggingStore.d.ts","sourceRoot":"","sources":["../../../src/components/jogging/JoggingStore.ts"],"names":[],"mappings":"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"}
|