Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
frontseat_data.proto
Go to the documentation of this file.
1syntax = "proto2";
2import "dccl/option_extensions.proto";
3import "goby/middleware/protobuf/geographic.proto";
4
5package goby.middleware.frontseat.protobuf;
6
7message NodeStatus
8{
9 option (dccl.msg) = {
10 unit_system: "si"
11 };
12
13 required double time = 1 [(dccl.field).units.derived_dimensions = "time"];
14 optional string name = 2;
15 optional VehicleType type = 3;
16
17 // lat, lon, depth
18 required .goby.middleware.protobuf.LatLonPoint global_fix = 10;
19 // x, y, z on local cartesian grid
20 optional CartesianCoordinate local_fix = 11;
21
22 // roll, pitch, yaw
23 required EulerAngles pose = 20;
24
25 required Speed speed = 30;
26
27 optional Source source = 40;
28
29 extensions 1000 to max;
30}
31
32message DesiredCourse
33{
34 option (dccl.msg).unit_system = "si";
35
36 required double time = 1 [(dccl.field).units.derived_dimensions = "time"];
37 optional double heading = 2 [
38 default = 0,
39 (dccl.field).units.derived_dimensions = "plane_angle",
40 (dccl.field).units.system = "angle::degree"
41 ];
42 optional double speed = 3
43 [default = 0, (dccl.field).units.derived_dimensions = "length/time"];
44 optional double depth = 4
45 [default = 0, (dccl.field).units.derived_dimensions = "length"];
46 optional double pitch = 5 [
47 default = 0,
48 (dccl.field).units.derived_dimensions = "plane_angle",
49 (dccl.field).units.system = "angle::degree"
50 ];
51
52 optional double roll = 6 [
53 default = 0,
54 (dccl.field).units.derived_dimensions = "plane_angle",
55 (dccl.field).units.system = "angle::degree"
56 ];
57
58 optional double z_rate = 7
59 [default = 0, (dccl.field).units.derived_dimensions = "length/time"];
60 // deliberately non-zero: if read without has_altitude(), 10 m off the bottom is safer
61 // than 0 (or NaN)
62 optional double altitude = 8
63 [default = 10, (dccl.field).units.derived_dimensions = "length"];
64
65 extensions 1000 to max;
66}
67
68// Type of vehicle for a given node
69enum VehicleType
70{
71 UNKNOWN = 0;
72 AUV = 10;
73 GLIDER = 11;
74
75 USV = 20;
76 USV_POWERED = 21;
77 USV_SAILING = 22;
78
79 ROV = 30;
80
81 TARGET = 50;
82
83 BUOY = 60;
84 MOORING = 61;
85 MOORING_SUBSURFACE = 62;
86 MOORING_SURFACE = 63;
87
88 SHIP = 100;
89
90 OTHER = -1;
91}
92
93message Source
94{
95 enum Sensor
96 {
97 GPS = 1;
98 USBL = 2;
99 LBL = 3;
100 INERTIAL_NAVIGATION_SYSTEM = 4;
101
102 PRESSURE = 10;
103
104 DVL = 20;
105 RPM_LOOKUP = 30;
106
107 MAGNETIC_COMPASS = 40;
108 }
109
110 optional Sensor position = 1;
111 optional Sensor depth = 2;
112 optional Sensor speed = 3;
113 optional Sensor heading = 4;
114
115 extensions 1000 to max;
116}
117
118// computed from LatLonPoint
119message CartesianCoordinate
120{
121 option (dccl.msg).unit_system = "si";
122
123 required double x = 1 [(dccl.field).units.derived_dimensions = "length"];
124 required double y = 2 [(dccl.field).units.derived_dimensions = "length"];
125 optional double z = 3
126 [(dccl.field).units.derived_dimensions = "length", default = 0];
127
128 extensions 1000 to max;
129}
130
131message EulerAngles
132{
133 option (dccl.msg).unit_system = "si";
134
135 optional double roll = 1 [(dccl.field) = {
136 units { derived_dimensions: "plane_angle" system: "angle::degree" }
137 }];
138 optional double pitch = 2 [(dccl.field) = {
139 units { derived_dimensions: "plane_angle" system: "angle::degree" }
140 }];
141 optional double heading = 3 [(dccl.field) = {
142 units { derived_dimensions: "plane_angle" system: "angle::degree" }
143 }];
144 optional double course_over_ground = 4 [(dccl.field) = {
145 units { derived_dimensions: "plane_angle" system: "angle::degree" }
146 }];
147
148 optional double roll_rate = 10 [(dccl.field) = {
149 units {
150 custom {
151 unit: "dccl::units::degrees_per_second_unit"
152 header: "dccl/units/degrees.h"
153 }
154 }
155 }];
156
157 optional double pitch_rate = 11 [(dccl.field) = {
158 units {
159 custom {
160 unit: "dccl::units::degrees_per_second_unit"
161 header: "dccl/units/degrees.h"
162 }
163 }
164 }];
165 optional double heading_rate = 12 [(dccl.field) = {
166 units {
167 custom {
168 unit: "dccl::units::degrees_per_second_unit"
169 header: "dccl/units/degrees.h"
170 }
171 }
172 }];
173
174 extensions 1000 to max;
175}
176
177message Speed
178{
179 option (dccl.msg).unit_system = "si";
180
181 required double over_ground = 1
182 [(dccl.field).units.derived_dimensions = "length/time"];
183 optional double over_water = 2
184 [(dccl.field).units.derived_dimensions = "length/time"];
185
186 extensions 1000 to max;
187}
188
189message CTDSample
190{
191 option (dccl.msg).unit_system = "si";
192
193 required double time = 2 [(dccl.field).units.base_dimensions = "T"];
194
195 // required "primary" measurements
196 optional double conductivity = 10
197 [(dccl.field).units = { derived_dimensions: "conductivity" }];
198 required double temperature = 11 [(dccl.field).units = {
199 system: "celsius"
200 derived_dimensions: "temperature"
201 }];
202
203 required double pressure = 12
204 [(dccl.field).units = { base_dimensions: "M L^-1 T^-2" }];
205
206 // required "secondary" or calculated quantities (can be
207 // calculated from "primary" measurements alone using empirical
208 // formulas).
209 required double salinity = 20
210 [(dccl.field).units = { base_dimensions: "-" }];
211 required double sound_speed = 21
212 [(dccl.field).units = { base_dimensions: "L T^-1" }];
213 required double density = 22
214 [(dccl.field).units = { base_dimensions: "M L^-3" }];
215
216 required .goby.middleware.protobuf.LatLonPoint global_fix = 23;
217
218 // algorithm used for secondary quantities
219 enum SalinityAlgorithm
220 {
221 SAL_ALGORITHM_UNKNOWN = 0;
222 UNESCO_44_PREKIN_AND_LEWIS_1980 = 1;
223 }
224 optional SalinityAlgorithm salinity_algorithm = 30
225 [default = SAL_ALGORITHM_UNKNOWN];
226
227 enum SoundSpeedAlgorithm
228 {
229 SS_ALGORITHM_UNKNOWN = 0;
230 UNESCO_44_CHEN_AND_MILLERO_1977 = 1;
231 MACKENZIE_1981 = 2;
232 DEL_GROSSO_1974 = 3;
233 }
234 optional SoundSpeedAlgorithm sound_speed_algorithm = 31
235 [default = SS_ALGORITHM_UNKNOWN];
236
237 enum DensityAlgorithm
238 {
239 DENSITY_ALGORITHM_UNKNOWN = 0;
240 UNESCO_38_MILLERO_AND_POISSON_1981 = 1;
241 }
242 optional DensityAlgorithm density_algorithm = 32
243 [default = DENSITY_ALGORITHM_UNKNOWN];
244
245 extensions 1000 to max;
246}
247
248message DatumUpdate
249{
250 option (dccl.msg) = {
251 unit_system: "si"
252 };
253
254 required .goby.middleware.protobuf.LatLonPoint datum = 1;
255}