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
65090569
Commit
65090569
authored
2 years ago
by
Trishna Saeharaseelan
Browse files
Options
Download
Plain Diff
fix: Upmerge to latest origin/dev conflicts
parents
dc1125db
6cf9aedf
Pipeline
#108258
passed with stages
in 1 minute and 14 seconds
Changes
30
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
296 additions
and
206 deletions
+296
-206
examples/autonomy_engine_adapter/mission_plan_AH1.json
examples/autonomy_engine_adapter/mission_plan_AH1.json
+16
-8
examples/autonomy_engine_adapter/mission_plan_ECOSUB.json
examples/autonomy_engine_adapter/mission_plan_ECOSUB.json
+18
-10
examples/autonomy_engine_adapter/mission_plan_HYDROSURV.json
examples/autonomy_engine_adapter/mission_plan_HYDROSURV.json
+12
-6
examples/autonomy_engine_adapter/planning_configuration.json
examples/autonomy_engine_adapter/planning_configuration.json
+9
-9
examples/autonomy_engine_adapter/platform_status-from_usbl_example.json
...omy_engine_adapter/platform_status-from_usbl_example.json
+2
-2
examples/autonomy_engine_adapter/platform_status.json
examples/autonomy_engine_adapter/platform_status.json
+6
-6
examples/ecosub_adapter/mission_plan.json
examples/ecosub_adapter/mission_plan.json
+16
-8
examples/ecosub_adapter/platform_status-from_usbl_example.json
...les/ecosub_adapter/platform_status-from_usbl_example.json
+2
-2
examples/ecosub_adapter/platform_status.json
examples/ecosub_adapter/platform_status.json
+6
-6
examples/gui_adapter/planning_configuration.json
examples/gui_adapter/planning_configuration.json
+9
-9
examples/hydrosurv_adapter/mission_plan.json
examples/hydrosurv_adapter/mission_plan.json
+12
-6
examples/hydrosurv_adapter/platform_status.json
examples/hydrosurv_adapter/platform_status.json
+2
-2
formats/mission_plan.py
formats/mission_plan.py
+18
-6
formats/planning_configuration.py
formats/planning_configuration.py
+8
-4
formats/platform_status.py
formats/platform_status.py
+22
-21
project/soar/swagger.json
project/soar/swagger.json
+38
-27
tests/fixtures/schemas.py
tests/fixtures/schemas.py
+47
-30
tests/fixtures/swagger.json
tests/fixtures/swagger.json
+20
-27
tests/mock_data/autonomy_engine_adapter/mission_plan_AH1.json
...s/mock_data/autonomy_engine_adapter/mission_plan_AH1.json
+16
-8
tests/mock_data/autonomy_engine_adapter/mission_plan_ECOSUB.json
...ock_data/autonomy_engine_adapter/mission_plan_ECOSUB.json
+17
-9
No files found.
examples/autonomy_engine_adapter/mission_plan_AH1.json
View file @
65090569
...
...
@@ -16,8 +16,10 @@
{
"action"
:
"move"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.007143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-3.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -25,8 +27,10 @@
{
"action"
:
"dive"
,
"flight_style"
:
"dive to depth"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.237143188645706
,
"start_point_longitude"
:
52.37072283932642
,
"target_waypoint_latitude"
:
-3.337143188645706
,
"target_waypoint_longitude"
:
56.37072283932642
,
"altitude"
:
10
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -34,8 +38,10 @@
{
"action"
:
"scanline"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
60.00000000000000
,
"start_point_latitude"
:
-3.337143188645706
,
"start_point_longitude"
:
56.37072283932642
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
60.00000000000000
,
"altitude"
:
10
,
"activate_payload"
:
true
,
"send_environmental_data"
:
false
...
...
@@ -43,8 +49,10 @@
{
"action"
:
"climb"
,
"flight_style"
:
"go to surface"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-0.237143188645706
,
"start_point_longitude"
:
60.00000000000000
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
true
...
...
This diff is collapsed.
Click to expand it.
examples/autonomy_engine_adapter/mission_plan_ECOSUB.json
View file @
65090569
...
...
@@ -10,14 +10,16 @@
},
"payload"
:{
"message_type"
:
"mission_plan"
,
"platform_ID"
:
"ecosub-
5
"
,
"platform_ID"
:
"ecosub-
2
"
,
"autonomy_engine_plan_ID"
:
1
,
"plan"
:
[
{
"action"
:
"move"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.007143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-3.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -25,8 +27,10 @@
{
"action"
:
"dive"
,
"flight_style"
:
"dive to depth"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.237143188645706
,
"start_point_longitude"
:
52.37072283932642
,
"target_waypoint_latitude"
:
-3.337143188645706
,
"target_waypoint_longitude"
:
56.37072283932642
,
"altitude"
:
10
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -34,8 +38,10 @@
{
"action"
:
"scanline"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
60.00000000000000
,
"start_point_latitude"
:
-3.337143188645706
,
"start_point_longitude"
:
56.37072283932642
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
60.00000000000000
,
"altitude"
:
10
,
"activate_payload"
:
true
,
"send_environmental_data"
:
false
...
...
@@ -43,9 +49,11 @@
{
"action"
:
"climb"
,
"flight_style"
:
"go to surface"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"depth"
:
0
,
"start_point_latitude"
:
-0.237143188645706
,
"start_point_longitude"
:
60.00000000000000
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
true
}
...
...
This diff is collapsed.
Click to expand it.
examples/autonomy_engine_adapter/mission_plan_HYDROSURV.json
View file @
65090569
...
...
@@ -14,16 +14,22 @@
"autonomy_engine_plan_ID"
:
1
,
"plan"
:
[
{
"latitude_waypoint"
:
-4.187143188645706
,
"longitude_waypoint"
:
50.37072283932642
"start_point_latitude"
:
-4.007143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-4.187143188645706
,
"target_waypoint_longitude"
:
50.37072283932642
},
{
"latitude_waypoint"
:
-3.187143188645706
,
"longitude_waypoint"
:
51.37072283932642
"start_point_latitude"
:
-4.187143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-3.187143188645706
,
"target_waypoint_longitude"
:
51.37072283932642
},
{
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
"start_point_latitude"
:
-3.187143188645706
,
"start_point_longitude"
:
51.37072283932642
,
"target_waypoint_latitude"
:
-3.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
}
]
}
...
...
This diff is collapsed.
Click to expand it.
examples/autonomy_engine_adapter/planning_configuration.json
View file @
65090569
...
...
@@ -48,10 +48,10 @@
"serial"
:
"reav-60"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
-7.432
,
"longitude
_waypoint
"
:
50.365
,
"
target
_waypoint
_latitude
"
:
-7.432
,
"
target_waypoint_
longitude"
:
50.365
,
"safe_command"
:
"go_home"
,
"target_depth"
:
10
"target_depth"
:
10
.0
},
"max_velocity"
:
0.9
,
"min_altitude"
:
15.2
,
...
...
@@ -94,8 +94,8 @@
"model"
:
"ecosub"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
-7.432
,
"longitude
_waypoint
"
:
50.365
,
"
target
_waypoint
_latitude
"
:
-7.432
,
"
target_waypoint_
longitude"
:
50.365
,
"safe_command"
:
"go_home"
,
"target_depth"
:
10.0
},
...
...
@@ -113,8 +113,8 @@
"model"
:
"ecosub"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
-0.432
,
"longitude
_waypoint
"
:
20.365
,
"
target
_waypoint
_latitude
"
:
-0.432
,
"
target_waypoint_
longitude"
:
20.365
,
"safe_command"
:
"go_home"
,
"target_depth"
:
0.0
},
...
...
@@ -141,8 +141,8 @@
"model"
:
"autosub"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
20.432
,
"longitude
_waypoint
"
:
50.365
,
"
target
_waypoint
_latitude
"
:
20.432
,
"
target_waypoint_
longitude"
:
50.365
,
"safe_command"
:
"abort_now"
,
"target_depth"
:
0.0
},
...
...
This diff is collapsed.
Click to expand it.
examples/autonomy_engine_adapter/platform_status-from_usbl_example.json
View file @
65090569
...
...
@@ -15,7 +15,7 @@
"status_source"
:
"usbl"
,
"latitude"
:
178.2
,
"longitude"
:
-10.122
,
"depth"
:
50
,
"altitude"
:
20
"depth"
:
50
.0
,
"altitude"
:
20
.0
}
}
This diff is collapsed.
Click to expand it.
examples/autonomy_engine_adapter/platform_status.json
View file @
65090569
...
...
@@ -17,15 +17,16 @@
"battery_remaining_capacity"
:
80.2
,
"active"
:
true
,
"platform_state"
:
"ABORT"
,
"mission_
actio
n_ID"
:
1
,
"mission_
pla
n_ID"
:
1
,
"mission_track_ID"
:
4
,
"latitude"
:
178.2
,
"longitude"
:
-10.122
,
"depth"
:
50
,
"depth"
:
50
.0
,
"altitude"
:
20
,
"heading"
:
90.0
,
"health_status"
:
"Warning"
,
"localisation_error"
:
0
,
"health_status"
:
false
,
"localisation_north_error"
:
0
,
"localisation_east_error"
:
0
,
"usbl_fix_seconds_ago"
:
0
,
"range_to_go"
:
124.3
,
"sensor_config"
:
{
...
...
@@ -36,9 +37,8 @@
"whiskers_on"
:
true
}
},
"current_pitch"
:
-4
,
"speed_over_ground"
:
4.3
,
"thrust_applied"
:
124.3
,
"water_current_velocity"
:
124.3
"water_current_velocity"
:
"
124.3
NE"
}
}
This diff is collapsed.
Click to expand it.
examples/ecosub_adapter/mission_plan.json
View file @
65090569
...
...
@@ -16,8 +16,10 @@
{
"action"
:
"move"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.007143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-3.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -25,8 +27,10 @@
{
"action"
:
"dive"
,
"flight_style"
:
"dive to depth"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.237143188645706
,
"start_point_longitude"
:
52.37072283932642
,
"target_waypoint_latitude"
:
-3.337143188645706
,
"target_waypoint_longitude"
:
56.37072283932642
,
"altitude"
:
10
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -34,8 +38,10 @@
{
"action"
:
"scanline"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
60.00000000000000
,
"start_point_latitude"
:
-3.337143188645706
,
"start_point_longitude"
:
56.37072283932642
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
60.00000000000000
,
"altitude"
:
10
,
"activate_payload"
:
true
,
"send_environmental_data"
:
false
...
...
@@ -43,8 +49,10 @@
{
"action"
:
"climb"
,
"flight_style"
:
"go to surface"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-0.237143188645706
,
"start_point_longitude"
:
60.00000000000000
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
true
...
...
This diff is collapsed.
Click to expand it.
examples/ecosub_adapter/platform_status-from_usbl_example.json
View file @
65090569
...
...
@@ -15,7 +15,7 @@
"status_source"
:
"usbl"
,
"latitude"
:
178.2
,
"longitude"
:
-10.122
,
"depth"
:
50
,
"altitude"
:
20
"depth"
:
50
.0
,
"altitude"
:
20
.0
}
}
This diff is collapsed.
Click to expand it.
examples/ecosub_adapter/platform_status.json
View file @
65090569
...
...
@@ -17,15 +17,16 @@
"battery_remaining_capacity"
:
80.2
,
"active"
:
true
,
"platform_state"
:
"ABORT"
,
"mission_
actio
n_ID"
:
1
,
"mission_
pla
n_ID"
:
1
,
"mission_track_ID"
:
4
,
"latitude"
:
178.2
,
"longitude"
:
-10.122
,
"depth"
:
50
,
"depth"
:
50
.0
,
"altitude"
:
20
,
"heading"
:
90.0
,
"health_status"
:
"Warning"
,
"localisation_error"
:
0
,
"health_status"
:
false
,
"localisation_north_error"
:
0
,
"localisation_east_error"
:
0
,
"usbl_fix_seconds_ago"
:
0
,
"range_to_go"
:
124.3
,
"sensor_config"
:
{
...
...
@@ -36,9 +37,8 @@
"whiskers_on"
:
true
}
},
"current_pitch"
:
-4
,
"speed_over_ground"
:
4.3
,
"thrust_applied"
:
124.3
,
"water_current_velocity"
:
124.3
"water_current_velocity"
:
"
124.3
NE"
}
}
This diff is collapsed.
Click to expand it.
examples/gui_adapter/planning_configuration.json
View file @
65090569
...
...
@@ -48,10 +48,10 @@
"serial"
:
"reav-60"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
-7.432
,
"longitude
_waypoint
"
:
50.365
,
"
target
_waypoint
_latitude
"
:
-7.432
,
"
target_waypoint_
longitude"
:
50.365
,
"safe_command"
:
"go_home"
,
"target_depth"
:
10
"target_depth"
:
10
.0
},
"max_velocity"
:
0.9
,
"min_altitude"
:
15.2
,
...
...
@@ -94,8 +94,8 @@
"model"
:
"ecosub"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
-7.432
,
"longitude
_waypoint
"
:
50.365
,
"
target
_waypoint
_latitude
"
:
-7.432
,
"
target_waypoint_
longitude"
:
50.365
,
"safe_command"
:
"go_home"
,
"target_depth"
:
10.0
},
...
...
@@ -113,8 +113,8 @@
"model"
:
"ecosub"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
-0.432
,
"longitude
_waypoint
"
:
20.365
,
"
target
_waypoint
_latitude
"
:
-0.432
,
"
target_waypoint_
longitude"
:
20.365
,
"safe_command"
:
"go_home"
,
"target_depth"
:
0.0
},
...
...
@@ -141,8 +141,8 @@
"model"
:
"autosub"
,
"emergency"
:
{
"additional_data"
:
{},
"
latitude
_waypoint"
:
20.432
,
"longitude
_waypoint
"
:
50.365
,
"
target
_waypoint
_latitude
"
:
20.432
,
"
target_waypoint_
longitude"
:
50.365
,
"safe_command"
:
"abort_now"
,
"target_depth"
:
0.0
},
...
...
This diff is collapsed.
Click to expand it.
examples/hydrosurv_adapter/mission_plan.json
View file @
65090569
...
...
@@ -14,16 +14,22 @@
"autonomy_engine_plan_ID"
:
1
,
"plan"
:
[
{
"latitude_waypoint"
:
-4.187143188645706
,
"longitude_waypoint"
:
50.37072283932642
"start_point_latitude"
:
-4.007143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-4.187143188645706
,
"target_waypoint_longitude"
:
50.37072283932642
},
{
"latitude_waypoint"
:
-3.187143188645706
,
"longitude_waypoint"
:
51.37072283932642
"start_point_latitude"
:
-4.187143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-3.187143188645706
,
"target_waypoint_longitude"
:
51.37072283932642
},
{
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
"start_point_latitude"
:
-3.187143188645706
,
"start_point_longitude"
:
51.37072283932642
,
"target_waypoint_latitude"
:
-3.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
}
]
}
...
...
This diff is collapsed.
Click to expand it.
examples/hydrosurv_adapter/platform_status.json
View file @
65090569
...
...
@@ -15,10 +15,10 @@
"status_source"
:
"onboard_platform"
,
"battery_remaining_capacity"
:
80.2
,
"heading"
:
310.0
,
"health_status"
:
"Lost Connection"
,
"health_status"
:
false
,
"latitude"
:
178.2
,
"longitude"
:
-10.122
,
"mission_
actio
n_ID"
:
1
,
"mission_
pla
n_ID"
:
1
,
"mission_track_ID"
:
4
,
"platform_ID"
:
"reav-60-1"
,
"platform_state"
:
"ABORT"
,
...
...
This diff is collapsed.
Click to expand it.
formats/mission_plan.py
View file @
65090569
...
...
@@ -19,16 +19,28 @@ action_schema = {
+
" next action"
,
"example"
:
"orbit"
,
},
"
latitude_waypoint
"
:
{
"
start_point_latitude
"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"
Next way
point, x-coordinate"
,
"description"
:
"
Start
point, x-coordinate"
,
"example"
:
-
4.187143188645706
,
},
"longitude
_waypoint
"
:
{
"
start_point_
longitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Next waypoint, y-coordinate"
,
"description"
:
"Start point, y-coordinate"
,
"example"
:
50.37072283932642
,
},
"target_waypoint_latitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Target waypoint, x-coordinate"
,
"example"
:
-
4.187143188645706
,
},
"target_waypoint_longitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Target waypoint, y-coordinate"
,
"example"
:
50.37072283932642
,
},
"altitude"
:
{
...
...
@@ -57,8 +69,8 @@ action_schema = {
},
},
"required"
:
[
"
latitude
_waypoint"
,
"longitude
_waypoint
"
,
"
target
_waypoint
_latitude
"
,
"
target_waypoint_
longitude"
,
],
}
...
...
This diff is collapsed.
Click to expand it.
formats/planning_configuration.py
View file @
65090569
...
...
@@ -13,13 +13,13 @@ emergency_schema = {
+
" partner's platform/C2"
,
"example"
:
"go_home"
,
},
"
latitude
_waypoint"
:
{
"
target
_waypoint
_latitude
"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"X-coordinate safe place for respective platform"
,
"example"
:
-
7.432
,
},
"longitude
_waypoint
"
:
{
"
target_waypoint_
longitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Y-coordinate safe place for respective platform"
,
...
...
@@ -30,14 +30,18 @@ emergency_schema = {
"format"
:
"float"
,
"description"
:
"Z-coordinate safe place for respective platform"
+
" . If platform to NOT stay at depth, key in `0.0`"
,
"example"
:
10
,
"example"
:
10
.0
,
},
"additional_data"
:
{
"description"
:
"Any addition fields/data to be added here"
,
"example"
:
{},
},
},
"required"
:
[
"latitude_waypoint"
,
"longitude_waypoint"
,
"target_depth"
],
"required"
:
[
"target_waypoint_latitude"
,
"target_waypoint_longitude"
,
"target_depth"
,
],
}
...
...
This diff is collapsed.
Click to expand it.
formats/platform_status.py
View file @
65090569
...
...
@@ -93,7 +93,7 @@ platform_status_schema = {
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Target altitude in metres"
,
"example"
:
20
,
"example"
:
20
.0
,
},
"mission_track_ID"
:
{
"type"
:
"integer"
,
...
...
@@ -101,9 +101,9 @@ platform_status_schema = {
+
"4 --> Waypoint 3 to Waypoint 4)"
,
"example"
:
4
,
},
"mission_
actio
n_ID"
:
{
"mission_
pla
n_ID"
:
{
"type"
:
"integer"
,
"description"
:
"
"
,
# TODO: Add description
"description"
:
"
Mission plan ID according to platform-C2 system"
,
"example"
:
1
,
},
"range_to_go"
:
{
...
...
@@ -115,19 +115,18 @@ platform_status_schema = {
"speed_over_ground"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"
"
,
# TODO: Add description
"description"
:
"
Speed over ground"
,
"example"
:
124.3
,
},
"water_current_velocity"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
""
,
# TODO: Add description
"example"
:
124.3
,
"type"
:
"string"
,
"description"
:
"Water current magnitude and direction"
,
"example"
:
"124.3NE"
,
},
"thrust_applied"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"
"
,
# TODO: Add description
"description"
:
"
Thrust applied"
,
"example"
:
124.3
,
},
"heading"
:
{
...
...
@@ -138,15 +137,23 @@ platform_status_schema = {
"example"
:
124.3
,
},
"health_status"
:
{
"type"
:
"
string
"
,
"description"
:
"Health status
extracted by respective
platform "
+
"
if
an
y diagnosis is available to check sensors
"
,
"example"
:
"Warning"
,
"type"
:
"
boolean
"
,
"description"
:
"Health status
where 0 is OK, 1 is
platform
has
"
+
" an
ERROR
"
,
"example"
:
False
,
},
"localisation_error"
:
{
"localisation_
north_
error"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Localisation error at last USBL update."
,
"description"
:
"Difference in NORTH between deadreckoning"
+
" and USBL update."
,
"example"
:
0.000129
,
},
"localisation_east_error"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Difference in EAST between deadreckoning"
+
"and USBL update."
,
"example"
:
0.000129
,
},
"usbl_fix_seconds_ago"
:
{
...
...
@@ -161,12 +168,6 @@ platform_status_schema = {
"description"
:
"Battery remaining % provided by respective C2"
,
"example"
:
80.2
,
},
"current_pitch"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Current pitch of platform"
,
"example"
:
-
4.0
,
},
"sensor_config"
:
sensor_schema
,
},
"required"
:
[
...
...
This diff is collapsed.
Click to expand it.
project/soar/swagger.json
View file @
65090569
...
...
@@ -140,13 +140,25 @@
"example"
:
"orbit"
,
"type"
:
"string"
},
"latitude_waypoint"
:
{
"start_point_latitude"
:{
"description"
:
"Start point, x-coordinate"
,
"example"
:
-4.187143188645706
,
"format"
:
"float"
,
"type"
:
"number"
},
"start_point_longitude"
:{
"description"
:
"Start point, y-coordinate"
,
"example"
:
50.37072283932642
,
"format"
:
"float"
,
"type"
:
"number"
},
"target_waypoint_latitude"
:
{
"description"
:
"Next waypoint, x-coordinate"
,
"example"
:
-4.187143188645706
,
"format"
:
"float"
,
"type"
:
"number"
},
"longitude
_waypoint
"
:
{
"
target_waypoint_
longitude"
:
{
"description"
:
"Next waypoint, y-coordinate"
,
"example"
:
50.37072283932642
,
"format"
:
"float"
,
...
...
@@ -159,8 +171,8 @@
}
},
"required"
:
[
"
latitude
_waypoint"
,
"longitude
_waypoint
"
"
target
_waypoint
_latitude
"
,
"
target_waypoint_
longitude"
],
"type"
:
"object"
},
...
...
@@ -339,13 +351,13 @@
"description"
:
"Any addition fields/data to be added here"
,
"example"
:
{}
},
"
latitude
_waypoint"
:
{
"
target
_waypoint
_latitude
"
:
{
"description"
:
"X-coordinate safe place for respective platform"
,
"example"
:
-7.432
,
"format"
:
"float"
,
"type"
:
"number"
},
"longitude
_waypoint
"
:
{
"
target_waypoint_
longitude"
:
{
"description"
:
"Y-coordinate safe place for respective platform"
,
"example"
:
50.365
,
"format"
:
"float"
,
...
...
@@ -363,14 +375,14 @@
},
"target_depth"
:
{
"description"
:
"Z-coordinate safe place for respective platform . If platform to NOT stay at depth, key in `0.0`"
,
"example"
:
10
,
"example"
:
10
.0
,
"format"
:
"float"
,
"type"
:
"number"
}
},
"required"
:
[
"
latitude
_waypoint"
,
"longitude
_waypoint
"
,
"
target
_waypoint
_latitude
"
,
"
target_waypoint_
longitude"
,
"target_depth"
],
"type"
:
"object"
...
...
@@ -510,12 +522,6 @@
"format"
:
"float"
,
"type"
:
"number"
},
"current_pitch"
:
{
"description"
:
"Current pitch of platform"
,
"example"
:
-4.0
,
"format"
:
"float"
,
"type"
:
"number"
},
"depth"
:
{
"default"
:
0.0
,
"description"
:
"Target depth in metres"
,
...
...
@@ -530,9 +536,9 @@
"type"
:
"number"
},
"health_status"
:
{
"description"
:
"Health status
extracted by respective platform if any diagnosis is available to check sensors
"
,
"example"
:
"Warning"
,
"type"
:
"
string
"
"description"
:
"Health status
where 0 is OK, 1 is platform has an ERROR
"
,
"example"
:
false
,
"type"
:
"
boolean
"
},
"latitude"
:
{
"description"
:
"Latitude in decimal degrees."
,
...
...
@@ -540,12 +546,18 @@
"format"
:
"float"
,
"type"
:
"number"
},
"localisation_error"
:
{
"localisation_
north_
error"
:
{
"description"
:
"Localisation error at last USBL update."
,
"example"
:
0.000129
,
"format"
:
"float"
,
"type"
:
"number"
},
"localisation_east_error"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Difference in EAST between deadreckoning and USBL update."
,
"example"
:
0.000129
},
"longitude"
:
{
"description"
:
"Longitude in decimal degrees."
,
"example"
:
-10.122
,
...
...
@@ -557,8 +569,8 @@
"example"
:
"platform_status"
,
"type"
:
"string"
},
"mission_
actio
n_ID"
:
{
"description"
:
""
,
"mission_
pla
n_ID"
:
{
"description"
:
"
Mission plan ID according to platform-C2 system
"
,
"example"
:
1
,
"type"
:
"integer"
},
...
...
@@ -615,7 +627,7 @@
"type"
:
"object"
},
"speed_over_ground"
:
{
"description"
:
""
,
"description"
:
"
Speed over ground
"
,
"example"
:
124.3
,
"format"
:
"float"
,
"type"
:
"number"
...
...
@@ -630,7 +642,7 @@
"type"
:
"string"
},
"thrust_applied"
:
{
"description"
:
""
,
"description"
:
"
Thrust applied
"
,
"example"
:
124.3
,
"format"
:
"float"
,
"type"
:
"number"
...
...
@@ -653,10 +665,9 @@
"type"
:
"number"
},
"water_current_velocity"
:
{
"description"
:
""
,
"example"
:
124.3
,
"format"
:
"float"
,
"type"
:
"number"
"description"
:
"Water current magnitude and direction"
,
"example"
:
"124.3NE"
,
"format"
:
"string"
}
},
"required"
:
[
...
...
This diff is collapsed.
Click to expand it.
tests/fixtures/schemas.py
View file @
65090569
...
...
@@ -97,16 +97,28 @@ action_schema = {
+
" next action"
,
"example"
:
"orbit"
,
},
"
latitude_waypoint
"
:
{
"
start_point_latitude
"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"
Next way
point, x-coordinate"
,
"description"
:
"
Start
point, x-coordinate"
,
"example"
:
-
4.187143188645706
,
},
"longitude
_waypoint
"
:
{
"
start_point_
longitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Next waypoint, y-coordinate"
,
"description"
:
"Start point, y-coordinate"
,
"example"
:
50.37072283932642
,
},
"target_waypoint_latitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Target waypoint, x-coordinate"
,
"example"
:
-
4.187143188645706
,
},
"target_waypoint_longitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Target waypoint, y-coordinate"
,
"example"
:
50.37072283932642
,
},
"altitude"
:
{
...
...
@@ -135,8 +147,8 @@ action_schema = {
},
},
"required"
:
[
"
latitude
_waypoint"
,
"longitude
_waypoint
"
,
"
target
_waypoint
_latitude
"
,
"
target_waypoint_
longitude"
,
],
}
...
...
@@ -242,13 +254,13 @@ emergency_schema = {
+
" partner's platform/C2"
,
"example"
:
"go_home"
,
},
"
latitude
_waypoint"
:
{
"
target
_waypoint
_latitude
"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"X-coordinate safe place for respective platform"
,
"example"
:
-
7.432
,
},
"longitude
_waypoint
"
:
{
"
target_waypoint_
longitude"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Y-coordinate safe place for respective platform"
,
...
...
@@ -259,14 +271,18 @@ emergency_schema = {
"format"
:
"float"
,
"description"
:
"Z-coordinate safe place for respective platform"
+
" . If platform to NOT stay at depth, key in `0.0`"
,
"example"
:
10
,
"example"
:
10
.0
,
},
"additional_data"
:
{
"description"
:
"Any addition fields/data to be added here"
,
"example"
:
{},
},
},
"required"
:
[
"latitude_waypoint"
,
"longitude_waypoint"
,
"target_depth"
],
"required"
:
[
"target_waypoint_latitude"
,
"target_waypoint_longitude"
,
"target_depth"
,
],
}
...
...
@@ -513,9 +529,9 @@ platform_status_schema = {
+
"4 --> Waypoint 3 to Waypoint 4)"
,
"example"
:
4
,
},
"mission_
actio
n_ID"
:
{
"mission_
pla
n_ID"
:
{
"type"
:
"integer"
,
"description"
:
"
"
,
# TODO: Add description
"description"
:
"
Mission plan ID according to platform-C2 system"
,
"example"
:
1
,
},
"range_to_go"
:
{
...
...
@@ -527,19 +543,18 @@ platform_status_schema = {
"speed_over_ground"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"
"
,
# TODO: Add description
"description"
:
"
Speed over ground"
,
"example"
:
124.3
,
},
"water_current_velocity"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
""
,
# TODO: Add description
"example"
:
124.3
,
"format"
:
"string"
,
"description"
:
"Water current magnitude and direction"
,
"example"
:
"124.3NE"
,
},
"thrust_applied"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"
"
,
# TODO: Add description
"description"
:
"
Thrust applied"
,
"example"
:
124.3
,
},
"heading"
:
{
...
...
@@ -550,15 +565,23 @@ platform_status_schema = {
"example"
:
124.3
,
},
"health_status"
:
{
"type"
:
"string"
,
"description"
:
"Health status extracted by respective platform "
+
"if any diagnosis is available to check sensors"
,
"example"
:
"Warning"
,
"type"
:
"boolean"
,
"description"
:
"Health status where 0 is OK, 1 is platform"
+
" has an ERROR"
,
"example"
:
False
,
},
"localisation_north_error"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Difference in NORTH between deadreckoning"
+
" and USBL update."
,
"example"
:
0.000129
,
},
"localisation_error"
:
{
"localisation_
east_
error"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Localisation error at last USBL update."
,
"description"
:
"Difference in EAST between deadreckoning"
+
" and USBL update."
,
"example"
:
0.000129
,
},
"usbl_fix_seconds_ago"
:
{
...
...
@@ -573,12 +596,6 @@ platform_status_schema = {
"description"
:
"Battery remaining % provided by respective C2"
,
"example"
:
80.2
,
},
"current_pitch"
:
{
"type"
:
"number"
,
"format"
:
"float"
,
"description"
:
"Current pitch of platform"
,
"example"
:
-
4.0
,
},
"sensor_config"
:
sensor_schema
,
},
"required"
:
[
...
...
This diff is collapsed.
Click to expand it.
tests/fixtures/swagger.json
View file @
65090569
...
...
@@ -140,13 +140,13 @@
"example"
:
"orbit"
,
"type"
:
"string"
},
"
latitude
_waypoint"
:
{
"
target
_waypoint
_latitude
"
:
{
"description"
:
"Next waypoint, x-coordinate"
,
"example"
:
-4.187143188645706
,
"format"
:
"float"
,
"type"
:
"number"
},
"longitude
_waypoint
"
:
{
"
target_waypoint_
longitude"
:
{
"description"
:
"Next waypoint, y-coordinate"
,
"example"
:
50.37072283932642
,
"format"
:
"float"
,
...
...
@@ -159,8 +159,8 @@
}
},
"required"
:
[
"
latitude
_waypoint"
,
"longitude
_waypoint
"
"
target
_waypoint
_latitude
"
,
"
target_waypoint_
longitude"
],
"type"
:
"object"
},
...
...
@@ -339,13 +339,13 @@
"description"
:
"Any addition fields/data to be added here"
,
"example"
:
{}
},
"
latitude
_waypoint"
:
{
"
target
_waypoint
_latitude
"
:
{
"description"
:
"X-coordinate safe place for respective platform"
,
"example"
:
-7.432
,
"format"
:
"float"
,
"type"
:
"number"
},
"longitude
_waypoint
"
:
{
"
target_waypoint_
longitude"
:
{
"description"
:
"Y-coordinate safe place for respective platform"
,
"example"
:
50.365
,
"format"
:
"float"
,
...
...
@@ -363,14 +363,14 @@
},
"target_depth"
:
{
"description"
:
"Z-coordinate safe place for respective platform . If platform to NOT stay at depth, key in `0.0`"
,
"example"
:
10
,
"example"
:
10
.0
,
"format"
:
"float"
,
"type"
:
"number"
}
},
"required"
:
[
"
latitude
_waypoint"
,
"longitude
_waypoint
"
,
"
target
_waypoint
_latitude
"
,
"
target_waypoint_
longitude"
,
"target_depth"
],
"type"
:
"object"
...
...
@@ -510,12 +510,6 @@
"format"
:
"float"
,
"type"
:
"number"
},
"current_pitch"
:
{
"description"
:
"Current pitch of platform"
,
"example"
:
-4.0
,
"format"
:
"float"
,
"type"
:
"number"
},
"depth"
:
{
"default"
:
0.0
,
"description"
:
"Target depth in metres"
,
...
...
@@ -530,9 +524,9 @@
"type"
:
"number"
},
"health_status"
:
{
"description"
:
"Health status
extracted by respective platform if any diagnosis is available to check sensors
"
,
"example"
:
"Warning"
,
"type"
:
"
string
"
"description"
:
"Health status
where 0 is OK, 1 is platform has an ERROR
"
,
"example"
:
false
,
"type"
:
"
boolean
"
},
"latitude"
:
{
"description"
:
"Latitude in decimal degrees."
,
...
...
@@ -541,7 +535,7 @@
"type"
:
"number"
},
"localisation_error"
:
{
"description"
:
"
Localisation error at last
USBL update."
,
"description"
:
"
Difference in NORTH between deadreckoning and
USBL update."
,
"example"
:
0.000129
,
"format"
:
"float"
,
"type"
:
"number"
...
...
@@ -557,8 +551,8 @@
"example"
:
"platform_status"
,
"type"
:
"string"
},
"mission_
actio
n_ID"
:
{
"description"
:
""
,
"mission_
pla
n_ID"
:
{
"description"
:
"
Mission plan ID according to platform-C2 system
"
,
"example"
:
1
,
"type"
:
"integer"
},
...
...
@@ -615,7 +609,7 @@
"type"
:
"object"
},
"speed_over_ground"
:
{
"description"
:
""
,
"description"
:
"
Speed over ground
"
,
"example"
:
124.3
,
"format"
:
"float"
,
"type"
:
"number"
...
...
@@ -630,7 +624,7 @@
"type"
:
"string"
},
"thrust_applied"
:
{
"description"
:
""
,
"description"
:
"
Thrust applied
"
,
"example"
:
124.3
,
"format"
:
"float"
,
"type"
:
"number"
...
...
@@ -653,10 +647,9 @@
"type"
:
"number"
},
"water_current_velocity"
:
{
"description"
:
""
,
"example"
:
124.3
,
"format"
:
"float"
,
"type"
:
"number"
"description"
:
"Water current magnitude and direction"
,
"example"
:
"124.3NE"
,
"format"
:
"string"
}
},
"required"
:
[
...
...
This diff is collapsed.
Click to expand it.
tests/mock_data/autonomy_engine_adapter/mission_plan_AH1.json
View file @
65090569
...
...
@@ -16,8 +16,10 @@
{
"action"
:
"move"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.007143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-3.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -25,8 +27,10 @@
{
"action"
:
"dive"
,
"flight_style"
:
"dive to depth"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.237143188645706
,
"start_point_longitude"
:
52.37072283932642
,
"target_waypoint_latitude"
:
-3.337143188645706
,
"target_waypoint_longitude"
:
56.37072283932642
,
"altitude"
:
10
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -34,8 +38,10 @@
{
"action"
:
"scanline"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
60.00000000000000
,
"start_point_latitude"
:
-3.337143188645706
,
"start_point_longitude"
:
56.37072283932642
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
60.00000000000000
,
"altitude"
:
10
,
"activate_payload"
:
true
,
"send_environmental_data"
:
false
...
...
@@ -43,8 +49,10 @@
{
"action"
:
"climb"
,
"flight_style"
:
"go to surface"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-0.237143188645706
,
"start_point_longitude"
:
60.00000000000000
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
true
...
...
This diff is collapsed.
Click to expand it.
tests/mock_data/autonomy_engine_adapter/mission_plan_ECOSUB.json
View file @
65090569
...
...
@@ -16,8 +16,10 @@
{
"action"
:
"move"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.007143188645706
,
"start_point_longitude"
:
50.37072283932642
,
"target_waypoint_latitude"
:
-3.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -25,8 +27,10 @@
{
"action"
:
"dive"
,
"flight_style"
:
"dive to depth"
,
"latitude_waypoint"
:
-3.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"start_point_latitude"
:
-3.237143188645706
,
"start_point_longitude"
:
52.37072283932642
,
"target_waypoint_latitude"
:
-3.337143188645706
,
"target_waypoint_longitude"
:
56.37072283932642
,
"altitude"
:
10
,
"activate_payload"
:
false
,
"send_environmental_data"
:
false
...
...
@@ -34,8 +38,10 @@
{
"action"
:
"scanline"
,
"flight_style"
:
"go to waypoint"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
60.00000000000000
,
"start_point_latitude"
:
-3.337143188645706
,
"start_point_longitude"
:
56.37072283932642
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
60.00000000000000
,
"altitude"
:
10
,
"activate_payload"
:
true
,
"send_environmental_data"
:
false
...
...
@@ -43,9 +49,11 @@
{
"action"
:
"climb"
,
"flight_style"
:
"go to surface"
,
"latitude_waypoint"
:
-0.237143188645706
,
"longitude_waypoint"
:
52.37072283932642
,
"depth"
:
0
,
"start_point_latitude"
:
-0.237143188645706
,
"start_point_longitude"
:
60.00000000000000
,
"target_waypoint_latitude"
:
-0.237143188645706
,
"target_waypoint_longitude"
:
52.37072283932642
,
"depth"
:
0.0
,
"activate_payload"
:
false
,
"send_environmental_data"
:
true
}
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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