JaiaBot 2.6.0+14+g3cab9c46
JaiaBot micro-AUV software
 
Loading...
Searching...
No Matches
hub.proto
Go to the documentation of this file.
1syntax = "proto2";
2
3import "dccl/option_extensions.proto";
4import "jaiabot/messages/health.proto";
5import "goby/middleware/protobuf/coroner.proto";
6import "jaiabot/messages/geographic_coordinate.proto";
7import "jaiabot/messages/option_extensions.proto";
8import "jaiabot/messages/link.proto";
9
10package jaiabot.protobuf;
11
12message HubStatus
13{
14 option (dccl.msg) = {
15 unit_system: "si"
16 };
17
18 required uint32 hub_id = 1 [
19 (dccl.field) = { min: 0 max: 30 },
20 (jaia.field).rest_api.presence = GUARANTEED
21 ];
22 required uint32 fleet_id = 2 [
23 (dccl.field) = { min: 0 max: 255 },
24 (jaia.field).rest_api.presence = GUARANTEED
25 ];
26 required uint64 time = 3 [
27 (dccl.field) = {
28 codec: "dccl.time2"
29 units { prefix: "micro" derived_dimensions: "time" }
30 },
31 (jaia.field).rest_api.presence = GUARANTEED
32 ];
33
34 optional goby.middleware.protobuf.HealthState health_state = 4
35 [(jaia.field).rest_api.presence = GUARANTEED];
36 repeated Error error = 5 [
37 (dccl.field).max_repeat = 5,
38 (jaia.field).rest_api.presence = GUARANTEED
39 ];
40 repeated Warning warning = 6 [
41 (dccl.field).max_repeat = 5,
42 (jaia.field).rest_api.presence = GUARANTEED
43 ];
44
45 optional GeographicCoordinate location = 10
46 [(jaia.field).rest_api.presence = GUARANTEED];
47
48 repeated uint32 bot_ids_in_radio_file = 11 [(dccl.field).omit = true];
49
50 optional LinuxHardwareStatus linux_hardware_status = 12
51 [(dccl.field).omit = true];
52
53 message BotOffloadData
54 {
55 required uint32 bot_id = 1 [(dccl.field) = { min: 0 max: 255 }];
56 optional uint32 data_offload_percentage = 2
57 [(dccl.field) = { min: 0 max: 100 }];
58 optional bool offload_succeeded = 3;
59 repeated uint32 bots_pending = 4
60 [(dccl.field) = { min: 0 max: 255 max_repeat: 255 }];
61 }
62 optional BotOffloadData bot_offload = 13 [(dccl.field).omit = true];
63
64 optional uint64 received_time = 14 [
65 (dccl.field) = {
66 omit: true
67 units { prefix: "micro" derived_dimensions: "time" }
68 },
69 (jaia.field).rest_api.presence = GUARANTEED
70 ];
71
72 message KnownBot
73 {
74 required uint32 id = 1 [
75 (dccl.field) = { min: 0 max: 255 },
76 (jaia.field).rest_api.presence = GUARANTEED
77 ];
78 required uint64 last_status_time = 2 [
79 (dccl.field) = {
80 codec: "dccl.time2"
81 units { prefix: "micro" derived_dimensions: "time" }
82 },
83 (jaia.field).rest_api.presence = GUARANTEED
84 ];
85 }
86 repeated KnownBot known_bot = 15 [
87 (jaia.field).rest_api.presence = GUARANTEED,
88 (dccl.field) = { max_repeat: 255 }
89 ];
90
91 repeated Link active_link = 16 [(dccl.field).max_repeat = 10];
92}