@rise-maritime/keelson-js 0.6.0-alpha.282.dev.1 → 0.6.0-alpha.307.dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +31 -31
- package/dist/interfaces/ContainerControl.d.ts +7 -0
- package/dist/interfaces/ContainerControl.js +18 -1
- package/dist/interfaces/ContainerHost.d.ts +45 -0
- package/dist/interfaces/ContainerHost.js +332 -1
- package/dist/interfaces/NavigationRiskControl.d.ts +161 -0
- package/dist/interfaces/NavigationRiskControl.js +1007 -0
- package/dist/interfaces/ReplayControl.d.ts +49 -1
- package/dist/interfaces/ReplayControl.js +274 -1
- package/dist/interfaces/Route.d.ts +80 -1
- package/dist/interfaces/Route.js +213 -2
- package/dist/interfaces/serviceRegistry.d.ts +33 -33
- package/dist/interfaces/serviceRegistry.js +2 -2
- package/dist/interfaces.json +1 -1
- package/dist/payloads/AdviceDisposition.d.ts +20 -5
- package/dist/payloads/AdviceDisposition.js +7 -0
- package/dist/payloads/ContainerHost.d.ts +48 -0
- package/dist/payloads/ContainerHost.js +341 -1
- package/dist/payloads/NavigationAdvice.d.ts +24 -0
- package/dist/payloads/NavigationAdvice.js +91 -1
- package/dist/payloads/NavigationRisk.d.ts +341 -0
- package/dist/payloads/NavigationRisk.js +2530 -0
- package/dist/payloads/NavigationState.d.ts +0 -46
- package/dist/payloads/NavigationState.js +1 -252
- package/dist/payloads/Route.d.ts +81 -1
- package/dist/payloads/Route.js +222 -2
- package/dist/payloads/index.keelson.d.ts +1 -0
- package/dist/payloads/index.keelson.js +1 -0
- package/dist/subjects.json +1 -0
- package/package.json +1 -1
- package/dist/interfaces/NavigationControl.d.ts +0 -169
- package/dist/interfaces/NavigationControl.js +0 -806
- package/dist/interfaces/NavigationState.d.ts +0 -132
- package/dist/interfaces/NavigationState.js +0 -615
- package/dist/interfaces/OperationalAuthority.d.ts +0 -217
- package/dist/interfaces/OperationalAuthority.js +0 -807
- package/dist/interfaces/VesselType.d.ts +0 -133
- package/dist/interfaces/VesselType.js +0 -726
- package/dist/interfaces/Voyage.d.ts +0 -151
- package/dist/interfaces/Voyage.js +0 -855
|
@@ -30,11 +30,6 @@ export interface NavigationState {
|
|
|
30
30
|
reason: string;
|
|
31
31
|
/** Subjects this process needs and currently lacks or holds stale, e.g. "location_fix". */
|
|
32
32
|
degradedInputs: string[];
|
|
33
|
-
/**
|
|
34
|
-
* The guidance order in force: what this process has been told to steer by, whether or not it
|
|
35
|
-
* holds the conn to do it. Absent when it has no voyage. Set through navigation_control/v1.
|
|
36
|
-
*/
|
|
37
|
-
guidanceOrder?: GuidanceOrder | undefined;
|
|
38
33
|
}
|
|
39
34
|
export declare enum NavigationState_Mode {
|
|
40
35
|
MODE_UNSPECIFIED = 0,
|
|
@@ -68,52 +63,11 @@ export declare enum NavigationState_SubMode {
|
|
|
68
63
|
SUB_MODE_HOLDING = 3,
|
|
69
64
|
/** SUB_MODE_REROUTING - awaiting a new route edition */
|
|
70
65
|
SUB_MODE_REROUTING = 4,
|
|
71
|
-
/** SUB_MODE_STEERING - holding an ordered course or heading, off the track (GuidanceOrder) */
|
|
72
|
-
SUB_MODE_STEERING = 5,
|
|
73
66
|
UNRECOGNIZED = -1
|
|
74
67
|
}
|
|
75
68
|
export declare function navigationState_SubModeFromJSON(object: any): NavigationState_SubMode;
|
|
76
69
|
export declare function navigationState_SubModeToJSON(object: NavigationState_SubMode): string;
|
|
77
|
-
/**
|
|
78
|
-
* How a navigation process is ordered to steer while a voyage is active. The one type used both to
|
|
79
|
-
* give the order (navigation_control/v1 set_guidance_order, load_route) and to report the order in
|
|
80
|
-
* force (NavigationState.guidance_order), so what was asked and what is held read alike.
|
|
81
|
-
*
|
|
82
|
-
* The frame is the field, as in vehicle_navigation/v1's SteeringOrder, so an order cannot name one
|
|
83
|
-
* frame and carry a value meant for another. Course over ground and heading are different
|
|
84
|
-
* instructions: in any current they differ by the drift angle.
|
|
85
|
-
*/
|
|
86
|
-
export interface GuidanceOrder {
|
|
87
|
-
$type: "keelson.GuidanceOrder";
|
|
88
|
-
track?: GuidanceOrder_Track | undefined;
|
|
89
|
-
/** Make good this course, degrees true, [0, 360). */
|
|
90
|
-
courseOverGroundDeg?: number | undefined;
|
|
91
|
-
/** Point this way, degrees true, [0, 360). */
|
|
92
|
-
headingDeg?: number | undefined;
|
|
93
|
-
hold?: GuidanceOrder_Hold | undefined;
|
|
94
|
-
/**
|
|
95
|
-
* Speed through the water to keep, in knots. Absent: the planned speed of the current leg for
|
|
96
|
-
* `track`, the speed she has for a course or heading. Ignored by `hold`.
|
|
97
|
-
*/
|
|
98
|
-
speedKnots?: number | undefined;
|
|
99
|
-
}
|
|
100
|
-
/** Follow the planned track of the active route edition. */
|
|
101
|
-
export interface GuidanceOrder_Track {
|
|
102
|
-
$type: "keelson.GuidanceOrder.Track";
|
|
103
|
-
/**
|
|
104
|
-
* Rejoin at this waypoint (Waypoint.id, never an index). Absent: the leg the process judges
|
|
105
|
-
* current, which is how a hand-back from a course or heading order resumes.
|
|
106
|
-
*/
|
|
107
|
-
resumeFromWaypointId?: string | undefined;
|
|
108
|
-
}
|
|
109
|
-
/** Stop making way and keep station where the order finds her, until told otherwise. */
|
|
110
|
-
export interface GuidanceOrder_Hold {
|
|
111
|
-
$type: "keelson.GuidanceOrder.Hold";
|
|
112
|
-
}
|
|
113
70
|
export declare const NavigationState: MessageFns<NavigationState, "keelson.NavigationState">;
|
|
114
|
-
export declare const GuidanceOrder: MessageFns<GuidanceOrder, "keelson.GuidanceOrder">;
|
|
115
|
-
export declare const GuidanceOrder_Track: MessageFns<GuidanceOrder_Track, "keelson.GuidanceOrder.Track">;
|
|
116
|
-
export declare const GuidanceOrder_Hold: MessageFns<GuidanceOrder_Hold, "keelson.GuidanceOrder.Hold">;
|
|
117
71
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
118
72
|
type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
119
73
|
[K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: NavigationState.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.NavigationState = exports.navigationState_SubModeToJSON = exports.navigationState_SubModeFromJSON = exports.NavigationState_SubMode = exports.navigationState_ModeToJSON = exports.navigationState_ModeFromJSON = exports.NavigationState_Mode = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const OperationalAuthority_1 = require("./OperationalAuthority");
|
|
@@ -96,8 +96,6 @@ var NavigationState_SubMode;
|
|
|
96
96
|
NavigationState_SubMode[NavigationState_SubMode["SUB_MODE_HOLDING"] = 3] = "SUB_MODE_HOLDING";
|
|
97
97
|
/** SUB_MODE_REROUTING - awaiting a new route edition */
|
|
98
98
|
NavigationState_SubMode[NavigationState_SubMode["SUB_MODE_REROUTING"] = 4] = "SUB_MODE_REROUTING";
|
|
99
|
-
/** SUB_MODE_STEERING - holding an ordered course or heading, off the track (GuidanceOrder) */
|
|
100
|
-
NavigationState_SubMode[NavigationState_SubMode["SUB_MODE_STEERING"] = 5] = "SUB_MODE_STEERING";
|
|
101
99
|
NavigationState_SubMode[NavigationState_SubMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
102
100
|
})(NavigationState_SubMode || (exports.NavigationState_SubMode = NavigationState_SubMode = {}));
|
|
103
101
|
function navigationState_SubModeFromJSON(object) {
|
|
@@ -117,9 +115,6 @@ function navigationState_SubModeFromJSON(object) {
|
|
|
117
115
|
case 4:
|
|
118
116
|
case "SUB_MODE_REROUTING":
|
|
119
117
|
return NavigationState_SubMode.SUB_MODE_REROUTING;
|
|
120
|
-
case 5:
|
|
121
|
-
case "SUB_MODE_STEERING":
|
|
122
|
-
return NavigationState_SubMode.SUB_MODE_STEERING;
|
|
123
118
|
case -1:
|
|
124
119
|
case "UNRECOGNIZED":
|
|
125
120
|
default:
|
|
@@ -139,8 +134,6 @@ function navigationState_SubModeToJSON(object) {
|
|
|
139
134
|
return "SUB_MODE_HOLDING";
|
|
140
135
|
case NavigationState_SubMode.SUB_MODE_REROUTING:
|
|
141
136
|
return "SUB_MODE_REROUTING";
|
|
142
|
-
case NavigationState_SubMode.SUB_MODE_STEERING:
|
|
143
|
-
return "SUB_MODE_STEERING";
|
|
144
137
|
case NavigationState_SubMode.UNRECOGNIZED:
|
|
145
138
|
default:
|
|
146
139
|
return "UNRECOGNIZED";
|
|
@@ -160,7 +153,6 @@ function createBaseNavigationState() {
|
|
|
160
153
|
connHeld: false,
|
|
161
154
|
reason: "",
|
|
162
155
|
degradedInputs: [],
|
|
163
|
-
guidanceOrder: undefined,
|
|
164
156
|
};
|
|
165
157
|
}
|
|
166
158
|
exports.NavigationState = {
|
|
@@ -196,9 +188,6 @@ exports.NavigationState = {
|
|
|
196
188
|
for (const v of message.degradedInputs) {
|
|
197
189
|
writer.uint32(82).string(v);
|
|
198
190
|
}
|
|
199
|
-
if (message.guidanceOrder !== undefined) {
|
|
200
|
-
exports.GuidanceOrder.encode(message.guidanceOrder, writer.uint32(90).fork()).join();
|
|
201
|
-
}
|
|
202
191
|
return writer;
|
|
203
192
|
},
|
|
204
193
|
decode(input, length) {
|
|
@@ -278,13 +267,6 @@ exports.NavigationState = {
|
|
|
278
267
|
message.degradedInputs.push(reader.string());
|
|
279
268
|
continue;
|
|
280
269
|
}
|
|
281
|
-
case 11: {
|
|
282
|
-
if (tag !== 90) {
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
message.guidanceOrder = exports.GuidanceOrder.decode(reader, reader.uint32());
|
|
286
|
-
continue;
|
|
287
|
-
}
|
|
288
270
|
}
|
|
289
271
|
if ((tag & 7) === 4 || tag === 0) {
|
|
290
272
|
break;
|
|
@@ -312,7 +294,6 @@ exports.NavigationState = {
|
|
|
312
294
|
degradedInputs: globalThis.Array.isArray(object?.degradedInputs)
|
|
313
295
|
? object.degradedInputs.map((e) => globalThis.String(e))
|
|
314
296
|
: [],
|
|
315
|
-
guidanceOrder: isSet(object.guidanceOrder) ? exports.GuidanceOrder.fromJSON(object.guidanceOrder) : undefined,
|
|
316
297
|
};
|
|
317
298
|
},
|
|
318
299
|
toJSON(message) {
|
|
@@ -347,9 +328,6 @@ exports.NavigationState = {
|
|
|
347
328
|
if (message.degradedInputs?.length) {
|
|
348
329
|
obj.degradedInputs = message.degradedInputs;
|
|
349
330
|
}
|
|
350
|
-
if (message.guidanceOrder !== undefined) {
|
|
351
|
-
obj.guidanceOrder = exports.GuidanceOrder.toJSON(message.guidanceOrder);
|
|
352
|
-
}
|
|
353
331
|
return obj;
|
|
354
332
|
},
|
|
355
333
|
create(base) {
|
|
@@ -369,239 +347,10 @@ exports.NavigationState = {
|
|
|
369
347
|
message.connHeld = object.connHeld ?? false;
|
|
370
348
|
message.reason = object.reason ?? "";
|
|
371
349
|
message.degradedInputs = object.degradedInputs?.map((e) => e) || [];
|
|
372
|
-
message.guidanceOrder = (object.guidanceOrder !== undefined && object.guidanceOrder !== null)
|
|
373
|
-
? exports.GuidanceOrder.fromPartial(object.guidanceOrder)
|
|
374
|
-
: undefined;
|
|
375
350
|
return message;
|
|
376
351
|
},
|
|
377
352
|
};
|
|
378
353
|
typeRegistry_1.messageTypeRegistry.set(exports.NavigationState.$type, exports.NavigationState);
|
|
379
|
-
function createBaseGuidanceOrder() {
|
|
380
|
-
return {
|
|
381
|
-
$type: "keelson.GuidanceOrder",
|
|
382
|
-
track: undefined,
|
|
383
|
-
courseOverGroundDeg: undefined,
|
|
384
|
-
headingDeg: undefined,
|
|
385
|
-
hold: undefined,
|
|
386
|
-
speedKnots: undefined,
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
exports.GuidanceOrder = {
|
|
390
|
-
$type: "keelson.GuidanceOrder",
|
|
391
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
392
|
-
if (message.track !== undefined) {
|
|
393
|
-
exports.GuidanceOrder_Track.encode(message.track, writer.uint32(10).fork()).join();
|
|
394
|
-
}
|
|
395
|
-
if (message.courseOverGroundDeg !== undefined) {
|
|
396
|
-
writer.uint32(17).double(message.courseOverGroundDeg);
|
|
397
|
-
}
|
|
398
|
-
if (message.headingDeg !== undefined) {
|
|
399
|
-
writer.uint32(25).double(message.headingDeg);
|
|
400
|
-
}
|
|
401
|
-
if (message.hold !== undefined) {
|
|
402
|
-
exports.GuidanceOrder_Hold.encode(message.hold, writer.uint32(34).fork()).join();
|
|
403
|
-
}
|
|
404
|
-
if (message.speedKnots !== undefined) {
|
|
405
|
-
writer.uint32(41).double(message.speedKnots);
|
|
406
|
-
}
|
|
407
|
-
return writer;
|
|
408
|
-
},
|
|
409
|
-
decode(input, length) {
|
|
410
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
411
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
412
|
-
const message = createBaseGuidanceOrder();
|
|
413
|
-
while (reader.pos < end) {
|
|
414
|
-
const tag = reader.uint32();
|
|
415
|
-
switch (tag >>> 3) {
|
|
416
|
-
case 1: {
|
|
417
|
-
if (tag !== 10) {
|
|
418
|
-
break;
|
|
419
|
-
}
|
|
420
|
-
message.track = exports.GuidanceOrder_Track.decode(reader, reader.uint32());
|
|
421
|
-
continue;
|
|
422
|
-
}
|
|
423
|
-
case 2: {
|
|
424
|
-
if (tag !== 17) {
|
|
425
|
-
break;
|
|
426
|
-
}
|
|
427
|
-
message.courseOverGroundDeg = reader.double();
|
|
428
|
-
continue;
|
|
429
|
-
}
|
|
430
|
-
case 3: {
|
|
431
|
-
if (tag !== 25) {
|
|
432
|
-
break;
|
|
433
|
-
}
|
|
434
|
-
message.headingDeg = reader.double();
|
|
435
|
-
continue;
|
|
436
|
-
}
|
|
437
|
-
case 4: {
|
|
438
|
-
if (tag !== 34) {
|
|
439
|
-
break;
|
|
440
|
-
}
|
|
441
|
-
message.hold = exports.GuidanceOrder_Hold.decode(reader, reader.uint32());
|
|
442
|
-
continue;
|
|
443
|
-
}
|
|
444
|
-
case 5: {
|
|
445
|
-
if (tag !== 41) {
|
|
446
|
-
break;
|
|
447
|
-
}
|
|
448
|
-
message.speedKnots = reader.double();
|
|
449
|
-
continue;
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
453
|
-
break;
|
|
454
|
-
}
|
|
455
|
-
reader.skip(tag & 7);
|
|
456
|
-
}
|
|
457
|
-
return message;
|
|
458
|
-
},
|
|
459
|
-
fromJSON(object) {
|
|
460
|
-
return {
|
|
461
|
-
$type: exports.GuidanceOrder.$type,
|
|
462
|
-
track: isSet(object.track) ? exports.GuidanceOrder_Track.fromJSON(object.track) : undefined,
|
|
463
|
-
courseOverGroundDeg: isSet(object.courseOverGroundDeg)
|
|
464
|
-
? globalThis.Number(object.courseOverGroundDeg)
|
|
465
|
-
: undefined,
|
|
466
|
-
headingDeg: isSet(object.headingDeg) ? globalThis.Number(object.headingDeg) : undefined,
|
|
467
|
-
hold: isSet(object.hold) ? exports.GuidanceOrder_Hold.fromJSON(object.hold) : undefined,
|
|
468
|
-
speedKnots: isSet(object.speedKnots) ? globalThis.Number(object.speedKnots) : undefined,
|
|
469
|
-
};
|
|
470
|
-
},
|
|
471
|
-
toJSON(message) {
|
|
472
|
-
const obj = {};
|
|
473
|
-
if (message.track !== undefined) {
|
|
474
|
-
obj.track = exports.GuidanceOrder_Track.toJSON(message.track);
|
|
475
|
-
}
|
|
476
|
-
if (message.courseOverGroundDeg !== undefined) {
|
|
477
|
-
obj.courseOverGroundDeg = message.courseOverGroundDeg;
|
|
478
|
-
}
|
|
479
|
-
if (message.headingDeg !== undefined) {
|
|
480
|
-
obj.headingDeg = message.headingDeg;
|
|
481
|
-
}
|
|
482
|
-
if (message.hold !== undefined) {
|
|
483
|
-
obj.hold = exports.GuidanceOrder_Hold.toJSON(message.hold);
|
|
484
|
-
}
|
|
485
|
-
if (message.speedKnots !== undefined) {
|
|
486
|
-
obj.speedKnots = message.speedKnots;
|
|
487
|
-
}
|
|
488
|
-
return obj;
|
|
489
|
-
},
|
|
490
|
-
create(base) {
|
|
491
|
-
return exports.GuidanceOrder.fromPartial(base ?? {});
|
|
492
|
-
},
|
|
493
|
-
fromPartial(object) {
|
|
494
|
-
const message = createBaseGuidanceOrder();
|
|
495
|
-
message.track = (object.track !== undefined && object.track !== null)
|
|
496
|
-
? exports.GuidanceOrder_Track.fromPartial(object.track)
|
|
497
|
-
: undefined;
|
|
498
|
-
message.courseOverGroundDeg = object.courseOverGroundDeg ?? undefined;
|
|
499
|
-
message.headingDeg = object.headingDeg ?? undefined;
|
|
500
|
-
message.hold = (object.hold !== undefined && object.hold !== null)
|
|
501
|
-
? exports.GuidanceOrder_Hold.fromPartial(object.hold)
|
|
502
|
-
: undefined;
|
|
503
|
-
message.speedKnots = object.speedKnots ?? undefined;
|
|
504
|
-
return message;
|
|
505
|
-
},
|
|
506
|
-
};
|
|
507
|
-
typeRegistry_1.messageTypeRegistry.set(exports.GuidanceOrder.$type, exports.GuidanceOrder);
|
|
508
|
-
function createBaseGuidanceOrder_Track() {
|
|
509
|
-
return { $type: "keelson.GuidanceOrder.Track", resumeFromWaypointId: undefined };
|
|
510
|
-
}
|
|
511
|
-
exports.GuidanceOrder_Track = {
|
|
512
|
-
$type: "keelson.GuidanceOrder.Track",
|
|
513
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
514
|
-
if (message.resumeFromWaypointId !== undefined) {
|
|
515
|
-
writer.uint32(10).string(message.resumeFromWaypointId);
|
|
516
|
-
}
|
|
517
|
-
return writer;
|
|
518
|
-
},
|
|
519
|
-
decode(input, length) {
|
|
520
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
521
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
522
|
-
const message = createBaseGuidanceOrder_Track();
|
|
523
|
-
while (reader.pos < end) {
|
|
524
|
-
const tag = reader.uint32();
|
|
525
|
-
switch (tag >>> 3) {
|
|
526
|
-
case 1: {
|
|
527
|
-
if (tag !== 10) {
|
|
528
|
-
break;
|
|
529
|
-
}
|
|
530
|
-
message.resumeFromWaypointId = reader.string();
|
|
531
|
-
continue;
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
535
|
-
break;
|
|
536
|
-
}
|
|
537
|
-
reader.skip(tag & 7);
|
|
538
|
-
}
|
|
539
|
-
return message;
|
|
540
|
-
},
|
|
541
|
-
fromJSON(object) {
|
|
542
|
-
return {
|
|
543
|
-
$type: exports.GuidanceOrder_Track.$type,
|
|
544
|
-
resumeFromWaypointId: isSet(object.resumeFromWaypointId)
|
|
545
|
-
? globalThis.String(object.resumeFromWaypointId)
|
|
546
|
-
: undefined,
|
|
547
|
-
};
|
|
548
|
-
},
|
|
549
|
-
toJSON(message) {
|
|
550
|
-
const obj = {};
|
|
551
|
-
if (message.resumeFromWaypointId !== undefined) {
|
|
552
|
-
obj.resumeFromWaypointId = message.resumeFromWaypointId;
|
|
553
|
-
}
|
|
554
|
-
return obj;
|
|
555
|
-
},
|
|
556
|
-
create(base) {
|
|
557
|
-
return exports.GuidanceOrder_Track.fromPartial(base ?? {});
|
|
558
|
-
},
|
|
559
|
-
fromPartial(object) {
|
|
560
|
-
const message = createBaseGuidanceOrder_Track();
|
|
561
|
-
message.resumeFromWaypointId = object.resumeFromWaypointId ?? undefined;
|
|
562
|
-
return message;
|
|
563
|
-
},
|
|
564
|
-
};
|
|
565
|
-
typeRegistry_1.messageTypeRegistry.set(exports.GuidanceOrder_Track.$type, exports.GuidanceOrder_Track);
|
|
566
|
-
function createBaseGuidanceOrder_Hold() {
|
|
567
|
-
return { $type: "keelson.GuidanceOrder.Hold" };
|
|
568
|
-
}
|
|
569
|
-
exports.GuidanceOrder_Hold = {
|
|
570
|
-
$type: "keelson.GuidanceOrder.Hold",
|
|
571
|
-
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
572
|
-
return writer;
|
|
573
|
-
},
|
|
574
|
-
decode(input, length) {
|
|
575
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
576
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
577
|
-
const message = createBaseGuidanceOrder_Hold();
|
|
578
|
-
while (reader.pos < end) {
|
|
579
|
-
const tag = reader.uint32();
|
|
580
|
-
switch (tag >>> 3) {
|
|
581
|
-
}
|
|
582
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
583
|
-
break;
|
|
584
|
-
}
|
|
585
|
-
reader.skip(tag & 7);
|
|
586
|
-
}
|
|
587
|
-
return message;
|
|
588
|
-
},
|
|
589
|
-
fromJSON(_) {
|
|
590
|
-
return { $type: exports.GuidanceOrder_Hold.$type };
|
|
591
|
-
},
|
|
592
|
-
toJSON(_) {
|
|
593
|
-
const obj = {};
|
|
594
|
-
return obj;
|
|
595
|
-
},
|
|
596
|
-
create(base) {
|
|
597
|
-
return exports.GuidanceOrder_Hold.fromPartial(base ?? {});
|
|
598
|
-
},
|
|
599
|
-
fromPartial(_) {
|
|
600
|
-
const message = createBaseGuidanceOrder_Hold();
|
|
601
|
-
return message;
|
|
602
|
-
},
|
|
603
|
-
};
|
|
604
|
-
typeRegistry_1.messageTypeRegistry.set(exports.GuidanceOrder_Hold.$type, exports.GuidanceOrder_Hold);
|
|
605
354
|
function toTimestamp(date) {
|
|
606
355
|
const seconds = Math.trunc(date.getTime() / 1000);
|
|
607
356
|
const nanos = (date.getTime() % 1000) * 1000000;
|
package/dist/payloads/Route.d.ts
CHANGED
|
@@ -98,6 +98,34 @@ export declare enum GeometryType {
|
|
|
98
98
|
}
|
|
99
99
|
export declare function geometryTypeFromJSON(object: any): GeometryType;
|
|
100
100
|
export declare function geometryTypeToJSON(object: GeometryType): string;
|
|
101
|
+
/**
|
|
102
|
+
* How a leg's XTD corridor is shaped. UNSPECIFIED MUST be read as FIXED:
|
|
103
|
+
* every leg published before this field existed is a fixed-width corridor, and
|
|
104
|
+
* reading it any other way would change routes nobody edited.
|
|
105
|
+
*/
|
|
106
|
+
export declare enum XtdCorridorMode {
|
|
107
|
+
XTD_CORRIDOR_MODE_UNSPECIFIED = 0,
|
|
108
|
+
/**
|
|
109
|
+
* XTD_CORRIDOR_MODE_FIXED - Fixed width: parallel lines at xtd_port_m / xtd_starboard_m either side of
|
|
110
|
+
* track.
|
|
111
|
+
*/
|
|
112
|
+
XTD_CORRIDOR_MODE_FIXED = 1,
|
|
113
|
+
/**
|
|
114
|
+
* XTD_CORRIDOR_MODE_VARIABLE - Variable width: a boundary drawn by the planner (Leg.xtd_port_boundary /
|
|
115
|
+
* xtd_starboard_boundary), e.g. a corridor that narrows past a shoal.
|
|
116
|
+
* The metre fields (xtd_port_m / xtd_starboard_m and the monitoring pair)
|
|
117
|
+
* MUST NOT exceed the closest approach to track of that side's drawn
|
|
118
|
+
* boundary: they are the INSCRIBED fixed corridor. A monitor that does not
|
|
119
|
+
* evaluate the boundary then alarms early on a wide stretch and never late at
|
|
120
|
+
* the narrow one, which is the direction an XTD limit has to fail. Such a
|
|
121
|
+
* monitor SHOULD report the leg as monitored at reduced fidelity, which is
|
|
122
|
+
* why its alarm may come early.
|
|
123
|
+
*/
|
|
124
|
+
XTD_CORRIDOR_MODE_VARIABLE = 2,
|
|
125
|
+
UNRECOGNIZED = -1
|
|
126
|
+
}
|
|
127
|
+
export declare function xtdCorridorModeFromJSON(object: any): XtdCorridorMode;
|
|
128
|
+
export declare function xtdCorridorModeToJSON(object: XtdCorridorMode): string;
|
|
101
129
|
/**
|
|
102
130
|
* Whether a route's waypoint list closes back on itself. RTZ 1.2 has no such
|
|
103
131
|
* concept, so producers either repeated the first waypoint (breaking id
|
|
@@ -389,6 +417,9 @@ export interface Waypoints {
|
|
|
389
417
|
* route sets no default speed" as distinct from "this route defaults to
|
|
390
418
|
* zero", and a consumer merging defaults into a waypoint cannot tell which
|
|
391
419
|
* it was handed.
|
|
420
|
+
*
|
|
421
|
+
* `Leg.xtd_corridor_mode` and both boundary lists are ignored here: a drawn
|
|
422
|
+
* corridor belongs to one stretch of water and cannot be a default (§6.2.2).
|
|
392
423
|
*/
|
|
393
424
|
export interface DefaultWaypoint {
|
|
394
425
|
$type: "keelson.DefaultWaypoint";
|
|
@@ -470,12 +501,29 @@ export interface Leg {
|
|
|
470
501
|
/**
|
|
471
502
|
* Cross-track distance (XTD) limits and monitoring thresholds, in metres.
|
|
472
503
|
* `optional` so producers can distinguish "no XTD limit" (unset) from
|
|
473
|
-
* "zero XTD limit" (set to 0).
|
|
504
|
+
* "zero XTD limit" (set to 0). Under XTD_CORRIDOR_MODE_VARIABLE all four are
|
|
505
|
+
* the inscribed corridor (protocol-specification.md §6.2.2).
|
|
474
506
|
*/
|
|
475
507
|
xtdPortM?: number | undefined;
|
|
476
508
|
xtdStarboardM?: number | undefined;
|
|
477
509
|
xtdMonitoringPortM?: number | undefined;
|
|
478
510
|
xtdMonitoringStarboardM?: number | undefined;
|
|
511
|
+
/**
|
|
512
|
+
* Whether this leg's XTD corridor is fixed or variable width. See XtdCorridorMode and
|
|
513
|
+
* protocol-specification.md §6.2.2.
|
|
514
|
+
*/
|
|
515
|
+
xtdCorridorMode: XtdCorridorMode;
|
|
516
|
+
/**
|
|
517
|
+
* VARIABLE only: the drawn corridor boundary on each side, vertices in
|
|
518
|
+
* along-track order, covering this leg and the turn at the waypoint it
|
|
519
|
+
* arrives at. A consumer MUST ignore both lists unless the mode is VARIABLE,
|
|
520
|
+
* so a stale shape left behind by a switch back to FIXED is never sailed.
|
|
521
|
+
* Where the next leg is VARIABLE too, the last vertex on a side SHOULD
|
|
522
|
+
* coincide with the first vertex of waypoint[i+1].leg's list on that side, so
|
|
523
|
+
* a monitor meets neither a gap nor an overlap at the junction.
|
|
524
|
+
*/
|
|
525
|
+
xtdPortBoundary: XtdBoundaryPoint[];
|
|
526
|
+
xtdStarboardBoundary: XtdBoundaryPoint[];
|
|
479
527
|
/**
|
|
480
528
|
* Safety contour (depth in metres below chart datum) below which the route
|
|
481
529
|
* is considered unsafe.
|
|
@@ -524,6 +572,37 @@ export interface Leg {
|
|
|
524
572
|
colregTrafficIntensity: ColregTrafficIntensity;
|
|
525
573
|
extensions: Extensions | undefined;
|
|
526
574
|
}
|
|
575
|
+
/**
|
|
576
|
+
* One vertex of a variable-width XTD corridor boundary (Leg.xtd_port_boundary /
|
|
577
|
+
* Leg.xtd_starboard_boundary).
|
|
578
|
+
*/
|
|
579
|
+
export interface XtdBoundaryPoint {
|
|
580
|
+
$type: "keelson.XtdBoundaryPoint";
|
|
581
|
+
/**
|
|
582
|
+
* WGS-84 vertex. Authoritative: this is the boundary a monitor checks
|
|
583
|
+
* against, whatever the anchor below says.
|
|
584
|
+
*/
|
|
585
|
+
position: Coordinate | undefined;
|
|
586
|
+
/**
|
|
587
|
+
* Editor anchor — where along the leg's straight the vertex was placed,
|
|
588
|
+
* 0 at the leg's start and 1 at its end, and how far off track. Lets an
|
|
589
|
+
* editor keep the vertex attached to the leg when a waypoint moves, instead
|
|
590
|
+
* of leaving it stranded at its old position. `optional` because a vertex
|
|
591
|
+
* placed freely (at a leg end or inside a turn) has no such anchor, and 0
|
|
592
|
+
* is a real fraction.
|
|
593
|
+
*/
|
|
594
|
+
alongTrackFraction?: number | undefined;
|
|
595
|
+
/**
|
|
596
|
+
* Perpendicular distance from track for that anchor, metres, always
|
|
597
|
+
* positive: the side is given by which boundary list holds the vertex.
|
|
598
|
+
*/
|
|
599
|
+
offsetM?: number | undefined;
|
|
600
|
+
/**
|
|
601
|
+
* True when the vertex lies on the turn at the leg's end rather than on the
|
|
602
|
+
* straight.
|
|
603
|
+
*/
|
|
604
|
+
inTurn: boolean;
|
|
605
|
+
}
|
|
527
606
|
export interface Schedules {
|
|
528
607
|
$type: "keelson.Schedules";
|
|
529
608
|
/** Multiple schedules can coexist (e.g. "manual", "weather-optimized"). */
|
|
@@ -719,6 +798,7 @@ export declare const Waypoints: MessageFns<Waypoints, "keelson.Waypoints">;
|
|
|
719
798
|
export declare const DefaultWaypoint: MessageFns<DefaultWaypoint, "keelson.DefaultWaypoint">;
|
|
720
799
|
export declare const Waypoint: MessageFns<Waypoint, "keelson.Waypoint">;
|
|
721
800
|
export declare const Leg: MessageFns<Leg, "keelson.Leg">;
|
|
801
|
+
export declare const XtdBoundaryPoint: MessageFns<XtdBoundaryPoint, "keelson.XtdBoundaryPoint">;
|
|
722
802
|
export declare const Schedules: MessageFns<Schedules, "keelson.Schedules">;
|
|
723
803
|
export declare const Schedule: MessageFns<Schedule, "keelson.Schedule">;
|
|
724
804
|
export declare const ScheduleElement: MessageFns<ScheduleElement, "keelson.ScheduleElement">;
|