@wandelbots/wandelbots-js-react-components 6.4.0-pr.revamp.667.bd2ec84 → 6.4.0-pr.revamp.667.ca77f09

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.
Files changed (154) hide show
  1. package/README.md +172 -40
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +3 -4
  4. package/dist/3d.js +35 -38
  5. package/dist/CurrentPose/index.cjs +1 -1
  6. package/dist/CurrentPose/index.js +2 -2
  7. package/dist/CurrentPoseBar/index.cjs +1 -1
  8. package/dist/CurrentPoseBar/index.js +1 -1
  9. package/dist/JoggingButtons/index.cjs +1 -1
  10. package/dist/JoggingButtons/index.js +1 -1
  11. package/dist/JoggingGizmo/index.cjs +1 -1
  12. package/dist/JoggingGizmo/index.js +2 -2
  13. package/dist/JoggingJointSlider/index.cjs +1 -1
  14. package/dist/JoggingJointSlider/index.js +1 -1
  15. package/dist/RobotControl/index.cjs +1 -1
  16. package/dist/RobotControl/index.js +2 -2
  17. package/dist/RobotControlPanel/index.cjs +1 -1
  18. package/dist/RobotControlPanel/index.d.ts +1 -1
  19. package/dist/RobotControlPanel/index.js +1 -1
  20. package/dist/RobotHeader/index.cjs +1 -1
  21. package/dist/RobotHeader/index.d.ts +3 -5
  22. package/dist/RobotHeader/index.js +6 -7
  23. package/dist/RobotScene/index.cjs +1 -1
  24. package/dist/RobotScene/index.js +3 -3
  25. package/dist/RobotView/index.cjs +1 -1
  26. package/dist/RobotView/index.js +2 -2
  27. package/dist/SafetyBar/IndicatorWithExplanation.d.ts +12 -1
  28. package/dist/SafetyBar/SafetyBar.d.ts +15 -1
  29. package/dist/SafetyBar/index.cjs +1 -1
  30. package/dist/SafetyBar/index.d.ts +0 -1
  31. package/dist/SafetyBar/index.js +3 -4
  32. package/dist/SafetyBar/robotSafetyOf.d.ts +1 -0
  33. package/dist/chunks/{ConnectedMotionGroup-BifrgwV1.js → ConnectedMotionGroup-DNYakgxy.js} +6 -5
  34. package/dist/chunks/ConnectedMotionGroup-IRTsTxwB.cjs +3 -0
  35. package/dist/chunks/{CurrentPose-CMqO8oqX.cjs → CurrentPose-CAq9e9JY.cjs} +1 -1
  36. package/dist/chunks/{CurrentPose-CdD2ZB7B.js → CurrentPose-CgdINEh2.js} +3 -3
  37. package/dist/chunks/{CurrentPoseBar-CX1xFBtm.js → CurrentPoseBar--HkZBGnN.js} +11 -11
  38. package/dist/chunks/{CurrentPoseBar-BTBAwIO4.cjs → CurrentPoseBar-DoOUfRRs.cjs} +1 -1
  39. package/dist/chunks/{JoggingButtons-aijK-3g6.js → JoggingButtons-BNOnpcTH.js} +1 -1
  40. package/dist/chunks/{JoggingButtons-BOHl7hVq.cjs → JoggingButtons-Boaym2hQ.cjs} +1 -1
  41. package/dist/chunks/{JoggingGizmo-CoKYUtXq.cjs → JoggingGizmo-CNFjpWDv.cjs} +1 -1
  42. package/dist/chunks/{JoggingGizmo-DHvrJouR.js → JoggingGizmo-RDiEVQes.js} +1 -1
  43. package/dist/chunks/{JoggingGizmoOrientation-CIvIAIeO.js → JoggingGizmoOrientation-Dzzz2gEz.js} +1 -1
  44. package/dist/chunks/{JoggingGizmoOrientation-DVcagPRJ.cjs → JoggingGizmoOrientation-laUrgY0N.cjs} +1 -1
  45. package/dist/chunks/{JoggingJointSlider-DQtt4-pa.js → JoggingJointSlider-BY-Tof8G.js} +1 -1
  46. package/dist/chunks/{JoggingJointSlider-CTFYKzsU.cjs → JoggingJointSlider-Dm3vILd3.cjs} +1 -1
  47. package/dist/chunks/{JoggingRefusedError-BIkUM6-g.js → JoggingRefusedError-C4D8_YR_.js} +5 -3
  48. package/dist/chunks/JoggingRefusedError-DqyrfUcc.cjs +1 -0
  49. package/dist/chunks/Pose3-BfBNPRDM.cjs +1 -0
  50. package/dist/chunks/{Pose3-B_fLR-Wv.js → Pose3-DWxfC6Dj.js} +1 -2
  51. package/dist/chunks/{Robot-C-IWfxP9.js → Robot-B-VAYuAr.js} +5 -5
  52. package/dist/chunks/{Robot-Cfhjv9Z8.cjs → Robot-DRf8T9Zf.cjs} +1 -1
  53. package/dist/chunks/RobotActivation-CRVxXvlx.cjs +1 -0
  54. package/dist/chunks/RobotActivation-oR-8Y0iq.js +143 -0
  55. package/dist/chunks/RobotControl-Dbe50ZKM.cjs +1 -0
  56. package/dist/chunks/RobotControl-Ms1F7fFe.js +332 -0
  57. package/dist/chunks/RobotControlPanel-B7NxoHsO.cjs +1 -0
  58. package/dist/chunks/RobotControlPanel-CkQlkq8x.js +1029 -0
  59. package/dist/chunks/RobotHeader-CjOaf9s6.cjs +1 -0
  60. package/dist/chunks/RobotHeader-LSuRTDFB.js +395 -0
  61. package/dist/chunks/RobotScene-Au6zpHH1.cjs +1 -0
  62. package/dist/chunks/RobotScene-C6XEgaVR.js +1284 -0
  63. package/dist/chunks/RobotSessionProvider-CoF_tX0O.cjs +1 -0
  64. package/dist/chunks/RobotSessionProvider-DuHi-dtw.js +30 -0
  65. package/dist/chunks/{RobotView-BGYlAWj-.cjs → RobotView-Cg6JfGiY.cjs} +1 -1
  66. package/dist/chunks/{RobotView-D-v8jCM7.js → RobotView-CrAxNkyG.js} +3 -3
  67. package/dist/chunks/{robotSafetyOf-DuKKma1_.js → SafetyBar-C85BAKsL.js} +244 -215
  68. package/dist/chunks/SafetyBar-D2l81Omq.cjs +1 -0
  69. package/dist/chunks/externalizeComponent-CA_sHzyH.cjs +2 -0
  70. package/dist/chunks/{externalizeComponent-4juwPKL5.js → externalizeComponent-CChY_1bN.js} +34 -8
  71. package/dist/chunks/{useSmoothedMotionState-BSSV8aZN.js → hooks-BWoeBWLV.js} +43 -87
  72. package/dist/chunks/hooks-BXe2bNMo.cjs +1 -0
  73. package/dist/chunks/loadRobotSession-BzY9H3F8.cjs +1 -0
  74. package/dist/chunks/{loadRobotSession-GHHtv5dv.js → loadRobotSession-Ts2MumBB.js} +1065 -679
  75. package/dist/chunks/poseText-BxG4Caa-.js +48 -0
  76. package/dist/chunks/poseText-CwplkbDM.cjs +1 -0
  77. package/dist/chunks/useSmoothedMotionState-CCXmMZ0S.cjs +1 -0
  78. package/dist/chunks/useSmoothedMotionState-CELh-YJa.js +50 -0
  79. package/dist/components/VelocitySlider.d.ts +14 -1
  80. package/dist/components/connectionWarning/ConnectionWarning.d.ts +18 -4
  81. package/dist/components/connectionWarning/connectionWarningOf.d.ts +1 -11
  82. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +7 -1
  83. package/dist/components/jogging/JoggingCartesianTab.d.ts +6 -0
  84. package/dist/components/jogging/JoggingJointTab.d.ts +5 -0
  85. package/dist/components/jogging/JoggingJointValueControl.d.ts +7 -1
  86. package/dist/components/jogging/JoggingPanel.d.ts +11 -0
  87. package/dist/components/jogging/JoggingRefusedError.d.ts +8 -3
  88. package/dist/components/jogging/JoggingStore.d.ts +206 -17
  89. package/dist/components/jogging/joggingColors.d.ts +6 -0
  90. package/dist/components/robotControl/CartesianJogTab.d.ts +14 -3
  91. package/dist/components/robotControl/JogArea.d.ts +6 -3
  92. package/dist/components/robotControl/JogDisabledReason.d.ts +15 -0
  93. package/dist/components/robotControl/JointJogTab.d.ts +10 -2
  94. package/dist/components/robotControl/MoveToTab.d.ts +24 -3
  95. package/dist/components/robotControl/PoseField.d.ts +3 -1
  96. package/dist/components/robotControl/RobotControl.d.ts +3 -0
  97. package/dist/components/robotControl/RobotControlPanel.d.ts +91 -22
  98. package/dist/components/robotControl/VelocityRow.d.ts +8 -2
  99. package/dist/components/robotControl/atPose.d.ts +6 -0
  100. package/dist/components/robotControl/poseText.d.ts +13 -1
  101. package/dist/components/robotControl/units.d.ts +10 -2
  102. package/dist/components/robotControl/useRobotControlProps.d.ts +7 -4
  103. package/dist/components/robotControl/velocityText.d.ts +18 -0
  104. package/dist/components/robotHeader/ActivationSwitch.d.ts +13 -2
  105. package/dist/components/robotHeader/RobotHeader.d.ts +25 -4
  106. package/dist/components/robotHeader/robotActivationOf.d.ts +1 -8
  107. package/dist/components/robotScene/RobotScene.d.ts +7 -1
  108. package/dist/components/robots/MotionGroupVisualizer.d.ts +6 -4
  109. package/dist/components/robots/SupportedLinearAxis.d.ts +6 -4
  110. package/dist/components/robots/SupportedRobot.d.ts +7 -5
  111. package/dist/components/robots/useFrameSmoothedMotionState.d.ts +25 -0
  112. package/dist/components/utils/useSmoothedMotionState.d.ts +11 -2
  113. package/dist/core.cjs +1 -1
  114. package/dist/core.d.ts +8 -10
  115. package/dist/core.js +60 -69
  116. package/dist/index.cjs +1 -1
  117. package/dist/index.js +100 -113
  118. package/dist/lib/ConnectedMotionGroup.d.ts +11 -0
  119. package/dist/lib/ControllerStateStream.d.ts +9 -9
  120. package/dist/lib/JoggerConnection.d.ts +48 -13
  121. package/dist/lib/MotionStreamConnection.d.ts +3 -2
  122. package/dist/lib/TrajectoryExecutionStore.d.ts +58 -20
  123. package/dist/lib/controllerStateSource.d.ts +6 -5
  124. package/dist/lib/robotSession/RobotActivation.d.ts +52 -21
  125. package/dist/lib/robotSession/RobotSession.d.ts +27 -8
  126. package/dist/lib/robotSession/RobotTargetPose.d.ts +4 -2
  127. package/dist/lib/robotSession/loadRobotSession.d.ts +1 -1
  128. package/dist/lib/robotSession/robotPose.d.ts +0 -6
  129. package/dist/session.cjs +1 -1
  130. package/dist/session.d.ts +6 -6
  131. package/dist/session.js +30 -38
  132. package/package.json +22 -1
  133. package/dist/chunks/ConnectedMotionGroup-CybwJHkh.cjs +0 -3
  134. package/dist/chunks/JoggingRefusedError-BuCGsVsa.cjs +0 -1
  135. package/dist/chunks/Pose3-Ch4xVeXV.cjs +0 -1
  136. package/dist/chunks/RobotActivation-Bb0oNSBN.cjs +0 -1
  137. package/dist/chunks/RobotActivation-C0rrwpQZ.js +0 -115
  138. package/dist/chunks/RobotControl-Cv6Sr1Ni.js +0 -289
  139. package/dist/chunks/RobotControl-DFnOYMAa.cjs +0 -1
  140. package/dist/chunks/RobotControlPanel-B1_9g9D-.js +0 -850
  141. package/dist/chunks/RobotControlPanel-BpTpRBgy.cjs +0 -1
  142. package/dist/chunks/RobotScene-0ZJzXL50.cjs +0 -1
  143. package/dist/chunks/RobotScene-DpFeFpnx.js +0 -1255
  144. package/dist/chunks/RobotSessionProvider--AekyPqD.cjs +0 -1
  145. package/dist/chunks/RobotSessionProvider-TVaKGzqa.js +0 -25
  146. package/dist/chunks/externalizeComponent-Br_U-QAr.cjs +0 -2
  147. package/dist/chunks/loadRobotSession-DYbeNnTI.cjs +0 -1
  148. package/dist/chunks/poseText-BXUaQWnK.cjs +0 -1
  149. package/dist/chunks/poseText-pg4cxE8R.js +0 -41
  150. package/dist/chunks/robotActivationOf-B4oV10Za.cjs +0 -1
  151. package/dist/chunks/robotActivationOf-EzcT9g07.js +0 -368
  152. package/dist/chunks/robotSafetyOf-Dxm6s7Pp.cjs +0 -1
  153. package/dist/chunks/useSmoothedMotionState-B9WO73k0.cjs +0 -1
  154. package/dist/components/robotHeader/robotSafetyOf.d.ts +0 -11
