@rise-maritime/keelson-js 0.5.3 → 0.6.0-alpha.202.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 +524 -1
- package/dist/index.js +114 -5
- package/dist/index.test.js +57 -0
- package/dist/interfaces/AlarmAck.d.ts +62 -0
- package/dist/interfaces/AlarmAck.js +218 -0
- package/dist/interfaces/Configurable.d.ts +24 -18
- package/dist/interfaces/Configurable.js +24 -22
- package/dist/interfaces/Coordinate.d.ts +38 -0
- package/dist/interfaces/Coordinate.js +82 -0
- package/dist/interfaces/ErrorResponse.d.ts +1 -1
- package/dist/interfaces/ErrorResponse.js +1 -1
- package/dist/interfaces/MavlinkCommand.d.ts +24 -18
- package/dist/interfaces/MavlinkCommand.js +24 -22
- package/dist/interfaces/Mission.d.ts +128 -0
- package/dist/interfaces/Mission.js +800 -0
- package/dist/interfaces/NetworkPingPong.d.ts +16 -16
- package/dist/interfaces/NetworkPingPong.js +16 -16
- package/dist/interfaces/ReplayControl.d.ts +72 -30
- package/dist/interfaces/ReplayControl.js +72 -58
- package/dist/interfaces/Route.d.ts +640 -0
- package/dist/interfaces/Route.js +4180 -0
- package/dist/interfaces/RoutePlanner.d.ts +152 -0
- package/dist/interfaces/RoutePlanner.js +268 -0
- package/dist/interfaces/ScenarioCheckpoint.d.ts +154 -0
- package/dist/interfaces/ScenarioCheckpoint.js +694 -0
- package/dist/interfaces/ScenarioControl.d.ts +144 -0
- package/dist/interfaces/ScenarioControl.js +552 -0
- package/dist/interfaces/Severity.d.ts +22 -0
- package/dist/interfaces/Severity.js +72 -0
- package/dist/interfaces/SimulationControl.d.ts +69 -0
- package/dist/interfaces/SimulationControl.js +153 -0
- package/dist/interfaces/Subscriber.d.ts +24 -18
- package/dist/interfaces/Subscriber.js +24 -22
- package/dist/interfaces/VehicleCommon.d.ts +1 -32
- package/dist/interfaces/VehicleCommon.js +2 -74
- package/dist/interfaces/VehicleControl.d.ts +34 -28
- package/dist/interfaces/VehicleControl.js +34 -22
- package/dist/interfaces/VehicleGeofence.d.ts +26 -19
- package/dist/interfaces/VehicleGeofence.js +40 -37
- package/dist/interfaces/VehicleLifecycle.d.ts +32 -20
- package/dist/interfaces/VehicleLifecycle.js +32 -28
- package/dist/interfaces/VehicleMission.d.ts +42 -97
- package/dist/interfaces/VehicleMission.js +41 -696
- package/dist/interfaces/VehicleNavigation.d.ts +30 -24
- package/dist/interfaces/VehicleNavigation.js +30 -22
- package/dist/interfaces/VehicleParam.d.ts +48 -24
- package/dist/interfaces/VehicleParam.js +48 -40
- package/dist/interfaces/VehicleSimulatorControl.d.ts +57 -0
- package/dist/interfaces/VehicleSimulatorControl.js +155 -0
- package/dist/interfaces/WHEPProxy.d.ts +16 -16
- package/dist/interfaces/WHEPProxy.js +16 -16
- package/dist/interfaces/foxglove/GeoJSON.d.ts +27 -0
- package/dist/interfaces/foxglove/GeoJSON.js +65 -0
- package/dist/interfaces/foxglove/LocationFix.d.ts +49 -0
- package/dist/interfaces/foxglove/LocationFix.js +246 -0
- package/dist/interfaces/google/protobuf/any.d.ts +144 -0
- package/dist/interfaces/google/protobuf/any.js +107 -0
- package/dist/interfaces/google/protobuf/duration.d.ts +99 -0
- package/dist/interfaces/google/protobuf/duration.js +92 -0
- package/dist/interfaces/serviceRegistry.d.ts +520 -0
- package/dist/interfaces/serviceRegistry.js +40 -0
- package/dist/interfaces.json +19 -0
- package/dist/payloads/Alarm.d.ts +7 -12
- package/dist/payloads/Alarm.js +4 -54
- package/dist/payloads/ChecklistEvent.d.ts +152 -0
- package/dist/payloads/ChecklistEvent.js +524 -0
- package/dist/payloads/ChecklistEvidence.d.ts +79 -0
- package/dist/payloads/ChecklistEvidence.js +287 -0
- package/dist/payloads/ChecklistPresence.d.ts +68 -0
- package/dist/payloads/ChecklistPresence.js +286 -0
- package/dist/payloads/ChecklistProcedure.d.ts +81 -0
- package/dist/payloads/ChecklistProcedure.js +364 -0
- package/dist/payloads/ChecklistState.d.ts +178 -0
- package/dist/payloads/ChecklistState.js +838 -0
- package/dist/payloads/CommandAuthority.d.ts +82 -0
- package/dist/payloads/CommandAuthority.js +364 -0
- package/dist/payloads/Coordinate.d.ts +39 -0
- package/dist/payloads/Coordinate.js +85 -0
- package/dist/payloads/EntityHealth.d.ts +9 -0
- package/dist/payloads/EntityHealth.js +14 -0
- package/dist/payloads/Mission.d.ts +137 -0
- package/dist/payloads/Mission.js +826 -0
- package/dist/payloads/OperationalAuthority.d.ts +172 -5
- package/dist/payloads/OperationalAuthority.js +525 -6
- package/dist/payloads/Route.d.ts +662 -0
- package/dist/payloads/Route.js +4289 -0
- package/dist/payloads/RouteChangeEvent.d.ts +42 -0
- package/dist/payloads/RouteChangeEvent.js +223 -0
- package/dist/payloads/RouteEditAuthority.d.ts +87 -0
- package/dist/payloads/RouteEditAuthority.js +380 -0
- package/dist/payloads/RouteExecution.d.ts +64 -0
- package/dist/payloads/RouteExecution.js +310 -0
- package/dist/payloads/ScenarioStatus.d.ts +160 -0
- package/dist/payloads/ScenarioStatus.js +654 -0
- package/dist/payloads/Severity.d.ts +13 -6
- package/dist/payloads/Severity.js +30 -18
- package/dist/payloads/SimulationStatus.d.ts +3 -4
- package/dist/payloads/SimulationStatus.js +12 -18
- package/dist/payloads/TestObjectStatus.d.ts +154 -0
- package/dist/payloads/TestObjectStatus.js +580 -0
- package/dist/payloads/VesselType.d.ts +2 -1
- package/dist/payloads/VesselType.js +1 -1
- package/dist/payloads/Voyage.d.ts +154 -0
- package/dist/payloads/Voyage.js +866 -0
- package/dist/payloads/WarrantRecord.d.ts +168 -0
- package/dist/payloads/WarrantRecord.js +781 -0
- package/dist/payloads/foxglove/CompressedPointCloud.d.ts +37 -0
- package/dist/payloads/foxglove/CompressedPointCloud.js +185 -0
- package/dist/payloads/google/protobuf/any.d.ts +145 -0
- package/dist/payloads/google/protobuf/any.js +110 -0
- package/dist/payloads/google/protobuf/empty.d.ts +34 -0
- package/dist/payloads/google/protobuf/empty.js +50 -0
- package/dist/payloads/index.foxglove.d.ts +1 -0
- package/dist/payloads/index.foxglove.js +1 -0
- package/dist/payloads/index.google.protobuf.d.ts +2 -0
- package/dist/payloads/index.google.protobuf.js +2 -0
- package/dist/payloads/index.keelson.d.ts +17 -1
- package/dist/payloads/index.keelson.js +17 -1
- package/dist/qos.json +95 -0
- package/dist/subjects.json +38 -1
- package/package.json +2 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const protobufPackage = "keelson";
|
|
2
|
+
/**
|
|
3
|
+
* Shared severity vocabulary for alarms, alerts and events across
|
|
4
|
+
* payloads (alarm, weather, route, ...). Keep this the single source of
|
|
5
|
+
* truth so the bus does not accumulate per-domain severity scales.
|
|
6
|
+
*
|
|
7
|
+
* Four levels, unified from the previously-parallel Alarm.Severity
|
|
8
|
+
* (LOW/MEDIUM/HIGH/CRITICAL) and the 3-level alert scale
|
|
9
|
+
* (INFO/WARNING/CRITICAL): informational maps to LOW, warning-grade
|
|
10
|
+
* maps to MEDIUM or HIGH per the emitter's judgement, CRITICAL stays
|
|
11
|
+
* CRITICAL.
|
|
12
|
+
*/
|
|
13
|
+
export declare enum SeverityLevel {
|
|
14
|
+
SEVERITY_LEVEL_UNSPECIFIED = 0,
|
|
15
|
+
SEVERITY_LEVEL_LOW = 1,
|
|
16
|
+
SEVERITY_LEVEL_MEDIUM = 2,
|
|
17
|
+
SEVERITY_LEVEL_HIGH = 3,
|
|
18
|
+
SEVERITY_LEVEL_CRITICAL = 4,
|
|
19
|
+
UNRECOGNIZED = -1
|
|
20
|
+
}
|
|
21
|
+
export declare function severityLevelFromJSON(object: any): SeverityLevel;
|
|
22
|
+
export declare function severityLevelToJSON(object: SeverityLevel): string;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc v6.30.2
|
|
6
|
+
// source: Severity.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.severityLevelToJSON = exports.severityLevelFromJSON = exports.SeverityLevel = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
exports.protobufPackage = "keelson";
|
|
11
|
+
/**
|
|
12
|
+
* Shared severity vocabulary for alarms, alerts and events across
|
|
13
|
+
* payloads (alarm, weather, route, ...). Keep this the single source of
|
|
14
|
+
* truth so the bus does not accumulate per-domain severity scales.
|
|
15
|
+
*
|
|
16
|
+
* Four levels, unified from the previously-parallel Alarm.Severity
|
|
17
|
+
* (LOW/MEDIUM/HIGH/CRITICAL) and the 3-level alert scale
|
|
18
|
+
* (INFO/WARNING/CRITICAL): informational maps to LOW, warning-grade
|
|
19
|
+
* maps to MEDIUM or HIGH per the emitter's judgement, CRITICAL stays
|
|
20
|
+
* CRITICAL.
|
|
21
|
+
*/
|
|
22
|
+
var SeverityLevel;
|
|
23
|
+
(function (SeverityLevel) {
|
|
24
|
+
SeverityLevel[SeverityLevel["SEVERITY_LEVEL_UNSPECIFIED"] = 0] = "SEVERITY_LEVEL_UNSPECIFIED";
|
|
25
|
+
SeverityLevel[SeverityLevel["SEVERITY_LEVEL_LOW"] = 1] = "SEVERITY_LEVEL_LOW";
|
|
26
|
+
SeverityLevel[SeverityLevel["SEVERITY_LEVEL_MEDIUM"] = 2] = "SEVERITY_LEVEL_MEDIUM";
|
|
27
|
+
SeverityLevel[SeverityLevel["SEVERITY_LEVEL_HIGH"] = 3] = "SEVERITY_LEVEL_HIGH";
|
|
28
|
+
SeverityLevel[SeverityLevel["SEVERITY_LEVEL_CRITICAL"] = 4] = "SEVERITY_LEVEL_CRITICAL";
|
|
29
|
+
SeverityLevel[SeverityLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
30
|
+
})(SeverityLevel || (exports.SeverityLevel = SeverityLevel = {}));
|
|
31
|
+
function severityLevelFromJSON(object) {
|
|
32
|
+
switch (object) {
|
|
33
|
+
case 0:
|
|
34
|
+
case "SEVERITY_LEVEL_UNSPECIFIED":
|
|
35
|
+
return SeverityLevel.SEVERITY_LEVEL_UNSPECIFIED;
|
|
36
|
+
case 1:
|
|
37
|
+
case "SEVERITY_LEVEL_LOW":
|
|
38
|
+
return SeverityLevel.SEVERITY_LEVEL_LOW;
|
|
39
|
+
case 2:
|
|
40
|
+
case "SEVERITY_LEVEL_MEDIUM":
|
|
41
|
+
return SeverityLevel.SEVERITY_LEVEL_MEDIUM;
|
|
42
|
+
case 3:
|
|
43
|
+
case "SEVERITY_LEVEL_HIGH":
|
|
44
|
+
return SeverityLevel.SEVERITY_LEVEL_HIGH;
|
|
45
|
+
case 4:
|
|
46
|
+
case "SEVERITY_LEVEL_CRITICAL":
|
|
47
|
+
return SeverityLevel.SEVERITY_LEVEL_CRITICAL;
|
|
48
|
+
case -1:
|
|
49
|
+
case "UNRECOGNIZED":
|
|
50
|
+
default:
|
|
51
|
+
return SeverityLevel.UNRECOGNIZED;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.severityLevelFromJSON = severityLevelFromJSON;
|
|
55
|
+
function severityLevelToJSON(object) {
|
|
56
|
+
switch (object) {
|
|
57
|
+
case SeverityLevel.SEVERITY_LEVEL_UNSPECIFIED:
|
|
58
|
+
return "SEVERITY_LEVEL_UNSPECIFIED";
|
|
59
|
+
case SeverityLevel.SEVERITY_LEVEL_LOW:
|
|
60
|
+
return "SEVERITY_LEVEL_LOW";
|
|
61
|
+
case SeverityLevel.SEVERITY_LEVEL_MEDIUM:
|
|
62
|
+
return "SEVERITY_LEVEL_MEDIUM";
|
|
63
|
+
case SeverityLevel.SEVERITY_LEVEL_HIGH:
|
|
64
|
+
return "SEVERITY_LEVEL_HIGH";
|
|
65
|
+
case SeverityLevel.SEVERITY_LEVEL_CRITICAL:
|
|
66
|
+
return "SEVERITY_LEVEL_CRITICAL";
|
|
67
|
+
case SeverityLevel.UNRECOGNIZED:
|
|
68
|
+
default:
|
|
69
|
+
return "UNRECOGNIZED";
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.severityLevelToJSON = severityLevelToJSON;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Empty } from "./google/protobuf/empty";
|
|
3
|
+
export declare const protobufPackage = "keelson.interfaces.simulation_control";
|
|
4
|
+
/**
|
|
5
|
+
* One response message per RPC, empty for now. Each is dedicated to its
|
|
6
|
+
* method so an individual command can grow a return field later (e.g.
|
|
7
|
+
* start/pause returning the authoritative sim-time at the transition)
|
|
8
|
+
* without a breaking type change and without that field bleeding onto the
|
|
9
|
+
* other commands.
|
|
10
|
+
*/
|
|
11
|
+
export interface StartResponse {
|
|
12
|
+
}
|
|
13
|
+
export interface PauseResponse {
|
|
14
|
+
}
|
|
15
|
+
export interface StopResponse {
|
|
16
|
+
}
|
|
17
|
+
export declare const StartResponse: MessageFns<StartResponse>;
|
|
18
|
+
export declare const PauseResponse: MessageFns<PauseResponse>;
|
|
19
|
+
export declare const StopResponse: MessageFns<StopResponse>;
|
|
20
|
+
export type SimulationControlDefinition = typeof SimulationControlDefinition;
|
|
21
|
+
export declare const SimulationControlDefinition: {
|
|
22
|
+
readonly name: "SimulationControl";
|
|
23
|
+
readonly fullName: "keelson.interfaces.simulation_control.SimulationControl";
|
|
24
|
+
readonly methods: {
|
|
25
|
+
readonly start: {
|
|
26
|
+
readonly name: "start";
|
|
27
|
+
readonly requestType: import("./google/protobuf/empty").MessageFns<Empty>;
|
|
28
|
+
readonly requestStream: false;
|
|
29
|
+
readonly responseType: MessageFns<StartResponse>;
|
|
30
|
+
readonly responseStream: false;
|
|
31
|
+
readonly options: {};
|
|
32
|
+
};
|
|
33
|
+
readonly pause: {
|
|
34
|
+
readonly name: "pause";
|
|
35
|
+
readonly requestType: import("./google/protobuf/empty").MessageFns<Empty>;
|
|
36
|
+
readonly requestStream: false;
|
|
37
|
+
readonly responseType: MessageFns<PauseResponse>;
|
|
38
|
+
readonly responseStream: false;
|
|
39
|
+
readonly options: {};
|
|
40
|
+
};
|
|
41
|
+
readonly stop: {
|
|
42
|
+
readonly name: "stop";
|
|
43
|
+
readonly requestType: import("./google/protobuf/empty").MessageFns<Empty>;
|
|
44
|
+
readonly requestStream: false;
|
|
45
|
+
readonly responseType: MessageFns<StopResponse>;
|
|
46
|
+
readonly responseStream: false;
|
|
47
|
+
readonly options: {};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
52
|
+
export 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 {} ? {
|
|
53
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
54
|
+
} : Partial<T>;
|
|
55
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
56
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
57
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
58
|
+
} & {
|
|
59
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
60
|
+
};
|
|
61
|
+
export interface MessageFns<T> {
|
|
62
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
63
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
64
|
+
fromJSON(object: any): T;
|
|
65
|
+
toJSON(message: T): unknown;
|
|
66
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
67
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.6.1
|
|
5
|
+
// protoc v6.30.2
|
|
6
|
+
// source: SimulationControl.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.SimulationControlDefinition = exports.StopResponse = exports.PauseResponse = exports.StartResponse = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const empty_1 = require("./google/protobuf/empty");
|
|
12
|
+
exports.protobufPackage = "keelson.interfaces.simulation_control";
|
|
13
|
+
function createBaseStartResponse() {
|
|
14
|
+
return {};
|
|
15
|
+
}
|
|
16
|
+
exports.StartResponse = {
|
|
17
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
18
|
+
return writer;
|
|
19
|
+
},
|
|
20
|
+
decode(input, length) {
|
|
21
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
22
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
23
|
+
const message = createBaseStartResponse();
|
|
24
|
+
while (reader.pos < end) {
|
|
25
|
+
const tag = reader.uint32();
|
|
26
|
+
switch (tag >>> 3) {
|
|
27
|
+
}
|
|
28
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
reader.skip(tag & 7);
|
|
32
|
+
}
|
|
33
|
+
return message;
|
|
34
|
+
},
|
|
35
|
+
fromJSON(_) {
|
|
36
|
+
return {};
|
|
37
|
+
},
|
|
38
|
+
toJSON(_) {
|
|
39
|
+
const obj = {};
|
|
40
|
+
return obj;
|
|
41
|
+
},
|
|
42
|
+
create(base) {
|
|
43
|
+
return exports.StartResponse.fromPartial(base ?? {});
|
|
44
|
+
},
|
|
45
|
+
fromPartial(_) {
|
|
46
|
+
const message = createBaseStartResponse();
|
|
47
|
+
return message;
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
function createBasePauseResponse() {
|
|
51
|
+
return {};
|
|
52
|
+
}
|
|
53
|
+
exports.PauseResponse = {
|
|
54
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
55
|
+
return writer;
|
|
56
|
+
},
|
|
57
|
+
decode(input, length) {
|
|
58
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
59
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
60
|
+
const message = createBasePauseResponse();
|
|
61
|
+
while (reader.pos < end) {
|
|
62
|
+
const tag = reader.uint32();
|
|
63
|
+
switch (tag >>> 3) {
|
|
64
|
+
}
|
|
65
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
reader.skip(tag & 7);
|
|
69
|
+
}
|
|
70
|
+
return message;
|
|
71
|
+
},
|
|
72
|
+
fromJSON(_) {
|
|
73
|
+
return {};
|
|
74
|
+
},
|
|
75
|
+
toJSON(_) {
|
|
76
|
+
const obj = {};
|
|
77
|
+
return obj;
|
|
78
|
+
},
|
|
79
|
+
create(base) {
|
|
80
|
+
return exports.PauseResponse.fromPartial(base ?? {});
|
|
81
|
+
},
|
|
82
|
+
fromPartial(_) {
|
|
83
|
+
const message = createBasePauseResponse();
|
|
84
|
+
return message;
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
function createBaseStopResponse() {
|
|
88
|
+
return {};
|
|
89
|
+
}
|
|
90
|
+
exports.StopResponse = {
|
|
91
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
92
|
+
return writer;
|
|
93
|
+
},
|
|
94
|
+
decode(input, length) {
|
|
95
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
96
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
97
|
+
const message = createBaseStopResponse();
|
|
98
|
+
while (reader.pos < end) {
|
|
99
|
+
const tag = reader.uint32();
|
|
100
|
+
switch (tag >>> 3) {
|
|
101
|
+
}
|
|
102
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
reader.skip(tag & 7);
|
|
106
|
+
}
|
|
107
|
+
return message;
|
|
108
|
+
},
|
|
109
|
+
fromJSON(_) {
|
|
110
|
+
return {};
|
|
111
|
+
},
|
|
112
|
+
toJSON(_) {
|
|
113
|
+
const obj = {};
|
|
114
|
+
return obj;
|
|
115
|
+
},
|
|
116
|
+
create(base) {
|
|
117
|
+
return exports.StopResponse.fromPartial(base ?? {});
|
|
118
|
+
},
|
|
119
|
+
fromPartial(_) {
|
|
120
|
+
const message = createBaseStopResponse();
|
|
121
|
+
return message;
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
exports.SimulationControlDefinition = {
|
|
125
|
+
name: "SimulationControl",
|
|
126
|
+
fullName: "keelson.interfaces.simulation_control.SimulationControl",
|
|
127
|
+
methods: {
|
|
128
|
+
start: {
|
|
129
|
+
name: "start",
|
|
130
|
+
requestType: empty_1.Empty,
|
|
131
|
+
requestStream: false,
|
|
132
|
+
responseType: exports.StartResponse,
|
|
133
|
+
responseStream: false,
|
|
134
|
+
options: {},
|
|
135
|
+
},
|
|
136
|
+
pause: {
|
|
137
|
+
name: "pause",
|
|
138
|
+
requestType: empty_1.Empty,
|
|
139
|
+
requestStream: false,
|
|
140
|
+
responseType: exports.PauseResponse,
|
|
141
|
+
responseStream: false,
|
|
142
|
+
options: {},
|
|
143
|
+
},
|
|
144
|
+
stop: {
|
|
145
|
+
name: "stop",
|
|
146
|
+
requestType: empty_1.Empty,
|
|
147
|
+
requestStream: false,
|
|
148
|
+
responseType: exports.StopResponse,
|
|
149
|
+
responseStream: false,
|
|
150
|
+
options: {},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Empty } from "./google/protobuf/empty";
|
|
3
|
-
export declare const protobufPackage = "";
|
|
3
|
+
export declare const protobufPackage = "keelson.interfaces.subscriber";
|
|
4
4
|
export interface Subscriptions {
|
|
5
5
|
/** subject -> topic mapping */
|
|
6
6
|
subscriptions: {
|
|
@@ -16,23 +16,29 @@ export interface SubscriberSuccessResponse {
|
|
|
16
16
|
export declare const Subscriptions: MessageFns<Subscriptions>;
|
|
17
17
|
export declare const Subscriptions_SubscriptionsEntry: MessageFns<Subscriptions_SubscriptionsEntry>;
|
|
18
18
|
export declare const SubscriberSuccessResponse: MessageFns<SubscriberSuccessResponse>;
|
|
19
|
-
export
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
export type SubscriberDefinition = typeof SubscriberDefinition;
|
|
20
|
+
export declare const SubscriberDefinition: {
|
|
21
|
+
readonly name: "Subscriber";
|
|
22
|
+
readonly fullName: "keelson.interfaces.subscriber.Subscriber";
|
|
23
|
+
readonly methods: {
|
|
24
|
+
readonly get_subscriptions: {
|
|
25
|
+
readonly name: "get_subscriptions";
|
|
26
|
+
readonly requestType: import("./google/protobuf/empty").MessageFns<Empty>;
|
|
27
|
+
readonly requestStream: false;
|
|
28
|
+
readonly responseType: MessageFns<Subscriptions>;
|
|
29
|
+
readonly responseStream: false;
|
|
30
|
+
readonly options: {};
|
|
31
|
+
};
|
|
32
|
+
readonly set_subscriptions: {
|
|
33
|
+
readonly name: "set_subscriptions";
|
|
34
|
+
readonly requestType: MessageFns<Subscriptions>;
|
|
35
|
+
readonly requestStream: false;
|
|
36
|
+
readonly responseType: MessageFns<SubscriberSuccessResponse>;
|
|
37
|
+
readonly responseStream: false;
|
|
38
|
+
readonly options: {};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
36
42
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
37
43
|
export 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 {} ? {
|
|
38
44
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: Subscriber.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.SubscriberDefinition = exports.SubscriberSuccessResponse = exports.Subscriptions_SubscriptionsEntry = exports.Subscriptions = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const empty_1 = require("./google/protobuf/empty");
|
|
12
|
-
exports.protobufPackage = "";
|
|
12
|
+
exports.protobufPackage = "keelson.interfaces.subscriber";
|
|
13
13
|
function createBaseSubscriptions() {
|
|
14
14
|
return { subscriptions: {} };
|
|
15
15
|
}
|
|
@@ -187,26 +187,28 @@ exports.SubscriberSuccessResponse = {
|
|
|
187
187
|
return message;
|
|
188
188
|
},
|
|
189
189
|
};
|
|
190
|
-
exports.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
|
|
190
|
+
exports.SubscriberDefinition = {
|
|
191
|
+
name: "Subscriber",
|
|
192
|
+
fullName: "keelson.interfaces.subscriber.Subscriber",
|
|
193
|
+
methods: {
|
|
194
|
+
get_subscriptions: {
|
|
195
|
+
name: "get_subscriptions",
|
|
196
|
+
requestType: empty_1.Empty,
|
|
197
|
+
requestStream: false,
|
|
198
|
+
responseType: exports.Subscriptions,
|
|
199
|
+
responseStream: false,
|
|
200
|
+
options: {},
|
|
201
|
+
},
|
|
202
|
+
set_subscriptions: {
|
|
203
|
+
name: "set_subscriptions",
|
|
204
|
+
requestType: exports.Subscriptions,
|
|
205
|
+
requestStream: false,
|
|
206
|
+
responseType: exports.SubscriberSuccessResponse,
|
|
207
|
+
responseStream: false,
|
|
208
|
+
options: {},
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
};
|
|
210
212
|
function isObject(value) {
|
|
211
213
|
return typeof value === "object" && value !== null;
|
|
212
214
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const protobufPackage = "";
|
|
1
|
+
export declare const protobufPackage = "keelson.interfaces.common";
|
|
3
2
|
/**
|
|
4
3
|
* Outcome of a vehicle-side command. Values 1..7 mirror the MAVLink
|
|
5
4
|
* MAV_RESULT enum 1:1 by name (with renumbering so that the proto3
|
|
@@ -33,33 +32,3 @@ export declare enum CommandResult {
|
|
|
33
32
|
}
|
|
34
33
|
export declare function commandResultFromJSON(object: any): CommandResult;
|
|
35
34
|
export declare function commandResultToJSON(object: CommandResult): string;
|
|
36
|
-
/**
|
|
37
|
-
* WGS84 latitude/longitude in plain degrees. Shared by Vehicle*
|
|
38
|
-
* interfaces that carry geographic positions (missions, geofences,
|
|
39
|
-
* navigation targets) so consumers see a single coordinate shape
|
|
40
|
-
* rather than each interface picking its own scaling / units.
|
|
41
|
-
*/
|
|
42
|
-
export interface Coordinate {
|
|
43
|
-
latitudeDeg: number;
|
|
44
|
-
longitudeDeg: number;
|
|
45
|
-
}
|
|
46
|
-
export declare const Coordinate: MessageFns<Coordinate>;
|
|
47
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
48
|
-
export 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 {} ? {
|
|
49
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
50
|
-
} : Partial<T>;
|
|
51
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
52
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
53
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
54
|
-
} & {
|
|
55
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
56
|
-
};
|
|
57
|
-
export interface MessageFns<T> {
|
|
58
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
59
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
60
|
-
fromJSON(object: any): T;
|
|
61
|
-
toJSON(message: T): unknown;
|
|
62
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
63
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
64
|
-
}
|
|
65
|
-
export {};
|
|
@@ -5,10 +5,9 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: VehicleCommon.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.commandResultToJSON = exports.commandResultFromJSON = exports.CommandResult = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
|
-
|
|
11
|
-
exports.protobufPackage = "";
|
|
10
|
+
exports.protobufPackage = "keelson.interfaces.common";
|
|
12
11
|
/**
|
|
13
12
|
* Outcome of a vehicle-side command. Values 1..7 mirror the MAVLink
|
|
14
13
|
* MAV_RESULT enum 1:1 by name (with renumbering so that the proto3
|
|
@@ -108,74 +107,3 @@ function commandResultToJSON(object) {
|
|
|
108
107
|
}
|
|
109
108
|
}
|
|
110
109
|
exports.commandResultToJSON = commandResultToJSON;
|
|
111
|
-
function createBaseCoordinate() {
|
|
112
|
-
return { latitudeDeg: 0, longitudeDeg: 0 };
|
|
113
|
-
}
|
|
114
|
-
exports.Coordinate = {
|
|
115
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
116
|
-
if (message.latitudeDeg !== 0) {
|
|
117
|
-
writer.uint32(9).double(message.latitudeDeg);
|
|
118
|
-
}
|
|
119
|
-
if (message.longitudeDeg !== 0) {
|
|
120
|
-
writer.uint32(17).double(message.longitudeDeg);
|
|
121
|
-
}
|
|
122
|
-
return writer;
|
|
123
|
-
},
|
|
124
|
-
decode(input, length) {
|
|
125
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
126
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
-
const message = createBaseCoordinate();
|
|
128
|
-
while (reader.pos < end) {
|
|
129
|
-
const tag = reader.uint32();
|
|
130
|
-
switch (tag >>> 3) {
|
|
131
|
-
case 1: {
|
|
132
|
-
if (tag !== 9) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
message.latitudeDeg = reader.double();
|
|
136
|
-
continue;
|
|
137
|
-
}
|
|
138
|
-
case 2: {
|
|
139
|
-
if (tag !== 17) {
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
message.longitudeDeg = reader.double();
|
|
143
|
-
continue;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
reader.skip(tag & 7);
|
|
150
|
-
}
|
|
151
|
-
return message;
|
|
152
|
-
},
|
|
153
|
-
fromJSON(object) {
|
|
154
|
-
return {
|
|
155
|
-
latitudeDeg: isSet(object.latitudeDeg) ? globalThis.Number(object.latitudeDeg) : 0,
|
|
156
|
-
longitudeDeg: isSet(object.longitudeDeg) ? globalThis.Number(object.longitudeDeg) : 0,
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
toJSON(message) {
|
|
160
|
-
const obj = {};
|
|
161
|
-
if (message.latitudeDeg !== 0) {
|
|
162
|
-
obj.latitudeDeg = message.latitudeDeg;
|
|
163
|
-
}
|
|
164
|
-
if (message.longitudeDeg !== 0) {
|
|
165
|
-
obj.longitudeDeg = message.longitudeDeg;
|
|
166
|
-
}
|
|
167
|
-
return obj;
|
|
168
|
-
},
|
|
169
|
-
create(base) {
|
|
170
|
-
return exports.Coordinate.fromPartial(base ?? {});
|
|
171
|
-
},
|
|
172
|
-
fromPartial(object) {
|
|
173
|
-
const message = createBaseCoordinate();
|
|
174
|
-
message.latitudeDeg = object.latitudeDeg ?? 0;
|
|
175
|
-
message.longitudeDeg = object.longitudeDeg ?? 0;
|
|
176
|
-
return message;
|
|
177
|
-
},
|
|
178
|
-
};
|
|
179
|
-
function isSet(value) {
|
|
180
|
-
return value !== null && value !== undefined;
|
|
181
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { Empty } from "./google/protobuf/empty";
|
|
3
|
-
export declare const protobufPackage = "";
|
|
3
|
+
export declare const protobufPackage = "keelson.interfaces.vehicle_control";
|
|
4
4
|
export interface ControlAxis {
|
|
5
5
|
/**
|
|
6
6
|
* Entity to subscribe under. Empty string => connector's own
|
|
@@ -100,33 +100,39 @@ export declare const ControlAxis: MessageFns<ControlAxis>;
|
|
|
100
100
|
export declare const ControlAxisMapping: MessageFns<ControlAxisMapping>;
|
|
101
101
|
export declare const ControlAxisMapping_AxesEntry: MessageFns<ControlAxisMapping_AxesEntry>;
|
|
102
102
|
export declare const ControlAxisMappingAck: MessageFns<ControlAxisMappingAck>;
|
|
103
|
-
export
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
103
|
+
export type VehicleControlDefinition = typeof VehicleControlDefinition;
|
|
104
|
+
export declare const VehicleControlDefinition: {
|
|
105
|
+
readonly name: "VehicleControl";
|
|
106
|
+
readonly fullName: "keelson.interfaces.vehicle_control.VehicleControl";
|
|
107
|
+
readonly methods: {
|
|
108
|
+
/**
|
|
109
|
+
* Replace the active control-axis mapping atomically. An empty axes
|
|
110
|
+
* map = stop driving (undeclare every axis subscriber). Calling this
|
|
111
|
+
* RPC is the only way to make the vehicle drivable after a connector
|
|
112
|
+
* start.
|
|
113
|
+
*/
|
|
114
|
+
readonly set_control_mapping: {
|
|
115
|
+
readonly name: "set_control_mapping";
|
|
116
|
+
readonly requestType: MessageFns<ControlAxisMapping>;
|
|
117
|
+
readonly requestStream: false;
|
|
118
|
+
readonly responseType: MessageFns<ControlAxisMappingAck>;
|
|
119
|
+
readonly responseStream: false;
|
|
120
|
+
readonly options: {};
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Return the currently-active mapping. Useful for operators
|
|
124
|
+
* inspecting state set by another client.
|
|
125
|
+
*/
|
|
126
|
+
readonly get_control_mapping: {
|
|
127
|
+
readonly name: "get_control_mapping";
|
|
128
|
+
readonly requestType: import("./google/protobuf/empty").MessageFns<Empty>;
|
|
129
|
+
readonly requestStream: false;
|
|
130
|
+
readonly responseType: MessageFns<ControlAxisMapping>;
|
|
131
|
+
readonly responseStream: false;
|
|
132
|
+
readonly options: {};
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
};
|
|
130
136
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
131
137
|
export 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 {} ? {
|
|
132
138
|
[K in keyof T]?: DeepPartial<T[K]>;
|