CmvrControlStation/docs/task-flow/example.task.json

119 lines
5.0 KiB
JSON
Raw Normal View History

{
"executionPolicy": {
"automaticRetry": false,
"onError": "stop",
"order": "sequential",
"stopBehavior": "stop_scheduling_and_cancel_active_unary",
"waitStartsAfter": "operation_success"
},
"format": "cmvr.task-flow",
"groups": [
{
"id": "example-group",
"name": "offline example",
"nodes": [
{
"action": "接口 · ApplyUserCoordinateSystem",
"deviceId": "aubo_arm",
"deviceType": "机械臂",
"execution": {
"completion": "rpc_response",
"kind": "grpc_unary",
"method": "ApplyUserCoordinateSystem",
"request": {
"expected_revision": "0",
"header": {
"device_id": "aubo_arm"
},
"name": "测试坐标系"
},
"service": "cmvr.api.ArmService",
"timeoutMs": 180000
},
"id": "example-apply",
"kind": "task",
"name": "接口 · ApplyUserCoordinateSystem",
"operationId": "cmvr.api.ArmService.ApplyUserCoordinateSystem",
"parameters": {
"method": "ApplyUserCoordinateSystem",
"request": {
"expected_revision": "0",
"name": "测试坐标系"
},
"service": "cmvr.api.ArmService",
"timeoutMs": 180000
},
"waitMs": 3000,
"waitUnit": "s"
},
{
"children": [
{
"action": "接口 · moveJPose",
"deviceId": "aubo_arm",
"deviceType": "机械臂",
"execution": {
"completion": "rpc_response",
"kind": "grpc_unary",
"method": "moveJPose",
"request": {
"header": {
"device_id": "aubo_arm"
},
"options": {
"acceleration": 0.5,
"velocity": 0.1
},
"target": {
"rx": 0,
"ry": 0,
"rz": 0,
"x": 0.1,
"y": 0.2,
"z": 0.3
},
"user_coordinate_name": "测试坐标系",
"user_coordinate_revision": "0"
},
"service": "cmvr.api.ArmService",
"timeoutMs": 180000
},
"id": "example-movej-pose",
"kind": "task",
"name": "接口 · moveJPose",
"operationId": "cmvr.api.ArmService.moveJPose",
"parameters": {
"method": "moveJPose",
"request": {
"options": {
"acceleration": 0.5,
"velocity": 0.1
},
"target": {
"rx": 0,
"ry": 0,
"rz": 0,
"x": 0.1,
"y": 0.2,
"z": 0.3
},
"user_coordinate_name": "测试坐标系",
"user_coordinate_revision": "0"
},
"service": "cmvr.api.ArmService",
"timeoutMs": 180000
},
"waitMs": 3000,
"waitUnit": "s"
}
],
"count": 2,
"id": "example-loop",
"kind": "loop",
"name": "repeat"
}
]
}
]
}