@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.
- package/README.md +172 -40
- package/dist/3d.cjs +1 -1
- package/dist/3d.d.ts +3 -4
- package/dist/3d.js +35 -38
- package/dist/CurrentPose/index.cjs +1 -1
- package/dist/CurrentPose/index.js +2 -2
- package/dist/CurrentPoseBar/index.cjs +1 -1
- package/dist/CurrentPoseBar/index.js +1 -1
- package/dist/JoggingButtons/index.cjs +1 -1
- package/dist/JoggingButtons/index.js +1 -1
- package/dist/JoggingGizmo/index.cjs +1 -1
- package/dist/JoggingGizmo/index.js +2 -2
- package/dist/JoggingJointSlider/index.cjs +1 -1
- package/dist/JoggingJointSlider/index.js +1 -1
- package/dist/RobotControl/index.cjs +1 -1
- package/dist/RobotControl/index.js +2 -2
- package/dist/RobotControlPanel/index.cjs +1 -1
- package/dist/RobotControlPanel/index.d.ts +1 -1
- package/dist/RobotControlPanel/index.js +1 -1
- package/dist/RobotHeader/index.cjs +1 -1
- package/dist/RobotHeader/index.d.ts +3 -5
- package/dist/RobotHeader/index.js +6 -7
- package/dist/RobotScene/index.cjs +1 -1
- package/dist/RobotScene/index.js +3 -3
- package/dist/RobotView/index.cjs +1 -1
- package/dist/RobotView/index.js +2 -2
- package/dist/SafetyBar/IndicatorWithExplanation.d.ts +12 -1
- package/dist/SafetyBar/SafetyBar.d.ts +15 -1
- package/dist/SafetyBar/index.cjs +1 -1
- package/dist/SafetyBar/index.d.ts +0 -1
- package/dist/SafetyBar/index.js +3 -4
- package/dist/SafetyBar/robotSafetyOf.d.ts +1 -0
- package/dist/chunks/{ConnectedMotionGroup-BifrgwV1.js → ConnectedMotionGroup-DNYakgxy.js} +6 -5
- package/dist/chunks/ConnectedMotionGroup-IRTsTxwB.cjs +3 -0
- package/dist/chunks/{CurrentPose-CMqO8oqX.cjs → CurrentPose-CAq9e9JY.cjs} +1 -1
- package/dist/chunks/{CurrentPose-CdD2ZB7B.js → CurrentPose-CgdINEh2.js} +3 -3
- package/dist/chunks/{CurrentPoseBar-CX1xFBtm.js → CurrentPoseBar--HkZBGnN.js} +11 -11
- package/dist/chunks/{CurrentPoseBar-BTBAwIO4.cjs → CurrentPoseBar-DoOUfRRs.cjs} +1 -1
- package/dist/chunks/{JoggingButtons-aijK-3g6.js → JoggingButtons-BNOnpcTH.js} +1 -1
- package/dist/chunks/{JoggingButtons-BOHl7hVq.cjs → JoggingButtons-Boaym2hQ.cjs} +1 -1
- package/dist/chunks/{JoggingGizmo-CoKYUtXq.cjs → JoggingGizmo-CNFjpWDv.cjs} +1 -1
- package/dist/chunks/{JoggingGizmo-DHvrJouR.js → JoggingGizmo-RDiEVQes.js} +1 -1
- package/dist/chunks/{JoggingGizmoOrientation-CIvIAIeO.js → JoggingGizmoOrientation-Dzzz2gEz.js} +1 -1
- package/dist/chunks/{JoggingGizmoOrientation-DVcagPRJ.cjs → JoggingGizmoOrientation-laUrgY0N.cjs} +1 -1
- package/dist/chunks/{JoggingJointSlider-DQtt4-pa.js → JoggingJointSlider-BY-Tof8G.js} +1 -1
- package/dist/chunks/{JoggingJointSlider-CTFYKzsU.cjs → JoggingJointSlider-Dm3vILd3.cjs} +1 -1
- package/dist/chunks/{JoggingRefusedError-BIkUM6-g.js → JoggingRefusedError-C4D8_YR_.js} +5 -3
- package/dist/chunks/JoggingRefusedError-DqyrfUcc.cjs +1 -0
- package/dist/chunks/Pose3-BfBNPRDM.cjs +1 -0
- package/dist/chunks/{Pose3-B_fLR-Wv.js → Pose3-DWxfC6Dj.js} +1 -2
- package/dist/chunks/{Robot-C-IWfxP9.js → Robot-B-VAYuAr.js} +5 -5
- package/dist/chunks/{Robot-Cfhjv9Z8.cjs → Robot-DRf8T9Zf.cjs} +1 -1
- package/dist/chunks/RobotActivation-CRVxXvlx.cjs +1 -0
- package/dist/chunks/RobotActivation-oR-8Y0iq.js +143 -0
- package/dist/chunks/RobotControl-Dbe50ZKM.cjs +1 -0
- package/dist/chunks/RobotControl-Ms1F7fFe.js +332 -0
- package/dist/chunks/RobotControlPanel-B7NxoHsO.cjs +1 -0
- package/dist/chunks/RobotControlPanel-CkQlkq8x.js +1029 -0
- package/dist/chunks/RobotHeader-CjOaf9s6.cjs +1 -0
- package/dist/chunks/RobotHeader-LSuRTDFB.js +395 -0
- package/dist/chunks/RobotScene-Au6zpHH1.cjs +1 -0
- package/dist/chunks/RobotScene-C6XEgaVR.js +1284 -0
- package/dist/chunks/RobotSessionProvider-CoF_tX0O.cjs +1 -0
- package/dist/chunks/RobotSessionProvider-DuHi-dtw.js +30 -0
- package/dist/chunks/{RobotView-BGYlAWj-.cjs → RobotView-Cg6JfGiY.cjs} +1 -1
- package/dist/chunks/{RobotView-D-v8jCM7.js → RobotView-CrAxNkyG.js} +3 -3
- package/dist/chunks/{robotSafetyOf-DuKKma1_.js → SafetyBar-C85BAKsL.js} +244 -215
- package/dist/chunks/SafetyBar-D2l81Omq.cjs +1 -0
- package/dist/chunks/externalizeComponent-CA_sHzyH.cjs +2 -0
- package/dist/chunks/{externalizeComponent-4juwPKL5.js → externalizeComponent-CChY_1bN.js} +34 -8
- package/dist/chunks/{useSmoothedMotionState-BSSV8aZN.js → hooks-BWoeBWLV.js} +43 -87
- package/dist/chunks/hooks-BXe2bNMo.cjs +1 -0
- package/dist/chunks/loadRobotSession-BzY9H3F8.cjs +1 -0
- package/dist/chunks/{loadRobotSession-GHHtv5dv.js → loadRobotSession-Ts2MumBB.js} +1065 -679
- package/dist/chunks/poseText-BxG4Caa-.js +48 -0
- package/dist/chunks/poseText-CwplkbDM.cjs +1 -0
- package/dist/chunks/useSmoothedMotionState-CCXmMZ0S.cjs +1 -0
- package/dist/chunks/useSmoothedMotionState-CELh-YJa.js +50 -0
- package/dist/components/VelocitySlider.d.ts +14 -1
- package/dist/components/connectionWarning/ConnectionWarning.d.ts +18 -4
- package/dist/components/connectionWarning/connectionWarningOf.d.ts +1 -11
- package/dist/components/jogging/JoggingCartesianAxisControl.d.ts +7 -1
- package/dist/components/jogging/JoggingCartesianTab.d.ts +6 -0
- package/dist/components/jogging/JoggingJointTab.d.ts +5 -0
- package/dist/components/jogging/JoggingJointValueControl.d.ts +7 -1
- package/dist/components/jogging/JoggingPanel.d.ts +11 -0
- package/dist/components/jogging/JoggingRefusedError.d.ts +8 -3
- package/dist/components/jogging/JoggingStore.d.ts +206 -17
- package/dist/components/jogging/joggingColors.d.ts +6 -0
- package/dist/components/robotControl/CartesianJogTab.d.ts +14 -3
- package/dist/components/robotControl/JogArea.d.ts +6 -3
- package/dist/components/robotControl/JogDisabledReason.d.ts +15 -0
- package/dist/components/robotControl/JointJogTab.d.ts +10 -2
- package/dist/components/robotControl/MoveToTab.d.ts +24 -3
- package/dist/components/robotControl/PoseField.d.ts +3 -1
- package/dist/components/robotControl/RobotControl.d.ts +3 -0
- package/dist/components/robotControl/RobotControlPanel.d.ts +91 -22
- package/dist/components/robotControl/VelocityRow.d.ts +8 -2
- package/dist/components/robotControl/atPose.d.ts +6 -0
- package/dist/components/robotControl/poseText.d.ts +13 -1
- package/dist/components/robotControl/units.d.ts +10 -2
- package/dist/components/robotControl/useRobotControlProps.d.ts +7 -4
- package/dist/components/robotControl/velocityText.d.ts +18 -0
- package/dist/components/robotHeader/ActivationSwitch.d.ts +13 -2
- package/dist/components/robotHeader/RobotHeader.d.ts +25 -4
- package/dist/components/robotHeader/robotActivationOf.d.ts +1 -8
- package/dist/components/robotScene/RobotScene.d.ts +7 -1
- package/dist/components/robots/MotionGroupVisualizer.d.ts +6 -4
- package/dist/components/robots/SupportedLinearAxis.d.ts +6 -4
- package/dist/components/robots/SupportedRobot.d.ts +7 -5
- package/dist/components/robots/useFrameSmoothedMotionState.d.ts +25 -0
- package/dist/components/utils/useSmoothedMotionState.d.ts +11 -2
- package/dist/core.cjs +1 -1
- package/dist/core.d.ts +8 -10
- package/dist/core.js +60 -69
- package/dist/index.cjs +1 -1
- package/dist/index.js +100 -113
- package/dist/lib/ConnectedMotionGroup.d.ts +11 -0
- package/dist/lib/ControllerStateStream.d.ts +9 -9
- package/dist/lib/JoggerConnection.d.ts +48 -13
- package/dist/lib/MotionStreamConnection.d.ts +3 -2
- package/dist/lib/TrajectoryExecutionStore.d.ts +58 -20
- package/dist/lib/controllerStateSource.d.ts +6 -5
- package/dist/lib/robotSession/RobotActivation.d.ts +52 -21
- package/dist/lib/robotSession/RobotSession.d.ts +27 -8
- package/dist/lib/robotSession/RobotTargetPose.d.ts +4 -2
- package/dist/lib/robotSession/loadRobotSession.d.ts +1 -1
- package/dist/lib/robotSession/robotPose.d.ts +0 -6
- package/dist/session.cjs +1 -1
- package/dist/session.d.ts +6 -6
- package/dist/session.js +30 -38
- package/package.json +22 -1
- package/dist/chunks/ConnectedMotionGroup-CybwJHkh.cjs +0 -3
- package/dist/chunks/JoggingRefusedError-BuCGsVsa.cjs +0 -1
- package/dist/chunks/Pose3-Ch4xVeXV.cjs +0 -1
- package/dist/chunks/RobotActivation-Bb0oNSBN.cjs +0 -1
- package/dist/chunks/RobotActivation-C0rrwpQZ.js +0 -115
- package/dist/chunks/RobotControl-Cv6Sr1Ni.js +0 -289
- package/dist/chunks/RobotControl-DFnOYMAa.cjs +0 -1
- package/dist/chunks/RobotControlPanel-B1_9g9D-.js +0 -850
- package/dist/chunks/RobotControlPanel-BpTpRBgy.cjs +0 -1
- package/dist/chunks/RobotScene-0ZJzXL50.cjs +0 -1
- package/dist/chunks/RobotScene-DpFeFpnx.js +0 -1255
- package/dist/chunks/RobotSessionProvider--AekyPqD.cjs +0 -1
- package/dist/chunks/RobotSessionProvider-TVaKGzqa.js +0 -25
- package/dist/chunks/externalizeComponent-Br_U-QAr.cjs +0 -2
- package/dist/chunks/loadRobotSession-DYbeNnTI.cjs +0 -1
- package/dist/chunks/poseText-BXUaQWnK.cjs +0 -1
- package/dist/chunks/poseText-pg4cxE8R.js +0 -41
- package/dist/chunks/robotActivationOf-B4oV10Za.cjs +0 -1
- package/dist/chunks/robotActivationOf-EzcT9g07.js +0 -368
- package/dist/chunks/robotSafetyOf-Dxm6s7Pp.cjs +0 -1
- package/dist/chunks/useSmoothedMotionState-B9WO73k0.cjs +0 -1
- package/dist/components/robotHeader/robotSafetyOf.d.ts +0 -11
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const f = /^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/, c = (n, t) => Number.parseFloat(n.toFixed(t));
|
|
2
|
+
function d(n, t = {}) {
|
|
3
|
+
const r = t.positionPrecision ?? 1, i = t.rotationPrecision ?? 4, s = (o) => [0, 1, 2].map((e) => (o == null ? void 0 : o[e]) ?? 0);
|
|
4
|
+
return `(${[
|
|
5
|
+
...s(n.position).map((o) => c(o, r)),
|
|
6
|
+
...s(n.orientation).map((o) => c(o, i))
|
|
7
|
+
].join(", ")})`;
|
|
8
|
+
}
|
|
9
|
+
function h(n) {
|
|
10
|
+
return `[${n.map((t) => c(t, 4)).join(", ")}]`;
|
|
11
|
+
}
|
|
12
|
+
function p(n, t, r) {
|
|
13
|
+
let i = n.trim();
|
|
14
|
+
const s = i.startsWith(t), o = i.endsWith(r);
|
|
15
|
+
if (s !== o || (s && (i = i.slice(1, -1)), i.trim() === "")) return null;
|
|
16
|
+
const e = [];
|
|
17
|
+
for (const u of i.split(",")) {
|
|
18
|
+
const a = u.trim();
|
|
19
|
+
if (!f.test(a)) return null;
|
|
20
|
+
const l = Number(a);
|
|
21
|
+
if (!Number.isFinite(l)) return null;
|
|
22
|
+
e.push(l);
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
function m(n) {
|
|
27
|
+
const t = p(n, "(", ")");
|
|
28
|
+
if ((t == null ? void 0 : t.length) !== 6) return null;
|
|
29
|
+
const [r, i, s, o, e, u] = t;
|
|
30
|
+
return { position: [r, i, s], orientation: [o, e, u] };
|
|
31
|
+
}
|
|
32
|
+
function T(n, t) {
|
|
33
|
+
const r = p(n, "[", "]");
|
|
34
|
+
return (r == null ? void 0 : r.length) !== t ? null : r;
|
|
35
|
+
}
|
|
36
|
+
function x(n, { poses: t, jointCount: r }) {
|
|
37
|
+
if (t && !n.trim().startsWith("[")) return m(n);
|
|
38
|
+
if (r === null) return null;
|
|
39
|
+
const i = T(n, r);
|
|
40
|
+
return i && { joints: i };
|
|
41
|
+
}
|
|
42
|
+
export {
|
|
43
|
+
x as a,
|
|
44
|
+
T as b,
|
|
45
|
+
m as c,
|
|
46
|
+
h as j,
|
|
47
|
+
d as p
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const m=/^[+-]?(\d+(\.\d*)?|\.\d+)([eE][+-]?\d+)?$/,c=(n,t)=>Number.parseFloat(n.toFixed(t));function x(n,t={}){const r=t.positionPrecision??1,i=t.rotationPrecision??4,e=o=>[0,1,2].map(s=>(o==null?void 0:o[s])??0);return`(${[...e(n.position).map(o=>c(o,r)),...e(n.orientation).map(o=>c(o,i))].join(", ")})`}function d(n){return`[${n.map(t=>c(t,4)).join(", ")}]`}function a(n,t,r){let i=n.trim();const e=i.startsWith(t),o=i.endsWith(r);if(e!==o||(e&&(i=i.slice(1,-1)),i.trim()===""))return null;const s=[];for(const u of i.split(",")){const p=u.trim();if(!m.test(p))return null;const l=Number(p);if(!Number.isFinite(l))return null;s.push(l)}return s}function T(n){const t=a(n,"(",")");if((t==null?void 0:t.length)!==6)return null;const[r,i,e,o,s,u]=t;return{position:[r,i,e],orientation:[o,s,u]}}function f(n,t){const r=a(n,"[","]");return(r==null?void 0:r.length)!==t?null:r}function h(n,{poses:t,jointCount:r}){if(t&&!n.trim().startsWith("["))return T(n);if(r===null)return null;const i=f(n,r);return i&&{joints:i}}exports.jointsToText=d;exports.parseJointsText=f;exports.parsePoseText=T;exports.parseTargetText=h;exports.poseToText=x;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("mobx"),o=require("react"),R=require("./hooks-BXe2bNMo.cjs");function A(i,s){const[l]=o.useState(()=>a.observable({...i})),u=o.useRef(null),r=o.useRef(null),m=o.useRef(0);function h(){r.current!==null&&(cancelAnimationFrame(r.current),r.current=null)}function p(){const e=u.current;if(!e)return;const t=performance.now(),f=(t-m.current)/1e3;m.current=t;const n=e.update(f);a.runInAction(()=>{l.joint_position=e.getCurrentValues()}),r.current=n?null:requestAnimationFrame(p)}function j(){r.current===null&&(m.current=performance.now(),r.current=requestAnimationFrame(p))}function q(e){var f;const t=e.joint_position.filter(n=>n!==void 0);(f=u.current)==null||f.setTarget(t),a.runInAction(()=>{const n=e,d=l;for(const c of Object.keys(n))c!=="joint_position"&&d[c]!==n[c]&&(d[c]=n[c])}),j()}return R.useMounted(()=>{const e=i.joint_position.filter(t=>t!==void 0);return u.current=new R.ValueInterpolator(e,s),()=>{var t;h(),(t=u.current)==null||t.destroy()}}),o.useEffect(()=>{var e;s&&((e=u.current)==null||e.updateOptions(s))},[s]),o.useEffect(()=>a.autorun(()=>q(i)),[i]),l}exports.useSmoothedMotionState=A;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { observable as F, autorun as R, runInAction as d } from "mobx";
|
|
2
|
+
import { useState as _, useRef as l, useEffect as j } from "react";
|
|
3
|
+
import { a as b, V as h } from "./hooks-BWoeBWLV.js";
|
|
4
|
+
function V(c, i) {
|
|
5
|
+
const [a] = _(
|
|
6
|
+
() => F({ ...c })
|
|
7
|
+
), o = l(null), e = l(null), f = l(0);
|
|
8
|
+
function g() {
|
|
9
|
+
e.current !== null && (cancelAnimationFrame(e.current), e.current = null);
|
|
10
|
+
}
|
|
11
|
+
function m() {
|
|
12
|
+
const t = o.current;
|
|
13
|
+
if (!t) return;
|
|
14
|
+
const r = performance.now(), s = (r - f.current) / 1e3;
|
|
15
|
+
f.current = r;
|
|
16
|
+
const n = t.update(s);
|
|
17
|
+
d(() => {
|
|
18
|
+
a.joint_position = t.getCurrentValues();
|
|
19
|
+
}), e.current = n ? null : requestAnimationFrame(m);
|
|
20
|
+
}
|
|
21
|
+
function w() {
|
|
22
|
+
e.current === null && (f.current = performance.now(), e.current = requestAnimationFrame(m));
|
|
23
|
+
}
|
|
24
|
+
function A(t) {
|
|
25
|
+
var s;
|
|
26
|
+
const r = t.joint_position.filter(
|
|
27
|
+
(n) => n !== void 0
|
|
28
|
+
);
|
|
29
|
+
(s = o.current) == null || s.setTarget(r), d(() => {
|
|
30
|
+
const n = t, p = a;
|
|
31
|
+
for (const u of Object.keys(n))
|
|
32
|
+
u !== "joint_position" && p[u] !== n[u] && (p[u] = n[u]);
|
|
33
|
+
}), w();
|
|
34
|
+
}
|
|
35
|
+
return b(() => {
|
|
36
|
+
const t = c.joint_position.filter(
|
|
37
|
+
(r) => r !== void 0
|
|
38
|
+
);
|
|
39
|
+
return o.current = new h(t, i), () => {
|
|
40
|
+
var r;
|
|
41
|
+
g(), (r = o.current) == null || r.destroy();
|
|
42
|
+
};
|
|
43
|
+
}), j(() => {
|
|
44
|
+
var t;
|
|
45
|
+
i && ((t = o.current) == null || t.updateOptions(i));
|
|
46
|
+
}, [i]), j(() => R(() => A(c)), [c]), a;
|
|
47
|
+
}
|
|
48
|
+
export {
|
|
49
|
+
V as u
|
|
50
|
+
};
|
|
@@ -11,7 +11,14 @@ type VelocitySliderProps = {
|
|
|
11
11
|
useDegree: boolean;
|
|
12
12
|
store: JoggingStore;
|
|
13
13
|
};
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* A slider for controlling the movement velocity of a robot
|
|
16
|
+
*
|
|
17
|
+
* @deprecated It reads a `JoggingStore` for what it shows. Use `RobotControl`
|
|
18
|
+
* or `RobotControlPanel`, whose jog tabs have a velocity in NOVA's units
|
|
19
|
+
* (`useRobotControlProps` fills it from a robot session), or a `Slider` of
|
|
20
|
+
* MUI with `JoggingStore.setVelocityFromSlider`.
|
|
21
|
+
*/
|
|
15
22
|
export declare const VelocitySlider: ((props: VelocitySliderProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
16
23
|
displayName: string;
|
|
17
24
|
};
|
|
@@ -19,5 +26,11 @@ type VelocitySliderLabelProps = {
|
|
|
19
26
|
value: string;
|
|
20
27
|
sx?: SxProps;
|
|
21
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* The value next to {@link VelocitySlider}
|
|
31
|
+
*
|
|
32
|
+
* @deprecated With `VelocitySlider`. The velocity of `RobotControlPanel`
|
|
33
|
+
* shows its value.
|
|
34
|
+
*/
|
|
22
35
|
export declare function VelocitySliderLabel({ value, sx }: VelocitySliderLabelProps): import("react/jsx-runtime").JSX.Element;
|
|
23
36
|
export default VelocitySlider;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import type { RobotSession } from "../../lib/robotSession/RobotSession";
|
|
1
2
|
/** How well a robot's live state arrives */
|
|
2
3
|
export type ConnectionQuality = "good" | "struggling" | "critical";
|
|
3
|
-
|
|
4
|
+
/** How well a robot's live state arrives, as the warning shows it */
|
|
5
|
+
export type ConnectionWarningState = {
|
|
4
6
|
/** How well the robot's live state arrives; "critical" shows the warning */
|
|
5
7
|
quality: ConnectionQuality;
|
|
6
8
|
/** When the last usable message of the live state arrived, in ms */
|
|
@@ -11,11 +13,23 @@ export type ConnectionWarningProps = {
|
|
|
11
13
|
data: unknown;
|
|
12
14
|
} | null;
|
|
13
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* The robot (`session`, else the provider's), and any of its connection
|
|
18
|
+
* state to replace the session's: all of it for an app without a
|
|
19
|
+
* `RobotSession`
|
|
20
|
+
*/
|
|
21
|
+
export type ConnectionWarningProps = Partial<ConnectionWarningState> & {
|
|
22
|
+
/** The robot; else the one of the nearest `RobotSessionProvider` */
|
|
23
|
+
session?: RobotSession | null;
|
|
24
|
+
};
|
|
14
25
|
/**
|
|
15
26
|
* A warning in a robot app's header that the robot's live state stopped
|
|
16
27
|
* arriving: an icon, and in its tooltip when the last update came and the
|
|
17
28
|
* last message that could not be used. Shows nothing while the live state
|
|
18
|
-
* arrives
|
|
19
|
-
*
|
|
29
|
+
* arrives, and nothing without a robot, e.g. while none is loaded.
|
|
30
|
+
*
|
|
31
|
+
* ```tsx
|
|
32
|
+
* <RobotHeader appName="My app" session={session} actions={<ConnectionWarning session={session} />} />
|
|
33
|
+
* ```
|
|
20
34
|
*/
|
|
21
|
-
export declare const ConnectionWarning:
|
|
35
|
+
export declare const ConnectionWarning: import("react").FunctionComponent<ConnectionWarningProps>;
|
|
@@ -1,11 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { ConnectionWarningProps } from "./ConnectionWarning";
|
|
3
|
-
/**
|
|
4
|
-
* How well the live state of a session's robot arrives, as
|
|
5
|
-
* `ConnectionWarning` takes it:
|
|
6
|
-
*
|
|
7
|
-
* ```tsx
|
|
8
|
-
* <ConnectionWarning {...connectionWarningOf(session)} />
|
|
9
|
-
* ```
|
|
10
|
-
*/
|
|
11
|
-
export declare function connectionWarningOf(session: RobotSession): ConnectionWarningProps;
|
|
1
|
+
export {};
|
|
@@ -12,7 +12,13 @@ type JoggingCartesianAxisControlProps = {
|
|
|
12
12
|
/** If set, the corresponding button will be rendered in the pressed state */
|
|
13
13
|
activeJoggingDirection?: JoggingDirection;
|
|
14
14
|
} & React.ComponentProps<typeof Stack>;
|
|
15
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* A input widget to control an individual cartesian axis
|
|
17
|
+
*
|
|
18
|
+
* @deprecated Use `JoggingButtons`: a minus and a plus button per axis, held
|
|
19
|
+
* to jog, taking props only (`motion`, `onJogStart`, `onJogStop`), with the
|
|
20
|
+
* colors of the design system. `JoggingGizmo` jogs by the same props.
|
|
21
|
+
*/
|
|
16
22
|
export declare const JoggingCartesianAxisControl: (({ colors, label, getDisplayedValue, startJogging, stopJogging, disabled, activeJoggingDirection, ...rest }: JoggingCartesianAxisControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
17
23
|
displayName: string;
|
|
18
24
|
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { JoggingStore } from "./JoggingStore";
|
|
2
|
+
/**
|
|
3
|
+
* The cartesian tab of `JoggingPanel`
|
|
4
|
+
*
|
|
5
|
+
* @deprecated With `JoggingPanel`. `RobotControlPanel` has the tabs
|
|
6
|
+
* Translate and Rotate.
|
|
7
|
+
*/
|
|
2
8
|
export declare const JoggingCartesianTab: (({ store, children, }: {
|
|
3
9
|
store: JoggingStore;
|
|
4
10
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import type { JoggingStore } from "./JoggingStore";
|
|
3
|
+
/**
|
|
4
|
+
* The joint tab of `JoggingPanel`
|
|
5
|
+
*
|
|
6
|
+
* @deprecated With `JoggingPanel`. `RobotControlPanel` has the tab Joint.
|
|
7
|
+
*/
|
|
3
8
|
export declare const JoggingJointTab: (({ store, children }: {
|
|
4
9
|
store: JoggingStore;
|
|
5
10
|
children?: ReactNode;
|
|
@@ -8,7 +8,13 @@ type JoggingJointValueControlProps = {
|
|
|
8
8
|
getValue: () => number | undefined;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
} & React.ComponentProps<typeof Stack>;
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* A input widget to control an individual joint
|
|
13
|
+
*
|
|
14
|
+
* @deprecated Use `JoggingJointSlider`: one joint as a slider across its
|
|
15
|
+
* limits, pressed where the joint is to go (`value`, `min`, `max`,
|
|
16
|
+
* `onJogStart`, `onJogStop`).
|
|
17
|
+
*/
|
|
12
18
|
export declare const JoggingJointValueControl: (({ startJogging, stopJogging, lowerLimit, upperLimit, useDegree, getValue, disabled, ...rest }: JoggingJointValueControlProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
13
19
|
displayName: string;
|
|
14
20
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { SxProps } from "@mui/material/styles";
|
|
2
2
|
import type { NovaConnection } from "../../lib/novaConnection";
|
|
3
3
|
import { JoggingStore } from "./JoggingStore";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Part of {@link JoggingPanel}. `RobotControlPanel` has the tabs
|
|
6
|
+
* `RobotControlTab`.
|
|
7
|
+
*/
|
|
4
8
|
export type JoggingPanelTabId = "cartesian" | "joint";
|
|
9
|
+
/** @deprecated See {@link JoggingPanel} */
|
|
5
10
|
export type JoggingPanelProps = {
|
|
6
11
|
/**
|
|
7
12
|
* The base url of a deployed Nova instance, or a Nova client of the app.
|
|
@@ -27,6 +32,12 @@ export type JoggingPanelProps = {
|
|
|
27
32
|
};
|
|
28
33
|
/**
|
|
29
34
|
* A high-level, opinionated UI panel for jogging a robot using the Wandelbots Platform API
|
|
35
|
+
*
|
|
36
|
+
* @deprecated Use `RobotControl` with a robot session of `loadRobotSession`:
|
|
37
|
+
* the Robot control panel of the design, with jogging, the joints and Move
|
|
38
|
+
* to. Or `RobotControlPanel` with the props of `useRobotControlProps(session)`,
|
|
39
|
+
* to replace single props. The README's "From JoggingPanel to RobotControl"
|
|
40
|
+
* maps the props.
|
|
30
41
|
*/
|
|
31
42
|
export declare const JoggingPanel: ((props: JoggingPanelProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
32
43
|
displayName: string;
|
|
@@ -2,16 +2,21 @@ import type { RobotNotMoveableReason } from "../../lib/robotSession/RobotSafety"
|
|
|
2
2
|
/**
|
|
3
3
|
* Why a jogging store starts no jog now, as a code an app can translate: the
|
|
4
4
|
* reason of the store's owner that the robot may not move (see
|
|
5
|
-
* `JoggingStoreOptions.notMoveableReason`),
|
|
6
|
-
*
|
|
5
|
+
* `JoggingStoreOptions.notMoveableReason`), "blocked" after NOVA refused the
|
|
6
|
+
* jogging connection because another client jogs (see
|
|
7
|
+
* `JoggingStore.blocked`, until `JoggingStore.unblock`), or "locked" while
|
|
8
|
+
* the store is locked (see `JoggingStore.isLocked`)
|
|
7
9
|
*/
|
|
8
10
|
export type JoggingRefusedReason = RobotNotMoveableReason | {
|
|
11
|
+
code: "blocked";
|
|
12
|
+
} | {
|
|
9
13
|
code: "locked";
|
|
10
14
|
};
|
|
11
15
|
/**
|
|
12
16
|
* A jog that a jogging store did not start, because the robot may not move
|
|
13
17
|
* now or the store is locked: nothing was sent to the robot. `reason` says
|
|
14
|
-
* why.
|
|
18
|
+
* why. Also what else needs the jogging connection and did not get it: a
|
|
19
|
+
* TCP change, or handing the robot to jogging.
|
|
15
20
|
*/
|
|
16
21
|
export declare class JoggingRefusedError extends Error {
|
|
17
22
|
/** Why the jog did not start: `reason.code` is for the app to translate */
|
|
@@ -52,7 +52,8 @@ export type JoggingStoreOptions = {
|
|
|
52
52
|
* start rejects with a {@link JoggingRefusedError}. NOVA switches a
|
|
53
53
|
* controller to control mode by itself for a movement request, so without
|
|
54
54
|
* this a robot that is not activated jogs. A robot session gives its
|
|
55
|
-
* safety's reason; a store without it refuses only while it is locked
|
|
55
|
+
* safety's reason; a store without it refuses only while it is locked or
|
|
56
|
+
* blocked by another client's jogging.
|
|
56
57
|
*/
|
|
57
58
|
notMoveableReason?: () => RobotNotMoveableReason | null;
|
|
58
59
|
};
|
|
@@ -65,7 +66,12 @@ export declare class JoggingStore {
|
|
|
65
66
|
selectedTabId: TabType;
|
|
66
67
|
/** Locks to prevent UI interactions during certain operations */
|
|
67
68
|
locks: Set<string>;
|
|
68
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* NOVA refused the jogging connection because another client jogs the
|
|
71
|
+
* robot. The store then starts no jog (see {@link JoggingRefusedError},
|
|
72
|
+
* "blocked") until {@link JoggingStore.unblock}: it does not ask NOVA
|
|
73
|
+
* again by itself, so a UI has to say it and offer to try again.
|
|
74
|
+
*/
|
|
69
75
|
blocked: boolean;
|
|
70
76
|
/**
|
|
71
77
|
* Id of selected coordinate system from among those defined on the API side.
|
|
@@ -136,21 +142,57 @@ export declare class JoggingStore {
|
|
|
136
142
|
minRotationVelocityDegPerSec: number;
|
|
137
143
|
/** Maximum rotation velocity user can choose on the velocity slider in °/s */
|
|
138
144
|
maxRotationVelocityDegPerSec: number;
|
|
139
|
-
/**
|
|
145
|
+
/**
|
|
146
|
+
* Whether to show the coordinate system select dropdown in the UI
|
|
147
|
+
*
|
|
148
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it. `RobotControlPanel`
|
|
149
|
+
* shows a select where it gets one, e.g. `jogFrame`.
|
|
150
|
+
*/
|
|
140
151
|
showCoordSystemSelect: boolean;
|
|
141
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Whether to show the TCP select dropdown in the UI
|
|
154
|
+
*
|
|
155
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it. `RobotControlPanel`
|
|
156
|
+
* shows the TCP select when it gets `tcp`.
|
|
157
|
+
*/
|
|
142
158
|
showTcpSelect: boolean;
|
|
143
|
-
/**
|
|
159
|
+
/**
|
|
160
|
+
* Whether to show the orientation select dropdown in the UI
|
|
161
|
+
*
|
|
162
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it. `RobotControlPanel`
|
|
163
|
+
* has the tool among the frames of `jogFrame`.
|
|
164
|
+
*/
|
|
144
165
|
showOrientationSelect: boolean;
|
|
145
|
-
/**
|
|
166
|
+
/**
|
|
167
|
+
* Whether to show the increment select dropdown in the UI
|
|
168
|
+
*
|
|
169
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it. `RobotControlPanel`
|
|
170
|
+
* offers the steps when it gets `increments`.
|
|
171
|
+
*/
|
|
146
172
|
showIncrementSelect: boolean;
|
|
147
|
-
/**
|
|
173
|
+
/**
|
|
174
|
+
* Whether to show icons in the jogging tabs
|
|
175
|
+
*
|
|
176
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it
|
|
177
|
+
*/
|
|
148
178
|
showTabIcons: boolean;
|
|
149
|
-
/**
|
|
179
|
+
/**
|
|
180
|
+
* Whether to show the label to the right of the velocity slider
|
|
181
|
+
*
|
|
182
|
+
* @deprecated Only `VelocitySlider` (deprecated) reads it
|
|
183
|
+
*/
|
|
150
184
|
showVelocitySliderLabel: boolean;
|
|
151
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* Whether to show the legend before the slider
|
|
187
|
+
*
|
|
188
|
+
* @deprecated Only `VelocitySlider` (deprecated) reads it
|
|
189
|
+
*/
|
|
152
190
|
showVelocityLegend: boolean;
|
|
153
|
-
/**
|
|
191
|
+
/**
|
|
192
|
+
* Whether to show the legend before the joints
|
|
193
|
+
*
|
|
194
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it
|
|
195
|
+
*/
|
|
154
196
|
showJointsLegend: boolean;
|
|
155
197
|
disposers: IReactionDisposer[];
|
|
156
198
|
/**
|
|
@@ -190,7 +232,29 @@ export declare class JoggingStore {
|
|
|
190
232
|
* turns around)
|
|
191
233
|
*/
|
|
192
234
|
private jogPress;
|
|
235
|
+
/**
|
|
236
|
+
* Whether the latest of {@link JoggingStore.jogPress} is a stop: a start
|
|
237
|
+
* that it overtook closes the websocket that it opened then
|
|
238
|
+
*/
|
|
239
|
+
private stoppedLast;
|
|
240
|
+
/**
|
|
241
|
+
* The step that runs now: stops it, see
|
|
242
|
+
* `stopIncrementalJog`, and resolves once it is over
|
|
243
|
+
*/
|
|
244
|
+
private runningStep;
|
|
245
|
+
/**
|
|
246
|
+
* Set by {@link JoggingStore.dispose}: a panel may still show the store,
|
|
247
|
+
* and it starts no jog any more
|
|
248
|
+
*/
|
|
249
|
+
private disposed;
|
|
250
|
+
/** Ends the watch of the held jog that moves now, see `watchHeldJog` */
|
|
251
|
+
private endHeldJogWatch;
|
|
193
252
|
constructor(jogger: JoggerConnection, coordSystems: CoordinateSystem[], motionGroupDescription: MotionGroupDescription, tcps: RobotTcp[], inverseSolverValue: string | null | undefined, options?: JoggingStoreOptions);
|
|
253
|
+
/**
|
|
254
|
+
* Closes the jogger's websockets. The store starts no jog afterwards: a
|
|
255
|
+
* start rejects with a {@link JoggingRefusedError} ("disconnected"), and
|
|
256
|
+
* opens nothing.
|
|
257
|
+
*/
|
|
194
258
|
dispose(): void;
|
|
195
259
|
get coordSystemCountByName(): import("lodash").Dictionary<number>;
|
|
196
260
|
deactivate(): Promise<void>;
|
|
@@ -203,12 +267,18 @@ export declare class JoggingStore {
|
|
|
203
267
|
* Rejects with a {@link JoggingRefusedError} while the store is locked or
|
|
204
268
|
* its owner says that the robot may not move (see
|
|
205
269
|
* {@link JoggingStoreOptions}): nothing is sent to the robot then, and no
|
|
206
|
-
* jogging websocket opens.
|
|
270
|
+
* jogging websocket opens. Also when that came to be while the jogging
|
|
271
|
+
* websocket opened: the store closes it again.
|
|
207
272
|
*
|
|
208
273
|
* {@link JoggingStore.startCartesianJogging},
|
|
209
274
|
* {@link JoggingStore.startJointJogging} and
|
|
210
275
|
* {@link JoggingStore.runIncrementalCartesianJog} activate what they need
|
|
211
276
|
* themselves.
|
|
277
|
+
*
|
|
278
|
+
* @deprecated Only `JoggingPanel` (deprecated) calls it: it activates for
|
|
279
|
+
* the panel's tab. Jog with the methods above, which activate for their
|
|
280
|
+
* jog; a robot session hands the robot to jogging with
|
|
281
|
+
* `session.ensureMovementOwnership("jogging")`.
|
|
212
282
|
*/
|
|
213
283
|
activate(): Promise<JoggerConnection>;
|
|
214
284
|
/**
|
|
@@ -217,12 +287,34 @@ export declare class JoggingStore {
|
|
|
217
287
|
*/
|
|
218
288
|
private activateFor;
|
|
219
289
|
/**
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
290
|
+
* Opens the jogging websocket of the jogger, unless a jog may not start
|
|
291
|
+
* (see {@link JoggingStore.refuseUnlessJoggable}). It is a movement
|
|
292
|
+
* connection, for which NOVA switches a controller to control mode by
|
|
293
|
+
* itself and holds it there: the store opens it only here, for a jog, a
|
|
294
|
+
* TCP change or its robot session.
|
|
295
|
+
*
|
|
296
|
+
* It asks before it opens the websocket, and again once it is open: that
|
|
297
|
+
* takes 0.1 to 0.5 s, in which the robot may have been deactivated or
|
|
298
|
+
* stopped. Refused then, the websocket closes again before anything moves.
|
|
299
|
+
*
|
|
300
|
+
* `reinitialize` opens it anew when it is open already, for another TCP.
|
|
301
|
+
*/
|
|
302
|
+
private openJoggingWebsocket;
|
|
303
|
+
/**
|
|
304
|
+
* Throws a {@link JoggingRefusedError} while a jog may not start: once
|
|
305
|
+
* the store is disposed ("disconnected"), with the
|
|
306
|
+
* owner's reason that the robot may not move, else while another client
|
|
307
|
+
* holds the jogging connection ({@link JoggingStore.blocked}), else while
|
|
308
|
+
* the store is locked. `ownLock` is the lock of the step that asks: it
|
|
309
|
+
* locks the store against other jogs, not against itself.
|
|
224
310
|
*/
|
|
225
311
|
private refuseUnlessJoggable;
|
|
312
|
+
/**
|
|
313
|
+
* Why a jog may not start now, or null: see
|
|
314
|
+
* {@link JoggingStore.refuseUnlessJoggable}. Observed while a step runs,
|
|
315
|
+
* which it stops.
|
|
316
|
+
*/
|
|
317
|
+
private refusedReason;
|
|
226
318
|
/**
|
|
227
319
|
* Starts jogging the TCP along an axis (`translate`) or about it
|
|
228
320
|
* (`rotate`) until {@link JoggingStore.stopJogging}, with the store's
|
|
@@ -233,7 +325,14 @@ export declare class JoggingStore {
|
|
|
233
325
|
* later. A press that was stopped by then, or that another press followed,
|
|
234
326
|
* moves nothing. Rejects with a {@link JoggingRefusedError} as
|
|
235
327
|
* {@link JoggingStore.activate} does: while the store is locked or the
|
|
236
|
-
* robot may not move
|
|
328
|
+
* robot may not move, also when that came to be while the websocket
|
|
329
|
+
* opened.
|
|
330
|
+
*
|
|
331
|
+
* A jog that moves is stopped as by its release (see
|
|
332
|
+
* {@link JoggingStore.stopJogging}) once a jog would be refused: when the
|
|
333
|
+
* robot may no longer move, another client takes the jogging connection or
|
|
334
|
+
* the store gets locked. It stays stopped until the next press, also when
|
|
335
|
+
* the reason goes away; the release still comes and changes nothing.
|
|
237
336
|
*/
|
|
238
337
|
startCartesianJogging(motion: CartesianMotionType, axis: JoggingAxis, direction: JoggingDirection): Promise<void>;
|
|
239
338
|
/**
|
|
@@ -241,9 +340,30 @@ export declare class JoggingStore {
|
|
|
241
340
|
* {@link JoggingStore.stopJogging}, with the store's rotation velocity, or
|
|
242
341
|
* its translation velocity for a linear axis. As
|
|
243
342
|
* {@link JoggingStore.startCartesianJogging}, for a control that is held,
|
|
244
|
-
* and refused as it.
|
|
343
|
+
* and refused and stopped as it.
|
|
245
344
|
*/
|
|
246
345
|
startJointJogging(joint: number, direction: JoggingDirection): Promise<void>;
|
|
346
|
+
/**
|
|
347
|
+
* Follows the held jog that moves now, until its release or the press
|
|
348
|
+
* that follows it: stops it as its release does once a jog would be
|
|
349
|
+
* refused, see {@link JoggingStore.startCartesianJogging}. NOVA jogs on
|
|
350
|
+
* at the last velocity for as long as the jogging websocket is open.
|
|
351
|
+
*/
|
|
352
|
+
private watchHeldJog;
|
|
353
|
+
/**
|
|
354
|
+
* Opens the jogging websocket for a held jog. Resolves to whether this
|
|
355
|
+
* press is still the latest once it is open: a press that was stopped by
|
|
356
|
+
* then, or that another press followed, moves nothing.
|
|
357
|
+
*
|
|
358
|
+
* A start that fails or is refused leaves no jogging websocket open. A stop
|
|
359
|
+
* that came in the same event kept it for this start (see
|
|
360
|
+
* {@link JoggingStore.stopJogging}), and no other stop may follow. A stop
|
|
361
|
+
* that came while the start waited, before the websocket opened (for
|
|
362
|
+
* `onBeforeActivate`, or for the TCP and orientation), found nothing to
|
|
363
|
+
* close: the start closes it then, unless another press followed the
|
|
364
|
+
* stop, which owns it.
|
|
365
|
+
*/
|
|
366
|
+
private openForHeldJog;
|
|
247
367
|
/**
|
|
248
368
|
* Stops the jog of {@link JoggingStore.startCartesianJogging} or
|
|
249
369
|
* {@link JoggingStore.startJointJogging} and closes the jogging websocket.
|
|
@@ -252,6 +372,9 @@ export declare class JoggingStore {
|
|
|
252
372
|
*
|
|
253
373
|
* A start that comes while the robot is told to stop keeps the websocket,
|
|
254
374
|
* e.g. a joint slider that turns around stops and starts in one event.
|
|
375
|
+
*
|
|
376
|
+
* A step that runs is no held jog, and is left alone: a held jog is
|
|
377
|
+
* refused meanwhile, so the stop of its control belongs to none.
|
|
255
378
|
*/
|
|
256
379
|
stopJogging(): Promise<void>;
|
|
257
380
|
/**
|
|
@@ -267,8 +390,24 @@ export declare class JoggingStore {
|
|
|
267
390
|
* {@link JoggingRefusedError} as {@link JoggingStore.activate} does: while
|
|
268
391
|
* the store is locked, so also while another step runs, or the robot may
|
|
269
392
|
* not move.
|
|
393
|
+
*
|
|
394
|
+
* A step that the robot may no longer make is stopped: when the robot may
|
|
395
|
+
* no longer move, another client takes the jogging connection or
|
|
396
|
+
* something else locks the store. Before its trajectory went to NOVA
|
|
397
|
+
* (planning it takes a round trip) or was started, it rejects with a
|
|
398
|
+
* {@link JoggingRefusedError} then; once it runs, it is paused and
|
|
399
|
+
* resolves when the robot stands still. A stopped step stays stopped,
|
|
400
|
+
* also when the reason goes away.
|
|
270
401
|
*/
|
|
271
402
|
runIncrementalCartesianJog(motion: CartesianMotionType, axis: JoggingAxis, direction: JoggingDirection, increment: DiscreteIncrementOption): Promise<void>;
|
|
403
|
+
/**
|
|
404
|
+
* Follows the step of the lock `lock` until `end`: stops it once a jog
|
|
405
|
+
* would be refused for another reason than its own lock, see
|
|
406
|
+
* {@link JoggingStore.runIncrementalCartesianJog}. `refusedReason` is what
|
|
407
|
+
* the jogger asks: the reason that stopped the step, else why a jog would
|
|
408
|
+
* be refused now.
|
|
409
|
+
*/
|
|
410
|
+
private watchStep;
|
|
272
411
|
/**
|
|
273
412
|
* Takes the user's settings from the storage (see
|
|
274
413
|
* {@link JoggingStoreOptions}), which is `localStorage` only by default
|
|
@@ -303,6 +442,14 @@ export declare class JoggingStore {
|
|
|
303
442
|
* its joints only.
|
|
304
443
|
*/
|
|
305
444
|
get canJogCartesian(): boolean;
|
|
445
|
+
/**
|
|
446
|
+
* The tabs of `JoggingPanel`: Cartesian (where the robot can jog its TCP)
|
|
447
|
+
* and Joints
|
|
448
|
+
*
|
|
449
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it. Whether the robot
|
|
450
|
+
* can jog its TCP is {@link JoggingStore.canJogCartesian}; the tab is
|
|
451
|
+
* {@link JoggingStore.selectedTabId}.
|
|
452
|
+
*/
|
|
306
453
|
get tabs(): [JoggingTab, ...JoggingTab[]];
|
|
307
454
|
get incrementOptions(): readonly [{
|
|
308
455
|
readonly id: "continuous";
|
|
@@ -323,14 +470,30 @@ export declare class JoggingStore {
|
|
|
323
470
|
} | {
|
|
324
471
|
readonly id: "continuous";
|
|
325
472
|
}>;
|
|
473
|
+
/** @deprecated See {@link JoggingStore.tabs} */
|
|
326
474
|
get tabsById(): import("lodash").Dictionary<JoggingTab>;
|
|
475
|
+
/**
|
|
476
|
+
* The selected tab, or the first where the robot has not the selected one
|
|
477
|
+
* (no Cartesian tab without an inverse solver)
|
|
478
|
+
*/
|
|
327
479
|
get currentTab(): JoggingTab;
|
|
480
|
+
/**
|
|
481
|
+
* The index of the selected tab in {@link JoggingStore.tabs}, for the MUI
|
|
482
|
+
* `Tabs` of `JoggingPanel`
|
|
483
|
+
*
|
|
484
|
+
* @deprecated See {@link JoggingStore.tabs}
|
|
485
|
+
*/
|
|
328
486
|
get tabIndex(): number;
|
|
329
487
|
get coordSystemsById(): import("lodash").Dictionary<CoordinateSystem>;
|
|
330
488
|
/**
|
|
331
489
|
* The id of the coordinate system to use for jogging.
|
|
332
490
|
* If in tool orientation, this is set to "tool", not the
|
|
333
491
|
* selected coordinate system.
|
|
492
|
+
*
|
|
493
|
+
* @deprecated Only `JoggingPanel` (deprecated) reads it: it jogs in the
|
|
494
|
+
* coordinate system that the values are shown in. The store's own jogs
|
|
495
|
+
* move along {@link JoggingStore.jogCoordSystem} ("Move relative to"), or
|
|
496
|
+
* along the tool's axes in tool orientation.
|
|
334
497
|
*/
|
|
335
498
|
get activeCoordSystemId(): string;
|
|
336
499
|
/** The coordinate system to jog along, resolved relative to world */
|
|
@@ -367,6 +530,13 @@ export declare class JoggingStore {
|
|
|
367
530
|
minVelocityInDisplayUnits(useDegree: boolean): number;
|
|
368
531
|
/** Maximum selectable velocity in mm/sec or deg/sec */
|
|
369
532
|
maxVelocityInDisplayUnits(useDegree: boolean): number;
|
|
533
|
+
/**
|
|
534
|
+
* The `onChange` of the MUI `Tabs` of `JoggingPanel`
|
|
535
|
+
*
|
|
536
|
+
* @deprecated Only `JoggingPanel` (deprecated) calls it. Set
|
|
537
|
+
* {@link JoggingStore.selectedTabId}; `useRobotControlProps` does that for
|
|
538
|
+
* the tabs of `RobotControlPanel`.
|
|
539
|
+
*/
|
|
370
540
|
onTabChange(_event: React.SyntheticEvent, newValue: number): void;
|
|
371
541
|
setSelectedCoordSystemId(id: string): void;
|
|
372
542
|
/**
|
|
@@ -382,6 +552,14 @@ export declare class JoggingStore {
|
|
|
382
552
|
* If the jogger is idle, a jogging websocket is briefly opened to communicate the
|
|
383
553
|
* TCP change. The websocket is kept open until the state-stream confirms the
|
|
384
554
|
* change (or a 1s timeout), to ensure the backend has time to process it.
|
|
555
|
+
*
|
|
556
|
+
* The jogging websocket is a movement connection, for which NOVA switches a
|
|
557
|
+
* controller to control mode by itself. So the change rejects with a
|
|
558
|
+
* {@link JoggingRefusedError} as a jog does, while the store is locked or
|
|
559
|
+
* its owner says that the robot may not move: the TCP stays, and no
|
|
560
|
+
* websocket opens (or it closes again, see {@link JoggingStore.activate}).
|
|
561
|
+
* As for a jog, {@link JoggingStore.onBeforeActivate} ends another motion
|
|
562
|
+
* first; when it rejects, the TCP stays.
|
|
385
563
|
*/
|
|
386
564
|
requestTcpChange(tcpId: string): Promise<void>;
|
|
387
565
|
private waitForTcpConfirmation;
|
|
@@ -391,6 +569,11 @@ export declare class JoggingStore {
|
|
|
391
569
|
/** "Move relative to" a coordinate system: jog along its axes */
|
|
392
570
|
setMoveRelativeToCoordSystem(coordSystemId: string): void;
|
|
393
571
|
setSelectedIncrementId(id: IncrementOptionId): void;
|
|
572
|
+
/**
|
|
573
|
+
* @deprecated Only `JoggingPanel` (deprecated) calls it, for the steps it
|
|
574
|
+
* runs itself. {@link JoggingStore.runIncrementalCartesianJog} sets
|
|
575
|
+
* {@link JoggingStore.incrementJogInProgress} for its step.
|
|
576
|
+
*/
|
|
394
577
|
setCurrentIncrementJog(incrementJog: IncrementJogInProgress | null): void;
|
|
395
578
|
setLastJogError(message: string | null): void;
|
|
396
579
|
/**
|
|
@@ -404,6 +587,12 @@ export declare class JoggingStore {
|
|
|
404
587
|
lock(id: string): void;
|
|
405
588
|
unlock(id: string): void;
|
|
406
589
|
block(): void;
|
|
590
|
+
/**
|
|
591
|
+
* Ends {@link JoggingStore.blocked}, so that jogging can be tried again.
|
|
592
|
+
* For a jogger that is still in jogging mode (one that an app keeps there),
|
|
593
|
+
* it opens the jogging websocket again, unless a jog may not start: then
|
|
594
|
+
* the jogger is switched off instead.
|
|
595
|
+
*/
|
|
407
596
|
unblock(): void;
|
|
408
597
|
/** Lock the UI until the given async callback resolves */
|
|
409
598
|
withMotionLock(fn: () => Promise<void>): Promise<void>;
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { JogAxis } from "./jogHandle";
|
|
2
|
+
/**
|
|
3
|
+
* The `colors` of `JoggingCartesianAxisControl`
|
|
4
|
+
*
|
|
5
|
+
* @deprecated With `JoggingCartesianAxisControl`. `JoggingButtons` has the
|
|
6
|
+
* axis colors of the design system built in.
|
|
7
|
+
*/
|
|
2
8
|
export interface AxisControlComponentColors {
|
|
3
9
|
color?: string;
|
|
4
10
|
borderColor?: string;
|