Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Communications Backbone System
backbone-message-format
Commits
5e0ee51a
Verified
Commit
5e0ee51a
authored
6 months ago
by
Dan Jones
Browse files
Options
Download
Email Patches
Plain Diff
refactor: change geo data to geojson refs
parent
10735293
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
81 deletions
+65
-81
examples/autonomy_engine_adapter/planning_configuration.json
examples/autonomy_engine_adapter/planning_configuration.json
+49
-43
examples/gui_adapter/planning_configuration.json
examples/gui_adapter/planning_configuration.json
+6
-4
formats/planning_configuration.py
formats/planning_configuration.py
+10
-34
No files found.
examples/autonomy_engine_adapter/planning_configuration.json
View file @
5e0ee51a
...
...
@@ -4,7 +4,7 @@
"timestamp"
:
"2022-11-16T00:00:00Z"
,
"version"
:
2
,
"source"
:
"gui"
,
"destination"
:
"
soar.all.all.all.from_platform.planning_configuration
"
,
"destination"
:
""
,
"delivery_type"
:
"broadcast"
,
"encoded"
:
false
},
...
...
@@ -13,58 +13,64 @@
"planning_config_ID"
:
1
,
"exclusion_zones"
:
[
{
"geometry_coordinates"
:
[
[
"geometry"
:
{
"type"
:
"Polygon"
,
"coordinates"
:
[
[
-4.1777839187560915
,
50.34173405662855
],
[
-4.1777839187560915
,
50.33820949229701
],
[
-4.143667777943875
,
50.33820949229701
],
[
-4.143667777943875
,
50.34173405662855
],
[
-4.1777839187560915
,
50.34173405662855
[
-4.1777839187560915
,
50.34173405662855
],
[
-4.1777839187560915
,
50.33820949229701
],
[
-4.143667777943875
,
50.33820949229701
],
[
-4.143667777943875
,
50.34173405662855
],
[
-4.1777839187560915
,
50.34173405662855
]
]
]
]
}
}
],
"region_of_interest"
:
[
{
"geometry_coordinates"
:
[
[
"geometry"
:
{
"type"
:
"Polygon"
,
"coordinates"
:
[
[
-4.1777839187560915
,
50.34173405662855
],
[
-4.1777839187560915
,
50.33820949229701
],
[
-4.143667777943875
,
50.33820949229701
],
[
-4.143667777943875
,
50.34173405662855
],
[
-4.1777839187560915
,
50.34173405662855
[
-4.1777839187560915
,
50.34173405662855
],
[
-4.1777839187560915
,
50.33820949229701
],
[
-4.143667777943875
,
50.33820949229701
],
[
-4.143667777943875
,
50.34173405662855
],
[
-4.1777839187560915
,
50.34173405662855
]
]
]
]
}
}
],
"squads"
:
[
...
...
This diff is collapsed.
Click to expand it.
examples/gui_adapter/planning_configuration.json
View file @
5e0ee51a
...
...
@@ -4,8 +4,8 @@
"timestamp"
:
"2022-11-16T00:00:00Z"
,
"version"
:
2
,
"source"
:
"gui"
,
"destination"
:
"
soar.all.all.all.from_platform.planning_configuration
"
,
"delivery_type"
:
"
publish
"
,
"destination"
:
""
,
"delivery_type"
:
"
broadcast
"
,
"encoded"
:
false
},
"payload"
:{
...
...
@@ -13,7 +13,8 @@
"planning_config_ID"
:
1
,
"exclusion_zones"
:
[
{
"geometry_coordinates"
:
[
"type"
:
"Polygon"
,
"coordinates"
:
[
[
[
-4.1777839187560915
,
...
...
@@ -41,7 +42,8 @@
],
"region_of_interest"
:
[
{
"geometry_coordinates"
:
[
"type"
:
"Polygon"
,
"coordinates"
:
[
[
[
-4.1777839187560915
,
...
...
This diff is collapsed.
Click to expand it.
formats/planning_configuration.py
View file @
5e0ee51a
...
...
@@ -13,30 +13,12 @@ emergency_schema = {
+
" partner's platform/C2"
,
"example"
:
"go_home"
,
},
"target_waypoint_latitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Y-coordinate safe place for respective platform"
,
"example"
:
50.365
,
},
"target_waypoint_longitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"X-coordinate safe place for respective platform"
,
"example"
:
-
7.432
,
},
"target_depth"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Z-coordinate safe place for respective platform"
+
" . If platform to NOT stay at depth, key in `0.0`"
,
"example"
:
10.0
,
},
"target_waypoint"
:
{
"$ref"
:
"https://geojson.org/schema/Point.json"
,
}
},
"required"
:
[
"target_waypoint_latitude"
,
"target_waypoint_longitude"
,
"target_depth"
,
"target_waypoint"
,
],
}
...
...
@@ -181,16 +163,6 @@ platform_schema = {
],
}
region_schema
=
{
"type"
:
"object"
,
"properties"
:
{
"geometry"
:
{
"$ref"
:
"https://geojson.org/schema/Polygon.json"
,
},
},
"description"
:
"GeoJSON Polygon"
,
}
squad_metadata_schema
=
{
"type"
:
"object"
,
"properties"
:
{
...
...
@@ -242,12 +214,16 @@ planning_configuration_schema = {
},
"region_of_interest"
:
{
"type"
:
"array"
,
"items"
:
region_schema
,
"items"
:
{
"$ref"
:
"https://geojson.org/schema/Polygon.json"
,
},
"description"
:
"Region of interest for the entire operation"
,
},
"exclusion_zones"
:
{
"type"
:
"array"
,
"items"
:
region_schema
,
"items"
:
{
"$ref"
:
"https://geojson.org/schema/Polygon.json"
,
},
"description"
:
"Exclusion zones for all platforms"
,
},
"squads"
:
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment