@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { CommandResult } from "./VehicleCommon";
|
|
3
|
-
export declare const protobufPackage = "";
|
|
3
|
+
export declare const protobufPackage = "keelson.interfaces.vehicle_navigation";
|
|
4
4
|
/**
|
|
5
5
|
* A single position target for a vehicle in a guided / navigation mode.
|
|
6
6
|
* Vehicle-agnostic: maps onto MAVLink SET_POSITION_TARGET_GLOBAL_INT for
|
|
@@ -63,29 +63,35 @@ export declare const NavigationTarget: MessageFns<NavigationTarget>;
|
|
|
63
63
|
export declare const NavigationTargetResponse: MessageFns<NavigationTargetResponse>;
|
|
64
64
|
export declare const SetCruiseSpeedRequest: MessageFns<SetCruiseSpeedRequest>;
|
|
65
65
|
export declare const SetCruiseSpeedResponse: MessageFns<SetCruiseSpeedResponse>;
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
66
|
+
export type VehicleNavigationDefinition = typeof VehicleNavigationDefinition;
|
|
67
|
+
export declare const VehicleNavigationDefinition: {
|
|
68
|
+
readonly name: "VehicleNavigation";
|
|
69
|
+
readonly fullName: "keelson.interfaces.vehicle_navigation.VehicleNavigation";
|
|
70
|
+
readonly methods: {
|
|
71
|
+
/**
|
|
72
|
+
* Commission the vehicle to navigate to a single target. Caller is
|
|
73
|
+
* responsible for ensuring the vehicle is in an appropriate mode first
|
|
74
|
+
* (e.g. GUIDED for ArduPilot Rover).
|
|
75
|
+
*/
|
|
76
|
+
readonly set_navigation_target: {
|
|
77
|
+
readonly name: "set_navigation_target";
|
|
78
|
+
readonly requestType: MessageFns<NavigationTarget>;
|
|
79
|
+
readonly requestStream: false;
|
|
80
|
+
readonly responseType: MessageFns<NavigationTargetResponse>;
|
|
81
|
+
readonly responseStream: false;
|
|
82
|
+
readonly options: {};
|
|
83
|
+
};
|
|
84
|
+
/** Change cruise (leg) speed for the active navigation. */
|
|
85
|
+
readonly set_cruise_speed: {
|
|
86
|
+
readonly name: "set_cruise_speed";
|
|
87
|
+
readonly requestType: MessageFns<SetCruiseSpeedRequest>;
|
|
88
|
+
readonly requestStream: false;
|
|
89
|
+
readonly responseType: MessageFns<SetCruiseSpeedResponse>;
|
|
90
|
+
readonly responseStream: false;
|
|
91
|
+
readonly options: {};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
89
95
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
90
96
|
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 {} ? {
|
|
91
97
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: VehicleNavigation.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.VehicleNavigationDefinition = exports.SetCruiseSpeedResponse = exports.SetCruiseSpeedRequest = exports.NavigationTargetResponse = exports.NavigationTarget = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const VehicleCommon_1 = require("./VehicleCommon");
|
|
12
12
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
13
|
-
exports.protobufPackage = "";
|
|
13
|
+
exports.protobufPackage = "keelson.interfaces.vehicle_navigation";
|
|
14
14
|
function createBaseNavigationTarget() {
|
|
15
15
|
return {
|
|
16
16
|
timestamp: undefined,
|
|
@@ -380,26 +380,34 @@ exports.SetCruiseSpeedResponse = {
|
|
|
380
380
|
return message;
|
|
381
381
|
},
|
|
382
382
|
};
|
|
383
|
-
exports.
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
383
|
+
exports.VehicleNavigationDefinition = {
|
|
384
|
+
name: "VehicleNavigation",
|
|
385
|
+
fullName: "keelson.interfaces.vehicle_navigation.VehicleNavigation",
|
|
386
|
+
methods: {
|
|
387
|
+
/**
|
|
388
|
+
* Commission the vehicle to navigate to a single target. Caller is
|
|
389
|
+
* responsible for ensuring the vehicle is in an appropriate mode first
|
|
390
|
+
* (e.g. GUIDED for ArduPilot Rover).
|
|
391
|
+
*/
|
|
392
|
+
set_navigation_target: {
|
|
393
|
+
name: "set_navigation_target",
|
|
394
|
+
requestType: exports.NavigationTarget,
|
|
395
|
+
requestStream: false,
|
|
396
|
+
responseType: exports.NavigationTargetResponse,
|
|
397
|
+
responseStream: false,
|
|
398
|
+
options: {},
|
|
399
|
+
},
|
|
400
|
+
/** Change cruise (leg) speed for the active navigation. */
|
|
401
|
+
set_cruise_speed: {
|
|
402
|
+
name: "set_cruise_speed",
|
|
403
|
+
requestType: exports.SetCruiseSpeedRequest,
|
|
404
|
+
requestStream: false,
|
|
405
|
+
responseType: exports.SetCruiseSpeedResponse,
|
|
406
|
+
responseStream: false,
|
|
407
|
+
options: {},
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
};
|
|
403
411
|
function toTimestamp(date) {
|
|
404
412
|
const seconds = Math.trunc(date.getTime() / 1000);
|
|
405
413
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { CommandResult } from "./VehicleCommon";
|
|
3
3
|
import { Empty } from "./google/protobuf/empty";
|
|
4
|
-
export declare const protobufPackage = "";
|
|
4
|
+
export declare const protobufPackage = "keelson.interfaces.vehicle_param";
|
|
5
5
|
export interface ParamGetRequest {
|
|
6
6
|
name: string;
|
|
7
7
|
}
|
|
@@ -63,29 +63,53 @@ export declare const ParamSetBulkResult: MessageFns<ParamSetBulkResult>;
|
|
|
63
63
|
export declare const ParamSetBulkResponse: MessageFns<ParamSetBulkResponse>;
|
|
64
64
|
export declare const SaveParamsRequest: MessageFns<SaveParamsRequest>;
|
|
65
65
|
export declare const SaveParamsResponse: MessageFns<SaveParamsResponse>;
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
66
|
+
export type VehicleParamDefinition = typeof VehicleParamDefinition;
|
|
67
|
+
export declare const VehicleParamDefinition: {
|
|
68
|
+
readonly name: "VehicleParam";
|
|
69
|
+
readonly fullName: "keelson.interfaces.vehicle_param.VehicleParam";
|
|
70
|
+
readonly methods: {
|
|
71
|
+
readonly get_param: {
|
|
72
|
+
readonly name: "get_param";
|
|
73
|
+
readonly requestType: MessageFns<ParamGetRequest>;
|
|
74
|
+
readonly requestStream: false;
|
|
75
|
+
readonly responseType: MessageFns<ParamValueResponse>;
|
|
76
|
+
readonly responseStream: false;
|
|
77
|
+
readonly options: {};
|
|
78
|
+
};
|
|
79
|
+
readonly set_param: {
|
|
80
|
+
readonly name: "set_param";
|
|
81
|
+
readonly requestType: MessageFns<ParamSetRequest>;
|
|
82
|
+
readonly requestStream: false;
|
|
83
|
+
readonly responseType: MessageFns<ParamValueResponse>;
|
|
84
|
+
readonly responseStream: false;
|
|
85
|
+
readonly options: {};
|
|
86
|
+
};
|
|
87
|
+
readonly list_params: {
|
|
88
|
+
readonly name: "list_params";
|
|
89
|
+
readonly requestType: import("./google/protobuf/empty").MessageFns<Empty>;
|
|
90
|
+
readonly requestStream: false;
|
|
91
|
+
readonly responseType: MessageFns<ParamListResponse>;
|
|
92
|
+
readonly responseStream: false;
|
|
93
|
+
readonly options: {};
|
|
94
|
+
};
|
|
95
|
+
readonly set_params: {
|
|
96
|
+
readonly name: "set_params";
|
|
97
|
+
readonly requestType: MessageFns<ParamSetBulkRequest>;
|
|
98
|
+
readonly requestStream: false;
|
|
99
|
+
readonly responseType: MessageFns<ParamSetBulkResponse>;
|
|
100
|
+
readonly responseStream: false;
|
|
101
|
+
readonly options: {};
|
|
102
|
+
};
|
|
103
|
+
readonly save_params: {
|
|
104
|
+
readonly name: "save_params";
|
|
105
|
+
readonly requestType: MessageFns<SaveParamsRequest>;
|
|
106
|
+
readonly requestStream: false;
|
|
107
|
+
readonly responseType: MessageFns<SaveParamsResponse>;
|
|
108
|
+
readonly responseStream: false;
|
|
109
|
+
readonly options: {};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
89
113
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
90
114
|
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 {} ? {
|
|
91
115
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: VehicleParam.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.VehicleParamDefinition = exports.SaveParamsResponse = exports.SaveParamsRequest = exports.ParamSetBulkResponse = exports.ParamSetBulkResult = exports.ParamSetBulkRequest = exports.ParamListResponse = exports.ParamValueResponse = exports.ParamSetRequest = exports.ParamGetRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const VehicleCommon_1 = require("./VehicleCommon");
|
|
12
12
|
const empty_1 = require("./google/protobuf/empty");
|
|
13
13
|
const timestamp_1 = require("./google/protobuf/timestamp");
|
|
14
|
-
exports.protobufPackage = "";
|
|
14
|
+
exports.protobufPackage = "keelson.interfaces.vehicle_param";
|
|
15
15
|
function createBaseParamGetRequest() {
|
|
16
16
|
return { name: "" };
|
|
17
17
|
}
|
|
@@ -626,44 +626,52 @@ exports.SaveParamsResponse = {
|
|
|
626
626
|
return message;
|
|
627
627
|
},
|
|
628
628
|
};
|
|
629
|
-
exports.
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
629
|
+
exports.VehicleParamDefinition = {
|
|
630
|
+
name: "VehicleParam",
|
|
631
|
+
fullName: "keelson.interfaces.vehicle_param.VehicleParam",
|
|
632
|
+
methods: {
|
|
633
|
+
get_param: {
|
|
634
|
+
name: "get_param",
|
|
635
|
+
requestType: exports.ParamGetRequest,
|
|
636
|
+
requestStream: false,
|
|
637
|
+
responseType: exports.ParamValueResponse,
|
|
638
|
+
responseStream: false,
|
|
639
|
+
options: {},
|
|
640
|
+
},
|
|
641
|
+
set_param: {
|
|
642
|
+
name: "set_param",
|
|
643
|
+
requestType: exports.ParamSetRequest,
|
|
644
|
+
requestStream: false,
|
|
645
|
+
responseType: exports.ParamValueResponse,
|
|
646
|
+
responseStream: false,
|
|
647
|
+
options: {},
|
|
648
|
+
},
|
|
649
|
+
list_params: {
|
|
650
|
+
name: "list_params",
|
|
651
|
+
requestType: empty_1.Empty,
|
|
652
|
+
requestStream: false,
|
|
653
|
+
responseType: exports.ParamListResponse,
|
|
654
|
+
responseStream: false,
|
|
655
|
+
options: {},
|
|
656
|
+
},
|
|
657
|
+
set_params: {
|
|
658
|
+
name: "set_params",
|
|
659
|
+
requestType: exports.ParamSetBulkRequest,
|
|
660
|
+
requestStream: false,
|
|
661
|
+
responseType: exports.ParamSetBulkResponse,
|
|
662
|
+
responseStream: false,
|
|
663
|
+
options: {},
|
|
664
|
+
},
|
|
665
|
+
save_params: {
|
|
666
|
+
name: "save_params",
|
|
667
|
+
requestType: exports.SaveParamsRequest,
|
|
668
|
+
requestStream: false,
|
|
669
|
+
responseType: exports.SaveParamsResponse,
|
|
670
|
+
responseStream: false,
|
|
671
|
+
options: {},
|
|
672
|
+
},
|
|
673
|
+
},
|
|
674
|
+
};
|
|
667
675
|
function toTimestamp(date) {
|
|
668
676
|
const seconds = Math.trunc(date.getTime() / 1000);
|
|
669
677
|
const nanos = (date.getTime() % 1000) * 1000000;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { Coordinate } from "./Coordinate";
|
|
3
|
+
export declare const protobufPackage = "keelson.interfaces.vehicle_simulator_control";
|
|
4
|
+
export interface InitialPose {
|
|
5
|
+
/** WGS84 start position, reusing the shared Vehicle* coordinate shape. */
|
|
6
|
+
position: Coordinate | undefined;
|
|
7
|
+
/** Initial heading in degrees, true north, expected range [0, 360). */
|
|
8
|
+
headingDeg: number;
|
|
9
|
+
/** Initial speed over ground in metres per second; 0 = at rest. */
|
|
10
|
+
sogMps: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Dedicated response message so set_initial_pose can grow a return field
|
|
14
|
+
* later (e.g. the resolved/clamped pose) without a breaking type change.
|
|
15
|
+
*/
|
|
16
|
+
export interface SetInitialPoseResponse {
|
|
17
|
+
}
|
|
18
|
+
export declare const InitialPose: MessageFns<InitialPose>;
|
|
19
|
+
export declare const SetInitialPoseResponse: MessageFns<SetInitialPoseResponse>;
|
|
20
|
+
export type VehicleSimulatorControlDefinition = typeof VehicleSimulatorControlDefinition;
|
|
21
|
+
export declare const VehicleSimulatorControlDefinition: {
|
|
22
|
+
readonly name: "VehicleSimulatorControl";
|
|
23
|
+
readonly fullName: "keelson.interfaces.vehicle_simulator_control.VehicleSimulatorControl";
|
|
24
|
+
readonly methods: {
|
|
25
|
+
/**
|
|
26
|
+
* (Re)place a statically-declared entity at an initial pose while it is
|
|
27
|
+
* STOPPED/ASSIGNED.
|
|
28
|
+
*/
|
|
29
|
+
readonly set_initial_pose: {
|
|
30
|
+
readonly name: "set_initial_pose";
|
|
31
|
+
readonly requestType: MessageFns<InitialPose>;
|
|
32
|
+
readonly requestStream: false;
|
|
33
|
+
readonly responseType: MessageFns<SetInitialPoseResponse>;
|
|
34
|
+
readonly responseStream: false;
|
|
35
|
+
readonly options: {};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
+
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 {} ? {
|
|
41
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
42
|
+
} : Partial<T>;
|
|
43
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
44
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
45
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
46
|
+
} & {
|
|
47
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
48
|
+
};
|
|
49
|
+
export interface MessageFns<T> {
|
|
50
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
51
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
52
|
+
fromJSON(object: any): T;
|
|
53
|
+
toJSON(message: T): unknown;
|
|
54
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
55
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
56
|
+
}
|
|
57
|
+
export {};
|
|
@@ -0,0 +1,155 @@
|
|
|
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: VehicleSimulatorControl.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.VehicleSimulatorControlDefinition = exports.SetInitialPoseResponse = exports.InitialPose = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const Coordinate_1 = require("./Coordinate");
|
|
12
|
+
exports.protobufPackage = "keelson.interfaces.vehicle_simulator_control";
|
|
13
|
+
function createBaseInitialPose() {
|
|
14
|
+
return { position: undefined, headingDeg: 0, sogMps: 0 };
|
|
15
|
+
}
|
|
16
|
+
exports.InitialPose = {
|
|
17
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
18
|
+
if (message.position !== undefined) {
|
|
19
|
+
Coordinate_1.Coordinate.encode(message.position, writer.uint32(10).fork()).join();
|
|
20
|
+
}
|
|
21
|
+
if (message.headingDeg !== 0) {
|
|
22
|
+
writer.uint32(17).double(message.headingDeg);
|
|
23
|
+
}
|
|
24
|
+
if (message.sogMps !== 0) {
|
|
25
|
+
writer.uint32(25).double(message.sogMps);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
31
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseInitialPose();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1: {
|
|
37
|
+
if (tag !== 10) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.position = Coordinate_1.Coordinate.decode(reader, reader.uint32());
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
case 2: {
|
|
44
|
+
if (tag !== 17) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.headingDeg = reader.double();
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
case 3: {
|
|
51
|
+
if (tag !== 25) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.sogMps = reader.double();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
reader.skip(tag & 7);
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromJSON(object) {
|
|
66
|
+
return {
|
|
67
|
+
position: isSet(object.position) ? Coordinate_1.Coordinate.fromJSON(object.position) : undefined,
|
|
68
|
+
headingDeg: isSet(object.headingDeg) ? globalThis.Number(object.headingDeg) : 0,
|
|
69
|
+
sogMps: isSet(object.sogMps) ? globalThis.Number(object.sogMps) : 0,
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
toJSON(message) {
|
|
73
|
+
const obj = {};
|
|
74
|
+
if (message.position !== undefined) {
|
|
75
|
+
obj.position = Coordinate_1.Coordinate.toJSON(message.position);
|
|
76
|
+
}
|
|
77
|
+
if (message.headingDeg !== 0) {
|
|
78
|
+
obj.headingDeg = message.headingDeg;
|
|
79
|
+
}
|
|
80
|
+
if (message.sogMps !== 0) {
|
|
81
|
+
obj.sogMps = message.sogMps;
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
},
|
|
85
|
+
create(base) {
|
|
86
|
+
return exports.InitialPose.fromPartial(base ?? {});
|
|
87
|
+
},
|
|
88
|
+
fromPartial(object) {
|
|
89
|
+
const message = createBaseInitialPose();
|
|
90
|
+
message.position = (object.position !== undefined && object.position !== null)
|
|
91
|
+
? Coordinate_1.Coordinate.fromPartial(object.position)
|
|
92
|
+
: undefined;
|
|
93
|
+
message.headingDeg = object.headingDeg ?? 0;
|
|
94
|
+
message.sogMps = object.sogMps ?? 0;
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
function createBaseSetInitialPoseResponse() {
|
|
99
|
+
return {};
|
|
100
|
+
}
|
|
101
|
+
exports.SetInitialPoseResponse = {
|
|
102
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
103
|
+
return writer;
|
|
104
|
+
},
|
|
105
|
+
decode(input, length) {
|
|
106
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
107
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
|
+
const message = createBaseSetInitialPoseResponse();
|
|
109
|
+
while (reader.pos < end) {
|
|
110
|
+
const tag = reader.uint32();
|
|
111
|
+
switch (tag >>> 3) {
|
|
112
|
+
}
|
|
113
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
reader.skip(tag & 7);
|
|
117
|
+
}
|
|
118
|
+
return message;
|
|
119
|
+
},
|
|
120
|
+
fromJSON(_) {
|
|
121
|
+
return {};
|
|
122
|
+
},
|
|
123
|
+
toJSON(_) {
|
|
124
|
+
const obj = {};
|
|
125
|
+
return obj;
|
|
126
|
+
},
|
|
127
|
+
create(base) {
|
|
128
|
+
return exports.SetInitialPoseResponse.fromPartial(base ?? {});
|
|
129
|
+
},
|
|
130
|
+
fromPartial(_) {
|
|
131
|
+
const message = createBaseSetInitialPoseResponse();
|
|
132
|
+
return message;
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
exports.VehicleSimulatorControlDefinition = {
|
|
136
|
+
name: "VehicleSimulatorControl",
|
|
137
|
+
fullName: "keelson.interfaces.vehicle_simulator_control.VehicleSimulatorControl",
|
|
138
|
+
methods: {
|
|
139
|
+
/**
|
|
140
|
+
* (Re)place a statically-declared entity at an initial pose while it is
|
|
141
|
+
* STOPPED/ASSIGNED.
|
|
142
|
+
*/
|
|
143
|
+
set_initial_pose: {
|
|
144
|
+
name: "set_initial_pose",
|
|
145
|
+
requestType: exports.InitialPose,
|
|
146
|
+
requestStream: false,
|
|
147
|
+
responseType: exports.SetInitialPoseResponse,
|
|
148
|
+
responseStream: false,
|
|
149
|
+
options: {},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
};
|
|
153
|
+
function isSet(value) {
|
|
154
|
+
return value !== null && value !== undefined;
|
|
155
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "";
|
|
2
|
+
export declare const protobufPackage = "keelson.interfaces.whep_proxy";
|
|
3
3
|
export interface WHEPRequest {
|
|
4
4
|
path: string;
|
|
5
5
|
sdp: string;
|
|
@@ -9,21 +9,21 @@ export interface WHEPResponse {
|
|
|
9
9
|
}
|
|
10
10
|
export declare const WHEPRequest: MessageFns<WHEPRequest>;
|
|
11
11
|
export declare const WHEPResponse: MessageFns<WHEPResponse>;
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
12
|
+
export type WHEPProxyDefinition = typeof WHEPProxyDefinition;
|
|
13
|
+
export declare const WHEPProxyDefinition: {
|
|
14
|
+
readonly name: "WHEPProxy";
|
|
15
|
+
readonly fullName: "keelson.interfaces.whep_proxy.WHEPProxy";
|
|
16
|
+
readonly methods: {
|
|
17
|
+
readonly whep_signal: {
|
|
18
|
+
readonly name: "whep_signal";
|
|
19
|
+
readonly requestType: MessageFns<WHEPRequest>;
|
|
20
|
+
readonly requestStream: false;
|
|
21
|
+
readonly responseType: MessageFns<WHEPResponse>;
|
|
22
|
+
readonly responseStream: false;
|
|
23
|
+
readonly options: {};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
27
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
28
|
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 {} ? {
|
|
29
29
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
// protoc v6.30.2
|
|
6
6
|
// source: WHEPProxy.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.
|
|
8
|
+
exports.WHEPProxyDefinition = exports.WHEPResponse = exports.WHEPRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
-
exports.protobufPackage = "";
|
|
11
|
+
exports.protobufPackage = "keelson.interfaces.whep_proxy";
|
|
12
12
|
function createBaseWHEPRequest() {
|
|
13
13
|
return { path: "", sdp: "" };
|
|
14
14
|
}
|
|
@@ -128,20 +128,20 @@ exports.WHEPResponse = {
|
|
|
128
128
|
return message;
|
|
129
129
|
},
|
|
130
130
|
};
|
|
131
|
-
exports.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}
|
|
144
|
-
|
|
131
|
+
exports.WHEPProxyDefinition = {
|
|
132
|
+
name: "WHEPProxy",
|
|
133
|
+
fullName: "keelson.interfaces.whep_proxy.WHEPProxy",
|
|
134
|
+
methods: {
|
|
135
|
+
whep_signal: {
|
|
136
|
+
name: "whep_signal",
|
|
137
|
+
requestType: exports.WHEPRequest,
|
|
138
|
+
requestStream: false,
|
|
139
|
+
responseType: exports.WHEPResponse,
|
|
140
|
+
responseStream: false,
|
|
141
|
+
options: {},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
145
|
function isSet(value) {
|
|
146
146
|
return value !== null && value !== undefined;
|
|
147
147
|
}
|