Commit 52b7331c authored by Trishna Saeharaseelan's avatar Trishna Saeharaseelan
Browse files

refactor(planning configuration): add endurance rating, active status, warmup time

......@@ -15,7 +15,7 @@
"emergency": true,
"plan": [
{
"action": "safety_abort",
"action": "abort_now",
"target_waypoint_latitude": 52.37072283932642,
"target_waypoint_longitude": -3.237143188645706
}
......
......@@ -21,7 +21,7 @@
"depth": 5.0
},
{
"action": "safety_abort",
"action": "abort_now",
"target_waypoint_latitude": 52.37072283932642,
"target_waypoint_longitude": -3.237143188645706
}
......
......@@ -44,7 +44,7 @@
"timeout": 200
},
{
"action": "climb",
"action": "dive",
"start_point_latitude": 60.00000000000000,
"start_point_longitude": -0.237143188645706,
"target_waypoint_latitude": 52.37072283932642,
......
......@@ -44,7 +44,7 @@
"timeout": 300
},
{
"action": "climb",
"action": "dive",
"start_point_latitude": 60.00000000000000,
"start_point_longitude": -0.237143188645706,
"target_waypoint_latitude": 52.37072283932642,
......
......@@ -10,7 +10,7 @@
},
"payload":{
"message_type": "planning_configuration",
"planning_config_ID": 3,
"planning_config_ID": 1,
"exclusion_zones": [
{
"geometry_coordinates": [
......@@ -87,6 +87,11 @@
"max_velocity": 0.9,
"min_velocity": 0.1,
"target_altitude": 0.0,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"additional_data": {}
}
]
......@@ -112,6 +117,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......@@ -139,6 +149,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......@@ -166,6 +181,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......@@ -215,7 +235,7 @@
"operator": "noc",
"platform_ID": "ah-1",
"model": "autosub",
"beacon_ID":2407,
"beacon_ID": 2407,
"emergency": {
"target_waypoint_latitude": 50.3342284629413,
"target_waypoint_longitude": -4.19759350502369,
......@@ -227,6 +247,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......
......@@ -44,7 +44,7 @@
"timeout": 300
},
{
"action": "climb",
"action": "dive",
"start_point_latitude": 60.00000000000000,
"start_point_longitude": -0.237143188645706,
"target_waypoint_latitude": 52.37072283932642,
......
......@@ -15,7 +15,7 @@
"emergency": true,
"plan": [
{
"action": "safety_abort",
"action": "abort_now",
"target_waypoint_latitude": 52.37072283932642,
"target_waypoint_longitude": -3.237143188645706
}
......
......@@ -21,7 +21,7 @@
"depth": 5.0
},
{
"action": "safety_abort",
"action": "abort_now",
"target_waypoint_latitude": 52.37072283932642,
"target_waypoint_longitude": -3.237143188645706
}
......
......@@ -10,7 +10,7 @@
},
"payload":{
"message_type": "planning_configuration",
"planning_config_ID": 3,
"planning_config_ID": 1,
"exclusion_zones": [
{
"geometry_coordinates": [
......@@ -87,6 +87,11 @@
"max_velocity": 0.9,
"min_velocity": 0.1,
"target_altitude": 0.0,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"additional_data": {}
}
]
......@@ -112,6 +117,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......@@ -139,6 +149,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......@@ -166,6 +181,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......@@ -215,7 +235,7 @@
"operator": "noc",
"platform_ID": "ah-1",
"model": "autosub",
"beacon_ID":2407,
"beacon_ID": 2407,
"emergency": {
"target_waypoint_latitude": 50.3342284629413,
"target_waypoint_longitude": -4.19759350502369,
......@@ -227,6 +247,11 @@
"min_velocity": 0.1,
"target_altitude": 15.0,
"turning_radius": 1.5,
"endurance_relative_to_water_speed": {
"min_battery_rating": 2.25,
"max_battery_rating": 1.23,
"avg_battery_rating": 1.9
},
"scan_sensor": {
"sensor_type": "SIDESCAN",
"swath_width": 38.0,
......
......@@ -11,6 +11,18 @@ action_schema = {
"type": "string",
"description": "Autonomy Engine's action from `move`, `payload`,"
+ " `dive`, `send_hits`, `scanline`, `scanpoint`.",
"enum": [
"move",
"payload",
"dive",
"send_hits",
"scanline",
"scanpoint",
"go_home",
"surface_now",
"stop_mission",
"abort_now",
],
"example": "move",
},
"start_point_latitude": {
......
......@@ -40,6 +40,30 @@ emergency_schema = {
],
}
endurance_relative_water_speed_schema = {
"type": "object",
"properties": {
"min_battery_rating": {
"type": "number",
"format": "float",
"description": "Battery endurance rating during maximum speed usage (m/s)",
"example": 3.32,
},
"max_battery_rating": {
"type": "number",
"format": "float",
"description": "Battery endurance rating during maximum speed usage (m/s)",
"example": 1.23,
},
"avg_battery_rating": {
"type": "number",
"format": "float",
"description": "Battery endurance rating during standard operational speed usage (m/s)",
"example": 1.9,
},
},
}
scan_sensor_schema = {
"type": "object",
......@@ -50,6 +74,12 @@ scan_sensor_schema = {
"example": "MBES",
"enum": ["SIDESCAN", "MBES"],
},
"warmup_time": {
"type": "number",
"format": "float",
"description": "Warmup time (seconds) for sensor to start up.",
"example": 180.0,
},
"swath_width": {
"type": "number",
"format": "float",
......@@ -96,6 +126,11 @@ platform_schema = {
+ "associated to this platform",
"example": 2407,
},
"active": {
"type": "boolean",
"description": "If platform is active = True, and inactive = False",
"example": True,
},
"emergency": emergency_schema,
"min_altitude": {
"type": "number",
......@@ -127,6 +162,7 @@ platform_schema = {
"description": "Turning radius of platform (in metres)",
"example": 1.0,
},
"battery_endurance_relative_to_water_speed": endurance_relative_water_speed_schema,
"scan_sensor": scan_sensor_schema,
"additional_data": {
"description": "Any addition fields/data to be added here",
......
......@@ -126,6 +126,18 @@
"properties":{
"action":{
"description":"Autonomy Engine's action from `move`, `payload`, `dive`, `send_hits`, `scanline`, `scanpoint`.",
"enum":[
"move",
"payload",
"dive",
"send_hits",
"scanline",
"scanpoint",
"go_home",
"surface_now",
"stop_mission",
"abort_now"
],
"example":"move",
"type":"string"
},
......@@ -487,6 +499,11 @@
"description":"Squad consists of these platforms",
"items":{
"properties":{
"active":{
"description":"If platform is active = True, and inactive = False",
"example":true,
"type":"boolean"
},
"additional_data":{
"description":"Any addition fields/data to be added here",
"example":{
......@@ -495,6 +512,29 @@
},
"type":"object"
},
"battery_endurance_relative_to_water_speed":{
"properties":{
"avg_battery_rating":{
"description":"Battery endurance rating during standard operational speed usage (m/s)",
"example":1.9,
"format":"float",
"type":"number"
},
"max_battery_rating":{
"description":"Battery endurance rating during maximum speed usage (m/s)",
"example":1.23,
"format":"float",
"type":"number"
},
"min_battery_rating":{
"description":"Battery endurance rating during maximum speed usage (m/s)",
"example":3.32,
"format":"float",
"type":"number"
}
},
"type":"object"
},
"beacon_ID":{
"description":"Unique identifier (number) for the beacon associated to this platform",
"example":2407,
......@@ -598,6 +638,12 @@
"example":38.0,
"format":"float",
"type":"number"
},
"warmup_time":{
"description":"Warmup time (seconds) for sensor to start up.",
"example":180.0,
"format":"float",
"type":"number"
}
},
"type":"object"
......
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