@wandelbots/wandelbots-js-react-components 1.24.0 → 1.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/jogging/JoggingStore.d.ts +2 -0
- package/dist/components/jogging/JoggingStore.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +16 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingPanel.tsx +2 -2
- package/src/components/jogging/JoggingStore.ts +14 -20
package/dist/index.js
CHANGED
|
@@ -10966,7 +10966,7 @@ const bo = [
|
|
|
10966
10966
|
class qo {
|
|
10967
10967
|
constructor(t, n, r, a) {
|
|
10968
10968
|
var s, i;
|
|
10969
|
-
this.jogger = t, this.motionGroupSpec = n, this.coordSystems = r, this.tcps = a, this.selectedTabId = "cartesian", this.manualActivationRequired = !0, this.activationState = "inactive", this.activationError = null, this.locks = /* @__PURE__ */ new Set(), this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJoggingInProgress = !1, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.disposers = [];
|
|
10969
|
+
this.jogger = t, this.motionGroupSpec = n, this.coordSystems = r, this.tcps = a, this.selectedTabId = "cartesian", this.manualActivationRequired = !0, this.activationState = "inactive", this.activationError = null, this.activationCounter = 0, this.locks = /* @__PURE__ */ new Set(), this.selectedCoordSystemId = "world", this.selectedTcpId = "", this.selectedOrientation = "coordsys", this.selectedIncrementId = "continuous", this.selectedCartesianMotionType = "translate", this.incrementJoggingInProgress = !1, this.translationVelocityMmPerSec = 10, this.rotationVelocityDegPerSec = 1, this.minTranslationVelocityMmPerSec = 5, this.maxTranslationVelocityMmPerSec = 250, this.minRotationVelocityDegPerSec = 1, this.maxRotationVelocityDegPerSec = 60, this.disposers = [];
|
|
10970
10970
|
for (const l of r)
|
|
10971
10971
|
if (l.coordinate_system === "") {
|
|
10972
10972
|
l.coordinate_system = "world";
|
|
@@ -11020,14 +11020,7 @@ class qo {
|
|
|
11020
11020
|
}
|
|
11021
11021
|
/** Activate the jogger with current settings */
|
|
11022
11022
|
async activate(t = {}) {
|
|
11023
|
-
|
|
11024
|
-
currentTab: n,
|
|
11025
|
-
selectedTcpId: r,
|
|
11026
|
-
activeCoordSystemId: a,
|
|
11027
|
-
activeDiscreteIncrement: s,
|
|
11028
|
-
jogger: i
|
|
11029
|
-
} = this;
|
|
11030
|
-
if (this.activationState !== "loading" && !(this.manualActivationRequired && !t.manual)) {
|
|
11023
|
+
if (console.log("activate!!"), !(this.manualActivationRequired && !t.manual)) {
|
|
11031
11024
|
hr(() => {
|
|
11032
11025
|
this.activationState = "loading", this.activationError = null;
|
|
11033
11026
|
});
|
|
@@ -11036,23 +11029,23 @@ class qo {
|
|
|
11036
11029
|
this.jogger.motionStream.controllerId,
|
|
11037
11030
|
"MODE_CONTROL"
|
|
11038
11031
|
);
|
|
11039
|
-
} catch (
|
|
11040
|
-
console.error(
|
|
11032
|
+
} catch (n) {
|
|
11033
|
+
console.error(n);
|
|
11041
11034
|
}
|
|
11042
|
-
if (
|
|
11043
|
-
const
|
|
11044
|
-
tcpId:
|
|
11045
|
-
coordSystemId:
|
|
11035
|
+
if (this.currentTab.id === "cartesian") {
|
|
11036
|
+
const n = {
|
|
11037
|
+
tcpId: this.selectedTcpId,
|
|
11038
|
+
coordSystemId: this.activeCoordSystemId
|
|
11046
11039
|
};
|
|
11047
|
-
|
|
11040
|
+
this.activeDiscreteIncrement ? this.jogger.setJoggingMode("increment", n) : this.jogger.setJoggingMode("cartesian", n);
|
|
11048
11041
|
} else
|
|
11049
|
-
|
|
11050
|
-
if (
|
|
11042
|
+
this.jogger.setJoggingMode("joint");
|
|
11043
|
+
if (this.jogger.activeWebsocket)
|
|
11051
11044
|
try {
|
|
11052
|
-
|
|
11053
|
-
} catch (
|
|
11045
|
+
this.jogger.stop(), await this.jogger.activeWebsocket.nextMessage();
|
|
11046
|
+
} catch (n) {
|
|
11054
11047
|
hr(() => {
|
|
11055
|
-
this.activationState = "inactive", this.activationError =
|
|
11048
|
+
this.activationState = "inactive", this.activationError = n;
|
|
11056
11049
|
});
|
|
11057
11050
|
return;
|
|
11058
11051
|
}
|
|
@@ -11246,13 +11239,13 @@ const yb = un(
|
|
|
11246
11239
|
};
|
|
11247
11240
|
}), Sl(
|
|
11248
11241
|
() => [
|
|
11249
|
-
e.currentTab,
|
|
11242
|
+
e.currentTab.id,
|
|
11250
11243
|
e.selectedTcpId,
|
|
11251
11244
|
e.activeCoordSystemId,
|
|
11252
11245
|
e.activeDiscreteIncrement
|
|
11253
11246
|
],
|
|
11254
11247
|
() => {
|
|
11255
|
-
e.activationState
|
|
11248
|
+
e.activationState !== "inactive" && e.activate();
|
|
11256
11249
|
}
|
|
11257
11250
|
);
|
|
11258
11251
|
function n() {
|