survey.py 3.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
"""
    schema: Survey Message that is decoded sent by platforms
    to track progress
"""

survey_schema = {
    "type": "object",
    "properties": {
        "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp for onboard message",
            "example": "2022-12-21T00:00:00Z",
        },
        "latitude_A": {
            "type": "number",
            "format": "float",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
18 19 20 21
            "description": (
                "Latitude of point A(intersection of normal)"
                + "from waypoint A to survey line"
            ),
22 23 24 25 26
            "example": 178.2,
        },
        "longitude_A": {
            "type": "number",
            "format": "float",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
27 28 29 30
            "description": (
                "Longitude of point A(intersection of normal)"
                + "from waypoint A to survey line"
            ),
31 32 33 34 35
            "example": -10.122,
        },
        "latitude_B": {
            "type": "number",
            "format": "float",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
36 37 38 39
            "description": (
                "Latitude of point B(intersection of normal)"
                + "from waypoint B to survey line"
            ),
40 41 42 43 44
            "example": 178.2,
        },
        "longitude_B": {
            "type": "number",
            "format": "float",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
45 46 47 48
            "description": (
                "Longitude of point B(intersection of normal)"
                + "from waypoint B to survey line"
            ),
49 50
            "example": -10.122,
        },
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
        "latitude_C": {
            "type": "number",
            "format": "float",
            "description": (
                "Latitude of point C(intersection of normal)"
                + "from waypoint C to survey line"
            ),
            "example": 178.2,
        },
        "longitude_C": {
            "type": "number",
            "format": "float",
            "description": (
                "Longitude of point C(intersection of normal)"
                + "from waypoint C to survey line"
            ),
            "example": -10.122,
        },
        "latitude_D": {
            "type": "number",
            "format": "float",
            "description": (
                "Latitude of point D(intersection of normal)"
                + "from waypoint D to survey line"
            ),
            "example": 178.2,
        },
        "longitude_D": {
            "type": "number",
            "format": "float",
            "description": (
                "Longitude of point D(intersection of normal)"
                + "from waypoint D to survey line"
            ),
            "example": -10.122,
        },
        "latitude_E": {
            "type": "number",
            "format": "float",
            "description": (
                "Latitude of point E(intersection of normal)"
                + "from waypoint E to survey line"
            ),
            "example": 178.2,
        },
        "longitude_E": {
            "type": "number",
            "format": "float",
            "description": (
                "Longitude of point E(intersection of normal)"
                + "from waypoint E to survey line"
            ),
            "example": -10.122,
        },
105 106 107 108
        "platform_ID": {
            "type": "string",
            "description": "Unique identifier for this platform",
            "example": "ecosub-2",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
109
        },
110 111 112 113 114 115
        "track_ID": {
            "type": "integer",
            "description": "Track number of action(s) currently executed by platform",
            "example": 1,
        },
    },
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
116 117 118 119 120 121 122
    "required": [
        "latitude_A",
        "longitude_A",
        "latitude_B",
        "longitude_B",
        "platform_ID",
    ],
123
}