3import "dccl/option_extensions.proto";
4import "jaiabot/messages/mission.proto";
5import "jaiabot/messages/geographic_coordinate.proto";
6import "jaiabot/messages/high_control.proto";
7import "goby/middleware/protobuf/coroner.proto";
8import "jaiabot/messages/health.proto";
9import "jaiabot/messages/imu.proto";
10import "jaiabot/messages/option_extensions.proto";
11import "jaiabot/messages/link.proto";
13package jaiabot.protobuf;
18 Actual maximum size of message: 196 bytes / 1568 bits
19 dccl.id head...........................8
20 user head..............................0
21 body................................1556
22 padding to full byte...................4
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'
37 required uint64 time = 2 [
40 units { prefix: "micro" derived_dimensions: "time" }
41 precision: -6 // second precision
44 (jaia.field).rest_api.presence = OMITTED // written by API server
47 // Special case: not sent in message - written upon receipt based on the
49 optional Link link = 3 [(dccl.field).omit = true];
51 optional uint32 from_hub_id = 4 [(dccl.field) = { min: 0 max: 30 }];
56 MISSION_PLAN = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
57 ACTIVATE = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
58 START_MISSION = 3 [(jaia.ev).rest_api.presence = GUARANTEED];
59 MISSION_PLAN_FRAGMENT = 4;
62 NEXT_TASK = 10 [(jaia.ev).rest_api.presence = GUARANTEED];
63 RETURN_TO_HOME = 11 [(jaia.ev).rest_api.presence = GUARANTEED];
64 STOP = 12 [(jaia.ev).rest_api.presence = GUARANTEED];
65 PAUSE = 13 [(jaia.ev).rest_api.presence = GUARANTEED];
66 RESUME = 14 [(jaia.ev).rest_api.presence = GUARANTEED];
68 // during remote control mission
69 REMOTE_CONTROL_SETPOINT = 20;
70 REMOTE_CONTROL_TASK = 21;
71 REMOTE_CONTROL_RESUME_MOVEMENT = 22;
74 RECOVERED = 30 [(jaia.ev).rest_api.presence = GUARANTEED];
75 SHUTDOWN = 31 [(jaia.ev).rest_api.presence = GUARANTEED];
76 RETRY_DATA_OFFLOAD = 32;
77 DATA_OFFLOAD_COMPLETE = 33;
78 DATA_OFFLOAD_FAILED = 34;
80 // debugging low level commands
81 RESTART_ALL_SERVICES = 40;
83 SHUTDOWN_COMPUTER = 42;
86 required CommandType type = 10
87 [(jaia.field).rest_api.presence = GUARANTEED];
91 // required for type == MISSION_PLAN
92 MissionPlan plan = 20 [(jaia.field).rest_api = {
94 doc: "Used with \"command\": { \"type\" : \"MISSION_PLAN\" }"
97 // required for type == REMOTE_CONTROL_SETPOINT
98 RemoteControl rc = 30 [(jaia.field).rest_api = {
100 doc: "Used with \"command\": { \"type\" : \"REMOTE_CONTROL_SETPOINT\" }"
103 // required for type == REMOTE_CONTROL_TASK
104 MissionTask rc_task = 31;
110 option (dccl.msg) = {
114 required uint32 hub_id = 1 [(jaia.field).rest_api.presence = OMITTED];
115 required uint64 time = 2 [
116 (dccl.field) = { units { prefix: "micro" derived_dimensions: "time" } },
117 (jaia.field).rest_api.presence = OMITTED
124 // debugging low level commands
125 RESTART_ALL_SERVICES = 40;
126 REBOOT_COMPUTER = 41;
127 SHUTDOWN_COMPUTER = 42;
129 // simulator commands
130 SET_HUB_LOCATION = 80 [(jaia.ev).rest_api.presence = GUARANTEED];
133 required HubCommandType type = 10
134 [(jaia.field).rest_api.presence = GUARANTEED];
136 optional uint32 scan_for_bot_id = 11;
138 optional GeographicCoordinate hub_location = 80
139 [(jaia.field).rest_api.presence = GUARANTEED];
145 Actual maximum size of message: 48 bytes / 384 bits
146 dccl.id head...........................8
147 user head..............................0
148 body.................................369
149 padding to full byte...................7
150 Allowed maximum size of message: 250 bytes / 2000 bits
152 option (dccl.msg) = {
159 required uint32 bot_id = 1 [
160 (dccl.field) = { min: 0 max: 255 },
161 (jaia.field).rest_api.presence = GUARANTEED
163 required uint64 time = 2 [
166 units { prefix: "micro" derived_dimensions: "time" },
168 (jaia.field).rest_api.presence = GUARANTEED
170 optional uint64 last_command_time = 3 [
173 units { prefix: "micro" derived_dimensions: "time" }
175 (jaia.field).rest_api.presence = GUARANTEED
178 optional goby.middleware.protobuf.HealthState health_state = 4
179 [(jaia.field).rest_api.presence = GUARANTEED];
180 repeated Error error = 5 [
181 (dccl.field).max_repeat = 5,
182 (jaia.field).rest_api.presence = GUARANTEED
184 repeated Warning warning = 6 [
185 (dccl.field).max_repeat = 5,
186 (jaia.field).rest_api.presence = GUARANTEED
190 HYDRO = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
191 ECHO = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
192 BIO = 3 [(jaia.ev).rest_api.presence = GUARANTEED];
194 optional BotType bot_type = 7 [(jaia.field).rest_api.presence = GUARANTEED];
196 // Special case: not sent in message - written upon receipt based on the
198 optional Link link = 8 [(dccl.field).omit = true];
200 optional GeographicCoordinate location = 10
201 [(jaia.field).rest_api.presence = GUARANTEED];
203 optional double sensor_depth = 11 [
208 units: { derived_dimensions: "length" }
210 (jaia.field).rest_api.presence = GUARANTEED
213 optional double depth = 12 [
218 units: { derived_dimensions: "length" }
220 (jaia.field).rest_api.presence = GUARANTEED
225 optional double roll = 1 [
231 derived_dimensions: "plane_angle"
232 system: "angle::degree"
235 (jaia.field).rest_api.presence = GUARANTEED
237 optional double pitch = 2 [
243 derived_dimensions: "plane_angle"
244 system: "angle::degree"
247 (jaia.field).rest_api.presence = GUARANTEED
249 optional double heading = 3 [
255 derived_dimensions: "plane_angle"
256 system: "angle::degree"
259 (jaia.field).rest_api.presence = GUARANTEED
261 optional double course_over_ground = 4 [
267 derived_dimensions: "plane_angle"
268 system: "angle::degree"
271 (jaia.field).rest_api.presence = GUARANTEED
274 optional Attitude attitude = 20
275 [(jaia.field).rest_api.presence = GUARANTEED];
279 optional double over_ground = 1 [
284 units { derived_dimensions: "velocity" }
286 (jaia.field).rest_api.presence = GUARANTEED
288 optional double over_water = 2 [(dccl.field) = {
292 units { derived_dimensions: "velocity" }
295 optional Speed speed = 30 [(jaia.field).rest_api.presence = GUARANTEED];
297 optional MissionState mission_state = 40
298 [(jaia.field).rest_api.presence = GUARANTEED];
300 // bounds should match MissionPlan.goal max_repeat value *
301 // expected_fragments max
302 optional int32 active_goal = 41 [
303 (dccl.field) = { min: 0 max: 80 },
304 (jaia.field).rest_api.presence = GUARANTEED
306 optional double distance_to_active_goal = 42 [
311 units: { derived_dimensions: "length" }
313 (jaia.field).rest_api.presence = GUARANTEED
315 optional uint32 active_goal_timeout = 43 [
320 units { base_dimensions: "T" }
322 (jaia.field).rest_api.presence = GUARANTEED
324 optional int32 repeat_index = 44 [
325 (dccl.field) = { min: 0 max: 1000 precision: 0 },
326 (jaia.field).rest_api.presence = GUARANTEED
329 optional double salinity = 51
330 [(dccl.field) = { min: 0 max: 100 precision: 1 }];
332 optional double temperature = 52 [(dccl.field) = {
336 units { derived_dimensions: "temperature" system: "celsius" }
339 optional double battery_percent = 53 [
340 (dccl.field) = { min: 0 max: 100 precision: 0 },
341 (jaia.field).rest_api.presence = GUARANTEED
344 optional int32 calibration_status = 54 [(dccl.field) = { min: 0 max: 3 }];
346 optional IMUCalibrationState calibration_state = 55;
348 optional double hdop = 56 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
350 optional double pdop = 57 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
352 optional int32 wifi_link_quality_percentage = 58 [
353 (dccl.field) = { min: 0 max: 100 precision: 0 },
354 (jaia.field).rest_api.presence = GUARANTEED
357 optional uint64 received_time = 59 [
360 units { prefix: "micro" derived_dimensions: "time" }
362 (jaia.field).rest_api.presence = GUARANTEED
368 option (dccl.msg) = {
372 optional int32 drift_duration = 1 [
378 units { base_dimensions: "T" }
380 (jaia.field).rest_api.presence = GUARANTEED
383 message EstimatedDrift
385 required double speed = 1 [
390 units { derived_dimensions: "velocity" }
392 (jaia.field).rest_api.presence = GUARANTEED
395 optional double heading = 3 [
401 derived_dimensions: "plane_angle"
402 system: "angle::degree"
405 (jaia.field).rest_api.presence = GUARANTEED
409 // should correspond to ocean current velocity
410 optional EstimatedDrift estimated_drift = 10
411 [(jaia.field).rest_api.presence = GUARANTEED];
414 optional GeographicCoordinate start_location = 11
415 [(jaia.field).rest_api.presence = GUARANTEED];
417 optional GeographicCoordinate end_location = 12
418 [(jaia.field).rest_api.presence = GUARANTEED];
420 // Significant wave height is defined as the average wave height,
421 // from trough to crest, of the highest one-third of the waves
422 optional double significant_wave_height = 13 [
427 units: { derived_dimensions: "length" }
429 (jaia.field).rest_api.presence = GUARANTEED
435 option (dccl.msg) = {
439 required double dive_rate = 10 [
444 units { derived_dimensions: "velocity" }
446 (jaia.field).rest_api.presence = GUARANTEED
449 optional double unpowered_rise_rate = 11 [
454 units { derived_dimensions: "velocity" }
456 (jaia.field).rest_api.presence = GUARANTEED
459 optional double powered_rise_rate = 12 [
464 units { derived_dimensions: "velocity" }
466 (jaia.field).rest_api.presence = GUARANTEED
469 required double depth_achieved = 13 [
474 units: { derived_dimensions: "length" }
476 (jaia.field).rest_api.presence = GUARANTEED
481 optional double mean_depth = 1 [
486 units: { derived_dimensions: "length" }
488 (jaia.field).rest_api.presence = GUARANTEED
491 optional double mean_temperature = 2 [
496 units { derived_dimensions: "temperature" system: "celsius" }
498 (jaia.field).rest_api.presence = GUARANTEED
501 optional double mean_salinity = 3 [
502 (dccl.field) = { min: 0 max: 45 precision: 1 },
503 (jaia.field).rest_api.presence = GUARANTEED
507 repeated Measurements measurement = 14 [
508 (dccl.field) = { max_repeat: 50 },
509 (jaia.field).rest_api.presence = GUARANTEED
513 optional GeographicCoordinate start_location = 15
514 [(jaia.field).rest_api.presence = GUARANTEED];
516 optional double duration_to_acquire_gps = 16 [
521 units { base_dimensions: "T" }
523 (jaia.field).rest_api.presence = GUARANTEED
526 // Did we reach seafloor?
527 optional bool bottom_dive = 17
528 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
530 // Did we reach min depth?
531 optional bool reached_min_depth = 18
532 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
534 // If we reached bottom, what was the bottom type
537 HARD = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
538 SOFT = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
541 optional BottomType bottom_type = 19
542 [(jaia.field).rest_api.presence = GUARANTEED];
544 // For bottom characterization
545 optional double max_acceleration = 20 [
550 units { derived_dimensions: "acceleration" }
552 (jaia.field).rest_api.presence = GUARANTEED
555 message SubsurfaceCurrentVector
557 required double velocity = 1 [
562 units { derived_dimensions: "velocity" }
564 (jaia.field).rest_api.presence = GUARANTEED
567 required double heading = 2 [
573 derived_dimensions: "plane_angle"
574 system: "angle::degree"
577 (jaia.field).rest_api.presence = GUARANTEED
581 optional SubsurfaceCurrentVector subsurface_current = 21
582 [(jaia.field).rest_api.presence = GUARANTEED];
588 Actual maximum size of message: 220 bytes / 1760 bits
589 dccl.id head..........................16
590 user head..............................0
591 body................................1744
592 padding to full byte...................0
593 Allowed maximum size of message: 250 bytes / 2000 bits
595 option (dccl.msg) = {
602 required uint32 bot_id = 1 [
603 (dccl.field) = { min: 0 max: 255 },
604 (jaia.field).rest_api.presence = GUARANTEED
606 required uint64 start_time = 2 [
609 units { prefix: "micro" derived_dimensions: "time" }
611 (jaia.field).rest_api.presence = GUARANTEED
613 required uint64 end_time = 3 [
616 units { prefix: "micro" derived_dimensions: "time" }
618 (jaia.field).rest_api.presence = GUARANTEED
620 required MissionTask.TaskType type = 4
621 [(jaia.field).rest_api.presence = GUARANTEED];
623 // Special case: not sent in message - written upon receipt based on the
625 optional Link link = 5 [(dccl.field).omit = true];
627 optional DivePacket dive = 10 [(jaia.field).rest_api.presence = GUARANTEED];
628 optional DriftPacket drift = 11
629 [(jaia.field).rest_api.presence = GUARANTEED];
634 option (dccl.msg) = {
641 optional int32 contact = 1 [(dccl.field) = { min: 1, max: 15 }];
642 required GeographicCoordinate location = 2;
643 optional double speed_over_ground = 3 [(dccl.field) = {
647 units { derived_dimensions: "velocity" }
649 optional double heading_or_cog = 5 [(dccl.field) = {
653 units { derived_dimensions: "plane_angle" system: "angle::degree" }
659 option (dccl.msg) = {
666 required uint32 hub_id = 1 [(dccl.field) = { min: 0 max: 30 }];
667 required uint64 time = 2 [(dccl.field) = {
669 units { prefix: "micro" derived_dimensions: "time" }
670 precision: -5 // deci-second precision
675 BotStatus bot_status = 10;
676 TaskPacket task_packet = 11;
677 Command command_for_bot = 12;