@@ -0,0 +1,25 @@
1
+ import type { MotionGroupState } from "@wandelbots/nova-js/v2";
2
+ /**
3
+ * The smoothing of the visualizers that draw in a canvas (`SupportedRobot`,
4
+ * `SupportedLinearAxis`, `MotionGroupVisualizer`): the spring of
5
+ * `useSmoothedMotionState`, stepped in React Three Fiber's frame loop instead
6
+ * of a `requestAnimationFrame` loop of its own.
7
+ *
8
+ * Each frame steps the spring by that frame's time and sets the joints
9
+ * before R3F draws the frame, so a drawn frame shows the spring at its own
10
+ * time. In a loop of its own, the spring stepped after R3F drew (the drawn
11
+ * frame showed the step of the frame before) or before it, as the browser
12
+ * happened to order the two callbacks, and each step lasted from one of its
13
+ * callbacks to the next, which moved with how long the drawing took: the
14
+ * robot moved in uneven steps.
15
+ *
16
+ * The canvas draws while the spring moves and rests once it settled. Setting
17
+ * the joints makes the animator invalidate from inside R3F's frame, which R3F
18
+ * takes as a request for one more frame: the canvas draws one frame after
19
+ * the spring settled.
20
+ *
21
+ * Returns the same as `useSmoothedMotionState`: a stable, MobX-observable
22
+ * motion state whose `joint_position` changes in place, so a message of the
23
+ * stream re-renders no React component. Only inside a `<Canvas>`.
24
+ */
25
+ export declare function useFrameSmoothedMotionState(motionState: MotionGroupState): MotionGroupState;
@@ -14,10 +14,19 @@ import { type InterpolationOptions } from "./interpolation";
14
14
  * The returned object is a **stable, MobX-observable** motion state whose
15
15
  * `joint_position` is mutated in place every animation frame while the spring
16
16
  * settles. Because the object identity never changes, passing it to
17
- * `<SupportedRobot rapidlyChangingMotionState={...} />` triggers no React
17
+ * `<SupportedRobotExact rapidlyChangingMotionState={...} />` triggers no React
18
18
  * re-renders — the visualizer's own MobX autorun reacts to the mutation and
19
19
  * updates the scene directly. All non-joint fields mirror the latest input.
20
20
  *
21
+ * The spring steps in a `requestAnimationFrame` loop of its own, so the hook
22
+ * needs no canvas. In a canvas, that loop is separate from React Three
23
+ * Fiber's: a drawn frame can show the step of the frame before, and each step
24
+ * lasts from one callback to the next, however long the drawing in between
25
+ * took. The smoothed visualizers (`SupportedRobot`, `SupportedLinearAxis`,
26
+ * `MotionGroupVisualizer`) step the same spring, with its default options, in
27
+ * the canvas's frame loop instead: prefer them for a smoothed robot in a
28
+ * canvas, unless it needs other options.
29
+ *
21
30
  * @example
22
31
  * ```tsx
23
32
  * const smoothed = useSmoothedMotionState(
@@ -25,7 +34,7 @@ import { type InterpolationOptions } from "./interpolation";
25
34
  * { tension: 120, friction: 20 },
26
35
  * )
27
36
  *
28
- * <SupportedRobot rapidlyChangingMotionState={smoothed} {...props} />
37
+ * <SupportedRobotExact rapidlyChangingMotionState={smoothed} {...props} />
29
38
  * ```
30
39
  */
31
40
  export declare function useSmoothedMotionState(motionState: MotionGroupState, options?: InterpolationOptions): MotionGroupState;
