Skip to content

Commit

Permalink
Update GoToPlace to allow finding nearest spot (#308)
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
Signed-off-by: Michael X. Grey <[email protected]>
Co-authored-by: Michael X. Grey <[email protected]>
  • Loading branch information
arjo129 and mxgrey committed Dec 21, 2023
1 parent d782756 commit 74f661a
Show file tree
Hide file tree
Showing 5 changed files with 257 additions and 48 deletions.
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

0 comments on commit 74f661a

Please sign in to comment.