@wandelbots/wandelbots-js-react-components 1.19.1 → 1.19.2
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 +1 -1
- 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 +9 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/jogging/JoggingStore.tsx +16 -7
package/package.json
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
CoordinateSystem,
|
|
3
|
+
JoggerConnection,
|
|
4
|
+
MotionGroupSpecification,
|
|
5
|
+
RobotTcp,
|
|
6
|
+
} from "@wandelbots/wandelbots-js"
|
|
7
|
+
import { tryParseJson } from "@wandelbots/wandelbots-js"
|
|
1
8
|
import keyBy from "lodash-es/keyBy"
|
|
2
9
|
import uniqueId from "lodash-es/uniqueId"
|
|
3
10
|
import {
|
|
@@ -6,13 +13,6 @@ import {
|
|
|
6
13
|
runInAction,
|
|
7
14
|
type IReactionDisposer,
|
|
8
15
|
} from "mobx"
|
|
9
|
-
import type {
|
|
10
|
-
CoordinateSystem,
|
|
11
|
-
JoggerConnection,
|
|
12
|
-
MotionGroupSpecification,
|
|
13
|
-
RobotTcp,
|
|
14
|
-
} from "@wandelbots/wandelbots-js"
|
|
15
|
-
import { tryParseJson } from "@wandelbots/wandelbots-js"
|
|
16
16
|
|
|
17
17
|
const discreteIncrementOptions = [
|
|
18
18
|
{ id: "0.1", mm: 0.1, degrees: 0.05 },
|
|
@@ -177,6 +177,15 @@ export class JoggingStore {
|
|
|
177
177
|
await websocket.closed()
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
+
// Closing websocket sometimes isn't enough to stop interference
|
|
181
|
+
try {
|
|
182
|
+
await this.jogger.nova.api.motionGroupJogging.stopJogging(
|
|
183
|
+
this.jogger.motionGroupId,
|
|
184
|
+
)
|
|
185
|
+
} catch (err) {
|
|
186
|
+
console.error(err)
|
|
187
|
+
}
|
|
188
|
+
|
|
180
189
|
if (opts.requireManualReactivation) {
|
|
181
190
|
runInAction(() => {
|
|
182
191
|
this.manualActivationRequired = true
|