Goby3 3.3.0
2025.07.10
Loading...
Searching...
No Matches
geographic.proto
Go to the documentation of this file.
1syntax = "proto2";
2
3import "dccl/option_extensions.proto";
4
5package goby.middleware.protobuf;
6
7message 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
26message Waypoint
27{
28 optional string name = 1;
29 required LatLonPoint location = 2;
30}
31
32// protobuf contents of $GPRTE message
33message Route
34{
35 optional string name = 1;
36 repeated Waypoint point = 2;
37}