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: 46 bytes / 368 bits
146 dccl.id head...........................8
147 user head..............................0
148 body.................................359
149 padding to full byte...................1
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 depth = 11 [
208 units: { derived_dimensions: "length" }
210 (jaia.field).rest_api.presence = GUARANTEED
215 optional double roll = 1 [
221 derived_dimensions: "plane_angle"
222 system: "angle::degree"
225 (jaia.field).rest_api.presence = GUARANTEED
227 optional double pitch = 2 [
233 derived_dimensions: "plane_angle"
234 system: "angle::degree"
237 (jaia.field).rest_api.presence = GUARANTEED
239 optional double heading = 3 [
245 derived_dimensions: "plane_angle"
246 system: "angle::degree"
249 (jaia.field).rest_api.presence = GUARANTEED
251 optional double course_over_ground = 4 [
257 derived_dimensions: "plane_angle"
258 system: "angle::degree"
261 (jaia.field).rest_api.presence = GUARANTEED
264 optional Attitude attitude = 20
265 [(jaia.field).rest_api.presence = GUARANTEED];
269 optional double over_ground = 1 [
274 units { derived_dimensions: "velocity" }
276 (jaia.field).rest_api.presence = GUARANTEED
278 optional double over_water = 2 [(dccl.field) = {
282 units { derived_dimensions: "velocity" }
285 optional Speed speed = 30 [(jaia.field).rest_api.presence = GUARANTEED];
287 optional MissionState mission_state = 40
288 [(jaia.field).rest_api.presence = GUARANTEED];
290 // bounds should match MissionPlan.goal max_repeat value *
291 // expected_fragments max
292 optional int32 active_goal = 41 [
293 (dccl.field) = { min: 0 max: 80 },
294 (jaia.field).rest_api.presence = GUARANTEED
296 optional double distance_to_active_goal = 42 [
301 units: { derived_dimensions: "length" }
303 (jaia.field).rest_api.presence = GUARANTEED
305 optional uint32 active_goal_timeout = 43 [
310 units { base_dimensions: "T" }
312 (jaia.field).rest_api.presence = GUARANTEED
314 optional int32 repeat_index = 44 [
315 (dccl.field) = { min: 0 max: 1000 precision: 0 },
316 (jaia.field).rest_api.presence = GUARANTEED
319 optional double salinity = 51
320 [(dccl.field) = { min: 0 max: 100 precision: 1 }];
322 optional double temperature = 52 [(dccl.field) = {
326 units { derived_dimensions: "temperature" system: "celsius" }
329 optional double battery_percent = 53 [
330 (dccl.field) = { min: 0 max: 100 precision: 0 },
331 (jaia.field).rest_api.presence = GUARANTEED
334 optional int32 calibration_status = 54 [(dccl.field) = { min: 0 max: 3 }];
336 optional IMUCalibrationState calibration_state = 55;
338 optional double hdop = 56 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
340 optional double pdop = 57 [(dccl.field) = { min: 0 max: 100 precision: 2 }];
342 optional int32 wifi_link_quality_percentage = 58 [
343 (dccl.field) = { min: 0 max: 100 precision: 0 },
344 (jaia.field).rest_api.presence = GUARANTEED
347 optional uint64 received_time = 59 [
350 units { prefix: "micro" derived_dimensions: "time" }
352 (jaia.field).rest_api.presence = GUARANTEED
358 option (dccl.msg) = {
362 optional int32 drift_duration = 1 [
368 units { base_dimensions: "T" }
370 (jaia.field).rest_api.presence = GUARANTEED
373 message EstimatedDrift
375 required double speed = 1 [
380 units { derived_dimensions: "velocity" }
382 (jaia.field).rest_api.presence = GUARANTEED
385 optional double heading = 3 [
391 derived_dimensions: "plane_angle"
392 system: "angle::degree"
395 (jaia.field).rest_api.presence = GUARANTEED
399 // should correspond to ocean current velocity
400 optional EstimatedDrift estimated_drift = 10
401 [(jaia.field).rest_api.presence = GUARANTEED];
404 optional GeographicCoordinate start_location = 11
405 [(jaia.field).rest_api.presence = GUARANTEED];
407 optional GeographicCoordinate end_location = 12
408 [(jaia.field).rest_api.presence = GUARANTEED];
410 // Significant wave height is defined as the average wave height,
411 // from trough to crest, of the highest one-third of the waves
412 optional double significant_wave_height = 13 [
417 units: { derived_dimensions: "length" }
419 (jaia.field).rest_api.presence = GUARANTEED
425 option (dccl.msg) = {
429 required double dive_rate = 10 [
434 units { derived_dimensions: "velocity" }
436 (jaia.field).rest_api.presence = GUARANTEED
439 optional double unpowered_rise_rate = 11 [
444 units { derived_dimensions: "velocity" }
446 (jaia.field).rest_api.presence = GUARANTEED
449 optional double powered_rise_rate = 12 [
454 units { derived_dimensions: "velocity" }
456 (jaia.field).rest_api.presence = GUARANTEED
459 required double depth_achieved = 13 [
464 units: { derived_dimensions: "length" }
466 (jaia.field).rest_api.presence = GUARANTEED
471 optional double mean_depth = 1 [
476 units: { derived_dimensions: "length" }
478 (jaia.field).rest_api.presence = GUARANTEED
481 optional double mean_temperature = 2 [
486 units { derived_dimensions: "temperature" system: "celsius" }
488 (jaia.field).rest_api.presence = GUARANTEED
491 optional double mean_salinity = 3 [
492 (dccl.field) = { min: 0 max: 45 precision: 1 },
493 (jaia.field).rest_api.presence = GUARANTEED
497 repeated Measurements measurement = 14 [
498 (dccl.field) = { max_repeat: 50 },
499 (jaia.field).rest_api.presence = GUARANTEED
503 optional GeographicCoordinate start_location = 15
504 [(jaia.field).rest_api.presence = GUARANTEED];
506 optional double duration_to_acquire_gps = 16 [
511 units { base_dimensions: "T" }
513 (jaia.field).rest_api.presence = GUARANTEED
516 // Did we reach seafloor?
517 optional bool bottom_dive = 17
518 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
520 // Did we reach min depth?
521 optional bool reached_min_depth = 18
522 [default = false, (jaia.field).rest_api.presence = GUARANTEED];
524 // If we reached bottom, what was the bottom type
527 HARD = 1 [(jaia.ev).rest_api.presence = GUARANTEED];
528 SOFT = 2 [(jaia.ev).rest_api.presence = GUARANTEED];
531 optional BottomType bottom_type = 19
532 [(jaia.field).rest_api.presence = GUARANTEED];
534 // For bottom characterization
535 optional double max_acceleration = 20 [
540 units { derived_dimensions: "acceleration" }
542 (jaia.field).rest_api.presence = GUARANTEED
549 Actual maximum size of message: 218 bytes / 1744 bits
550 dccl.id head..........................16
551 user head..............................0
552 body................................1728
553 padding to full byte...................0
554 Allowed maximum size of message: 250 bytes / 2000 bits
556 option (dccl.msg) = {
563 required uint32 bot_id = 1 [
564 (dccl.field) = { min: 0 max: 255 },
565 (jaia.field).rest_api.presence = GUARANTEED
567 required uint64 start_time = 2 [
570 units { prefix: "micro" derived_dimensions: "time" }
572 (jaia.field).rest_api.presence = GUARANTEED
574 required uint64 end_time = 3 [
577 units { prefix: "micro" derived_dimensions: "time" }
579 (jaia.field).rest_api.presence = GUARANTEED
581 required MissionTask.TaskType type = 4
582 [(jaia.field).rest_api.presence = GUARANTEED];
584 // Special case: not sent in message - written upon receipt based on the
586 optional Link link = 5 [(dccl.field).omit = true];
588 optional DivePacket dive = 10 [(jaia.field).rest_api.presence = GUARANTEED];
589 optional DriftPacket drift = 11
590 [(jaia.field).rest_api.presence = GUARANTEED];
595 option (dccl.msg) = {
602 optional int32 contact = 1 [(dccl.field) = { min: 1, max: 15 }];
603 required GeographicCoordinate location = 2;
604 optional double speed_over_ground = 3 [(dccl.field) = {
608 units { derived_dimensions: "velocity" }
610 optional double heading_or_cog = 5 [(dccl.field) = {
614 units { derived_dimensions: "plane_angle" system: "angle::degree" }
620 option (dccl.msg) = {
627 required uint32 hub_id = 1 [(dccl.field) = { min: 0 max: 30 }];
628 required uint64 time = 2 [(dccl.field) = {
630 units { prefix: "micro" derived_dimensions: "time" }
631 precision: -5 // deci-second precision
636 BotStatus bot_status = 10;
637 TaskPacket task_packet = 11;
638 Command command_for_bot = 12;