package/dist/core.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@wandelbots/mui");const e=require("./chunks/ConnectedMotionGroup-CybwJHkh.cjs"),t=require("./chunks/robotActivationOf-B4oV10Za.cjs"),a=require("./chunks/CurrentPose-CMqO8oqX.cjs"),S=require("./chunks/CurrentPoseBar-BTBAwIO4.cjs"),c=require("./chunks/JoggingButtons-BOHl7hVq.cjs"),d=require("./chunks/JoggingJointSlider-CTFYKzsU.cjs"),s=require("./chunks/JoggingRefusedError-BuCGsVsa.cjs"),o=require("./chunks/loadRobotSession-DYbeNnTI.cjs"),g=require("./chunks/robotSafetyOf-Dxm6s7Pp.cjs"),n=require("./chunks/useSmoothedMotionState-B9WO73k0.cjs"),b=require("./chunks/externalizeComponent-Br_U-QAr.cjs"),i=require("./chunks/PoseTransformer-2QIzECOZ.cjs"),u=require("./chunks/RobotActivation-Bb0oNSBN.cjs"),r=require("./chunks/poseText-BXUaQWnK.cjs"),l=require("./chunks/RobotSessionProvider--AekyPqD.cjs");exports.AppHeader=e.AppHeader;exports.ConnectedMotionGroup=e.ConnectedMotionGroup;exports.JoggingCartesianAxisControl=e.JoggingCartesianAxisControl;exports.JoggingJointValueControl=e.JoggingJointValueControl;exports.JoggingPanel=e.JoggingPanel;exports.LoadingCover=e.LoadingCover;exports.LoadingErrorMessage=e.LoadingErrorMessage;exports.NoMotionGroupModal=e.NoMotionGroupModal;exports.VelocitySlider=e.VelocitySlider;exports.VelocitySliderLabel=e.VelocitySliderLabel;exports.ConnectionWarning=t.ConnectionWarning;exports.RobotHeader=t.RobotHeader;exports.connectionWarningOf=t.connectionWarningOf;exports.robotActivationOf=t.robotActivationOf;exports.CurrentPose=a.CurrentPose;exports.useCurrentPoseProps=a.useCurrentPoseProps;exports.CurrentPoseBar=S.CurrentPoseBar;exports.JoggingButtons=c.JoggingButtons;exports.JoggingJointSlider=d.JoggingJointSlider;exports.JoggingRefusedError=s.JoggingRefusedError;exports.trajectoryTargetOf=s.trajectoryTargetOf;exports.ControllerStateStream=o.ControllerStateStream;exports.JoggerConnection=o.JoggerConnection;exports.JoggingStore=o.JoggingStore;exports.MOTION_DELTA_THRESHOLD=o.MOTION_DELTA_THRESHOLD;exports.MotionStreamConnection=o.MotionStreamConnection;exports.ROBOT_LOAD_STEP_IDS=o.ROBOT_LOAD_STEP_IDS;exports.RobotDescription=o.RobotDescription;exports.RobotLiveState=o.RobotLiveState;exports.RobotLoadProgress=o.RobotLoadProgress;exports.RobotLoadStepError=o.RobotLoadStepError;exports.RobotSafety=o.RobotSafety;exports.RobotSession=o.RobotSession;exports.RobotSessionLoad=o.RobotSessionLoad;exports.RobotTargetPose=o.RobotTargetPose;exports.TrajectoryExecutionStore=o.TrajectoryExecutionStore;exports.controllerStateWebsocket=o.controllerStateWebsocket;exports.isRobotLoadStepError=o.isRobotLoadStepError;exports.jointValuesEqual=o.jointValuesEqual;exports.jointValuesUnchanged=o.jointValuesUnchanged;exports.loadRobotSession=o.loadRobotSession;exports.planErrorTranslationKey=o.planErrorTranslationKey;exports.poseEqual=o.poseEqual;exports.readoutOf=o.readoutOf;exports.readoutsEqual=o.readoutsEqual;exports.tcpMotionEqual=o.tcpMotionEqual;exports.unwrapRotationVector=o.unwrapRotationVector;exports.SafetyBar=g.SafetyBar;exports.robotSafetyOf=g.robotSafetyOf;exports.ValueInterpolator=n.ValueInterpolator;exports.useInterpolation=n.useInterpolation;exports.useSmoothedMotionState=n.useSmoothedMotionState;exports.i18n=b.i18n;exports.deriveSelectedTcpPose=i.deriveSelectedTcpPose;exports.resolveCoordinateSystemInWorld=i.resolveCoordinateSystemInWorld;exports.transformPoseToCoordinateSystem=i.transformPoseToCoordinateSystem;exports.RobotActivation=u.RobotActivation;exports.RobotModeChangeError=u.RobotModeChangeError;exports.jointsToText=r.jointsToText;exports.parseJointsText=r.parseJointsText;exports.parsePoseText=r.parsePoseText;exports.poseToText=r.poseToText;exports.RobotSessionProvider=l.RobotSessionProvider;exports.useRobotSession=l.useRobotSession;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@wandelbots/mui");const e=require("./chunks/ConnectedMotionGroup-IRTsTxwB.cjs"),t=require("./chunks/RobotHeader-CjOaf9s6.cjs"),n=require("./chunks/CurrentPose-CAq9e9JY.cjs"),u=require("./chunks/CurrentPoseBar-DoOUfRRs.cjs"),S=require("./chunks/JoggingButtons-Boaym2hQ.cjs"),l=require("./chunks/JoggingJointSlider-Dm3vILd3.cjs"),d=require("./chunks/JoggingRefusedError-DqyrfUcc.cjs"),o=require("./chunks/loadRobotSession-BzY9H3F8.cjs"),i=require("./chunks/hooks-BXe2bNMo.cjs"),c=require("./chunks/useSmoothedMotionState-CCXmMZ0S.cjs"),R=require("./chunks/externalizeComponent-CA_sHzyH.cjs"),r=require("./chunks/PoseTransformer-2QIzECOZ.cjs"),s=require("./chunks/RobotActivation-CRVxXvlx.cjs"),a=require("./chunks/poseText-CwplkbDM.cjs"),g=require("./chunks/RobotSessionProvider-CoF_tX0O.cjs"),b=require("./chunks/SafetyBar-D2l81Omq.cjs");exports.AppHeader=e.AppHeader;exports.ConnectedMotionGroup=e.ConnectedMotionGroup;exports.JoggingCartesianAxisControl=e.JoggingCartesianAxisControl;exports.JoggingJointValueControl=e.JoggingJointValueControl;exports.JoggingPanel=e.JoggingPanel;exports.LoadingCover=e.LoadingCover;exports.LoadingErrorMessage=e.LoadingErrorMessage;exports.NoMotionGroupModal=e.NoMotionGroupModal;exports.VelocitySlider=e.VelocitySlider;exports.VelocitySliderLabel=e.VelocitySliderLabel;exports.ActivationSwitch=t.ActivationSwitch;exports.ConnectionWarning=t.ConnectionWarning;exports.RobotHeader=t.RobotHeader;exports.CurrentPose=n.CurrentPose;exports.useCurrentPoseProps=n.useCurrentPoseProps;exports.CurrentPoseBar=u.CurrentPoseBar;exports.JoggingButtons=S.JoggingButtons;exports.JoggingJointSlider=l.JoggingJointSlider;exports.JoggingRefusedError=d.JoggingRefusedError;exports.ControllerStateStream=o.ControllerStateStream;exports.JoggerConnection=o.JoggerConnection;exports.JoggingStore=o.JoggingStore;exports.MotionStreamConnection=o.MotionStreamConnection;exports.ROBOT_LOAD_STEP_IDS=o.ROBOT_LOAD_STEP_IDS;exports.RobotDescription=o.RobotDescription;exports.RobotLiveState=o.RobotLiveState;exports.RobotLoadProgress=o.RobotLoadProgress;exports.RobotLoadStepError=o.RobotLoadStepError;exports.RobotSafety=o.RobotSafety;exports.RobotSession=o.RobotSession;exports.RobotSessionLoad=o.RobotSessionLoad;exports.RobotTargetPose=o.RobotTargetPose;exports.TrajectoryExecutionStore=o.TrajectoryExecutionStore;exports.isRobotLoadStepError=o.isRobotLoadStepError;exports.jointValuesEqual=o.jointValuesEqual;exports.loadRobotSession=o.loadRobotSession;exports.planErrorTranslationKey=o.planErrorTranslationKey;exports.poseEqual=o.poseEqual;exports.tcpMotionEqual=o.tcpMotionEqual;exports.unwrapRotationVector=o.unwrapRotationVector;exports.ValueInterpolator=i.ValueInterpolator;exports.useInterpolation=i.useInterpolation;exports.useSmoothedMotionState=c.useSmoothedMotionState;exports.i18n=R.i18n;exports.deriveSelectedTcpPose=r.deriveSelectedTcpPose;exports.resolveCoordinateSystemInWorld=r.resolveCoordinateSystemInWorld;exports.transformPoseToCoordinateSystem=r.transformPoseToCoordinateSystem;exports.RobotActivation=s.RobotActivation;exports.RobotModeChangeError=s.RobotModeChangeError;exports.jointsToText=a.jointsToText;exports.poseToText=a.poseToText;exports.RobotSessionProvider=g.RobotSessionProvider;exports.useRobotSession=g.useRobotSession;exports.SafetyBar=b.SafetyBar;
package/dist/core.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import "@wandelbots/mui";
2
2
  export * from "./components/AppHeader";
