Goby3 3.7.0
2026.11.12
Loading...
Searching...
No Matches
liaison_config.proto
Go to the documentation of this file.
1syntax = "proto2";
2
3import "goby/protobuf/option_extensions.proto";
4import "goby/middleware/protobuf/app_config.proto";
5import "goby/middleware/protobuf/layer.proto";
6import "goby/zeromq/protobuf/interprocess_config.proto";
7import "goby/acomms/protobuf/network_ack.proto";
8
9package goby.apps.zeromq.protobuf;
10
11message LiaisonConfig
12{
13 optional goby.middleware.protobuf.AppConfig app = 1;
14 optional goby.zeromq.protobuf.InterProcessPortalConfig interprocess = 2 [(goby.field) = { cfg { env: "GOBY_INTERPROCESS" } }];
15
16
17 optional string http_address = 10 [
18 default = "localhost",
19 (goby.field).description =
20 "address to bind on; same as Wt --http-address"
21 ];
22 optional uint32 http_port = 11 [
23 default = 54321,
24 (goby.field).description =
25 "address to bind on; same as Wt --http-port"
26 ];
27
28 optional string docroot = 12 [
29 default = "/usr/share/goby/liaison",
30 (goby.field).description =
31 "path to static objects (e.g. images) root; same as Wt --docroot"
32 ];
33
34 optional string additional_wt_http_params = 13
35 [(goby.field).example = "--accesslog=/tmp/access.log"];
36 optional float update_freq = 14 [default = 5];
37
38 repeated string load_shared_library = 15
39 [(goby.field).description =
40 "Path to a shared library containing compiled Protobuf files. "
41 "Preferred over load_proto_file."];
42 repeated string load_proto_file = 16
43 [(goby.field).description =
44 "Path to a .proto file. Use load_shared_library when possible."];
45 repeated string load_proto_dir = 17
46 [(goby.field).description =
47 "Directory containing .proto files to load. Use "
48 "load_shared_library when possible."];
49
50 optional bool start_paused = 18 [default = false];
51
52 optional string upper_right_logo = 19
53 [(goby.field).description =
54 "Image for upper right, relative to docroot"];
55 optional string upper_right_logo_link = 20
56 [(goby.field).description = "Hyperlink for upper right image"];
57
58
59 optional bool add_home_tab = 21 [default = true];
60 optional bool add_scope_tab = 22 [default = true];
61 optional bool add_commander_tab = 23 [default = true];
62 optional bool add_map_tab = 24 [default = true];
63
64 optional ProtobufCommanderConfig pb_commander_config = 900;
65 optional ProtobufScopeConfig pb_scope_config = 901;
66 optional ProtobufMapConfig pb_map_config = 902;
67
68 // MOOS - 1000 to 1099
69 // DRC - 1100
70 // WIP - 1200 to 1299
71 // Jaiabot - 1300
72 // private: 10000-11000
73 extensions 1000 to max;
74}
75
76message ProtobufCommanderConfig
77{
78 message LoadProtobuf
79 {
80 required string name = 1;
81
82 message GroupLayer
83 {
84 required string group = 1;
85 optional uint32 group_numeric = 2 [default = 0];
86 optional string group_numeric_field_name = 3;
87 optional goby.middleware.protobuf.Layer layer = 4
88 [default = LAYER_INTERPROCESS];
89 }
90 repeated GroupLayer publish_to = 2;
91
92 message ExternalData
93 {
94 required string name = 1;
95 required string group = 2;
96 message Translation
97 {
98 required string from = 1;
99 required string to = 2;
100 }
101 repeated Translation translate = 3;
102 }
103 repeated ExternalData external_data = 3;
104 }
105 repeated LoadProtobuf load_protobuf = 1;
106
107 optional int32 value_width_pixels = 10 [default = 500];
108 optional int32 modify_width_pixels = 11 [default = 100];
109 optional int32 external_data_width_pixels = 12 [default = 100];
110
111 optional string sqlite3_database = 20
112 [default = "/tmp/liaison_commander_autosave.db"];
113 optional int32 database_pool_size = 21 [default = 10];
114 optional int32 database_view_height = 5 [default = 400];
115
116 enum Column
117 {
118 option allow_alias = true;
119
120 COLUMN_COMMENT = 0;
121 COLUMN_NAME = 1;
122 COLUMN_GROUP = 2;
123 COLUMN_LAYER = 3;
124 COLUMN_IP = 4;
125 COLUMN_TIME = 5;
126 COLUMN_LAST_ACK = 6;
127 COLUMN_MAX = 6;
128 }
129
130 message DatabaseColumnWidthPixels
131 {
132 optional int32 comment_width = 1 [default = 180];
133 optional int32 name_width = 2 [default = 180];
134 optional int32 group_width = 3 [default = 120];
135 optional int32 layer_width = 4 [default = 120];
136 optional int32 ip_width = 5 [default = 120];
137 optional int32 time_width = 6 [default = 120];
138 optional int32 last_ack_width = 7 [default = 120];
139 }
140 optional DatabaseColumnWidthPixels database_width = 22;
141
142 message ModalDialogDimensions
143 {
144 optional int32 width = 1 [default = 800];
145 optional int32 height = 2 [default = 200];
146 }
147 optional ModalDialogDimensions modal_dimensions = 23;
148
149 message NotificationSubscription
150 {
151 required string type_regex = 1;
152 required string group_regex = 2;
153
154 message Color
155 {
156 required int32 r = 1;
157 required int32 g = 2;
158 required int32 b = 3;
159 optional int32 a = 4 [default = 255];
160 }
161
162 optional Color background_color = 3;
163 }
164
165 repeated NotificationSubscription notify_subscribe = 30;
166
167 enum ExternalDataColumn
168 {
169 option allow_alias = true;
170
171 EXTERNAL_DATA_COLUMN_NAME = 0;
172 EXTERNAL_DATA_COLUMN_GROUP = 1;
173 EXTERNAL_DATA_COLUMN_TIME = 2;
174 EXTERNAL_DATA_COLUMN_VALUE = 3;
175 EXTERNAL_DATA_COLUMN_MAX = 3;
176 }
177
178 message DatabaseExternalDataColumnWidthPixels
179 {
180 optional int32 name_width = 1 [default = 180];
181 optional int32 group_width = 2 [default = 120];
182 optional int32 time_width = 3 [default = 120];
183 optional int32 value_width = 4 [default = 400];
184 }
185 optional DatabaseExternalDataColumnWidthPixels external_database_width = 40;
186
187 // optional string time_source_var = 40;
188
189 // optional string network_ack_var = 41 [default = "ACOMMS_NETWORK_ACK"];
190}
191
192message ProtobufScopeConfig
193{
194 enum Column
195 {
196 option allow_alias = true;
197
198 COLUMN_GROUP = 0;
199 COLUMN_TYPE = 1;
200 COLUMN_VALUE = 2;
201 COLUMN_TIME = 3;
202 COLUMN_MAX = 3;
203 }
204
205 message ColumnWidthPixels
206 {
207 optional int32 group_width = 1 [default = 150];
208 optional int32 type_width = 2 [default = 150];
209 optional int32 value_width = 3 [default = 400];
210 optional int32 time_width = 4 [default = 150];
211 }
212 optional ColumnWidthPixels column_width = 2;
213 optional Column sort_by_column = 3 [default = COLUMN_GROUP];
214 optional bool sort_ascending = 4 [default = true];
215 optional int32 scope_height = 5 [default = 500];
216 optional int32 history_height = 6 [default = 300];
217
218 optional string group_regex_filter_expression = 7 [default = ".*"];
219 optional string type_regex_filter_expression = 8 [default = ".*"];
220
221 message HistoryConfig
222 {
223 required string group = 1;
224 // optional bool show_plot = 2 [default = false];
225 // optional int32 plot_width = 3 [default = 800];
226 // optional int32 plot_height = 4 [default = 300];
227 }
228
229 repeated HistoryConfig history = 9;
230
231 optional int32 max_history_items = 10 [default = 100];
232
233 optional int32 max_message_size_bytes = 20 [default = 2048];
234
235}
236
237message ProtobufMapConfig
238{
239 message TileLayer
240 {
241 optional string url_template = 1
242 [default = "https://tile.openstreetmap.org/{z}/{x}/{y}.png"];
243 optional string attribution = 2 [
244 default =
245 "&copy; <a href=\"https://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors"
246 ];
247 optional int32 max_zoom = 3 [default = 19];
248 optional int32 min_zoom = 4 [default = 0];
249 optional bool overlay = 5 [
250 default = false,
251 (goby.field).description =
252 "Transparent layer drawn above the base layer and switched on and "
253 "off by itself; otherwise one of the base layers to choose between"
254 ];
255 optional double opacity = 6 [default = 1.0];
256 optional string name = 7
257 [(goby.field).description =
258 "Label in the map's layer control. Defaults "
259 "to the host in url_template"];
260 message WMS
261 {
262 required string layers = 1;
263 optional string format = 2 [default = "image/png"];
264 optional string version = 3 [default = "1.3.0"];
265 optional string styles = 4 [default = ""];
266 }
267 optional WMS wms = 8 [
268 (goby.field).description =
269 "Request images from the WMS service at url_template instead of "
270 "{z}/{x}/{y} tiles. An overlay is requested transparent"
271 ];
272 optional bool shown = 9 [
273 default = true,
274 (goby.field).description =
275 "Whether an overlay starts switched on. The first base layer starts "
276 "selected. The browser then remembers the viewer's choice"
277 ];
278 optional int32 max_native_zoom = 11 [
279 (goby.field).description =
280 "Highest zoom the server has tiles for; beyond it, up to max_zoom, "
281 "its tiles are enlarged rather than left blank"
282 ];
283 optional string depth_units = 12 [
284 (goby.field).description =
285 "Units of the depths the layer labels (e.g. feet), named in the "
286 "map's corner while the layer is shown"
287 ];
288 optional int32 tile_size = 10 [
289 default = 256,
290 (goby.field).description =
291 "Pixels per WMS image: larger means fewer requests and fewer labels "
292 "cut at image edges"
293 ];
294 }
295 repeated TileLayer tile_layer = 1 [
296 (goby.field).description =
297 "Base layers (the first starts selected) and overlays, drawn above "
298 "the base in order, offered in the map's layer control. If empty: "
299 "GEBCO bathymetry, OpenStreetMap and Esri Ocean bases, with NOAA "
300 "depths, the NOAA chart and OpenSeaMap seamark overlays"
301 ];
302 optional bool blank_background = 6 [
303 default = false,
304 (goby.field).description =
305 "Draw no tiles (e.g. offline use); overrides tile_layer"
306 ];
307
308 optional double initial_lat = 2 [default = 0];
309 optional double initial_lon = 3 [default = 0];
310 optional int32 initial_zoom = 4 [default = 2];
311 optional bool fit_on_first_fix = 5 [
312 default = true,
313 (goby.field).description =
314 "Zoom to the first vehicle position received"
315 ];
316
317 message Source
318 {
319 enum Kind
320 {
321 NODE_STATUS = 1; // goby.middleware.frontseat.protobuf.NodeStatus
322 GPSD_TPV = 2; // goby.middleware.protobuf.gpsd.TimePositionVelocity
323 }
324 required Kind kind = 1;
325 optional string group_regex = 2
326 [(goby.field).description =
327 "Defaults to the standard group for this kind"];
328 optional string name_override = 3
329 [(goby.field).description =
330 "Vehicle name when the message has none. Defaults to this "
331 "platform's name"];
332 }
333 repeated Source source = 10
334 [(goby.field).description =
335 "Vehicle position sources. If empty, NodeStatus on "
336 "goby::middleware::frontseat::node_status"];
337
338 optional int32 track_length = 20 [
339 default = 5000,
340 (goby.field).description =
341 "Most track points kept per vehicle; older points are dropped even when "
342 "they are inside the Trail time"
343 ];
344 optional double track_min_move_meters = 21 [
345 default = 1.0,
346 (goby.field).description =
347 "Minimum movement before a new track point is added"
348 ];
349 optional double stale_timeout_seconds = 22 [
350 default = 60,
351 (goby.field).description =
352 "Vehicles with no position for this long are shown as stale"
353 ];
354 optional bool show_age = 23 [
355 default = false,
356 (goby.field).description =
357 "Show the time since each vehicle's last position beside its name "
358 "on the map, not only once it is stale. The Show age box toggles it"
359 ];
360 optional int32 trail_seconds = 24 [
361 default = 600,
362 (goby.field).description =
363 "How far back each track is drawn, in seconds, until changed with the "
364 "Trail slider (which rounds it to its nearest step). 0 draws none; "
365 "negative draws every kept point"
366 ];
367 optional bool show_depth = 25 [
368 default = false,
369 (goby.field).description =
370 "Show a depth gauge beside each vehicle with a depth: surface at the top, "
371 "5000 m at the bottom on a log scale. The Show depth box toggles it"
372 ];
373 optional string enc_dir = 26
374 [(goby.field).description =
375 "Where uploaded S-57 ENCs are stored and converted. Defaults to "
376 "$HOME/.goby/liaison/enc"];
377 optional bool enc_upload = 27 [
378 default = true,
379 (goby.field).description =
380 "Offer an upload for S-57 ENCs (.000, or a .zip of them), drawn as map "
381 "overlays. Converting needs GDAL's ogr2ogr on the PATH"
382 ];
383
384 optional int32 map_height = 30 [default = 600];
385}
386
387message NetworkAckSet
388{
389 optional uint64 newest_ack_time = 1;
390 repeated goby.acomms.protobuf.NetworkAck ack = 2;
391}