Skip to content

Commit 72d269e

Browse files
committed
Added a few functions
1 parent 377efd7 commit 72d269e

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

broker_functions.py

+18-19
Original file line numberDiff line numberDiff line change
@@ -384,32 +384,31 @@ def mount_tool(self, x, y, z):
384384
"label": "6a6b10a6-46a8-4b97-8b66-c55021c02bbd",
385385
"priority": 600
386386
},
387-
"body": [
388-
{
389-
"kind": "execute",
387+
"body": {
388+
"kind": "execute",
389+
"args": {
390+
"sequence_id": 24350
391+
},
392+
"body": {
393+
"kind": "parameter_application",
390394
"args": {
391-
"sequence_id": 24350
392-
},
393-
"body": [
394-
{
395-
"kind": "parameter_application",
395+
"label": "Tool",
396+
"data_value": {
397+
"kind": "coordinate",
396398
"args": {
397-
"label": "Tool",
398-
"data_value": {
399-
"kind": "coordinate",
400-
"args": {
401-
"x": 0,
402-
"y": 40,
403-
"z": 0
404-
}
405-
}
399+
"x": x,
400+
"y": y,
401+
"z": z
406402
}
407403
}
408-
]
404+
}
409405
}
410-
]
406+
}
411407
}
412408

409+
self.broker_connect.publish(mount_tool_message)
410+
# return ...
411+
413412
# water() --> check
414413
# dispense() --> check
415414

0 commit comments

Comments
 (0)