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
123 CTD_DATA_OFFLOAD = 6;
125 // debugging low level commands
126 RESTART_ALL_SERVICES = 40;
127 REBOOT_COMPUTER = 41;
128 SHUTDOWN_COMPUTER = 42;
130 // simulator commands
131 SET_HUB_LOCATION = 80 [(jaia.ev).rest_api.presence = GUARANTEED];
134 required HubCommandType type = 10
135 [(jaia.field).rest_api.presence = GUARANTEED];
137 optional uint32 scan_for_bot_id = 11;
139 optional GeographicCoordinate hub_location = 80
140 [(jaia.field).rest_api.presence = GUARANTEED];
146 Actual maximum size of message: 48 bytes / 384 bits
147 dccl.id head...........................8
148 user head..............................0
149 body.................................369
150 padding to full byte...................7
151 Allowed maximum size of message: 250 bytes / 2000 bits
153 option (dccl.msg) = {
160 required uint32 bot_id = 1 [
161 (dccl.field) = { min: 0 max: 255 },
162 (jaia.field).rest_api.presence = GUARANTEED
164 required uint64 time = 2 [
167 units { prefix: "micro" derived_dimensions: "time" },
169 (jaia.field).rest_api.presence = GUARANTEED
171 optional uint64 last_command_time = 3 [
174 units { prefix: "micro" derived_dimensions: "time" }
176 (jaia.field).rest_api.presence = GUARANTEED
179 optional goby.middleware.protobuf.HealthState health_state = 4
180 [(jaia.field).rest_api.presence = GUARANTEED];
181 repeated Error error = 5 [
182 (dccl.field).max_repeat = 5,
183 (jaia.field).rest_api.presence = GUARANTEED
185 repeated Warning warning = 6 [
186 (dccl.field).max_repeat = 5,
187 (jaia.field).rest_api.presence = GUARANTEED
191 HYDRO = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
192 ECHO = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
193 BIO = 3 [(jaia.ev).rest_api.presence = GUARANTEED];
195 optional BotType bot_type = 7 [(jaia.field).rest_api.presence = GUARANTEED];
197 // Special case: not sent in message - written upon receipt based on the
199 optional Link link = 8 [(dccl.field).omit = true];
201 optional GeographicCoordinate location = 10
202 [(jaia.field).rest_api.presence = GUARANTEED];
204 optional double sensor_depth = 11 [
209 units: { derived_dimensions: "length" }
211 (jaia.field).rest_api.presence = GUARANTEED
214 optional double depth = 12 [
219 units: { derived_dimensions: "length" }
221 (jaia.field).rest_api.presence = GUARANTEED
226 optional double roll = 1 [
232 derived_dimensions: "plane_angle"
233 system: "angle::degree"
236 (jaia.field).rest_api.presence = GUARANTEED
238 optional double pitch = 2 [
244 derived_dimensions: "plane_angle"
245 system: "angle::degree"
248 (jaia.field).rest_api.presence = GUARANTEED
250 optional double heading = 3 [
256 derived_dimensions: "plane_angle"
257 system: "angle::degree"
260 (jaia.field).rest_api.presence = GUARANTEED
262 optional double course_over_ground = 4 [
268 derived_dimensions: "plane_angle"
269 system: "angle::degree"
272 (jaia.field).rest_api.presence = GUARANTEED
275 optional Attitude attitude = 20
276 [(jaia.field).rest_api.presence = GUARANTEED];
280 optional double over_ground = 1 [
285 units { derived_dimensions: "velocity" }
287 (jaia.field).rest_api.presence = GUARANTEED
289 optional double over_water = 2 [(dccl.field) = {
293 units { derived_dimensions: "velocity" }
296 optional Speed speed = 30 [(jaia.field).rest_api.presence = GUARANTEED];
298 optional MissionState mission_state = 40
299 [(jaia.field).rest_api.presence = GUARANTEED];
301 // bounds should match MissionPlan.goal max_repeat value *
302 // expected_fragments max
303 optional int32 active_goal = 41 [
304 (dccl.field) = { min: 0 max: 80 },
305 (jaia.field).rest_api.presence = GUARANTEED
307 optional double distance_to_active_goal = 42 [
312 units: { derived_dimensions: "length" }
314 (jaia.field).rest_api.presence = GUARANTEED
316 optional uint32 active_goal_timeout = 43 [
321 units { base_dimensions: "T" }
323 (jaia.field).rest_api.presence = GUARANTEED
325 optional int32 repeat_index = 44 [
326 (dccl.field) = { min: 0 max: 1000 precision: 0 },
327 (jaia.field).rest_api.presence = GUARANTEED
330 optional double salinity = 51
331 [(dccl.field) = { min: 0 max: 100 precision: 1 }];
333 optional double temperature = 52 [(dccl.field) = {
337 units { derived_dimensions: "temperature" system: "celsius" }
340 optional double battery_percent = 53 [
341 (dccl.field) = { min: 0 max: 100 precision: 0 },
342 (jaia.field).rest_api.presence = GUARANTEED
345 optional int32 calibration_status = 54 [(dccl.field) = { min: 0 max: 3 }];
347 optional IMUCalibrationState calibration_state = 55;
349 optional double hdop = 56 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
351 optional double pdop = 57 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
353 optional int32 wifi_link_quality_percentage = 58 [
354 (dccl.field) = { min: 0 max: 100 precision: 0 },
355 (jaia.field).rest_api.presence = GUARANTEED
358 optional uint64 received_time = 59 [
361 units { prefix: "micro" derived_dimensions: "time" }
363 (jaia.field).rest_api.presence = GUARANTEED
369 option (dccl.msg) = {
373 optional int32 drift_duration = 1 [
379 units { base_dimensions: "T" }
381 (jaia.field).rest_api.presence = GUARANTEED
384 message EstimatedDrift
386 required double speed = 1 [
391 units { derived_dimensions: "velocity" }
393 (jaia.field).rest_api.presence = GUARANTEED
396 optional double heading = 3 [
402 derived_dimensions: "plane_angle"
403 system: "angle::degree"
406 (jaia.field).rest_api.presence = GUARANTEED
410 // should correspond to ocean current velocity
411 optional EstimatedDrift estimated_drift = 10
412 [(jaia.field).rest_api.presence = GUARANTEED];
415 optional GeographicCoordinate start_location = 11
416 [(jaia.field).rest_api.presence = GUARANTEED];
418 optional GeographicCoordinate end_location = 12
419 [(jaia.field).rest_api.presence = GUARANTEED];
421 // Significant wave height is defined as the average wave height,
422 // from trough to crest, of the highest one-third of the waves
423 optional double significant_wave_height = 13 [
428 units: { derived_dimensions: "length" }
430 (jaia.field).rest_api.presence = GUARANTEED
436 option (dccl.msg) = {
440 required double dive_rate = 10 [
445 units { derived_dimensions: "velocity" }
447 (jaia.field).rest_api.presence = GUARANTEED
450 optional double unpowered_rise_rate = 11 [
455 units { derived_dimensions: "velocity" }
457 (jaia.field).rest_api.presence = GUARANTEED
460 optional double powered_rise_rate = 12 [
465 units { derived_dimensions: "velocity" }
467 (jaia.field).rest_api.presence = GUARANTEED
470 required double depth_achieved = 13 [
475 units: { derived_dimensions: "length" }
477 (jaia.field).rest_api.presence = GUARANTEED
482 optional double mean_depth = 1 [
487 units: { derived_dimensions: "length" }
489 (jaia.field).rest_api.presence = GUARANTEED
492 optional double mean_temperature = 2 [
497 units { derived_dimensions: "temperature" system: "celsius" }
499 (jaia.field).rest_api.presence = GUARANTEED
502 optional double mean_salinity = 3 [
503 (dccl.field) = { min: 0 max: 45 precision: 1 },
504 (jaia.field).rest_api.presence = GUARANTEED
508 repeated Measurements measurement = 14 [
509 (dccl.field) = { max_repeat: 50 },
510 (jaia.field).rest_api.presence = GUARANTEED
514 optional GeographicCoordinate start_location = 15
515 [(jaia.field).rest_api.presence = GUARANTEED];
517 optional double duration_to_acquire_gps = 16 [
522 units { base_dimensions: "T" }
524 (jaia.field).rest_api.presence = GUARANTEED
527 // Did we reach seafloor?
528 optional bool bottom_dive = 17
529 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
531 // Did we reach min depth?
532 optional bool reached_min_depth = 18
533 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
535 // If we reached bottom, what was the bottom type
538 HARD = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
539 SOFT = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
542 optional BottomType bottom_type = 19
543 [(jaia.field).rest_api.presence = GUARANTEED];
545 // For bottom characterization
546 optional double max_acceleration = 20 [
551 units { derived_dimensions: "acceleration" }
553 (jaia.field).rest_api.presence = GUARANTEED
556 message SubsurfaceCurrentVector
558 required double velocity = 1 [
563 units { derived_dimensions: "velocity" }
565 (jaia.field).rest_api.presence = GUARANTEED
568 required double heading = 2 [
574 derived_dimensions: "plane_angle"
575 system: "angle::degree"
578 (jaia.field).rest_api.presence = GUARANTEED
582 optional SubsurfaceCurrentVector subsurface_current = 21
583 [(jaia.field).rest_api.presence = GUARANTEED];
589 Actual maximum size of message: 220 bytes / 1760 bits
590 dccl.id head..........................16
591 user head..............................0
592 body................................1744
593 padding to full byte...................0
594 Allowed maximum size of message: 250 bytes / 2000 bits
596 option (dccl.msg) = {
603 required uint32 bot_id = 1 [
604 (dccl.field) = { min: 0 max: 255 },
605 (jaia.field).rest_api.presence = GUARANTEED
607 required uint64 start_time = 2 [
610 units { prefix: "micro" derived_dimensions: "time" }
612 (jaia.field).rest_api.presence = GUARANTEED
614 required uint64 end_time = 3 [
617 units { prefix: "micro" derived_dimensions: "time" }
619 (jaia.field).rest_api.presence = GUARANTEED
621 required MissionTask.TaskType type = 4
622 [(jaia.field).rest_api.presence = GUARANTEED];
624 // Special case: not sent in message - written upon receipt based on the
626 optional Link link = 5 [(dccl.field).omit = true];
628 optional DivePacket dive = 10 [(jaia.field).rest_api.presence = GUARANTEED];
629 optional DriftPacket drift = 11
630 [(jaia.field).rest_api.presence = GUARANTEED];
635 option (dccl.msg) = {
642 optional int32 contact = 1 [(dccl.field) = { min: 1, max: 15 }];
643 required GeographicCoordinate location = 2;
644 optional double speed_over_ground = 3 [(dccl.field) = {
648 units { derived_dimensions: "velocity" }
650 optional double heading_or_cog = 5 [(dccl.field) = {
654 units { derived_dimensions: "plane_angle" system: "angle::degree" }
660 option (dccl.msg) = {
667 required uint32 hub_id = 1 [(dccl.field) = { min: 0 max: 30 }];
668 required uint64 time = 2 [(dccl.field) = {
670 units { prefix: "micro" derived_dimensions: "time" }
671 precision: -5 // deci-second precision
676 BotStatus bot_status = 10;
677 TaskPacket task_packet = 11;
678 Command command_for_bot = 12;