3
- export { type ConnectionQuality, ConnectionWarning, type ConnectionWarningProps, } from "./components/connectionWarning/ConnectionWarning";
4
- export { connectionWarningOf } from "./components/connectionWarning/connectionWarningOf";
3
+ export { type ConnectionQuality, ConnectionWarning, type ConnectionWarningProps, type ConnectionWarningState, } from "./components/connectionWarning/ConnectionWarning";
5
4
  export { CurrentPose, type CurrentPoseProps, } from "./components/currentPoseBar/CurrentPose";
6
5
  export { CurrentPoseBar, type CurrentPoseBarProps, type CurrentPoseBarState, type EulerConvention, type OrientationFormat, } from "./components/currentPoseBar/CurrentPoseBar";
7
6
  export { useCurrentPoseProps } from "./components/currentPoseBar/useCurrentPoseProps";
@@ -17,8 +16,7 @@ export type { JogAxis, JogDirection, JogHandle, } from "./components/jogging/jog
17
16
  export type { JogControlsProps } from "./components/jogging/useJogControls";
18
17
  export * from "./components/LoadingCover";
19
18
  export { RobotHeader, type RobotHeaderActivation, type RobotHeaderActivationState, type RobotHeaderProps, } from "./components/robotHeader/RobotHeader";
20
- export { robotActivationOf } from "./components/robotHeader/robotActivationOf";
21
- export { robotSafetyOf } from "./components/robotHeader/robotSafetyOf";
19
+ export { ActivationSwitch, type ActivationSwitchOfSessionProps, } from "./components/robotHeader/ActivationSwitch";
22
20
  export type { RobotControlOption, RobotControlPose, RobotControlSelect, } from "./components/robotControl/RobotControlPanel";
23
21
  export * from "./components/modal/NoMotionGroupModal";
24
22
  export * from "./components/utils/interpolation";
@@ -26,11 +24,11 @@ export * from "./components/utils/useSmoothedMotionState";
26
24
  export * from "./components/VelocitySlider";
27
25
  export * from "./i18n/config";
28
26
  export * from "./lib/ConnectedMotionGroup";
29
- export { ControllerStateStream, type ControllerStateStreamError, type ControllerStateStreamOptions, MOTION_DELTA_THRESHOLD, } from "./lib/ControllerStateStream";
30
- export { type ControllerStateSource, controllerStateWebsocket, } from "./lib/controllerStateSource";
27
+ export { ControllerStateStream } from "./lib/ControllerStateStream";
28
+ export type { ControllerStateSource } from "./lib/controllerStateSource";
31
29
  export type { ConnectionLogger } from "./lib/connectionLogger";
32
30
  export * from "./lib/JoggerConnection";
33
- export * from "./lib/motionStateUpdate";
31
+ export { jointValuesEqual, type MotionStateReadout, poseEqual, tcpMotionEqual, unwrapRotationVector, } from "./lib/motionStateUpdate";
34
32
  export * from "./lib/MotionStreamConnection";
35
33
  export type { NovaConnection } from "./lib/novaConnection";
36
34
  export { planErrorTranslationKey } from "./lib/planErrorTranslation";
@@ -41,10 +39,10 @@ export { RobotDescription } from "./lib/robotSession/RobotDescription";
41
39
  export { isRobotLoadStepError, ROBOT_LOAD_STEP_IDS, RobotLoadProgress, type RobotLoadStep, RobotLoadStepError, type RobotLoadStepId, type RobotLoadStepStatus, } from "./lib/robotSession/RobotLoadProgress";
42
40
  export { RobotLiveState } from "./lib/robotSession/RobotLiveState";
43
41
  export { type RobotNotMoveableReason, RobotSafety, } from "./lib/robotSession/RobotSafety";
44
- export { type RobotPose, trajectoryTargetOf, } from "./lib/robotSession/robotPose";
42
+ export type { RobotPose } from "./lib/robotSession/robotPose";
45
43
  export { RobotSession, type RobotSessionError, type RobotSessionOptions, } from "./lib/robotSession/RobotSession";
46
44
  export { RobotTargetPose, type StagedTargetPose, } from "./lib/robotSession/RobotTargetPose";
47
- export { jointsToText, parseJointsText, parsePoseText, poseToText, } from "./components/robotControl/poseText";
48
- export * from "./lib/TrajectoryExecutionStore";
45
+ export { jointsToText, poseToText, } from "./components/robotControl/poseText";
46
+ export { type PlannedTrajectory, type PlanTrajectoryResult, TrajectoryExecutionStore, type TrajectoryState, type TrajectoryTarget, } from "./lib/TrajectoryExecutionStore";
49
47
  export { RobotSessionProvider, useRobotSession, } from "./components/robotSession/RobotSessionProvider";
50
48
  export * from "./SafetyBar";
package/dist/core.js CHANGED
@@ -1,82 +1,73 @@
1
1
  import "@wandelbots/mui";
