-
Notifications
You must be signed in to change notification settings - Fork 0
/
virtual_PanTilt1.json
186 lines (183 loc) · 4.91 KB
/
virtual_PanTilt1.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
{
"@context": [
"https://www.w3.org/2019/wot/td/v1",
{
"@language": "en"
}
],
"@type": "Thing",
"title": "PanTilt1",
"id": "urn:dev:ops:32473-virtualPantilt-1",
"description": "virtual PanTilt 1 in coppeliasim",
"security": "nosec_sc",
"securityDefinitions": {
"nosec_sc": {
"scheme": "nosec"
}
},
"properties": {
"panPosition": {
"description": "The current position of the pan platform in degrees",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/properties/panPosition",
"htv:methodName": "GET",
"op": ["readproperty"]
}
],
"maximum": 90,
"minimum": -90,
"observable": false,
"readOnly": true,
"title": "Pan Position",
"type": "number",
"unit": "degrees",
"writeOnly": false
},
"tiltPosition": {
"description": "The current position of the tilt platform in degrees",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/properties/tiltPosition",
"htv:methodName": "GET",
"op": ["readproperty"]
}
],
"maximum": 80,
"minimum": -80,
"observable": false,
"readOnly": true,
"title": "Tilt Position",
"type": "number",
"unit": "degrees",
"writeOnly": false
}
},
"actions": {
"goHome": {
"description": "Returns the pan and tilt to their home position which is at 0 and 0 degrees",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/actions/goHome",
"htv:methodName": "POST",
"op": ["invokeaction"]
}
],
"idempotent": false,
"safe": false,
"title": "Go Home"
},
"moveTo": {
"description": "Moves the tilt and pan platform to the angles given in input",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/actions/moveTo",
"htv:methodName": "POST",
"op": ["invokeaction"]
}
],
"idempotent": false,
"input": {
"properties": {
"panAngle": {
"maximum": 90,
"minimum": -90,
"title": "Pan To",
"type": "number",
"unit": "degrees"
},
"tiltAngle": {
"maximum": 80,
"minimum": -80,
"title": "Tilt To",
"type": "number",
"unit": "degrees"
}
},
"required": ["panAngle", "tiltAngle"],
"type": "object"
},
"safe": false,
"title": "Move To"
},
"panContinuously": {
"description": "Moves the pan platform with speed given in input until a stop action is invoked or limits are reached",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/actions/panContinuously",
"htv:methodName": "POST",
"op": ["invokeaction"]
}
],
"idempotent": false,
"input": {
"description": "The speed at which the platform moves. Negative values for right and positive values for left",
"maximum": 15,
"minimum": -15,
"type": "number",
"unit": "angle per sec"
},
"safe": false,
"title": "Pan Continuously"
},
"panTo": {
"description": "Moves the pan platform to the angle specific in the input",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/actions/panTo",
"htv:methodName": "POST",
"op": ["invokeaction"]
}
],
"idempotent": false,
"input": {
"maximum": 90,
"minimum": -90,
"type": "number",
"unit": "degrees"
},
"safe": false,
"title": "Pan To"
},
"stopMovement": {
"description": "Stops any movement that was created with continuous movement calls",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/actions/stopMovement",
"htv:methodName": "POST",
"op": ["invokeaction"]
}
],
"idempotent": false,
"safe": false,
"title": "Stop Movement"
},
"tiltTo": {
"description": "Moves the tilt platform to the angle specific in the input",
"forms": [
{
"contentType": "application/json",
"href": "https://localhost:9000/PanTilt1/actions/tiltTo",
"htv:methodName": "POST",
"op": ["invokeaction"]
}
],
"idempotent": false,
"input": {
"maximum": 80,
"minimum": -80,
"type": "number",
"unit": "degrees"
},
"safe": false,
"title": "Tilt To"
}
}
}