-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvirtual_uarm.td.json
115 lines (115 loc) · 3.63 KB
/
virtual_uarm.td.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"@context":[
"https://www.w3.org/2019/wot/td/v1",
{
"@language":"en"
}
],
"@type":"Thing",
"title": "VirtualUarm",
"id": "urn:dev:ops:32473-virtual-uarm",
"description": "Uarm (Virtual)",
"security": "nosec_sc",
"securityDefinitions": {
"nosec_sc": {
"scheme": "nosec"
}
},
"actions":{
"goTo":{
"title":"Go to position",
"description":"Move to Position x,y,z given by the user with fixed speed",
"input":{
"properties":{
"x":{
"maximum":200,
"minimum":120,
"type":"integer"
},
"y":{
"maximum":200,
"minimum":-200,
"type":"number"
},
"z":{
"maximum":100,
"minimum":52,
"type":"integer"
}
},
"required":["x","y","z"],
"type":"object"
},
"forms":[
{
"contentType":"application/json",
"href":"http://localhost:9000/virtualuarm/actions/goTo",
"htv:methodName":"POST",
"op":["invokeaction"]
}
]
},
"gripClose":{
"title":"Close gripper",
"description":"Close Uarm gripper",
"forms":[
{
"contentType":"application/json",
"href":"http://localhost:9000/virtualuarm/actions/gripClose",
"htv:methodName":"POST",
"op":["invokeaction"]
}
]
},
"gripOpen":{
"title":"Open gripper",
"description":"Open Uarm gripper",
"forms":[
{
"contentType":"application/json",
"href":"http://localhost:9000/virtualuarm/actions/gripOpen",
"htv:methodName":"POST",
"op":["invokeaction"]
}
]
},
"goHome": {
"description": "Go to the set home position",
"forms": [
{
"contentType": "application/json",
"href": "http://localhost:9000/virtualuarm/actions/goHome",
"htv:methodName": "POST",
"op": "invokeaction"
}
],
"idempotent": false,
"safe": false,
"title": "Go Home"
},
"goWithSpeed": {
"description": "Move to described position with set speed",
"forms": [
{
"contentType": "application/json",
"href": "http://localhost:9000/virtualuarm/actions/goWithSpeed",
"htv:methodName": "POST",
"op": "invokeaction"
}
],
"idempotent": true,
"input": {
"properties": {
"speed": { "maximum": 10000, "minimum": 100, "type": "integer" },
"x": { "maximum": 200, "minimum": 120, "type": "integer" },
"y": { "maximum": 200, "minimum": -200, "type": "integer" },
"z": { "maximum": 100, "minimum": 52, "type": "integer" }
},
"required": ["x", "y", "z", "speed"],
"type": "object"
},
"safe": false,
"title": "Go to with speed"
}
}
}