2
- import { A as t, C as r, J as s, a as n, b as i, L as p, c as g, N as l, V as d, d as S } from "./chunks/ConnectedMotionGroup-BifrgwV1.js";
3
- import { C as f, R as c, c as m, r as R } from "./chunks/robotActivationOf-EzcT9g07.js";
4
- import { C as x, u as C } from "./chunks/CurrentPose-CdD2ZB7B.js";
5
- import { C as J } from "./chunks/CurrentPoseBar-CX1xFBtm.js";
6
- import { J as L } from "./chunks/JoggingButtons-aijK-3g6.js";
7
- import { J as O } from "./chunks/JoggingJointSlider-DQtt4-pa.js";
8
- import { J as M, t as V } from "./chunks/JoggingRefusedError-BIkUM6-g.js";
9
- import { C as v, J as A, a as q, M as D, b as I, R as _, c as h, d as B, e as H, f as W, g as N, h as k, i as G, j as w, T as K, k as U, l as z, m as F, n as Q, o as X, p as Y, q as Z, r as $, s as oo, t as ao, u as eo } from "./chunks/loadRobotSession-GHHtv5dv.js";
10
- import { S as ro, r as so } from "./chunks/robotSafetyOf-DuKKma1_.js";
11
- import { V as io, u as po, a as go } from "./chunks/useSmoothedMotionState-BSSV8aZN.js";
12
- import { i as So } from "./chunks/externalizeComponent-4juwPKL5.js";
13
- import { d as fo, r as co, t as mo } from "./chunks/PoseTransformer-CmuoS76S.js";
14
- import { R as bo, a as xo } from "./chunks/RobotActivation-C0rrwpQZ.js";
15
- import { j as To, p as Jo, a as Eo, b as Lo } from "./chunks/poseText-pg4cxE8R.js";
16
- import { R as Oo, u as yo } from "./chunks/RobotSessionProvider-TVaKGzqa.js";
2
+ import { A as r, C as t, J as s, a as n, b as i, L as p, c as g, N as l, V as S, d } from "./chunks/ConnectedMotionGroup-DNYakgxy.js";
3
+ import { A as u, C as R, R as f } from "./chunks/RobotHeader-LSuRTDFB.js";
4
+ import { C, u as b } from "./chunks/CurrentPose-CgdINEh2.js";
5
+ import { C as J } from "./chunks/CurrentPoseBar--HkZBGnN.js";
6
+ import { J as E } from "./chunks/JoggingButtons-BNOnpcTH.js";
7
+ import { J as L } from "./chunks/JoggingJointSlider-BY-Tof8G.js";
8
+ import { J as y } from "./chunks/JoggingRefusedError-C4D8_YR_.js";
9
+ import { C as v, J as A, a as j, M as h, R as B, b as I, c as q, d as D, e as O, f as _, g as w, h as G, i as H, T as N, j as W, k, l as K, p as z, m as F, t as Q, u as U } from "./chunks/loadRobotSession-Ts2MumBB.js";
10
+ import { V as Y, u as Z } from "./chunks/hooks-BWoeBWLV.js";
11
+ import { u as oo } from "./chunks/useSmoothedMotionState-CELh-YJa.js";
12
+ import { i as eo } from "./chunks/externalizeComponent-CChY_1bN.js";
13
+ import { d as to, r as so, t as no } from "./chunks/PoseTransformer-CmuoS76S.js";
14
+ import { R as po, a as go } from "./chunks/RobotActivation-oR-8Y0iq.js";
15
+ import { j as So, p as mo } from "./chunks/poseText-BxG4Caa-.js";
16
+ import { R as Ro, u as fo } from "./chunks/RobotSessionProvider-DuHi-dtw.js";
17
+ import { S as Co } from "./chunks/SafetyBar-C85BAKsL.js";
17
18
  export {
18
- t as AppHeader,
19
- r as ConnectedMotionGroup,
20
- f as ConnectionWarning,
19
+ u as ActivationSwitch,
20
+ r as AppHeader,
21
+ t as ConnectedMotionGroup,
22
+ R as ConnectionWarning,
21
23
  v as ControllerStateStream,
22
- x as CurrentPose,
24
+ C as CurrentPose,
23
25
  J as CurrentPoseBar,
24
26
  A as JoggerConnection,
25
- L as JoggingButtons,
27
+ E as JoggingButtons,
26
28
  s as JoggingCartesianAxisControl,
27
- O as JoggingJointSlider,
29
+ L as JoggingJointSlider,
28
30
  n as JoggingJointValueControl,
29
31
  i as JoggingPanel,
30
- M as JoggingRefusedError,
31
- q as JoggingStore,
32
+ y as JoggingRefusedError,
33
+ j as JoggingStore,
32
34
  p as LoadingCover,
33
35
  g as LoadingErrorMessage,
34
- D as MOTION_DELTA_THRESHOLD,
35
- I as MotionStreamConnection,
36
+ h as MotionStreamConnection,
36
37
  l as NoMotionGroupModal,
37
- _ as ROBOT_LOAD_STEP_IDS,
38
- bo as RobotActivation,
39
- h as RobotDescription,
40
- c as RobotHeader,
41
- B as RobotLiveState,
42
- H as RobotLoadProgress,
43
- W as RobotLoadStepError,
44
- xo as RobotModeChangeError,
45
- N as RobotSafety,
46
- k as RobotSession,
38
+ B as ROBOT_LOAD_STEP_IDS,
39
+ po as RobotActivation,
40
+ I as RobotDescription,
41
+ f as RobotHeader,
42
+ q as RobotLiveState,
43
+ D as RobotLoadProgress,
44
+ O as RobotLoadStepError,
45
+ go as RobotModeChangeError,
46
+ _ as RobotSafety,
47
+ w as RobotSession,
47
48
  G as RobotSessionLoad,
48
- Oo as RobotSessionProvider,
49
- w as RobotTargetPose,
50
- ro as SafetyBar,
51
- K as TrajectoryExecutionStore,
52
- io as ValueInterpolator,
53
- d as VelocitySlider,
54
- S as VelocitySliderLabel,
55
- m as connectionWarningOf,
56
- U as controllerStateWebsocket,
57
- fo as deriveSelectedTcpPose,
58
- So as i18n,
59
- z as isRobotLoadStepError,
60
- F as jointValuesEqual,
61
- Q as jointValuesUnchanged,
62
- To as jointsToText,
63
- X as loadRobotSession,
64
- Jo as parseJointsText,
65
- Eo as parsePoseText,
66
- Y as planErrorTranslationKey,
67
- Z as poseEqual,
68
- Lo as poseToText,
69
- $ as readoutOf,
70
- oo as readoutsEqual,
71
- co as resolveCoordinateSystemInWorld,
72
- R as robotActivationOf,
73
- so as robotSafetyOf,
74
- ao as tcpMotionEqual,
75
- V as trajectoryTargetOf,
76
- mo as transformPoseToCoordinateSystem,
77
- eo as unwrapRotationVector,
78
- C as useCurrentPoseProps,
79
- po as useInterpolation,
80
- yo as useRobotSession,
81
- go as useSmoothedMotionState
49
+ Ro as RobotSessionProvider,
50
+ H as RobotTargetPose,
51
+ Co as SafetyBar,
52
+ N as TrajectoryExecutionStore,
53
+ Y as ValueInterpolator,
54
+ S as VelocitySlider,
55
+ d as VelocitySliderLabel,
56
+ to as deriveSelectedTcpPose,
57
+ eo as i18n,
58
+ W as isRobotLoadStepError,
59
+ k as jointValuesEqual,
60
+ So as jointsToText,
61
+ K as loadRobotSession,
62
+ z as planErrorTranslationKey,
63
+ F as poseEqual,
64
+ mo as poseToText,
65
+ so as resolveCoordinateSystemInWorld,
66
+ Q as tcpMotionEqual,
67
+ no as transformPoseToCoordinateSystem,
68
+ U as unwrapRotationVector,
69
+ b as useCurrentPoseProps,
70
+ Z as useInterpolation,
71
+ fo as useRobotSession,
72
+ oo as useSmoothedMotionState
82
73
  };
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunks/Robot-Cfhjv9Z8.cjs"),e=require("./chunks/RobotScene-0ZJzXL50.cjs"),p=require("./chunks/JoggingGizmo-CoKYUtXq.cjs"),T=require("./chunks/JoggingGizmoOrientation-DVcagPRJ.cjs"),E=require("./chunks/RobotControlPanel-BpTpRBgy.cjs"),g=require("./chunks/RobotControl-DFnOYMAa.cjs"),l=require("./chunks/RobotView-BGYlAWj-.cjs"),a=require("./chunks/useSmoothedMotionState-B9WO73k0.cjs"),s=require("./chunks/Pose3-Ch4xVeXV.cjs");require("@wandelbots/mui");const t=require("./chunks/ConnectedMotionGroup-CybwJHkh.cjs"),n=require("./chunks/robotActivationOf-B4oV10Za.cjs"),c=require("./chunks/CurrentPose-CMqO8oqX.cjs"),C=require("./chunks/CurrentPoseBar-BTBAwIO4.cjs"),O=require("./chunks/JoggingButtons-BOHl7hVq.cjs"),P=require("./chunks/JoggingJointSlider-CTFYKzsU.cjs"),S=require("./chunks/JoggingRefusedError-BuCGsVsa.cjs"),o=require("./chunks/loadRobotSession-DYbeNnTI.cjs"),d=require("./chunks/robotSafetyOf-Dxm6s7Pp.cjs"),J=require("./chunks/externalizeComponent-Br_U-QAr.cjs"),u=require("./chunks/PoseTransformer-2QIzECOZ.cjs"),R=require("./chunks/RobotActivation-Bb0oNSBN.cjs"),i=require("./chunks/poseText-BXUaQWnK.cjs"),b=require("./chunks/RobotSessionProvider--AekyPqD.cjs");exports.CollisionSceneRenderer=r.CollisionSceneRenderer;exports.JointLimitGizmo=r.JointLimitGizmo;exports.LinearAxis=r.LinearAxis;exports.Robot=r.Robot;exports.TrajectoryRenderer=r.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=e.FLANGE_NODE_SUFFIX;exports.JOINT_NODE_NAME=e.JOINT_NODE_NAME;exports.JOINT_REST_SUFFIX=e.JOINT_REST_SUFFIX;exports.JoggingAxes=e.JoggingAxes;exports.MODEL_ROTATION=e.MODEL_ROTATION;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=e.MotionGroupVisualizerExact;exports.PresetEnvironment=e.PresetEnvironment;exports.RobotScene=e.RobotScene;exports.RobotSceneView=e.RobotSceneView;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedLinearAxisExact=e.SupportedLinearAxisExact;exports.SupportedRobot=e.SupportedRobot;exports.SupportedRobotExact=e.SupportedRobotExact;exports.defaultGetModel=e.defaultGetModel;exports.jointIndexOf=e.jointIndexOf;exports.revokeAllModelUrls=e.revokeAllModelUrls;exports.robotModelOf=e.robotModelOf;exports.useRobotSceneProps=e.useRobotSceneProps;exports.JoggingGizmo=p.JoggingGizmo;exports.JoggingGizmoOrientation=T.JoggingGizmoOrientation;exports.RobotControlPanel=E.RobotControlPanel;exports.RobotControl=g.RobotControl;exports.useRobotControlProps=g.useRobotControlProps;exports.RobotCanvas=l.RobotCanvas;exports.RobotView=l.RobotView;exports.ValueInterpolator=a.ValueInterpolator;exports.useInterpolation=a.useInterpolation;exports.useSmoothedMotionState=a.useSmoothedMotionState;exports.Pose3=s.Pose3;exports.parseRotationToQuaternion=s.parseRotationToQuaternion;exports.quaternionToRotationVector=s.quaternionToRotationVector;exports.AppHeader=t.AppHeader;exports.ConnectedMotionGroup=t.ConnectedMotionGroup;exports.JoggingCartesianAxisControl=t.JoggingCartesianAxisControl;exports.JoggingJointValueControl=t.JoggingJointValueControl;exports.JoggingPanel=t.JoggingPanel;exports.LoadingCover=t.LoadingCover;exports.LoadingErrorMessage=t.LoadingErrorMessage;exports.NoMotionGroupModal=t.NoMotionGroupModal;exports.VelocitySlider=t.VelocitySlider;exports.VelocitySliderLabel=t.VelocitySliderLabel;exports.ConnectionWarning=n.ConnectionWarning;exports.RobotHeader=n.RobotHeader;exports.connectionWarningOf=n.connectionWarningOf;exports.robotActivationOf=n.robotActivationOf;exports.CurrentPose=c.CurrentPose;exports.useCurrentPoseProps=c.useCurrentPoseProps;exports.CurrentPoseBar=C.CurrentPoseBar;exports.JoggingButtons=O.JoggingButtons;exports.JoggingJointSlider=P.JoggingJointSlider;exports.JoggingRefusedError=S.JoggingRefusedError;exports.trajectoryTargetOf=S.trajectoryTargetOf;exports.ControllerStateStream=o.ControllerStateStream;exports.JoggerConnection=o.JoggerConnection;exports.JoggingStore=o.JoggingStore;exports.MOTION_DELTA_THRESHOLD=o.MOTION_DELTA_THRESHOLD;exports.MotionStreamConnection=o.MotionStreamConnection;exports.ROBOT_LOAD_STEP_IDS=o.ROBOT_LOAD_STEP_IDS;exports.RobotDescription=o.RobotDescription;exports.RobotLiveState=o.RobotLiveState;exports.RobotLoadProgress=o.RobotLoadProgress;exports.RobotLoadStepError=o.RobotLoadStepError;exports.RobotSafety=o.RobotSafety;exports.RobotSession=o.RobotSession;exports.RobotSessionLoad=o.RobotSessionLoad;exports.RobotTargetPose=o.RobotTargetPose;exports.TrajectoryExecutionStore=o.TrajectoryExecutionStore;exports.controllerStateWebsocket=o.controllerStateWebsocket;exports.isRobotLoadStepError=o.isRobotLoadStepError;exports.jointValuesEqual=o.jointValuesEqual;exports.jointValuesUnchanged=o.jointValuesUnchanged;exports.loadRobotSession=o.loadRobotSession;exports.planErrorTranslationKey=o.planErrorTranslationKey;exports.poseEqual=o.poseEqual;exports.readoutOf=o.readoutOf;exports.readoutsEqual=o.readoutsEqual;exports.tcpMotionEqual=o.tcpMotionEqual;exports.unwrapRotationVector=o.unwrapRotationVector;exports.SafetyBar=d.SafetyBar;exports.robotSafetyOf=d.robotSafetyOf;exports.i18n=J.i18n;exports.deriveSelectedTcpPose=u.deriveSelectedTcpPose;exports.resolveCoordinateSystemInWorld=u.resolveCoordinateSystemInWorld;exports.transformPoseToCoordinateSystem=u.transformPoseToCoordinateSystem;exports.RobotActivation=R.RobotActivation;exports.RobotModeChangeError=R.RobotModeChangeError;exports.jointsToText=i.jointsToText;exports.parseJointsText=i.parseJointsText;exports.parsePoseText=i.parsePoseText;exports.poseToText=i.poseToText;exports.RobotSessionProvider=b.RobotSessionProvider;exports.useRobotSession=b.useRobotSession;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./chunks/Robot-DRf8T9Zf.cjs"),e=require("./chunks/RobotScene-Au6zpHH1.cjs"),d=require("./chunks/JoggingGizmo-CNFjpWDv.cjs"),b=require("./chunks/JoggingGizmoOrientation-laUrgY0N.cjs"),p=require("./chunks/RobotControlPanel-B7NxoHsO.cjs"),s=require("./chunks/RobotControl-Dbe50ZKM.cjs"),a=require("./chunks/RobotView-Cg6JfGiY.cjs"),u=require("./chunks/hooks-BXe2bNMo.cjs"),C=require("./chunks/useSmoothedMotionState-CCXmMZ0S.cjs"),g=require("./chunks/Pose3-BfBNPRDM.cjs");require("@wandelbots/mui");const t=require("./chunks/ConnectedMotionGroup-IRTsTxwB.cjs"),n=require("./chunks/RobotHeader-CjOaf9s6.cjs"),S=require("./chunks/CurrentPose-CAq9e9JY.cjs"),P=require("./chunks/CurrentPoseBar-DoOUfRRs.cjs"),E=require("./chunks/JoggingButtons-Boaym2hQ.cjs"),J=require("./chunks/JoggingJointSlider-Dm3vILd3.cjs"),T=require("./chunks/JoggingRefusedError-DqyrfUcc.cjs"),o=require("./chunks/loadRobotSession-BzY9H3F8.cjs"),q=require("./chunks/externalizeComponent-CA_sHzyH.cjs"),i=require("./chunks/PoseTransformer-2QIzECOZ.cjs"),l=require("./chunks/RobotActivation-CRVxXvlx.cjs"),R=require("./chunks/poseText-CwplkbDM.cjs"),c=require("./chunks/RobotSessionProvider-CoF_tX0O.cjs"),m=require("./chunks/SafetyBar-D2l81Omq.cjs");exports.CollisionSceneRenderer=r.CollisionSceneRenderer;exports.JointLimitGizmo=r.JointLimitGizmo;exports.LinearAxis=r.LinearAxis;exports.Robot=r.Robot;exports.TrajectoryRenderer=r.TrajectoryRenderer;exports.FLANGE_NODE_SUFFIX=e.FLANGE_NODE_SUFFIX;exports.JOINT_REST_SUFFIX=e.JOINT_REST_SUFFIX;exports.JoggingAxes=e.JoggingAxes;exports.MotionGroupVisualizer=e.MotionGroupVisualizer;exports.MotionGroupVisualizerExact=e.MotionGroupVisualizerExact;exports.PresetEnvironment=e.PresetEnvironment;exports.RobotScene=e.RobotScene;exports.RobotSceneView=e.RobotSceneView;exports.SafetyZonesRenderer=e.SafetyZonesRenderer;exports.SupportedLinearAxis=e.SupportedLinearAxis;exports.SupportedLinearAxisExact=e.SupportedLinearAxisExact;exports.SupportedRobot=e.SupportedRobot;exports.SupportedRobotExact=e.SupportedRobotExact;exports.defaultGetModel=e.defaultGetModel;exports.jointIndexOf=e.jointIndexOf;exports.robotModelOf=e.robotModelOf;exports.useRobotSceneProps=e.useRobotSceneProps;exports.JoggingGizmo=d.JoggingGizmo;exports.JoggingGizmoOrientation=b.JoggingGizmoOrientation;exports.RobotControlPanel=p.RobotControlPanel;exports.RobotControl=s.RobotControl;exports.useRobotControlProps=s.useRobotControlProps;exports.RobotCanvas=a.RobotCanvas;exports.RobotView=a.RobotView;exports.ValueInterpolator=u.ValueInterpolator;exports.useInterpolation=u.useInterpolation;exports.useSmoothedMotionState=C.useSmoothedMotionState;exports.Pose3=g.Pose3;exports.parseRotationToQuaternion=g.parseRotationToQuaternion;exports.AppHeader=t.AppHeader;exports.ConnectedMotionGroup=t.ConnectedMotionGroup;exports.JoggingCartesianAxisControl=t.JoggingCartesianAxisControl;exports.JoggingJointValueControl=t.JoggingJointValueControl;exports.JoggingPanel=t.JoggingPanel;exports.LoadingCover=t.LoadingCover;exports.LoadingErrorMessage=t.LoadingErrorMessage;exports.NoMotionGroupModal=t.NoMotionGroupModal;exports.VelocitySlider=t.VelocitySlider;exports.VelocitySliderLabel=t.VelocitySliderLabel;exports.ActivationSwitch=n.ActivationSwitch;exports.ConnectionWarning=n.ConnectionWarning;exports.RobotHeader=n.RobotHeader;exports.CurrentPose=S.CurrentPose;exports.useCurrentPoseProps=S.useCurrentPoseProps;exports.CurrentPoseBar=P.CurrentPoseBar;exports.JoggingButtons=E.JoggingButtons;exports.JoggingJointSlider=J.JoggingJointSlider;exports.JoggingRefusedError=T.JoggingRefusedError;exports.ControllerStateStream=o.ControllerStateStream;exports.JoggerConnection=o.JoggerConnection;exports.JoggingStore=o.JoggingStore;exports.MotionStreamConnection=o.MotionStreamConnection;exports.ROBOT_LOAD_STEP_IDS=o.ROBOT_LOAD_STEP_IDS;exports.RobotDescription=o.RobotDescription;exports.RobotLiveState=o.RobotLiveState;exports.RobotLoadProgress=o.RobotLoadProgress;exports.RobotLoadStepError=o.RobotLoadStepError;exports.RobotSafety=o.RobotSafety;exports.RobotSession=o.RobotSession;exports.RobotSessionLoad=o.RobotSessionLoad;exports.RobotTargetPose=o.RobotTargetPose;exports.TrajectoryExecutionStore=o.TrajectoryExecutionStore;exports.isRobotLoadStepError=o.isRobotLoadStepError;exports.jointValuesEqual=o.jointValuesEqual;exports.loadRobotSession=o.loadRobotSession;exports.planErrorTranslationKey=o.planErrorTranslationKey;exports.poseEqual=o.poseEqual;exports.tcpMotionEqual=o.tcpMotionEqual;exports.unwrapRotationVector=o.unwrapRotationVector;exports.i18n=q.i18n;exports.deriveSelectedTcpPose=i.deriveSelectedTcpPose;exports.resolveCoordinateSystemInWorld=i.resolveCoordinateSystemInWorld;exports.transformPoseToCoordinateSystem=i.transformPoseToCoordinateSystem;exports.RobotActivation=l.RobotActivation;exports.RobotModeChangeError=l.RobotModeChangeError;exports.jointsToText=R.jointsToText;exports.poseToText=R.poseToText;exports.RobotSessionProvider=c.RobotSessionProvider;exports.useRobotSession=c.useRobotSession;exports.SafetyBar=m.SafetyBar;
package/dist/index.js CHANGED
@@ -1,125 +1,112 @@
1
- import { C as r, J as t, L as s, R as n, T as i } from "./chunks/Robot-C-IWfxP9.js";
2
- import { F as l, J as R, a as g, b as d, M as u, c as S, d as f, P as x, R as m, e as b, S as c, f as T, g as C, h as J, i as E, j as O, k as L, r as P, l as M, u as A } from "./chunks/RobotScene-DpFeFpnx.js";
3
- import { J as y } from "./chunks/JoggingGizmo-DHvrJouR.js";
4
- import { J as I } from "./chunks/JoggingGizmoOrientation-CIvIAIeO.js";
5
- import { R as v } from "./chunks/RobotControlPanel-B1_9g9D-.js";
6
- import { R as G, u as D } from "./chunks/RobotControl-Cv6Sr1Ni.js";
7
- import { R as F, a as h } from "./chunks/RobotView-D-v8jCM7.js";
8
- import { V as k, u as B, a as H } from "./chunks/useSmoothedMotionState-BSSV8aZN.js";
9
- import { P as W, p as w, q as X } from "./chunks/Pose3-B_fLR-Wv.js";
1
+ import { C as r, J as t, L as s, R as n, T as i } from "./chunks/Robot-B-VAYuAr.js";
2
+ import { F as R, J as g, a as S, M as d, b as l, P as u, R as m, c as x, S as f, d as b, e as c, f as C, g as J, h as E, j as P, r as T, u as L } from "./chunks/RobotScene-C6XEgaVR.js";
3
+ import { J as A } from "./chunks/JoggingGizmo-RDiEVQes.js";
4
+ import { J as y } from "./chunks/JoggingGizmoOrientation-Dzzz2gEz.js";
5
+ import { R as G } from "./chunks/RobotControlPanel-CkQlkq8x.js";
6
+ import { R as I, u as O } from "./chunks/RobotControl-Ms1F7fFe.js";
7
+ import { R as F, a as h } from "./chunks/RobotView-CrAxNkyG.js";
8
+ import { V as N, u as w } from "./chunks/hooks-BWoeBWLV.js";
9
+ import { u as D } from "./chunks/useSmoothedMotionState-CELh-YJa.js";
10
+ import { P as H, p as U } from "./chunks/Pose3-DWxfC6Dj.js";
10
11
  import "@wandelbots/mui";
