3 import "dccl/option_extensions.proto";
4 import "jaiabot/messages/mission.proto";
5 import "jaiabot/messages/geographic_coordinate.proto";
6 import "jaiabot/messages/high_control.proto";
7 import "goby/middleware/protobuf/coroner.proto";
8 import "jaiabot/messages/health.proto";
9 import "jaiabot/messages/imu.proto";
10 import "jaiabot/messages/option_extensions.proto";
11 import "jaiabot/messages/link.proto";
13 package jaiabot.protobuf;
18 Actual maximum size of message: 197 bytes / 1576 bits
19 dccl.id head...........................8
20 user head..............................0
21 body................................1562
22 padding to full byte...................6
23 Allowed maximum size of message: 250 bytes / 2000 bits
32 required uint32 bot_id = 1 [
33 (dccl.field) = { min: 0 max: 255 },
34 (jaia.field).rest_api.presence = OMITTED // specified in 'targets'
36 required uint64 time = 2 [
39 units { prefix: "micro" derived_dimensions: "time" }
40 precision: -6 // second precision
43 (jaia.field).rest_api.presence = OMITTED // written by API server
46 // Special case: not sent in message - written upon receipt based on the Link traversed
47 optional Link link = 3 [(dccl.field).omit = true];
53 MISSION_PLAN = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
54 ACTIVATE = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
55 START_MISSION = 3 [(jaia.ev).rest_api.presence = GUARANTEED];
56 MISSION_PLAN_FRAGMENT = 4;
59 NEXT_TASK = 10 [(jaia.ev).rest_api.presence = GUARANTEED];
60 RETURN_TO_HOME = 11 [(jaia.ev).rest_api.presence = GUARANTEED];
61 STOP = 12 [(jaia.ev).rest_api.presence = GUARANTEED];
62 PAUSE = 13 [(jaia.ev).rest_api.presence = GUARANTEED];
63 RESUME = 14 [(jaia.ev).rest_api.presence = GUARANTEED];
65 // during remote control mission
66 REMOTE_CONTROL_SETPOINT = 20;
67 REMOTE_CONTROL_TASK = 21;
68 REMOTE_CONTROL_RESUME_MOVEMENT = 22;
71 RECOVERED = 30 [(jaia.ev).rest_api.presence = GUARANTEED];
72 SHUTDOWN = 31 [(jaia.ev).rest_api.presence = GUARANTEED];
73 RETRY_DATA_OFFLOAD = 32;
74 DATA_OFFLOAD_COMPLETE = 33;
75 DATA_OFFLOAD_FAILED = 34;
77 // debugging low level commands
78 RESTART_ALL_SERVICES = 40;
80 SHUTDOWN_COMPUTER = 42;
83 required CommandType type = 10
84 [(jaia.field).rest_api.presence = GUARANTEED];
88 // required for type == MISSION_PLAN
89 MissionPlan plan = 20 [(jaia.field).rest_api = { presence: GUARANTEED, doc: "Used with \"command\": { \"type\" : \"MISSION_PLAN\" }"}];
91 // required for type == REMOTE_CONTROL_SETPOINT
92 RemoteControl rc = 30 [(jaia.field).rest_api = { presence: GUARANTEED, doc: "Used with \"command\": { \"type\" : \"REMOTE_CONTROL_SETPOINT\" }"}];
94 // required for type == REMOTE_CONTROL_TASK
95 MissionTask rc_task = 31;
100 message CommandForHub
102 option (dccl.msg) = {
106 required uint32 hub_id = 1 [(jaia.field).rest_api.presence = OMITTED];
107 required uint64 time = 2 [
108 (dccl.field) = { units { prefix: "micro" derived_dimensions: "time" } },
109 (jaia.field).rest_api.presence = OMITTED
116 // debugging low level commands
117 RESTART_ALL_SERVICES = 40;
118 REBOOT_COMPUTER = 41;
119 SHUTDOWN_COMPUTER = 42;
121 // simulator commands
122 SET_HUB_LOCATION = 80 [(jaia.ev).rest_api.presence = GUARANTEED];
125 required HubCommandType type = 10
126 [(jaia.field).rest_api.presence = GUARANTEED];
128 optional uint32 scan_for_bot_id = 11;
130 optional GeographicCoordinate hub_location = 80
131 [(jaia.field).rest_api.presence = GUARANTEED];
137 Actual maximum size of message: 46 bytes / 368 bits
138 dccl.id head...........................8
139 user head..............................0
140 body.................................357
141 padding to full byte...................3
142 Allowed maximum size of message: 250 bytes / 2000 bits
144 option (dccl.msg) = {
151 required uint32 bot_id = 1 [
152 (dccl.field) = { min: 0 max: 255 },
153 (jaia.field).rest_api.presence = GUARANTEED
155 required uint64 time = 2 [
158 units { prefix: "micro" derived_dimensions: "time" },
160 (jaia.field).rest_api.presence = GUARANTEED
162 optional uint64 last_command_time = 3 [
165 units { prefix: "micro" derived_dimensions: "time" }
167 (jaia.field).rest_api.presence = GUARANTEED
170 optional goby.middleware.protobuf.HealthState health_state = 4
171 [(jaia.field).rest_api.presence = GUARANTEED];
172 repeated Error error = 5 [
173 (dccl.field).max_repeat = 5,
174 (jaia.field).rest_api.presence = GUARANTEED
176 repeated Warning warning = 6 [
177 (dccl.field).max_repeat = 5,
178 (jaia.field).rest_api.presence = GUARANTEED
182 HYDRO = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
183 ECHO = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
185 optional BotType bot_type = 7 [(jaia.field).rest_api.presence = GUARANTEED];
187 // Special case: not sent in message - written upon receipt based on the Link traversed
188 optional Link link = 8 [(dccl.field).omit = true];
190 optional GeographicCoordinate location = 10
191 [(jaia.field).rest_api.presence = GUARANTEED];
193 optional double depth = 11 [
198 units: { derived_dimensions: "length" }
200 (jaia.field).rest_api.presence = GUARANTEED
205 optional double roll = 1 [
211 derived_dimensions: "plane_angle"
212 system: "angle::degree"
215 (jaia.field).rest_api.presence = GUARANTEED
217 optional double pitch = 2 [
223 derived_dimensions: "plane_angle"
224 system: "angle::degree"
227 (jaia.field).rest_api.presence = GUARANTEED
229 optional double heading = 3 [
235 derived_dimensions: "plane_angle"
236 system: "angle::degree"
239 (jaia.field).rest_api.presence = GUARANTEED
241 optional double course_over_ground = 4 [
247 derived_dimensions: "plane_angle"
248 system: "angle::degree"
251 (jaia.field).rest_api.presence = GUARANTEED
254 optional Attitude attitude = 20
255 [(jaia.field).rest_api.presence = GUARANTEED];
259 optional double over_ground = 1 [
264 units { derived_dimensions: "velocity" }
266 (jaia.field).rest_api.presence = GUARANTEED
268 optional double over_water = 2 [(dccl.field) = {
272 units { derived_dimensions: "velocity" }
275 optional Speed speed = 30 [(jaia.field).rest_api.presence = GUARANTEED];
277 optional MissionState mission_state = 40
278 [(jaia.field).rest_api.presence = GUARANTEED];
280 // bounds should match MissionPlan.goal max_repeat value *
281 // expected_fragments max
282 optional int32 active_goal = 41 [
283 (dccl.field) = { min: 0 max: 29 },
284 (jaia.field).rest_api.presence = GUARANTEED
286 optional double distance_to_active_goal = 42 [
291 units: { derived_dimensions: "length" }
293 (jaia.field).rest_api.presence = GUARANTEED
295 optional uint32 active_goal_timeout = 43 [
300 units { base_dimensions: "T" }
302 (jaia.field).rest_api.presence = GUARANTEED
304 optional int32 repeat_index = 44 [
305 (dccl.field) = { min: 0 max: 1000 precision: 0 },
306 (jaia.field).rest_api.presence = GUARANTEED
309 optional double salinity = 51
310 [(dccl.field) = { min: 0 max: 100 precision: 1 }];
312 optional double temperature = 52 [(dccl.field) = {
316 units { derived_dimensions: "temperature" system: "celsius" }
319 optional double battery_percent = 53 [
320 (dccl.field) = { min: 0 max: 100 precision: 0 },
321 (jaia.field).rest_api.presence = GUARANTEED
324 optional int32 calibration_status = 54 [(dccl.field) = { min: 0 max: 3 }];
326 optional IMUCalibrationState calibration_state = 55;
328 optional double hdop = 56 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
330 optional double pdop = 57 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
332 optional int32 wifi_link_quality_percentage = 58 [
333 (dccl.field) = { min: 0 max: 100 precision: 0 },
334 (jaia.field).rest_api.presence = GUARANTEED
337 optional uint64 received_time = 59 [
340 units { prefix: "micro" derived_dimensions: "time" }
342 (jaia.field).rest_api.presence = GUARANTEED
350 option (dccl.msg) = {
354 optional int32 drift_duration = 1 [
360 units { base_dimensions: "T" }
362 (jaia.field).rest_api.presence = GUARANTEED
365 message EstimatedDrift
367 required double speed = 1 [
372 units { derived_dimensions: "velocity" }
374 (jaia.field).rest_api.presence = GUARANTEED
377 optional double heading = 3 [
383 derived_dimensions: "plane_angle"
384 system: "angle::degree"
387 (jaia.field).rest_api.presence = GUARANTEED
391 // should correspond to ocean current velocity
392 optional EstimatedDrift estimated_drift = 10
393 [(jaia.field).rest_api.presence = GUARANTEED];
396 optional GeographicCoordinate start_location = 11
397 [(jaia.field).rest_api.presence = GUARANTEED];
399 optional GeographicCoordinate end_location = 12
400 [(jaia.field).rest_api.presence = GUARANTEED];
402 // Significant wave height is defined as the average wave height,
403 // from trough to crest, of the highest one-third of the waves
404 optional double significant_wave_height = 13 [
409 units: { derived_dimensions: "length" }
411 (jaia.field).rest_api.presence = GUARANTEED
417 option (dccl.msg) = {
421 required double dive_rate = 10 [
426 units { derived_dimensions: "velocity" }
428 (jaia.field).rest_api.presence = GUARANTEED
431 optional double unpowered_rise_rate = 11 [
436 units { derived_dimensions: "velocity" }
438 (jaia.field).rest_api.presence = GUARANTEED
441 optional double powered_rise_rate = 12 [
446 units { derived_dimensions: "velocity" }
448 (jaia.field).rest_api.presence = GUARANTEED
451 required double depth_achieved = 13 [
456 units: { derived_dimensions: "length" }
458 (jaia.field).rest_api.presence = GUARANTEED
463 optional double mean_depth = 1 [
468 units: { derived_dimensions: "length" }
470 (jaia.field).rest_api.presence = GUARANTEED
473 optional double mean_temperature = 2 [
478 units { derived_dimensions: "temperature" system: "celsius" }
480 (jaia.field).rest_api.presence = GUARANTEED
483 optional double mean_salinity = 3 [
484 (dccl.field) = { min: 0 max: 45 precision: 1 },
485 (jaia.field).rest_api.presence = GUARANTEED
489 repeated Measurements measurement = 14 [
490 (dccl.field) = { max_repeat: 50 },
491 (jaia.field).rest_api.presence = GUARANTEED
495 optional GeographicCoordinate start_location = 15
496 [(jaia.field).rest_api.presence = GUARANTEED];
498 optional double duration_to_acquire_gps = 16 [
503 units { base_dimensions: "T" }
505 (jaia.field).rest_api.presence = GUARANTEED
508 // Did we reach seafloor?
509 optional bool bottom_dive = 17
510 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
512 // Did we reach min depth?
513 optional bool reached_min_depth = 18
514 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
516 // If we reached bottom, what was the bottom type
519 HARD = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
520 SOFT = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
523 optional BottomType bottom_type = 19
524 [(jaia.field).rest_api.presence = GUARANTEED];
526 // For bottom characterization
527 optional double max_acceleration = 20 [
532 units { derived_dimensions: "acceleration" }
534 (jaia.field).rest_api.presence = GUARANTEED
541 Actual maximum size of message: 218 bytes / 1744 bits
542 dccl.id head..........................16
543 user head..............................0
544 body................................1728
545 padding to full byte...................0
546 Allowed maximum size of message: 250 bytes / 2000 bits
548 option (dccl.msg) = {
555 required uint32 bot_id = 1 [
556 (dccl.field) = { min: 0 max: 255 },
557 (jaia.field).rest_api.presence = GUARANTEED
559 required uint64 start_time = 2 [
562 units { prefix: "micro" derived_dimensions: "time" }
564 (jaia.field).rest_api.presence = GUARANTEED
566 required uint64 end_time = 3 [
569 units { prefix: "micro" derived_dimensions: "time" }
571 (jaia.field).rest_api.presence = GUARANTEED
573 required MissionTask.TaskType type = 4
574 [(jaia.field).rest_api.presence = GUARANTEED];
576 // Special case: not sent in message - written upon receipt based on the Link traversed
577 optional Link link = 5 [(dccl.field).omit = true];
579 optional DivePacket dive = 10 [(jaia.field).rest_api.presence = GUARANTEED];
580 optional DriftPacket drift = 11
581 [(jaia.field).rest_api.presence = GUARANTEED];
584 message ContactUpdate
586 option (dccl.msg) = {
593 optional int32 contact = 1 [(dccl.field) = { min: 1, max: 15 }];
594 required GeographicCoordinate location = 2;
595 optional double speed_over_ground = 3 [(dccl.field) = {
599 units { derived_dimensions: "velocity" }
601 optional double heading_or_cog = 5 [(dccl.field) = {
605 units { derived_dimensions: "plane_angle" system: "angle::degree" }