@wandelbots/wandelbots-js-react-components 6.3.0 → 6.4.0-pr.chore-public-names.673.cb7ee37

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 (196) hide show
  1. package/README.md +255 -122
  2. package/dist/3d.cjs +1 -1
  3. package/dist/3d.d.ts +7 -3
  4. package/dist/3d.js +20 -20
  5. package/dist/CurrentPoseBar/index.cjs +1 -0
  6. package/dist/CurrentPoseBar/index.d.ts +2 -0
  7. package/dist/CurrentPoseBar/index.js +5 -0
  8. package/dist/JoggingButtons/index.cjs +1 -0
  9. package/dist/JoggingButtons/index.d.ts +3 -0
  10. package/dist/JoggingButtons/index.js +5 -0
  11. package/dist/JoggingGizmo/index.cjs +1 -0
  12. package/dist/JoggingGizmo/index.d.ts +5 -0
  13. package/dist/JoggingGizmo/index.js +6 -0
  14. package/dist/JoggingJointSlider/index.cjs +1 -0
  15. package/dist/JoggingJointSlider/index.d.ts +2 -0
  16. package/dist/JoggingJointSlider/index.js +5 -0
  17. package/dist/SafetyBar/index.cjs +1 -1
  18. package/dist/SafetyBar/index.js +1 -1
  19. package/dist/chunks/ConnectedMotionGroup-D9JJSyXB.js +1822 -0
  20. package/dist/chunks/ConnectedMotionGroup-ir7Vf690.cjs +3 -0
  21. package/dist/chunks/CurrentPoseBar-Cbz4AO36.cjs +1 -0
  22. package/dist/chunks/CurrentPoseBar-CpwvWpEY.js +619 -0
  23. package/dist/chunks/JoggingButtons-i8FdMpCx.js +108 -0
  24. package/dist/chunks/JoggingButtons-paQCBXf4.cjs +1 -0
  25. package/dist/chunks/JoggingGizmoOrientation-CKZeLcMp.js +893 -0
  26. package/dist/chunks/JoggingGizmoOrientation-EPtBeAun.cjs +1 -0
  27. package/dist/chunks/JoggingJointSlider-DQhJOmcc.js +378 -0
  28. package/dist/chunks/JoggingJointSlider-YcEBMgF1.cjs +1 -0
  29. package/dist/chunks/Pose3-Ci1bxEvz.js +1373 -0
  30. package/dist/chunks/Pose3-DwMOSTKO.cjs +1 -0
  31. package/dist/chunks/SafetyBar-Be1c6Vz9.cjs +1 -0
  32. package/dist/chunks/{SafetyBar-Cy9DiXp9.js → SafetyBar-WXLP3Yi0.js} +34 -32
  33. package/dist/chunks/{externalizeComponent-EDymnaGR.js → externalizeComponent-7OVHUIUh.js} +84 -134
  34. package/dist/chunks/externalizeComponent-B0n_tR3v.cjs +2 -0
  35. package/dist/chunks/holdSafety-Cbej6-Kc.js +62 -0
  36. package/dist/chunks/holdSafety-TeMXlYQe.cjs +1 -0
  37. package/dist/chunks/joggingColors-BKRoSGQu.js +132 -0
  38. package/dist/chunks/joggingColors-BkPm75Hr.cjs +1 -0
  39. package/dist/chunks/json-3cqBD7UQ.js +18 -0
  40. package/dist/chunks/json-Bd6uGfgP.cjs +1 -0
  41. package/dist/chunks/loadRobotSession-Bt1-Brjp.js +3761 -0
  42. package/dist/chunks/loadRobotSession-DHVuK_pj.cjs +1 -0
  43. package/dist/chunks/novaConnection-BTSIgWd1.cjs +1 -0
  44. package/dist/chunks/novaConnection-J6_ohIQ0.js +14 -0
  45. package/dist/chunks/poseText-BXUaQWnK.cjs +1 -0
  46. package/dist/chunks/poseText-CtdXIeT_.js +41 -0
  47. package/dist/chunks/useSmoothedMotionState-C_Vo0py0.js +202 -0
  48. package/dist/chunks/useSmoothedMotionState-Ce9NjwBu.cjs +1 -0
  49. package/dist/components/AppHeader.d.ts +1 -1
  50. package/dist/components/VelocitySlider.d.ts +6 -1
  51. package/dist/components/currentPoseBar/CurrentPoseBar.d.ts +48 -0
  52. package/dist/components/currentPoseBar/OrientationFormatPopover.d.ts +19 -0
  53. package/dist/components/currentPoseBar/StreamStatus.d.ts +10 -0
  54. package/dist/components/currentPoseBar/orientation.d.ts +34 -0
  55. package/dist/components/currentPoseBar/poseValues.d.ts +15 -0
  56. package/dist/components/jogging/JoggingButtons.d.ts +18 -0
  57. package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +8 -2
  58. package/dist/components/jogging/JoggingCartesianTab.d.ts +3 -0
  59. package/dist/components/jogging/JoggingJointTab.d.ts +4 -1
  60. package/dist/components/jogging/JoggingJointValueControl.d.ts +7 -1
  61. package/dist/components/jogging/JoggingPanel.d.ts +6 -3
  62. package/dist/components/jogging/JoggingRefusedError.d.ts +24 -0
  63. package/dist/components/jogging/JoggingStore.d.ts +382 -40
  64. package/dist/components/jogging/gizmo/JoggingGizmo.d.ts +53 -0
  65. package/dist/components/jogging/gizmo/JoggingGizmoOrientation.d.ts +26 -0
  66. package/dist/components/jogging/gizmo/RotationHandles.d.ts +7 -0
  67. package/dist/components/jogging/gizmo/RotationScene.d.ts +6 -0
  68. package/dist/components/jogging/gizmo/TranslationHandles.d.ts +6 -0
  69. package/dist/components/jogging/gizmo/TranslationScene.d.ts +6 -0
  70. package/dist/components/jogging/gizmo/arcGrabAreas.d.ts +58 -0
  71. package/dist/components/jogging/gizmo/arcs.d.ts +54 -0
  72. package/dist/components/jogging/gizmo/arrows.d.ts +63 -0
  73. package/dist/components/jogging/gizmo/gizmoShared.d.ts +135 -0
  74. package/dist/components/jogging/gizmo/gizmoView.d.ts +42 -0
  75. package/dist/components/jogging/gizmo/useGizmoTurn.d.ts +11 -0
  76. package/dist/components/jogging/holdSafety.d.ts +82 -0
  77. package/dist/components/jogging/jogError.d.ts +9 -0
  78. package/dist/components/jogging/jogHandle.d.ts +23 -0
  79. package/dist/components/jogging/joggingColors.d.ts +30 -0
  80. package/dist/components/jogging/joggingVelocity.d.ts +21 -0
  81. package/dist/components/jogging/joint/JoggingJointSlider.d.ts +56 -0
  82. package/dist/components/jogging/joint/JointSliderTrack.d.ts +27 -0
  83. package/dist/components/jogging/joint/jointJog.d.ts +55 -0
  84. package/dist/components/jogging/joint/useJointJogHold.d.ts +43 -0
  85. package/dist/components/jogging/useHold.d.ts +42 -0
  86. package/dist/components/jogging/useJogControls.d.ts +44 -0
  87. package/dist/components/robotControl/PanelSelect.d.ts +13 -0
  88. package/dist/components/robotControl/SmallSelect.d.ts +15 -0
  89. package/dist/components/robotControl/poseText.d.ts +43 -0
  90. package/dist/components/robotControl/robotControlTypes.d.ts +36 -0
  91. package/dist/components/robotControl/useCopyText.d.ts +12 -0
  92. package/dist/components/robotControl/useEveryFrame.d.ts +6 -0
  93. package/dist/components/robots/GenericRobot.d.ts +2 -1
  94. package/dist/components/robots/LinearAxis.d.ts +1 -1
  95. package/dist/components/robots/LinearAxisAnimator.d.ts +11 -2
  96. package/dist/components/robots/Robot.d.ts +1 -1
  97. package/dist/components/robots/robotModelLogic.d.ts +11 -9
  98. package/dist/components/utils/converters.d.ts +0 -2
  99. package/dist/components/utils/hooks.d.ts +1 -6
  100. package/dist/components/utils/json.d.ts +4 -0
  101. package/dist/components/utils/useSmoothedMotionState.d.ts +11 -2
  102. package/dist/components/utils/useWebGLRenderer.d.ts +32 -0
  103. package/dist/components/utils/webglSupport.d.ts +11 -0
  104. package/dist/core.cjs +1 -1
  105. package/dist/core.d.ts +28 -20
  106. package/dist/core.js +57 -54
  107. package/dist/index.cjs +1 -1
  108. package/dist/index.js +73 -70
  109. package/dist/lib/ConnectedMotionGroup.d.ts +9 -8
  110. package/dist/lib/ControllerStateStream.d.ts +125 -0
  111. package/dist/lib/JoggerConnection.d.ts +172 -27
  112. package/dist/lib/MotionStreamConnection.d.ts +16 -6
  113. package/dist/lib/Pose3.d.ts +22 -0
  114. package/dist/lib/PoseTransformer.d.ts +44 -0
  115. package/dist/lib/TrajectoryExecutionStore.d.ts +260 -0
  116. package/dist/lib/connectionLogger.d.ts +9 -0
  117. package/dist/lib/controllerStateSource.d.ts +38 -0
  118. package/dist/lib/incrementalCartesianMotion.d.ts +40 -0
  119. package/dist/lib/motionGroupModelResources.d.ts +1 -0
  120. package/dist/lib/motionStateUpdate.d.ts +44 -0
  121. package/dist/lib/nats/natsControllerStateSource.d.ts +27 -0
  122. package/dist/lib/novaConnection.d.ts +23 -0
  123. package/dist/lib/planErrorTranslation.d.ts +8 -0
  124. package/dist/lib/poseMath.d.ts +51 -0
  125. package/dist/lib/robotSession/RobotActivation.d.ts +90 -0
  126. package/dist/lib/robotSession/RobotDescription.d.ts +84 -0
  127. package/dist/lib/robotSession/RobotLiveState.d.ts +65 -0
  128. package/dist/lib/robotSession/RobotLoadProgress.d.ts +72 -0
  129. package/dist/lib/robotSession/RobotSafety.d.ts +59 -0
  130. package/dist/lib/robotSession/RobotSession.d.ts +117 -0
  131. package/dist/lib/robotSession/RobotTargetPose.d.ts +116 -0
  132. package/dist/lib/robotSession/loadRobotResources.d.ts +46 -0
  133. package/dist/lib/robotSession/loadRobotSession.d.ts +81 -0
  134. package/dist/lib/robotSession/robotPose.d.ts +27 -0
  135. package/dist/lib/rotation.d.ts +12 -0
  136. package/dist/nats.cjs +1 -0
  137. package/dist/nats.d.ts +4 -0
  138. package/dist/nats.js +131 -0
  139. package/dist/session.cjs +1 -0
  140. package/dist/session.d.ts +22 -0
  141. package/dist/session.js +33 -0
  142. package/package.json +68 -66
  143. package/dist/Setup.d.ts +0 -11
  144. package/dist/chunks/MotionGroupVisualizer-DshWR1wY.js +0 -1653
  145. package/dist/chunks/MotionGroupVisualizer-eD7yFEcF.cjs +0 -1
  146. package/dist/chunks/SafetyBar-DPrv_OQA.cjs +0 -1
  147. package/dist/chunks/externalizeComponent-OO4jcrz5.cjs +0 -2
  148. package/dist/chunks/theming-DfSy4-Ic.cjs +0 -4
  149. package/dist/chunks/theming-mF9Rt8SS.js +0 -5542
  150. package/dist/chunks/useSmoothedMotionState-DyDgSVYX.js +0 -478
  151. package/dist/chunks/useSmoothedMotionState-VYxEIyfr.cjs +0 -1
  152. package/dist/components/3d-viewport/CoordinateSystemTransform.d.ts +0 -11
  153. package/dist/components/AdornedTextField.d.ts +0 -7
  154. package/dist/components/CopyableText.d.ts +0 -6
  155. package/dist/components/CycleTimer/CycleTimer.d.ts +0 -3
  156. package/dist/components/CycleTimer/DefaultVariant.d.ts +0 -9
  157. package/dist/components/CycleTimer/SmallVariant.d.ts +0 -10
  158. package/dist/components/CycleTimer/index.d.ts +0 -27
  159. package/dist/components/CycleTimer/types.d.ts +0 -49
  160. package/dist/components/CycleTimer/useAnimations.d.ts +0 -14
  161. package/dist/components/CycleTimer/useTimerLogic.d.ts +0 -24
  162. package/dist/components/CycleTimer/utils.d.ts +0 -21
  163. package/dist/components/CycleTimer.d.ts +0 -3
  164. package/dist/components/DataGrid.d.ts +0 -66
  165. package/dist/components/LogPanel.d.ts +0 -38
  166. package/dist/components/LogStore.d.ts +0 -12
  167. package/dist/components/LogViewer.d.ts +0 -46
  168. package/dist/components/ProgramControl.d.ts +0 -55
  169. package/dist/components/ProgramStateIndicator.d.ts +0 -26
  170. package/dist/components/RobotCard.d.ts +0 -98
  171. package/dist/components/RobotListItem.d.ts +0 -34
  172. package/dist/components/RobotSetupReadinessIndicator.d.ts +0 -37
  173. package/dist/components/SelectableFab.d.ts +0 -7
  174. package/dist/components/TabBar.d.ts +0 -45
  175. package/dist/components/ThemeSelect.d.ts +0 -6
  176. package/dist/components/Timer/Timer.d.ts +0 -3
  177. package/dist/components/Timer/TimerDefaultVariant.d.ts +0 -9
  178. package/dist/components/Timer/TimerSmallVariant.d.ts +0 -10
  179. package/dist/components/Timer/index.d.ts +0 -19
  180. package/dist/components/Timer/types.d.ts +0 -35
  181. package/dist/components/Timer/useTimerAnimations.d.ts +0 -10
  182. package/dist/components/Timer/useTimerLogic.d.ts +0 -19
  183. package/dist/components/Timer/utils.d.ts +0 -17
  184. package/dist/components/Timer.d.ts +0 -3
  185. package/dist/components/TransparentOverlay.d.ts +0 -4
  186. package/dist/components/jogging/JoggingFreedriveTab.d.ts +0 -1
  187. package/dist/components/jogging/PoseCartesianValues.d.ts +0 -9
  188. package/dist/components/jogging/PoseJointValues.d.ts +0 -8
  189. package/dist/components/robots/AxisConfig.d.ts +0 -2
  190. package/dist/components/robots/manufacturerHomePositions.d.ts +0 -20
  191. package/dist/icons/DropdownArrowIcon.d.ts +0 -2
  192. package/dist/icons/index.d.ts +0 -12
  193. package/dist/lib/novaCompat.d.ts +0 -16
  194. package/dist/themes/createDarkTheme.d.ts +0 -7
  195. package/dist/themes/themeTypes.d.ts +0 -40
  196. package/dist/themes/theming.d.ts +0 -24