11
- import { A as Q, C as Z, J as Y, a as $, b as oo, L as ao, c as eo, N as ro, V as to, d as so } from "./chunks/ConnectedMotionGroup-BifrgwV1.js";
12
- import { C as io, R as po, c as lo, r as Ro } from "./chunks/robotActivationOf-EzcT9g07.js";
13
- import { C as uo, u as So } from "./chunks/CurrentPose-CdD2ZB7B.js";
14
- import { C as xo } from "./chunks/CurrentPoseBar-CX1xFBtm.js";
15
- import { J as bo } from "./chunks/JoggingButtons-aijK-3g6.js";
16
- import { J as To } from "./chunks/JoggingJointSlider-DQtt4-pa.js";
17
- import { J as Jo, t as Eo } from "./chunks/JoggingRefusedError-BIkUM6-g.js";
18
- import { C as Lo, J as Po, a as Mo, M as Ao, b as Vo, R as yo, c as _o, d as Io, e as jo, f as vo, g as No, h as Go, i as Do, j as qo, T as Fo, k as ho, l as zo, m as ko, n as Bo, o as Ho, p as Uo, q as Wo, r as wo, s as Xo, t as Ko, u as Qo } from "./chunks/loadRobotSession-GHHtv5dv.js";
19
- import { S as Yo, r as $o } from "./chunks/robotSafetyOf-DuKKma1_.js";
20
- import { i as aa } from "./chunks/externalizeComponent-4juwPKL5.js";
21
- import { d as ra, r as ta, t as sa } from "./chunks/PoseTransformer-CmuoS76S.js";
22
- import { R as ia, a as pa } from "./chunks/RobotActivation-C0rrwpQZ.js";
23
- import { j as Ra, p as ga, a as da, b as ua } from "./chunks/poseText-pg4cxE8R.js";
24
- import { R as fa, u as xa } from "./chunks/RobotSessionProvider-TVaKGzqa.js";
12
+ import { A as X, C as k, J as K, a as Q, b as Z, L as Y, c as $, N as oo, V as eo, d as ao } from "./chunks/ConnectedMotionGroup-DNYakgxy.js";
13
+ import { A as to, C as so, R as no } from "./chunks/RobotHeader-LSuRTDFB.js";
14
+ import { C as po, u as Ro } from "./chunks/CurrentPose-CgdINEh2.js";
15
+ import { C as So } from "./chunks/CurrentPoseBar--HkZBGnN.js";
16
+ import { J as uo } from "./chunks/JoggingButtons-BNOnpcTH.js";
17
+ import { J as xo } from "./chunks/JoggingJointSlider-BY-Tof8G.js";
18
+ import { J as bo } from "./chunks/JoggingRefusedError-C4D8_YR_.js";
19
+ import { C as Co, J as Jo, a as Eo, M as Po, R as To, b as Lo, c as Mo, d as Ao, e as Vo, f as yo, g as vo, h as Go, i as jo, T as Io, j as Oo, k as _o, l as Fo, p as ho, m as zo, t as No, u as wo } from "./chunks/loadRobotSession-Ts2MumBB.js";
20
+ import { i as Do } from "./chunks/externalizeComponent-CChY_1bN.js";
21
+ import { d as Ho, r as Uo, t as Wo } from "./chunks/PoseTransformer-CmuoS76S.js";
22
+ import { R as ko, a as Ko } from "./chunks/RobotActivation-oR-8Y0iq.js";
23
+ import { j as Zo, p as Yo } from "./chunks/poseText-BxG4Caa-.js";
24
+ import { R as oe, u as ee } from "./chunks/RobotSessionProvider-DuHi-dtw.js";
25
+ import { S as re } from "./chunks/SafetyBar-C85BAKsL.js";
25
26
  export {
26
- Q as AppHeader,
27
+ to as ActivationSwitch,
28
+ X as AppHeader,
27
29
  r as CollisionSceneRenderer,
28
- Z as ConnectedMotionGroup,
29
- io as ConnectionWarning,
30
- Lo as ControllerStateStream,
31
- uo as CurrentPose,
32
- xo as CurrentPoseBar,
33
- l as FLANGE_NODE_SUFFIX,
34
- R as JOINT_NODE_NAME,
30
+ k as ConnectedMotionGroup,
31
+ so as ConnectionWarning,
32
+ Co as ControllerStateStream,
33
+ po as CurrentPose,
34
+ So as CurrentPoseBar,
35
+ R as FLANGE_NODE_SUFFIX,
35
36
  g as JOINT_REST_SUFFIX,
36
- Po as JoggerConnection,
37
- d as JoggingAxes,
38
- bo as JoggingButtons,
39
- Y as JoggingCartesianAxisControl,
40
- y as JoggingGizmo,
41
- I as JoggingGizmoOrientation,
42
- To as JoggingJointSlider,
43
- $ as JoggingJointValueControl,
44
- oo as JoggingPanel,
45
- Jo as JoggingRefusedError,
46
- Mo as JoggingStore,
37
+ Jo as JoggerConnection,
38
+ S as JoggingAxes,
39
+ uo as JoggingButtons,
40
+ K as JoggingCartesianAxisControl,
41
+ A as JoggingGizmo,
42
+ y as JoggingGizmoOrientation,
43
+ xo as JoggingJointSlider,
44
+ Q as JoggingJointValueControl,
45
+ Z as JoggingPanel,
46
+ bo as JoggingRefusedError,
47
+ Eo as JoggingStore,
47
48
  t as JointLimitGizmo,
48
49
  s as LinearAxis,
49
- ao as LoadingCover,
50
- eo as LoadingErrorMessage,
51
- u as MODEL_ROTATION,
52
- Ao as MOTION_DELTA_THRESHOLD,
53
- S as MotionGroupVisualizer,
54
- f as MotionGroupVisualizerExact,
55
- Vo as MotionStreamConnection,
56
- ro as NoMotionGroupModal,
57
- W as Pose3,
58
- x as PresetEnvironment,
59
- yo as ROBOT_LOAD_STEP_IDS,
50
+ Y as LoadingCover,
51
+ $ as LoadingErrorMessage,
52
+ d as MotionGroupVisualizer,
53
+ l as MotionGroupVisualizerExact,
54
+ Po as MotionStreamConnection,
55
+ oo as NoMotionGroupModal,
56
+ H as Pose3,
57
+ u as PresetEnvironment,
58
+ To as ROBOT_LOAD_STEP_IDS,
60
59
  n as Robot,
61
- ia as RobotActivation,
60
+ ko as RobotActivation,
62
61
  F as RobotCanvas,
63
- G as RobotControl,
64
- v as RobotControlPanel,
65
- _o as RobotDescription,
66
- po as RobotHeader,
67
- Io as RobotLiveState,
68
- jo as RobotLoadProgress,
69
- vo as RobotLoadStepError,
70
- pa as RobotModeChangeError,
71
- No as RobotSafety,
62
+ I as RobotControl,
63
+ G as RobotControlPanel,
64
+ Lo as RobotDescription,
65
+ no as RobotHeader,
66
+ Mo as RobotLiveState,
67
+ Ao as RobotLoadProgress,
68
+ Vo as RobotLoadStepError,
69
+ Ko as RobotModeChangeError,
70
+ yo as RobotSafety,
72
71
  m as RobotScene,
73
- b as RobotSceneView,
74
- Go as RobotSession,
75
- Do as RobotSessionLoad,
76
- fa as RobotSessionProvider,
77
- qo as RobotTargetPose,
72
+ x as RobotSceneView,
73
+ vo as RobotSession,
74
+ Go as RobotSessionLoad,
75
+ oe as RobotSessionProvider,
76
+ jo as RobotTargetPose,
78
77
  h as RobotView,
79
- Yo as SafetyBar,
80
- c as SafetyZonesRenderer,
81
- T as SupportedLinearAxis,
82
- C as SupportedLinearAxisExact,
83
- J as SupportedRobot,
84
- E as SupportedRobotExact,
85
- Fo as TrajectoryExecutionStore,
78
+ re as SafetyBar,
79
+ f as SafetyZonesRenderer,
80
+ b as SupportedLinearAxis,
81
+ c as SupportedLinearAxisExact,
82
+ C as SupportedRobot,
83
+ J as SupportedRobotExact,
84
+ Io as TrajectoryExecutionStore,
86
85
  i as TrajectoryRenderer,
87
- k as ValueInterpolator,
88
- to as VelocitySlider,
89
- so as VelocitySliderLabel,
90
- lo as connectionWarningOf,
91
- ho as controllerStateWebsocket,
92
- O as defaultGetModel,
93
- ra as deriveSelectedTcpPose,
94
- aa as i18n,
95
- zo as isRobotLoadStepError,
96
- L as jointIndexOf,
97
- ko as jointValuesEqual,
98
- Bo as jointValuesUnchanged,
99
- Ra as jointsToText,
100
- Ho as loadRobotSession,
101
- ga as parseJointsText,
102
- da as parsePoseText,
103
- w as parseRotationToQuaternion,
104
- Uo as planErrorTranslationKey,
105
- Wo as poseEqual,
106
- ua as poseToText,
107
- X as quaternionToRotationVector,
108
- wo as readoutOf,
109
- Xo as readoutsEqual,
110
- ta as resolveCoordinateSystemInWorld,
111
- P as revokeAllModelUrls,
112
- Ro as robotActivationOf,
113
- M as robotModelOf,
114
- $o as robotSafetyOf,
115
- Ko as tcpMotionEqual,
116
- Eo as trajectoryTargetOf,
117
- sa as transformPoseToCoordinateSystem,
118
- Qo as unwrapRotationVector,
119
- So as useCurrentPoseProps,
120
- B as useInterpolation,
121
- D as useRobotControlProps,
122
- A as useRobotSceneProps,
123
- xa as useRobotSession,
124
- H as useSmoothedMotionState
86
+ N as ValueInterpolator,
87
+ eo as VelocitySlider,
88
+ ao as VelocitySliderLabel,
89
+ E as defaultGetModel,
90
+ Ho as deriveSelectedTcpPose,
91
+ Do as i18n,
92
+ Oo as isRobotLoadStepError,
93
+ P as jointIndexOf,
94
+ _o as jointValuesEqual,
95
+ Zo as jointsToText,
96
+ Fo as loadRobotSession,
97
+ U as parseRotationToQuaternion,
98
+ ho as planErrorTranslationKey,
99
+ zo as poseEqual,
100
+ Yo as poseToText,
101
+ Uo as resolveCoordinateSystemInWorld,
102
+ T as robotModelOf,
103
+ No as tcpMotionEqual,
104
+ Wo as transformPoseToCoordinateSystem,
105
+ wo as unwrapRotationVector,
106
+ Ro as useCurrentPoseProps,
107
+ w as useInterpolation,
108
+ O as useRobotControlProps,
109
+ L as useRobotSceneProps,
110
+ ee as useRobotSession,
111
+ D as useSmoothedMotionState
125
112
  };
