@wandelbots/nova-js 3.5.1 → 3.5.2-pr.feat-addTestForQueryUsingApiCAll.228.5a9a608
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/AutoReconnectingWebsocket-By6EZkXv.d.mts.map +1 -1
- package/dist/AutoReconnectingWebsocket-dO-Xkvgo.d.cts.map +1 -1
- package/dist/lib/v2/index.cjs +517 -439
- package/dist/lib/v2/index.cjs.map +1 -1
- package/dist/lib/v2/index.mjs +517 -439
- package/dist/lib/v2/index.mjs.map +1 -1
- package/package.json +6 -1
- package/src/lib/v2/mock/MockNovaInstance.ts +18 -421
- package/src/lib/v2/mock/getCurrentRobotControllerState.ts +53 -0
- package/src/lib/v2/mock/getMotionGroupDescription.ts +307 -0
- package/src/lib/v2/mock/getMotionGroupKinematicModel.ts +53 -0
- package/src/lib/v2/mock/getRobotController.ts +17 -0
- package/src/lib/v2/mock/listCoordinateSystems.ts +24 -0
- package/src/lib/v2/mock/listRobotControllers.ts +7 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
export const getMotionGroupDescription = {
|
|
2
|
+
method: "GET",
|
|
3
|
+
path: "/cells/:cellId/controllers/:controllerId/motion-groups/:motionGroupId/description",
|
|
4
|
+
handle() {
|
|
5
|
+
return {
|
|
6
|
+
motion_group_model: "UniversalRobots_UR5e",
|
|
7
|
+
mounting: {
|
|
8
|
+
position: [0, 0, 0],
|
|
9
|
+
orientation: [0, 0, 0],
|
|
10
|
+
},
|
|
11
|
+
tcps: {
|
|
12
|
+
Flange: {
|
|
13
|
+
name: "Default-Flange",
|
|
14
|
+
pose: {
|
|
15
|
+
position: [0, 0, 0],
|
|
16
|
+
orientation: [0, 0, 0],
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
payloads: {
|
|
21
|
+
"FPay-0": {
|
|
22
|
+
name: "FPay-0",
|
|
23
|
+
payload: 0,
|
|
24
|
+
center_of_mass: [0, 0, 0],
|
|
25
|
+
moment_of_inertia: [0, 0, 0],
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
cycle_time: 8,
|
|
29
|
+
dh_parameters: [
|
|
30
|
+
{
|
|
31
|
+
alpha: 1.5707963267948966,
|
|
32
|
+
d: 162.25,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
a: -425,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
a: -392.2,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
alpha: 1.5707963267948966,
|
|
42
|
+
d: 133.3,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
alpha: -1.5707963267948966,
|
|
46
|
+
d: 99.7,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
d: 99.6,
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
operation_limits: {
|
|
53
|
+
auto_limits: {
|
|
54
|
+
joints: [
|
|
55
|
+
{
|
|
56
|
+
position: {
|
|
57
|
+
lower_limit: -6.283185307179586,
|
|
58
|
+
upper_limit: 6.283185307179586,
|
|
59
|
+
},
|
|
60
|
+
velocity: 3.34159255027771,
|
|
61
|
+
acceleration: 40,
|
|
62
|
+
torque: 150,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
position: {
|
|
66
|
+
lower_limit: -6.283185307179586,
|
|
67
|
+
upper_limit: 6.283185307179586,
|
|
68
|
+
},
|
|
69
|
+
velocity: 3.34159255027771,
|
|
70
|
+
acceleration: 40,
|
|
71
|
+
torque: 150,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
position: {
|
|
75
|
+
lower_limit: -6.283185307179586,
|
|
76
|
+
upper_limit: 6.283185307179586,
|
|
77
|
+
},
|
|
78
|
+
velocity: 3.34159255027771,
|
|
79
|
+
acceleration: 40,
|
|
80
|
+
torque: 150,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
position: {
|
|
84
|
+
lower_limit: -6.283185307179586,
|
|
85
|
+
upper_limit: 6.283185307179586,
|
|
86
|
+
},
|
|
87
|
+
velocity: 3.34159255027771,
|
|
88
|
+
acceleration: 40,
|
|
89
|
+
torque: 28,
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
position: {
|
|
93
|
+
lower_limit: -6.283185307179586,
|
|
94
|
+
upper_limit: 6.283185307179586,
|
|
95
|
+
},
|
|
96
|
+
velocity: 3.34159255027771,
|
|
97
|
+
acceleration: 40,
|
|
98
|
+
torque: 28,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
position: {
|
|
102
|
+
lower_limit: -6.283185307179586,
|
|
103
|
+
upper_limit: 6.283185307179586,
|
|
104
|
+
},
|
|
105
|
+
velocity: 3.34159255027771,
|
|
106
|
+
acceleration: 40,
|
|
107
|
+
torque: 28,
|
|
108
|
+
},
|
|
109
|
+
],
|
|
110
|
+
tcp: {
|
|
111
|
+
velocity: 5000,
|
|
112
|
+
},
|
|
113
|
+
elbow: {
|
|
114
|
+
velocity: 5000,
|
|
115
|
+
},
|
|
116
|
+
flange: {
|
|
117
|
+
velocity: 5000,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
manual_limits: {
|
|
121
|
+
joints: [
|
|
122
|
+
{
|
|
123
|
+
position: {
|
|
124
|
+
lower_limit: -6.283185307179586,
|
|
125
|
+
upper_limit: 6.283185307179586,
|
|
126
|
+
},
|
|
127
|
+
velocity: 3.34159255027771,
|
|
128
|
+
acceleration: 40,
|
|
129
|
+
torque: 150,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
position: {
|
|
133
|
+
lower_limit: -6.283185307179586,
|
|
134
|
+
upper_limit: 6.283185307179586,
|
|
135
|
+
},
|
|
136
|
+
velocity: 3.34159255027771,
|
|
137
|
+
acceleration: 40,
|
|
138
|
+
torque: 150,
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
position: {
|
|
142
|
+
lower_limit: -6.283185307179586,
|
|
143
|
+
upper_limit: 6.283185307179586,
|
|
144
|
+
},
|
|
145
|
+
velocity: 3.34159255027771,
|
|
146
|
+
acceleration: 40,
|
|
147
|
+
torque: 150,
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
position: {
|
|
151
|
+
lower_limit: -6.283185307179586,
|
|
152
|
+
upper_limit: 6.283185307179586,
|
|
153
|
+
},
|
|
154
|
+
velocity: 3.34159255027771,
|
|
155
|
+
acceleration: 40,
|
|
156
|
+
torque: 28,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
position: {
|
|
160
|
+
lower_limit: -6.283185307179586,
|
|
161
|
+
upper_limit: 6.283185307179586,
|
|
162
|
+
},
|
|
163
|
+
velocity: 3.34159255027771,
|
|
164
|
+
acceleration: 40,
|
|
165
|
+
torque: 28,
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
position: {
|
|
169
|
+
lower_limit: -6.283185307179586,
|
|
170
|
+
upper_limit: 6.283185307179586,
|
|
171
|
+
},
|
|
172
|
+
velocity: 3.34159255027771,
|
|
173
|
+
acceleration: 40,
|
|
174
|
+
torque: 28,
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
tcp: {
|
|
178
|
+
velocity: 5000,
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
manual_t1_limits: {
|
|
182
|
+
joints: [
|
|
183
|
+
{
|
|
184
|
+
position: {
|
|
185
|
+
lower_limit: -6.283185307179586,
|
|
186
|
+
upper_limit: 6.283185307179586,
|
|
187
|
+
},
|
|
188
|
+
velocity: 3.34159255027771,
|
|
189
|
+
acceleration: 40,
|
|
190
|
+
torque: 150,
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
position: {
|
|
194
|
+
lower_limit: -6.283185307179586,
|
|
195
|
+
upper_limit: 6.283185307179586,
|
|
196
|
+
},
|
|
197
|
+
velocity: 3.34159255027771,
|
|
198
|
+
acceleration: 40,
|
|
199
|
+
torque: 150,
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
position: {
|
|
203
|
+
lower_limit: -6.283185307179586,
|
|
204
|
+
upper_limit: 6.283185307179586,
|
|
205
|
+
},
|
|
206
|
+
velocity: 3.34159255027771,
|
|
207
|
+
acceleration: 40,
|
|
208
|
+
torque: 150,
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
position: {
|
|
212
|
+
lower_limit: -6.283185307179586,
|
|
213
|
+
upper_limit: 6.283185307179586,
|
|
214
|
+
},
|
|
215
|
+
velocity: 3.34159255027771,
|
|
216
|
+
acceleration: 40,
|
|
217
|
+
torque: 28,
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
position: {
|
|
221
|
+
lower_limit: -6.283185307179586,
|
|
222
|
+
upper_limit: 6.283185307179586,
|
|
223
|
+
},
|
|
224
|
+
velocity: 3.34159255027771,
|
|
225
|
+
acceleration: 40,
|
|
226
|
+
torque: 28,
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
position: {
|
|
230
|
+
lower_limit: -6.283185307179586,
|
|
231
|
+
upper_limit: 6.283185307179586,
|
|
232
|
+
},
|
|
233
|
+
velocity: 3.34159255027771,
|
|
234
|
+
acceleration: 40,
|
|
235
|
+
torque: 28,
|
|
236
|
+
},
|
|
237
|
+
],
|
|
238
|
+
tcp: {
|
|
239
|
+
velocity: 5000,
|
|
240
|
+
},
|
|
241
|
+
},
|
|
242
|
+
manual_t2_limits: {
|
|
243
|
+
joints: [
|
|
244
|
+
{
|
|
245
|
+
position: {
|
|
246
|
+
lower_limit: -6.283185307179586,
|
|
247
|
+
upper_limit: 6.283185307179586,
|
|
248
|
+
},
|
|
249
|
+
velocity: 3.34159255027771,
|
|
250
|
+
acceleration: 40,
|
|
251
|
+
torque: 150,
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
position: {
|
|
255
|
+
lower_limit: -6.283185307179586,
|
|
256
|
+
upper_limit: 6.283185307179586,
|
|
257
|
+
},
|
|
258
|
+
velocity: 3.34159255027771,
|
|
259
|
+
acceleration: 40,
|
|
260
|
+
torque: 150,
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
position: {
|
|
264
|
+
lower_limit: -6.283185307179586,
|
|
265
|
+
upper_limit: 6.283185307179586,
|
|
266
|
+
},
|
|
267
|
+
velocity: 3.34159255027771,
|
|
268
|
+
acceleration: 40,
|
|
269
|
+
torque: 150,
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
position: {
|
|
273
|
+
lower_limit: -6.283185307179586,
|
|
274
|
+
upper_limit: 6.283185307179586,
|
|
275
|
+
},
|
|
276
|
+
velocity: 3.34159255027771,
|
|
277
|
+
acceleration: 40,
|
|
278
|
+
torque: 28,
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
position: {
|
|
282
|
+
lower_limit: -6.283185307179586,
|
|
283
|
+
upper_limit: 6.283185307179586,
|
|
284
|
+
},
|
|
285
|
+
velocity: 3.34159255027771,
|
|
286
|
+
acceleration: 40,
|
|
287
|
+
torque: 28,
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
position: {
|
|
291
|
+
lower_limit: -6.283185307179586,
|
|
292
|
+
upper_limit: 6.283185307179586,
|
|
293
|
+
},
|
|
294
|
+
velocity: 3.34159255027771,
|
|
295
|
+
acceleration: 40,
|
|
296
|
+
torque: 28,
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
tcp: {
|
|
300
|
+
velocity: 5000,
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
serial_number: "WBVirtualRobot",
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const getMotionGroupKinematicModel = {
|
|
2
|
+
method: "GET",
|
|
3
|
+
path: "/motion-group-models/:motionGroupModel/kinematic",
|
|
4
|
+
handle() {
|
|
5
|
+
return {
|
|
6
|
+
dh_parameters: [
|
|
7
|
+
{
|
|
8
|
+
alpha: 1.5707963267948966,
|
|
9
|
+
theta: 0.0,
|
|
10
|
+
a: 0.0,
|
|
11
|
+
d: 162.25,
|
|
12
|
+
reverse_rotation_direction: false,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
alpha: 0.0,
|
|
16
|
+
theta: 0.0,
|
|
17
|
+
a: -425.0,
|
|
18
|
+
d: 0.0,
|
|
19
|
+
reverse_rotation_direction: false,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
alpha: 0.0,
|
|
23
|
+
theta: 0.0,
|
|
24
|
+
a: -392.2,
|
|
25
|
+
d: 0.0,
|
|
26
|
+
reverse_rotation_direction: false,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
alpha: 1.5707963267948966,
|
|
30
|
+
theta: 0.0,
|
|
31
|
+
a: 0.0,
|
|
32
|
+
d: 133.3,
|
|
33
|
+
reverse_rotation_direction: false,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
alpha: -1.5707963267948966,
|
|
37
|
+
theta: 0.0,
|
|
38
|
+
a: 0.0,
|
|
39
|
+
d: 99.7,
|
|
40
|
+
reverse_rotation_direction: false,
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
alpha: 0.0,
|
|
44
|
+
theta: 0.0,
|
|
45
|
+
a: 0.0,
|
|
46
|
+
d: 99.6,
|
|
47
|
+
reverse_rotation_direction: false,
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
inverse_solver: "Universalrobots",
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { RobotController } from "@wandelbots/nova-api/v2"
|
|
2
|
+
|
|
3
|
+
export const getRobotController = {
|
|
4
|
+
method: "GET",
|
|
5
|
+
path: "/cells/:cellId/controllers/:controllerId",
|
|
6
|
+
handle() {
|
|
7
|
+
return {
|
|
8
|
+
configuration: {
|
|
9
|
+
initial_joint_position: "[0,-1.571,-1.571,-1.571,1.571,-1.571,0]",
|
|
10
|
+
kind: "VirtualController",
|
|
11
|
+
manufacturer: "universalrobots",
|
|
12
|
+
type: "universalrobots-ur5e",
|
|
13
|
+
},
|
|
14
|
+
name: "mock-ur5",
|
|
15
|
+
} satisfies RobotController
|
|
16
|
+
},
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const listCoordinateSystems = {
|
|
2
|
+
method: "GET",
|
|
3
|
+
path: "/cells/:cellId/controllers/:controllerId/coordinate-systems",
|
|
4
|
+
handle() {
|
|
5
|
+
return [
|
|
6
|
+
{
|
|
7
|
+
coordinate_system: "",
|
|
8
|
+
name: "world",
|
|
9
|
+
reference_coordinate_system: "",
|
|
10
|
+
position: [0, 0, 0],
|
|
11
|
+
orientation: [0, 0, 0],
|
|
12
|
+
orientation_type: "ROTATION_VECTOR",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
coordinate_system: "CS-0",
|
|
16
|
+
name: "Default-CS",
|
|
17
|
+
reference_coordinate_system: "",
|
|
18
|
+
position: [0, 0, 0],
|
|
19
|
+
orientation: [0, 0, 0],
|
|
20
|
+
orientation_type: "ROTATION_VECTOR",
|
|
21
|
+
},
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
}
|