acknowledgement.py 1.07 KB
Newer Older
1 2 3 4
"""
    schemas: Acknowledgement status sent by the surface platform to report
    receipt of message.
"""
5
acknowledgement_schema = {
6
    "type": "object",
7
    "properties": {
8 9 10 11
        "message_type": {
            "type": "string",
            "description": "Type of message",
            "example": "acknowledgement",
12
            "enum": ["acknowledgement"],
13
        },
14 15 16 17 18
        "autonomy_engine_plan_ID": {
            "type": "integer",
            "description": "Mission plan ID (according to Autonomy"
            + " Engine's mission plan number sent) executed by platform",
            "example": 1,
19
        },
20
        "platform_ID": {
21
            "type": "string",
22 23 24 25 26
            "description": "Unique identifier for this platform",
            "example": "reav-x-1",
        },
        "approved": {
            "type": "boolean",
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
27 28
            "description": "Human-in-the-loop approval."
            + "1 - Plan approved; 0 - Plan Rejected",
29
        },
30
    },
Trishna Saeharaseelan's avatar
Trishna Saeharaseelan committed
31 32 33 34 35 36
    "required": [
        "message_type",
        "autonomy_engine_plan_ID",
        "platform_ID",
        "approved",
    ],
37
}