Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GoToPlace to allow finding nearest spot #308

Merged
merged 7 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion rmf_fleet_adapter/schemas/event_description__go_to_place.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,38 @@
}
},
"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"]
}
]
}
}
Loading
Loading