@@ -3,15 +3,26 @@ import type { MotionGroupDescription, MotionGroupState, RobotControllerState } f
3
3
  import * as THREE from "three";
4
4
  import type { Vector3Simple } from "./JoggerConnection";
5
5
  import { type NovaConnection } from "./novaConnection";
6
+ /**
7
+ * A TCP of {@link ConnectedMotionGroup}
8
+ *
9
+ * @deprecated With `ConnectedMotionGroup`. A session has its TCPs in
10
+ * `description.tcps` and `description.tcpOffsetsById`.
11
+ */
6
12
  export type RobotTcpLike = {
7
13
  id: string;
8
14
  readable_name: string;
9
15
  position: Vector3Simple;
10
16
  orientation: Vector3Simple;
11
17
  };
18
+ /** @deprecated Nothing uses it; no replacement */
12
19
  export type MotionGroupOption = {
13
20
  selectionId: string;
14
21
  };
22
+ /**
23
+ * @deprecated With `ConnectedMotionGroup`. `loadRobotSession` takes
24
+ * `LoadRobotSessionOptions`.
25
+ */
15
26
  export type ConnectedMotionGroupOptions = {
16
27
  /** Cell id on the Nova instance. Defaults to "cell". */
17
28
  cellId?: string;
@@ -9,7 +9,7 @@ export type ControllerStateStreamError = {
9
9
  /** The source's URL */
10
10
  url?: string;
11
11
  };
12
- /** What an app can give a {@link ControllerStateStream} besides its source */
12
+ /** What the session gives a {@link ControllerStateStream} besides its source */
13
13
  export type ControllerStateStreamOptions = {
14
14
  /**
15
15
  * A virtual robot: its stream can come more slowly, depending on the speed
@@ -68,17 +68,12 @@ export declare class ControllerStateStream {
68
68
  private readonly isVirtual;
69
69
  private readonly onError?;
70
70
  private readonly reconnectsOnFocus;
71
- constructor(
72
- /** Where the controller state comes from; its owner closes it */
73
- source: ControllerStateSource,
74
- /** The motion group whose state the stream keeps */
75
- motionGroupId: string, initialControllerState: RobotControllerState, options?: ControllerStateStreamOptions);
76
71
  /** The controller's state as of the last message that changed it */
77
72
  get controllerState(): RobotControllerState;
78
73
  /**
79
74
  * What pose and joint readouts show. Holds the previous reading while the
80
- * joints only jitter, see {@link readoutsEqual}; kept alive so it also holds
81
- * for untracked reads.
75
+ * joints only jitter (less than 0.0002 rad), and while the TCP and the
76
+ * coordinate system stay; kept alive so it also holds for untracked reads.
82
77
  */
83
78
  get readoutState(): MotionStateReadout;
84
79
  /** The motion group's state in the next message of the source */
@@ -119,7 +114,12 @@ export declare class ControllerStateStream {
119
114
  private setConnectionQuality;
120
115
  private handleWindowFocus;
121
116
  private updateConnectionQuality;
122
- /** Stops listening to the source; the source's owner closes it */
117
+ /**
118
+ * Stops listening to the source; the source's owner closes it. The
119
+ * connection is critical from then on: no state comes any more, and the
120
+ * last one is not the robot's now (a robot that may move, for whatever
121
+ * still reads it).
122
+ */
123
123
  dispose(): void;
124
124
  private handleMessage;
125
125
  }