-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathevent_description__go_to_place.json
55 lines (55 loc) · 1.67 KB
/
event_description__go_to_place.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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/open-rmf/rmf_ros2/main/rmf_fleet_adapter/schemas/event_description__go_to_place.json",
"title": "Go To Place Event Description",
"description": "Have a robot go to a place",
"oneOf": [
{
"$ref": "place.json"
},
{
"type": "object",
"properties": {
"place": { "$ref": "place.json" },
"followed_by": {
"description": "A list of places that the robot might go after it reaches this one. It will not actually go to these places unless other activities bring it there, but the traffic system will be told to expect the robot to proceed through these places.",
"type": "array",
"items": { "$ref": "place.json" }
}
},
"required": ["place"]
},
{
"type": "object",
"properties" : {
"one_of" : {
"type": "array",
"description": "A list of places to choose from. Will try to go to the nearest one.",
"items": { "$ref": "place.json" },
"minItems": 1
},
"constraints" : {
"type": "array",
"description": "list of constraints to use",
"items": {"$ref": "#/$defs/constraint"}
}
},
"required": ["one_of"]
}
],
"$defs": {
"constraint": {
"type": "object",
"properties": {
"category": {
"type": "string",
"description": "The type of constraint, e.g. prefer_same_map"
},
"description": {
"description": "A complete description of the constraint"
}
},
"required": ["category"]
}
}
}