@@ -0,0 +1,117 @@
1
+ import { JoggingStore, type JoggingStoreStorage } from "../../components/jogging/JoggingStore";
2
+ import type { ConnectionLogger } from "../connectionLogger";
3
+ import { type JoggerMode } from "../JoggerConnection";
4
+ import { TrajectoryExecutionStore } from "../TrajectoryExecutionStore";
5
+ import { RobotActivation } from "./RobotActivation";
6
+ import { RobotDescription } from "./RobotDescription";
7
+ import { RobotLiveState } from "./RobotLiveState";
8
+ import { RobotSafety } from "./RobotSafety";
9
+ import { RobotTargetPose } from "./RobotTargetPose";
10
+ /** Something that went wrong in a robot session, for the app to show */
11
+ export type RobotSessionError = {
12
+ /**
13
+ * What failed: a mode change, a jog, a message of the live state, or an
14
+ * automatic activation
15
+ */
16
+ kind: "mode" | "jog" | "stream";
17
+ message: string;
18
+ /** The request or stream it came from */
19
+ url?: string;
20
+ cause?: unknown;
21
+ };
22
+ /** What an app can give a robot session */
23
+ export type RobotSessionOptions = {
24
+ /** The app's lock: a locked app plans and starts no trajectory */
25
+ isLocked?: () => boolean;
26
+ /**
27
+ * Gets what goes wrong in the background: a jog error, a message of the
28
+ * live state the session could not use, a failed automatic activation.
29
+ * What an app calls itself (e.g. `activation.activate()`) rejects instead.
30
+ */
31
+ onError?: (error: RobotSessionError) => void;
32
+ /**
33
+ * Where to keep the user's jogging settings, e.g. `localStorage`. Without
34
+ * it nothing is kept.
35
+ */
36
+ storage?: JoggingStoreStorage;
37
+ /** Where the session's connections log. Defaults to the console. */
38
+ logger?: ConnectionLogger;
39
+ /** Activate a virtual robot once it is loaded. Defaults to false. */
40
+ autoActivateVirtual?: boolean;
41
+ };
42
+ /**
43
+ * One robot of a NOVA cell, loaded and connected: what NOVA describes about
44
+ * it, its live state, its safety and activation, its jogging and its moves to
45
+ * a pose. Made by {@link loadRobotSession}; {@link RobotSession.dispose}
46
+ * closes its connections.
47
+ */
48
+ export declare class RobotSession {
49
+ readonly motionGroupId: string;
50
+ readonly controllerId: string;
51
+ readonly cellId: string;
52
+ /** What NOVA describes about the robot; does not change */
53
+ readonly description: RobotDescription;
54
+ /** The live state of the robot and its controller, and its TCP pose */
55
+ readonly state: RobotLiveState;
56
+ /** Whether the robot may be activated and moved, and why not */
57
+ readonly safety: RobotSafety;
58
+ /** The robot's activation (control mode) */
59
+ readonly activation: RobotActivation;
60
+ /**
61
+ * Jogging the robot, with the user's jogging settings. It starts no jog
62
+ * while the robot may not move ({@link RobotSafety.canBeMoved}): the start
63
+ * rejects with a `JoggingRefusedError` that says why.
64
+ */
65
+ readonly jogging: JoggingStore;
66
+ /**
67
+ * Moving the robot to a pose along a planned trajectory (Move to). Its
68
+ * `hold` starts nothing while the robot may not move, as jogging.
69
+ */
70
+ readonly trajectory: TrajectoryExecutionStore;
71
+ /**
72
+ * A pose the user types in, planned so Move to can drive there. It plans
73
+ * and moves nothing while the robot may not move, as jogging.
74
+ */
75
+ readonly targetPose: RobotTargetPose;
76
+ private readonly stateSource;
77
+ private readonly motionStateSocket;
78
+ private readonly onError;
79
+ /** Which motion owns the robot: jogging, a trajectory, or none ("off") */
80
+ get movementOwner(): JoggerMode;
81
+ /**
82
+ * Hands the robot to jogging or to a trajectory: the controller runs only
83
+ * one of them at a time.
84
+ *
85
+ * Handing it to jogging opens the jogging websocket, a movement connection
86
+ * for which NOVA switches the controller to control mode by itself. So it
87
+ * rejects with a `JoggingRefusedError` as a jog of {@link RobotSession.jogging}
88
+ * does, while the robot may not move or its jogging store is locked.
89
+ * Handing it to a trajectory opens nothing.
90
+ */
91
+ ensureMovementOwnership(target: Exclude<JoggerMode, "off">): Promise<void>;
92
+ /**
93
+ * Why the jogging store starts no jog now, and Move to plans and starts
94
+ * no move, or null when the robot can move. While the robot is activating
95
+ * or deactivating its safety has no reason (the robot is not
96
+ * deactivated). But its controller is not in control mode yet, where NOVA
97
+ * would switch it for the movement request, or is about to leave it: no
98
+ * jog and no move then either.
99
+ */
100
+ private get jogRefusedReason();
101
+ /**
102
+ * Hands back what holds the controller in control mode, before the robot
103
+ * is deactivated: a step that runs, which is stopped and over once the
104
+ * robot stands still (NOVA would run it to its end), and a planned move
105
+ */
106
+ private releaseControl;
107
+ /**
108
+ * Drops a planned move: a staged typed pose, or a trajectory the app
109
+ * planned itself (RobotPad: to a saved pose). It holds the controller's
110
+ * execution session, which keeps the controller in control mode: also
111
+ * when the store has no plan any more (the robot arrived, the move
112
+ * failed), since NOVA keeps the trajectory.
113
+ */
114
+ private releasePlannedMove;
115
+ /** Closes the session's connections and stops following the robot */
116
+ dispose(): void;
117
+ }
@@ -0,0 +1,116 @@
1
+ import { type RobotPose } from "./robotPose";
2
+ /**
3
+ * A typed-in target pose that has been confirmed by the user. While one is
4
+ * staged it replaces the live pose in the pose field, and -- if planning
5
+ * succeeded -- can be driven to with Move to, stored, or discarded again.
6
+ */
7
+ export type StagedTargetPose = {
8
+ pose: RobotPose;
9
+ displayString: string;
10
+ /**
11
+ * Translation key of why the robot cannot move to this pose: its planning
12
+ * failed, or the move to it did. null if the plan succeeded and the
13
+ * trajectory is ready to execute.
14
+ */
15
+ errorKey: string | null;
16
+ /**
17
+ * NOVA's reason for a failed move, the `message` of the text of
18
+ * `errorKey`: `t(errorKey, { message: errorMessage })`
19
+ */
20
+ errorMessage?: string;
21
+ };
22
+ /**
23
+ * A typed-in target pose of a robot (RB-3805): lets the user type in a
24
+ * cartesian pose or joint configuration, validates it, and stages it by
25
+ * planning a trajectory to it, so Move to can drive there. The text is read
26
+ * like the displayed pose it replaces: in the selected TCP and coordinate
27
+ * system, or as the joints on the joint tab. An app with a pose field of its
28
+ * own stages the pose as numbers with {@link RobotTargetPose.plan}.
29
+ */
30
+ export declare class RobotTargetPose {
31
+ private readonly robot;
32
+ private readonly logger;
33
+ /** True while the field is an input the user is typing into */
34
+ editing: boolean;
35
+ /** Current contents of the input while editing */
36
+ draft: string;
37
+ /** True while a confirmed pose is being planned against the backend */
38
+ confirming: boolean;
39
+ staged: StagedTargetPose | null;
40
+ /**
41
+ * Runs before a confirmed pose is planned, e.g. to release another flow
42
+ * that holds the trajectory (RobotPad: a selected saved pose)
43
+ */
44
+ onBeforePlan?: () => Promise<void>;
45
+ /**
46
+ * True once the staged pose's trajectory has actually driven the robot.
47
+ * Tells "the robot moved here and arrived" apart from "this pose was typed
48
+ * for where the robot already stands", which must stay staged.
49
+ */
50
+ private moveStarted;
51
+ private readonly disposers;
52
+ dispose(): void;
53
+ get phase(): "view" | "editing" | "staged" | "error";
54
+ private get isJointTab();
55
+ /** The live pose as text: the joints on the joint tab, else the TCP pose */
56
+ get liveDisplayString(): string;
57
+ /** What the field shows outside of edit mode: staged value or live pose */
58
+ get displayString(): string;
59
+ /** Parsed form of the draft, or null while it is not a valid pose */
60
+ private get parsedDraft();
61
+ get draftValid(): boolean;
62
+ beginEdit(): void;
63
+ setDraft(text: string): void;
64
+ cancelEdit(): void;
65
+ /**
66
+ * Confirms the edit: plans the pose in the draft and stages it, see
67
+ * {@link RobotTargetPose.plan}. Does nothing while the draft is no pose.
68
+ */
69
+ confirmEdit(): Promise<void>;
70
+ /**
71
+ * Stages a pose: validates it against the backend by planning a trajectory
72
+ * to it. On success the trajectory is left initialized on the execution
73
+ * socket, so Move to is armed immediately; on a planner rejection the pose
74
+ * stays staged with the failure explanation, as it does when the move to
75
+ * it fails later: planning it again is the way out. While the robot may
76
+ * not move,
77
+ * it plans nothing and drops the pose that was staged before: the one
78
+ * asked for last is the one to show, and no other may stay armed behind
79
+ * it. Does nothing while another pose is planned.
80
+ *
81
+ * What {@link RobotTargetPose.confirmEdit} does with the text of the
82
+ * draft, for an app that has the pose as numbers: a cartesian pose is of
83
+ * its own TCP and in its own coordinate system, whatever is displayed.
84
+ */
85
+ plan(pose: RobotPose): Promise<void>;
86
+ /**
87
+ * The Move to button is held: the robot moves to the staged pose while it
88
+ * is, see {@link TrajectoryExecutionStore.hold}. `pose` is the pose that
89
+ * the button's panel shows: nothing moves unless that is the staged pose,
90
+ * so a panel that shows another one (its plan is still to come, or was
91
+ * refused) cannot start the move to this one. Nothing moves while the
92
+ * robot may not move either: the staged pose stays for when it may.
93
+ * Returns whether the robot moves for this hold.
94
+ * {@link RobotTargetPose.releaseMove} ends the hold.
95
+ */
96
+ holdMove(pose: RobotPose): boolean;
97
+ /**
98
+ * The Move to button was let go: the robot stops, see
99
+ * {@link TrajectoryExecutionStore.release}. Safe to call without a hold.
100
+ */
101
+ releaseMove(): Promise<void>;
102
+ /** Discards the staged pose and shows the live pose again */
103
+ resetToLive(): Promise<void>;
104
+ /** Drops the staged pose and hands the trajectory that was planned to it back */
105
+ private dropStaged;
106
+ /**
107
+ * Drops the staged pose and the edit without touching the trajectory: for
108
+ * when another flow has just planned its own (RobotPad: a saved pose that
109
+ * the user selected)
110
+ */
111
+ clear(): void;
112
+ /** The staged pose, if it is valid to store or move to */
113
+ get stagedPose(): RobotPose | null;
114
+ /** True when the robot has arrived at (or already was at) the staged pose */
115
+ get isRobotAtStagedPose(): boolean;
116
+ }
@@ -0,0 +1,46 @@
1
+ import type { AutoReconnectingWebsocket } from "@wandelbots/nova-js";
2
+ import type { CoordinateSystem, KinematicModel, MotionGroupDescription, MotionGroupState, Nova, RobotControllerConfiguration, RobotControllerState } from "@wandelbots/nova-js/v2";
3
+ import type { ControllerStateSource } from "../controllerStateSource";
4
+ import { type RobotLoadProgress } from "./RobotLoadProgress";
5
+ /**
6
+ * How long to wait for the first message on a stream before treating the
7
+ * robot as unreachable. Without this the load waits forever: NATS reconnects
8
+ * indefinitely and never rejects, so a controller that never publishes state
9
+ * left the user staring at a spinner.
10
+ */
11
+ export declare const SOCKET_FIRST_MESSAGE_TIMEOUT_MS = 10000;
12
+ /** Everything a robot session needs fetched before it can show a robot */
13
+ export type RobotLoadResources = {
14
+ motionGroupDescription: MotionGroupDescription;
15
+ controllerConfiguration: RobotControllerConfiguration;
16
+ kinematicModel: KinematicModel;
17
+ /** Model holding this robot's data; a custom copy when its serial number has one */
18
+ motionGroupModelName: string;
19
+ coordinateSystems: CoordinateSystem[];
20
+ /** Controller state as fetched over HTTP, used to seed the motion stream */
21
+ controllerState: RobotControllerState;
22
+ motionGroupState: MotionGroupState;
23
+ initialMotionState: MotionGroupState;
24
+ motionStateSocket: AutoReconnectingWebsocket;
25
+ /** Where the controller's live state comes from */
26
+ stateSource: ControllerStateSource;
27
+ /** First controller state from {@link stateSource} */
28
+ initialControllerState: RobotControllerState;
29
+ /** Release the streams opened during the load */
30
+ dispose(): void;
31
+ };
32
+ export type LoadRobotResourcesOptions = {
33
+ nova: Nova;
34
+ cellId: string;
35
+ controllerId: string;
36
+ motionGroupId: string;
37
+ progress: RobotLoadProgress;
38
+ /** Opens the source of the controller's live state */
39
+ createStateSource: (options: {
40
+ cellId: string;
41
+ controllerId: string;
42
+ }) => ControllerStateSource;
43
+ /** Returns true once a newer load has superseded this one */
44
+ isStale?: () => boolean;
45
+ socketTimeoutMs?: number;
46
+ };
@@ -0,0 +1,81 @@
1
+ import { type ControllerStateSource } from "../controllerStateSource";
2
+ import { type NovaConnection } from "../novaConnection";
3
+ import { RobotLoadProgress, type RobotLoadStepId } from "./RobotLoadProgress";
4
+ import { RobotSession, type RobotSessionOptions } from "./RobotSession";
5
+ /** Something worth an app's analytics during a load */
6
+ export type RobotSessionEvent = {
7
+ type: "loadFailed";
8
+ motionGroupId: string;
9
+ /** The load step that failed, or "unknown" for another failure */
10
+ step: RobotLoadStepId | "unknown";
11
+ message: string;
12
+ /** How many times the load was tried */
13
+ attempts: number;
14
+ };
15
+ /** What an app can give {@link loadRobotSession} */
16
+ export type LoadRobotSessionOptions = RobotSessionOptions & {
17
+ /** The NOVA cell; defaults to the cell of an older nova-js client, or "cell" */
18
+ cellId?: string;
19
+ /** The robot's controller; defaults to the part after "@" of the motion group id */
20
+ controllerId?: string;
21
+ /**
22
+ * Opens the source of the controller's live state. Defaults to NOVA's
23
+ * websocket of the controller's state; `natsControllerStateSource` of
24
+ * `/nats` is the alternative.
25
+ */
26
+ stateSource?: (options: {
27
+ cellId: string;
28
+ controllerId: string;
29
+ }) => ControllerStateSource;
30
+ /** Gets events for analytics, e.g. a load that failed */
31
+ onEvent?: (event: RobotSessionEvent) => void;
32
+ /** Delays before each automatic retry of a failed load step, in ms */
33
+ retryDelaysMs?: number[];
34
+ /** How long to wait for a stream's first message, in ms */
35
+ socketTimeoutMs?: number;
36
+ };
37
+ export type RobotSessionLoadState = "loading" | "ready" | "failed";
38
+ /**
39
+ * The load of a {@link RobotSession}: its state and progress, the session
40
+ * once it is ready, retry after a failure, and dispose
41
+ */
42
+ export declare class RobotSessionLoad {
43
+ private readonly nova;
44
+ readonly motionGroupId: string;
45
+ private readonly ids;
46
+ private readonly options;
47
+ /** "loading" (also between automatic retries), "ready" or "failed" */
48
+ state: RobotSessionLoadState;
49
+ /** Which load steps are done, running or failed, for a loading screen */
50
+ readonly progress: RobotLoadProgress;
51
+ /** The session, once it is ready */
52
+ session: RobotSession | null;
53
+ /** Why the load failed */
54
+ error: unknown;
55
+ private attempt;
56
+ private disposed;
57
+ private readyPromise;
58
+ private settle;
59
+ /**
60
+ * Resolves with the session once it is ready; rejects when the load fails
61
+ * or is disposed. After {@link RobotSessionLoad.retry}, a new promise for the new load.
62
+ */
63
+ get ready(): Promise<RobotSession>;
64
+ /** Loads the robot again after a failure */
65
+ retry(): void;
66
+ /** Stops a running load and closes the session */
67
+ dispose(): void;
68
+ private start;
69
+ private isStale;
70
+ private run;
71
+ }
72
+ /**
73
+ * Loads one robot of a NOVA cell into a {@link RobotSession}: its
74
+ * description, kinematic model, coordinate systems and live state, with
75
+ * automatic retries. The returned load tells the progress; `await
76
+ * load.ready` gives the session.
77
+ *
78
+ * @param connection - The NOVA instance: its URL, or the app's NOVA client
79
+ * @param motionGroupId - The robot, e.g. "0@ur5e"
80
+ */
81
+ export declare function loadRobotSession(connection: NovaConnection, motionGroupId: string, options?: LoadRobotSessionOptions): RobotSessionLoad;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * A pose of a robot to move to or to store: its joint values, or a TCP's
3
+ * pose in a coordinate system. The same shape as RobotPad's saved poses.
4
+ */
5
+ export type RobotPose = {
6
+ type: "joint";
7
+ motionGroupId: string;
8
+ /** rad, or mm for a linear axis */
9
+ joints: number[];
10
+ } | {
11
+ type: "cartesian";
12
+ motionGroupId: string;
13
+ tcpPose: {
14
+ /** Position in mm, orientation as a rotation vector in rad */
15
+ pose: {
16
+ position: number[];
17
+ orientation?: number[];
18
+ };
19
+ coordSystemId: string;
20
+ tcpId: string;
21
+ };
22
+ };
23
+ /**
24
+ * Whether two poses are the same: the same numbers for the same motion
25
+ * group, and for a TCP's pose the same TCP and coordinate system
26
+ */
27
+ export declare function sameRobotPose(a: RobotPose, b: RobotPose): boolean;
@@ -0,0 +1,12 @@
1
+ import type { OrientationType } from "@wandelbots/nova-js/v2";
2
+ import { Quaternion, Vector3 } from "three";
3
+ /**
4
+ * The quaternion of an orientation of the NOVA API. Supports rotation
5
+ * vectors and quaternions; any other type warns and gives no rotation.
6
+ */
7
+ export declare function parseRotationToQuaternion(orientation?: Array<number>, orientationType?: OrientationType): Quaternion;
8
+ /**
9
+ * Convert a quaternion to a [rad, rad, rad] rotation vector
10
+ * See https://code.wabo.run/robotics/wb-robotix/-/blob/develop/src/math/core/include/wb/math/QuaternionBasePlugin.h
11
+ */
12
+ export declare function quaternionToRotationVector(q: Quaternion): Vector3;
package/dist/nats.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("nats.ws"),h=require("./chunks/json-Bd6uGfgP.cjs"),r=0,o=1,c=3;function a(n){try{const t=new URL(n);return t.username="",t.password="",t.search="",t.toString()}catch{return n.split("?")[0]??n}}class u extends EventTarget{constructor(t,e,s){super(),this.natsUrl=t,this.subject=e,this.logger=s,this.nc=null,this.subscription=null,this.reconnectAttempts=0,this.reconnectDelay=1e3,this.maxReconnectDelay=3e4,this.isManuallyClosing=!1,this.readyState=r,this.connect()}get url(){return`${a(this.natsUrl)} (subject: ${this.subject})`}async connect(){try{if(this.logger.info("Connecting to NATS",{url:a(this.natsUrl)}),this.readyState=r,this.nc=await l.connect({servers:this.natsUrl,maxReconnectAttempts:-1,reconnectTimeWait:this.reconnectDelay}),this.isManuallyClosing){this.logger.info("NATS connection closed while still connecting");const e=this.nc;this.nc=null,this.readyState=c,await e.close();return}this.logger.info("Connected to NATS, subscribing to subject",{subject:this.subject}),this.readyState=o,this.reconnectAttempts=0,this.reconnectDelay=1e3,this.subscribe();const t=this.nc;(async()=>(await t.closed(),this.logger.info("NATS connection closed"),this.readyState=c,this.isManuallyClosing||this.attemptReconnect()))()}catch(t){this.logger.warn("Failed to connect to NATS",t),this.readyState=c,this.isManuallyClosing||this.attemptReconnect()}}subscribe(){if(!this.nc)throw new Error("NATS connection not established");const t=this.nc.subscribe(this.subject);this.subscription=t,(async()=>{for await(const e of t){const s=new MessageEvent("message",{data:new TextDecoder().decode(e.data)});this.receivedFirstMessage??(this.receivedFirstMessage=s),this.dispatchEvent(s)}})()}attemptReconnect(){if(this.isManuallyClosing)return;this.reconnectAttempts++;const t=Math.min(this.reconnectDelay*2**(this.reconnectAttempts-1),this.maxReconnectDelay);this.logger.debug("Attempting to reconnect to NATS",{attempt:this.reconnectAttempts,delayMs:t}),setTimeout(()=>{this.connect()},t)}reconnect(){if(this.readyState===o&&this.nc){this.reconnectAttempts=0,this.reconnectDelay=1e3;return}this.close(),this.isManuallyClosing=!1,this.connect()}async close(){this.isManuallyClosing=!0,this.subscription&&(await this.subscription.unsubscribe(),this.subscription=null),this.nc&&(await this.nc.close(),this.nc=null),this.readyState=c}nextMessage(){return new Promise(t=>{const e=s=>{this.removeEventListener("message",e),t(s)};this.addEventListener("message",e)})}firstMessage(){return this.receivedFirstMessage?Promise.resolve(this.receivedFirstMessage):this.nextMessage()}}function d(n){const t=`nova.v2.cells.${n.cellId??"cell"}.controllers.${n.controllerId}.state`,e=new u(n.url,t,n.logger??console);return{get url(){return e.url},get readyState(){return e.readyState},addEventListener:(s,i)=>e.addEventListener(s,i),removeEventListener:(s,i)=>e.removeEventListener(s,i),firstMessage:()=>e.firstMessage(),nextMessage:()=>e.nextMessage(),reconnect:()=>e.reconnect(),close:()=>e.close(),parse:s=>h.tryParseJson(s)}}function g(n){const t=typeof n=="string"?n:n.config.instanceUrl;let e;try{e=typeof window<"u"?new URL(t,window.location.origin):new URL(t)}catch{throw new Error(`Invalid NOVA instance URL for NATS: ${t}`)}const s=e.protocol==="https:",i=e.port||(s?"443":"80");return`${s?"wss:":"ws:"}//${e.hostname}:${i}/api/nats`}exports.natsControllerStateSource=d;exports.natsUrlOf=g;
package/dist/nats.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export type { ConnectionLogger } from "./lib/connectionLogger";
2
+ export type { ControllerStateSource } from "./lib/controllerStateSource";
3
+ export { type NatsControllerStateSourceOptions, natsControllerStateSource, natsUrlOf, } from "./lib/nats/natsControllerStateSource";
4
+ export type { NovaConnection } from "./lib/novaConnection";
package/dist/nats.js ADDED
@@ -0,0 +1,131 @@
1
+ import { connect as l } from "nats.ws";
2
+ import { t as h } from "./chunks/json-3cqBD7UQ.js";
3
+ const r = 0, o = 1, c = 3;
4
+ function a(n) {
5
+ try {
6
+ const t = new URL(n);
7
+ return t.username = "", t.password = "", t.search = "", t.toString();
8
+ } catch {
9
+ return n.split("?")[0] ?? n;
10
+ }
11
+ }
12
+ class u extends EventTarget {
13
+ constructor(t, e, s) {
14
+ super(), this.natsUrl = t, this.subject = e, this.logger = s, this.nc = null, this.subscription = null, this.reconnectAttempts = 0, this.reconnectDelay = 1e3, this.maxReconnectDelay = 3e4, this.isManuallyClosing = !1, this.readyState = r, this.connect();
15
+ }
16
+ /** The server and the subject, without credentials */
17
+ get url() {
18
+ return `${a(this.natsUrl)} (subject: ${this.subject})`;
19
+ }
20
+ async connect() {
21
+ try {
22
+ if (this.logger.info("Connecting to NATS", {
23
+ url: a(this.natsUrl)
24
+ }), this.readyState = r, this.nc = await l({
25
+ servers: this.natsUrl,
26
+ maxReconnectAttempts: -1,
27
+ reconnectTimeWait: this.reconnectDelay
28
+ }), this.isManuallyClosing) {
29
+ this.logger.info("NATS connection closed while still connecting");
30
+ const e = this.nc;
31
+ this.nc = null, this.readyState = c, await e.close();
32
+ return;
33
+ }
34
+ this.logger.info("Connected to NATS, subscribing to subject", {
35
+ subject: this.subject
36
+ }), this.readyState = o, this.reconnectAttempts = 0, this.reconnectDelay = 1e3, this.subscribe();
37
+ const t = this.nc;
38
+ (async () => (await t.closed(), this.logger.info("NATS connection closed"), this.readyState = c, this.isManuallyClosing || this.attemptReconnect()))();
39
+ } catch (t) {
40
+ this.logger.warn("Failed to connect to NATS", t), this.readyState = c, this.isManuallyClosing || this.attemptReconnect();
41
+ }
42
+ }
43
+ subscribe() {
44
+ if (!this.nc)
45
+ throw new Error("NATS connection not established");
46
+ const t = this.nc.subscribe(this.subject);
47
+ this.subscription = t, (async () => {
48
+ for await (const e of t) {
49
+ const s = new MessageEvent("message", {
50
+ data: new TextDecoder().decode(e.data)
51
+ });
52
+ this.receivedFirstMessage ?? (this.receivedFirstMessage = s), this.dispatchEvent(s);
53
+ }
54
+ })();
55
+ }
56
+ attemptReconnect() {
57
+ if (this.isManuallyClosing)
58
+ return;
59
+ this.reconnectAttempts++;
60
+ const t = Math.min(
61
+ this.reconnectDelay * 2 ** (this.reconnectAttempts - 1),
62
+ this.maxReconnectDelay
63
+ );
64
+ this.logger.debug("Attempting to reconnect to NATS", {
65
+ attempt: this.reconnectAttempts,
66
+ delayMs: t
67
+ }), setTimeout(() => {
68
+ this.connect();
69
+ }, t);
70
+ }
71
+ /** Connects again, unless it is connected */
72
+ reconnect() {
73
+ if (this.readyState === o && this.nc) {
74
+ this.reconnectAttempts = 0, this.reconnectDelay = 1e3;
75
+ return;
76
+ }
77
+ this.close(), this.isManuallyClosing = !1, this.connect();
78
+ }
79
+ async close() {
80
+ this.isManuallyClosing = !0, this.subscription && (await this.subscription.unsubscribe(), this.subscription = null), this.nc && (await this.nc.close(), this.nc = null), this.readyState = c;
81
+ }
82
+ nextMessage() {
83
+ return new Promise((t) => {
84
+ const e = (s) => {
85
+ this.removeEventListener("message", e), t(s);
86
+ };
87
+ this.addEventListener("message", e);
88
+ });
89
+ }
90
+ firstMessage() {
91
+ return this.receivedFirstMessage ? Promise.resolve(this.receivedFirstMessage) : this.nextMessage();
92
+ }
93
+ }
94
+ function y(n) {
95
+ const t = `nova.v2.cells.${n.cellId ?? "cell"}.controllers.${n.controllerId}.state`, e = new u(
96
+ n.url,
97
+ t,
98
+ n.logger ?? console
99
+ );
100
+ return {
101
+ get url() {
102
+ return e.url;
103
+ },
104
+ get readyState() {
105
+ return e.readyState;
106
+ },
107
+ addEventListener: (s, i) => e.addEventListener(s, i),
108
+ removeEventListener: (s, i) => e.removeEventListener(s, i),
109
+ firstMessage: () => e.firstMessage(),
110
+ nextMessage: () => e.nextMessage(),
111
+ reconnect: () => e.reconnect(),
112
+ close: () => e.close(),
113
+ // NATS sends the controller state itself, not wrapped in a result
114
+ parse: (s) => h(s)
115
+ };
116
+ }
117
+ function m(n) {
118
+ const t = typeof n == "string" ? n : n.config.instanceUrl;
119
+ let e;
120
+ try {
121
+ e = typeof window < "u" ? new URL(t, window.location.origin) : new URL(t);
122
+ } catch {
123
+ throw new Error(`Invalid NOVA instance URL for NATS: ${t}`);
124
+ }
125
+ const s = e.protocol === "https:", i = e.port || (s ? "443" : "80");
126
+ return `${s ? "wss:" : "ws:"}//${e.hostname}:${i}/api/nats`;
127
+ }
128
+ export {
129
+ y as natsControllerStateSource,
130
+ m as natsUrlOf
131
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./chunks/loadRobotSession-DHVuK_pj.cjs"),e=require("./chunks/poseText-BXUaQWnK.cjs");exports.ControllerStateStream=o.ControllerStateStream;exports.JoggerConnection=o.JoggerConnection;exports.JoggingRefusedError=o.JoggingRefusedError;exports.JoggingStore=o.JoggingStore;exports.MotionStreamConnection=o.MotionStreamConnection;exports.ROBOT_LOAD_STEP_IDS=o.ROBOT_LOAD_STEP_IDS;exports.RobotActivation=o.RobotActivation;exports.RobotDescription=o.RobotDescription;exports.RobotLiveState=o.RobotLiveState;exports.RobotLoadProgress=o.RobotLoadProgress;exports.RobotLoadStepError=o.RobotLoadStepError;exports.RobotModeChangeError=o.RobotModeChangeError;exports.RobotSafety=o.RobotSafety;exports.RobotSession=o.RobotSession;exports.RobotSessionLoad=o.RobotSessionLoad;exports.RobotTargetPose=o.RobotTargetPose;exports.TrajectoryExecutionStore=o.TrajectoryExecutionStore;exports.deriveSelectedTcpPose=o.deriveSelectedTcpPose;exports.isRobotLoadStepError=o.isRobotLoadStepError;exports.jointValuesEqual=o.jointValuesEqual;exports.loadRobotSession=o.loadRobotSession;exports.planErrorTranslationKey=o.planErrorTranslationKey;exports.poseEqual=o.poseEqual;exports.resolveCoordinateSystemInWorld=o.resolveCoordinateSystemInWorld;exports.tcpMotionEqual=o.tcpMotionEqual;exports.transformPoseToCoordinateSystem=o.transformPoseToCoordinateSystem;exports.unwrapRotationVector=o.unwrapRotationVector;exports.jointsToText=e.jointsToText;exports.poseToText=e.poseToText;
@@ -0,0 +1,22 @@
1
+ export { JoggingRefusedError, type JoggingRefusedReason, } from "./components/jogging/JoggingRefusedError";
2
+ export { JoggingStore, type JoggingStoreOptions, type JoggingStoreStorage, } from "./components/jogging/JoggingStore";
3
+ export { jointsToText, poseToText, } from "./components/robotControl/poseText";
4
+ export type { ConnectionLogger } from "./lib/connectionLogger";
5
+ export { ControllerStateStream } from "./lib/ControllerStateStream";
6
+ export type { ControllerStateSource } from "./lib/controllerStateSource";
7
+ export * from "./lib/JoggerConnection";
8
+ export * from "./lib/MotionStreamConnection";
9
+ export { jointValuesEqual, type MotionStateReadout, poseEqual, tcpMotionEqual, unwrapRotationVector, } from "./lib/motionStateUpdate";
10
+ export type { NovaConnection } from "./lib/novaConnection";
11
+ export { planErrorTranslationKey } from "./lib/planErrorTranslation";
12
+ export { deriveSelectedTcpPose, type ReferencedPose, resolveCoordinateSystemInWorld, type TcpReferencedPose, transformPoseToCoordinateSystem, } from "./lib/PoseTransformer";
13
+ export { type LoadRobotSessionOptions, loadRobotSession, type RobotSessionEvent, RobotSessionLoad, type RobotSessionLoadState, } from "./lib/robotSession/loadRobotSession";
14
+ export { RobotActivation, type RobotActivationState, RobotModeChangeError, } from "./lib/robotSession/RobotActivation";
15
+ export { RobotDescription } from "./lib/robotSession/RobotDescription";
16
+ export { isRobotLoadStepError, ROBOT_LOAD_STEP_IDS, RobotLoadProgress, type RobotLoadStep, RobotLoadStepError, type RobotLoadStepId, type RobotLoadStepStatus, } from "./lib/robotSession/RobotLoadProgress";
17
+ export { RobotLiveState } from "./lib/robotSession/RobotLiveState";
18
+ export { type RobotNotMoveableReason, RobotSafety, } from "./lib/robotSession/RobotSafety";
19
+ export { RobotSession, type RobotSessionError, type RobotSessionOptions, } from "./lib/robotSession/RobotSession";
20
+ export { RobotTargetPose, type StagedTargetPose, } from "./lib/robotSession/RobotTargetPose";
21
+ export type { RobotPose } from "./lib/robotSession/robotPose";
22
+ export { type PlannedTrajectory, type PlanTrajectoryResult, TrajectoryExecutionStore, type TrajectoryState, type TrajectoryTarget, } from "./lib/TrajectoryExecutionStore";
@@ -0,0 +1,33 @@
1
+ import { C as s, J as t, a as e, b as r, M as n, R as i, c as S, d as R, e as b, f as d, g as l, h as p, i as g, j as T, k as c, l as E, T as m, m as u, n as C, o as f, p as L, q as j, r as v, s as x, t as y, u as P, v as q } from "./chunks/loadRobotSession-Bt1-Brjp.js";
2
+ import { j as M, p as D } from "./chunks/poseText-CtdXIeT_.js";
3
+ export {
4
+ s as ControllerStateStream,
5
+ t as JoggerConnection,
6
+ e as JoggingRefusedError,
7
+ r as JoggingStore,
8
+ n as MotionStreamConnection,
9
+ i as ROBOT_LOAD_STEP_IDS,
10
+ S as RobotActivation,
11
+ R as RobotDescription,
12
+ b as RobotLiveState,
13
+ d as RobotLoadProgress,
14
+ l as RobotLoadStepError,
15
+ p as RobotModeChangeError,
16
+ g as RobotSafety,
17
+ T as RobotSession,
18
+ c as RobotSessionLoad,
19
+ E as RobotTargetPose,
20
+ m as TrajectoryExecutionStore,
21
+ u as deriveSelectedTcpPose,
22
+ C as isRobotLoadStepError,
23
+ f as jointValuesEqual,
24
+ M as jointsToText,
25
+ L as loadRobotSession,
26
+ j as planErrorTranslationKey,
27
+ v as poseEqual,
28
+ D as poseToText,
29
+ x as resolveCoordinateSystemInWorld,
30
+ y as tcpMotionEqual,
31
+ P as transformPoseToCoordinateSystem,
32
+ q as unwrapRotationVector
33
+ };