Goby3  3.1.5a
2024.05.23
geographic.proto
Go to the documentation of this file.
1 syntax = "proto2";
2 
3 import "dccl/option_extensions.proto";
4 
5 package goby.middleware.protobuf;
6 
7 message LatLonPoint
8 {
9  option (dccl.msg).unit_system = "si";
10  required double lat = 1 [(dccl.field) = {units {
11  derived_dimensions: "plane_angle"
12  system: "angle::degree"
13  }}];
14  required double lon = 2 [(dccl.field) = {units {
15  derived_dimensions: "plane_angle"
16  system: "angle::degree"
17  }}];
18 
19  optional double depth = 3
20  [default = 0, (dccl.field) = {units {derived_dimensions: "length"}}];
21  optional double altitude = 4
22  [(dccl.field).units.derived_dimensions = "length", default = nan];
23 }
24 
25 // protobuf contents of $GPWPL message
26 message Waypoint
27 {
28  optional string name = 1;
29  required LatLonPoint location = 2;
30 }
31 
32 // protobuf contents of $GPRTE message
33 message Route
34 {
35  optional string name = 1;
36  repeated Waypoint point = 2;
37 }