-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlif-schema.json
404 lines (404 loc) · 24.2 KB
/
lif-schema.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "LIF Layout Interchange Format",
"type": "object",
"properties": {
"metaInformation": {
"type": "object",
"description": "Contains metadata about the project and the LIF file.",
"properties": {
"projectIdentification": {
"type": "string",
"description": "Human-readable name of the project (e.g., for display purposes)."
},
"creator": {
"type": "string",
"description": "Creator of the LIF file (e.g., name of company or person)."
},
"exportTimestamp": {
"type": "string",
"format": "date-time",
"description": "The timestamp at which this LIF file was created/updated/modified. Format is ISO8601 in UTC."
},
"lifVersion": {
"type": "string",
"description": "Version of the LIF file format. Follows semantic versioning (Major.Minor.Patch)."
}
},
"required": [
"projectIdentification",
"creator",
"exportTimestamp",
"lifVersion"
]
},
"layouts": {
"type": "array",
"description": "Collection of layouts used in the facility by the driverless transport system. All layouts refer to the same global origin.",
"items": {
"type": "object",
"properties": {
"layoutId": {
"type": "string",
"description": "Unique identifier for the layout."
},
"layoutName": {
"type": "string",
"description": "Name of the layout."
},
"layoutVersion": {
"type": "string",
"description": "Version number of the layout. It is suggested that this be an integer, represented as a string, incremented with each change, starting at 1."
},
"layoutLevelId": {
"type": "string",
"description": "Unique identifier for the layout level."
},
"layoutDescription": {
"type": "string",
"description": "Description of the layout. *Optional*."
},
"nodes": {
"type": "array",
"description": "List of nodes in the layout. Nodes are locations where vehicles can navigate to.",
"items": {
"type": "object",
"properties": {
"nodeId": {
"type": "string",
"description": "Unique identifier for the node."
},
"nodeName": {
"type": "string",
"description": "Name of the node. *Optional*."
},
"nodeDescription": {
"type": "string",
"description": "Description of the node. *Optional*."
},
"mapId": {
"type": "string",
"description": "Identifier for the map that this node belongs to. *Optional*."
},
"nodePosition": {
"type": "object",
"description": "Position of the node on the map (in meters).",
"properties": {
"x": {
"type": "number",
"description": "X coordinate of the node in meters. Range: [float64.min ... float64.max]"
},
"y": {
"type": "number",
"description": "Y coordinate of the node in meters. Range: [float64.min... float64.max]"
}
},
"required": [
"x",
"y"
]
},
"vehicleTypeNodeProperties": {
"type": "array",
"description": "Vehicle-specific properties related to the node.",
"items": {
"type": "object",
"properties": {
"vehicleTypeId": {
"type": "string",
"description": "Identifier for the vehicle type."
},
"theta": {
"type": "number",
"description": "Absolute orientation of the vehicle on the node in reference to the global origin’s rotation. Range: [-Pi ... Pi]"
},
"actions": {
"type": "array",
"description": "List of actions that the vehicle can perform at the node. *Optional*.",
"items": {
"type": "object",
"properties": {
"actionType": {
"type": "string",
"description": "Type of action (e.g., move, load, unload)."
},
"actionDescription": {
"type": "string",
"description": "Description of the action. *Optional*."
},
"required": {
"type": "boolean",
"description": "Whether the action is mandatory."
},
"blockingType": {
"type": "string",
"description": "Specifies if the action is blocking (HARD or SOFT)."
},
"actionParameters": {
"type": "array",
"description": "Parameters associated with the action. *Optional*.",
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"description": "Key of the action parameter."
},
"value": {
"type": "string",
"description": "Value of the action parameter."
}
},
"required": [
"key",
"value"
]
}
}
},
"required": [
"actionType",
"blockingType"
]
}
}
},
"required": [
"vehicleTypeId"
]
}
}
},
"required": [
"nodeId",
"nodePosition",
"vehicleTypeNodeProperties"
]
}
},
"edges": {
"type": "array",
"description": "List of edges in the layout. Edges represent paths between nodes.",
"items": {
"type": "object",
"properties": {
"edgeId": {
"type": "string",
"description": "Unique identifier for the edge."
},
"startNodeId": {
"type": "string",
"description": "ID of the starting node for this edge."
},
"endNodeId": {
"type": "string",
"description": "ID of the ending node for this edge."
},
"vehicleTypeEdgeProperties": {
"type": "array",
"description": "Vehicle-specific properties for the edge.",
"items": {
"type": "object",
"properties": {
"vehicleTypeId": {
"type": "string",
"description": "Identifier for the vehicle type."
},
"vehicleOrientation": {
"type": "number",
"description": "Orientation of the vehicle while traversing the edge, in degrees. Range: [0.0 ... 360.0]"
},
"orientationType": {
"type": "string",
"description": "Type of orientation (e.g., TANGENTIAL)."
},
"rotationAllowed": {
"type": "boolean",
"description": "Indicates if rotation is allowed while on the edge. *Optional*."
},
"rotationAtStartNodeAllowed": {
"type": "string",
"description": "Specifies if rotation is allowed at the start node. *Optional*."
},
"rotationAtEndNodeAllowed": {
"type": "string",
"description": "Specifies if rotation is allowed at the end node. *Optional*."
},
"maxSpeed": {
"type": "number",
"description": "Maximum speed allowed on this edge in meters per second. Range: [0.0 ... float64.max]"
},
"maxRotationSpeed": {
"type": "number",
"description": "Maximum rotation speed allowed on this edge in radians per second. *Optional*. Range: [0.0 ... float64.max]"
},
"minHeight": {
"type": "number",
"description": "Minimum height of the vehicle on this edge in meters. *Optional*. Range: [0.0 ... float64.max]"
},
"maxHeight": {
"type": "number",
"description": "Maximum height of the vehicle on this edge in meters. *Optional*. Range: [0.0 ... float64.max]"
},
"loadRestriction": {
"type": "object",
"description": "Load restrictions for this edge. *Optional*.",
"properties": {
"unloaded": {
"type": "boolean",
"description": "Indicates if the edge can be traversed without a load."
},
"loaded": {
"type": "boolean",
"description": "Indicates if the edge can be traversed with a load."
},
"loadSetNames": {
"type": "array",
"description": "Names of the load sets allowed on this edge. *Optional*.",
"items": {
"type": "string"
}
}
},
"required": [
"unloaded",
"loaded"
]
},
"trajectory": {
"type": "object",
"description": "Trajectory information for this edge, if applicable. *Optional*.",
"properties": {
"degree": {
"type": "integer",
"description": "Degree of the trajectory curve. Default is 3. Range: [1 ... 3]",
"default": 3
},
"knotVector": {
"type": "array",
"description": "Knot vector for the trajectory.",
"items": {
"type": "number"
}
},
"controlPoints": {
"type": "array",
"description": "Control points defining the trajectory.",
"items": {
"type": "object",
"properties": {
"x": {
"type": "number",
"description": "X coordinate of the control point in meters."
},
"y": {
"type": "number",
"description": "Y coordinate of the control point in meters."
},
"weight": {
"type": "number",
"description": "The weight with which this control point pulls on the curve. When not defined, the default is 1.0. Range: [0.0 ... float64.max]",
"default": 1.0
}
},
"required": [
"x",
"y"
]
}
}
},
"required": [
"knotVector",
"controlPoints"
]
}
},
"required": [
"vehicleTypeId"
]
}
}
},
"required": [
"edgeId",
"startNodeId",
"endNodeId",
"vehicleTypeEdgeProperties"
]
}
},
"stations": {
"type": "array",
"description": "List of stations in the layout where vehicles perform specific actions.",
"items": {
"type": "object",
"properties": {
"stationId": {
"type": "string",
"description": "Unique identifier for the station."
},
"interactionNodeIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of node IDs where the station interacts."
},
"stationName": {
"type": "string",
"description": "Name of the station. *Optional*."
},
"stationDescription": {
"type": "string",
"description": "Description of the station. *Optional*."
},
"stationHeight": {
"type": "number",
"description": "Height of the station, if applicable, in meters. *Optional*. Range: [0.0 ... float64.max]"
},
"stationPosition": {
"type": "object",
"description": "Position of the station on the map (in meters).",
"properties": {
"x": {
"type": "number",
"description": "X coordinate of the station in meters. Range: [float64.min ... float64.max]"
},
"y": {
"type": "number",
"description": "Y coordinate of the station in meters. Range: [float64.min ... float64.max]"
},
"theta": {
"type": "number",
"description": "Orientation of the station. Unit: radians. Range: [-Pi ... Pi]"
}
},
"required": [
"x",
"y"
]
}
},
"required": [
"stationId",
"interactionNodeIds"
]
}
}
},
"required": [
"layoutId",
"layoutVersion",
"nodes",
"edges",
"stations"
]
}
}
},
"required": [
"metaInformation",
"layouts"
]
}