Commit 08ce8133 authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

Merge branch '92-add-goal-obj-mission-type-to-mission-plan' into '67-mas-dt'

Add goal obj and partial flag to mission plan

See merge request !56
3 merge requests!59Release v2.0.0,!56Add goal obj and partial flag to mission plan,!36Resolve "Create temporary mas-dt branch for initial schema refactor"
Pipeline #248358 passed with stages
in 2 minutes and 25 seconds
......@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added
- Goal object in mission_plan message that consists of a GeoJSON feature (representing the part of primitive that is currently the goal of the given mission plan).
- A `partial` flag that indicates if a mission plan is a partial plan or the entire mission plan
- Validate message_ID matches uuid format
- Add definition of instruction_set message
- Added optional primitives to squad schema
......
......@@ -12,6 +12,7 @@
"message_type": "mission_plan",
"platform_ID": "alr-52",
"autonomy_engine_plan_ID": "a427003c-0000-11aa-a1eb-b1cdf2342fcc",
"partial": false,
"plan": [
{
"action": "move",
......@@ -31,6 +32,23 @@
]
}
}
]
],
"goal": {
"timestamp": "2024-11-21T00:00:00Z",
"feature": {
"type": "Feature",
"properties": {
"name": "MAS-DT west",
"type": "target primitive"
},
"geometry": {
"type": "Point",
"coordinates": [
-3.0071,
50.3707
]
}
}
}
}
}
\ No newline at end of file
......@@ -101,6 +101,21 @@ action_schema = {
],
}
goal_schema = {
"type": "object",
"properties": {
"timestamp": {
"type": "string",
"format": "date-time",
"description": "Timestamp of last state change when autonomy model"
+ " sets this goal",
"example": "2024-11-21T00:00:00Z",
},
"feature": {
"$ref": "https://geojson.org/schema/Feature.json",
},
},
}
mission_plan_schema = {
"type": "object",
"properties": {
......@@ -122,10 +137,18 @@ mission_plan_schema = {
"default": False,
"example": False,
},
"partial": {
"type": "boolean",
"description": "To indicate if this mission plan represents a "
+ "partial (`true`) or the entire (`false`) mission plan. E.g."
+ "Partial would be `true` if a full mission plan is broken down into multiple plans.",
"example": False,
},
"plan": {
"type": "array",
"items": action_schema,
},
"goal": goal_schema,
},
"oneOf": [
{
......
......@@ -1547,6 +1547,20 @@
"example": false,
"type": "boolean"
},
"goal": {
"properties": {
"feature": {
"$ref": "#/components/schemas/geojson.org.schema.Feature.json"
},
"timestamp": {
"description": "Timestamp of last state change when autonomy model sets this goal",
"example": "2024-11-21T00:00:00Z",
"format": "date-time",
"type": "string"
}
},
"type": "object"
},
"message_type": {
"description": "Type of message",
"enum": [
......@@ -1555,6 +1569,11 @@
"example": "mission_plan",
"type": "string"
},
"partial": {
"description": "To indicate if this mission plan represents a partial (`true`) or the entire (`false`) mission plan. E.g.Partial would be `true` if a full mission plan is broken down into multiple plans.",
"example": false,
"type": "boolean"
},
"plan": {
"items": {
"oneOf": [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment