@blueyerobotics/protocol-definitions 3.2.0-09fee2ba
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/LICENSE +165 -0
- package/README.md +40 -0
- package/README.npm.md +40 -0
- package/dist/aquatroll.d.ts +435 -0
- package/dist/aquatroll.js +3160 -0
- package/dist/control.d.ts +277 -0
- package/dist/control.js +2129 -0
- package/dist/google/protobuf/any.d.ts +132 -0
- package/dist/google/protobuf/any.js +121 -0
- package/dist/google/protobuf/duration.d.ts +92 -0
- package/dist/google/protobuf/duration.js +106 -0
- package/dist/google/protobuf/timestamp.d.ts +121 -0
- package/dist/google/protobuf/timestamp.js +106 -0
- package/dist/index.blueye.d.ts +1 -0
- package/dist/index.blueye.js +42 -0
- package/dist/index.blueye.protocol.d.ts +6 -0
- package/dist/index.blueye.protocol.js +27 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.google.d.ts +1 -0
- package/dist/index.google.js +42 -0
- package/dist/index.google.protobuf.d.ts +3 -0
- package/dist/index.google.protobuf.js +24 -0
- package/dist/index.js +43 -0
- package/dist/message_formats.d.ts +2085 -0
- package/dist/message_formats.js +13404 -0
- package/dist/mission_planning.d.ts +346 -0
- package/dist/mission_planning.js +2317 -0
- package/dist/req_rep.d.ts +284 -0
- package/dist/req_rep.js +2109 -0
- package/dist/telemetry.d.ts +389 -0
- package/dist/telemetry.js +3260 -0
- package/package.json +25 -0
|
@@ -0,0 +1,2317 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.7
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: mission_planning.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.MissionStatus = exports.ReferenceAutoPilot = exports.PathSegment = exports.GoToHomeCommand = exports.GoToSeabedCommand = exports.GoToSurfaceCommand = exports.CameraCommand = exports.WaitForCommand = exports.TiltMultibeamCommand = exports.TiltMainCameraCommand = exports.DepthSetPointCommand = exports.WaypointCommand = exports.ControlModeCommand = exports.Waypoint = exports.DepthSetPoint = exports.Instruction = exports.Mission = exports.MissionState = exports.InstructionType = exports.CameraAction = exports.ControlModeHorizontal = exports.ControlModeVertical = exports.DepthZeroReference = void 0;
|
|
9
|
+
exports.depthZeroReferenceFromJSON = depthZeroReferenceFromJSON;
|
|
10
|
+
exports.depthZeroReferenceToJSON = depthZeroReferenceToJSON;
|
|
11
|
+
exports.controlModeVerticalFromJSON = controlModeVerticalFromJSON;
|
|
12
|
+
exports.controlModeVerticalToJSON = controlModeVerticalToJSON;
|
|
13
|
+
exports.controlModeHorizontalFromJSON = controlModeHorizontalFromJSON;
|
|
14
|
+
exports.controlModeHorizontalToJSON = controlModeHorizontalToJSON;
|
|
15
|
+
exports.cameraActionFromJSON = cameraActionFromJSON;
|
|
16
|
+
exports.cameraActionToJSON = cameraActionToJSON;
|
|
17
|
+
exports.instructionTypeFromJSON = instructionTypeFromJSON;
|
|
18
|
+
exports.instructionTypeToJSON = instructionTypeToJSON;
|
|
19
|
+
exports.missionStateFromJSON = missionStateFromJSON;
|
|
20
|
+
exports.missionStateToJSON = missionStateToJSON;
|
|
21
|
+
/* eslint-disable */
|
|
22
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
23
|
+
const message_formats_1 = require("./message_formats");
|
|
24
|
+
/**
|
|
25
|
+
* Mission Planning Protocol.
|
|
26
|
+
*
|
|
27
|
+
* These messages are used to start a mission and to monitor the status of the mission.
|
|
28
|
+
*/
|
|
29
|
+
/** Depth zero reference from surface for depth, and seabed for altitude. */
|
|
30
|
+
var DepthZeroReference;
|
|
31
|
+
(function (DepthZeroReference) {
|
|
32
|
+
DepthZeroReference[DepthZeroReference["DEPTH_ZERO_REFERENCE_UNSPECIFIED"] = 0] = "DEPTH_ZERO_REFERENCE_UNSPECIFIED";
|
|
33
|
+
DepthZeroReference[DepthZeroReference["DEPTH_ZERO_REFERENCE_SURFACE"] = 1] = "DEPTH_ZERO_REFERENCE_SURFACE";
|
|
34
|
+
DepthZeroReference[DepthZeroReference["DEPTH_ZERO_REFERENCE_SEABED"] = 2] = "DEPTH_ZERO_REFERENCE_SEABED";
|
|
35
|
+
DepthZeroReference[DepthZeroReference["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
36
|
+
})(DepthZeroReference || (exports.DepthZeroReference = DepthZeroReference = {}));
|
|
37
|
+
function depthZeroReferenceFromJSON(object) {
|
|
38
|
+
switch (object) {
|
|
39
|
+
case 0:
|
|
40
|
+
case "DEPTH_ZERO_REFERENCE_UNSPECIFIED":
|
|
41
|
+
return DepthZeroReference.DEPTH_ZERO_REFERENCE_UNSPECIFIED;
|
|
42
|
+
case 1:
|
|
43
|
+
case "DEPTH_ZERO_REFERENCE_SURFACE":
|
|
44
|
+
return DepthZeroReference.DEPTH_ZERO_REFERENCE_SURFACE;
|
|
45
|
+
case 2:
|
|
46
|
+
case "DEPTH_ZERO_REFERENCE_SEABED":
|
|
47
|
+
return DepthZeroReference.DEPTH_ZERO_REFERENCE_SEABED;
|
|
48
|
+
case -1:
|
|
49
|
+
case "UNRECOGNIZED":
|
|
50
|
+
default:
|
|
51
|
+
return DepthZeroReference.UNRECOGNIZED;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function depthZeroReferenceToJSON(object) {
|
|
55
|
+
switch (object) {
|
|
56
|
+
case DepthZeroReference.DEPTH_ZERO_REFERENCE_UNSPECIFIED:
|
|
57
|
+
return "DEPTH_ZERO_REFERENCE_UNSPECIFIED";
|
|
58
|
+
case DepthZeroReference.DEPTH_ZERO_REFERENCE_SURFACE:
|
|
59
|
+
return "DEPTH_ZERO_REFERENCE_SURFACE";
|
|
60
|
+
case DepthZeroReference.DEPTH_ZERO_REFERENCE_SEABED:
|
|
61
|
+
return "DEPTH_ZERO_REFERENCE_SEABED";
|
|
62
|
+
case DepthZeroReference.UNRECOGNIZED:
|
|
63
|
+
default:
|
|
64
|
+
return "UNRECOGNIZED";
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/** Control mode for the vertical axis of the drone. */
|
|
68
|
+
var ControlModeVertical;
|
|
69
|
+
(function (ControlModeVertical) {
|
|
70
|
+
/** CONTROL_MODE_VERTICAL_UNSPECIFIED - Unspecified. */
|
|
71
|
+
ControlModeVertical[ControlModeVertical["CONTROL_MODE_VERTICAL_UNSPECIFIED"] = 0] = "CONTROL_MODE_VERTICAL_UNSPECIFIED";
|
|
72
|
+
/** CONTROL_MODE_VERTICAL_MANUAL - Manual control mode. */
|
|
73
|
+
ControlModeVertical[ControlModeVertical["CONTROL_MODE_VERTICAL_MANUAL"] = 1] = "CONTROL_MODE_VERTICAL_MANUAL";
|
|
74
|
+
/** CONTROL_MODE_VERTICAL_AUTO_DEPTH - Auto depth control mode. */
|
|
75
|
+
ControlModeVertical[ControlModeVertical["CONTROL_MODE_VERTICAL_AUTO_DEPTH"] = 2] = "CONTROL_MODE_VERTICAL_AUTO_DEPTH";
|
|
76
|
+
/** CONTROL_MODE_VERTICAL_AUTO_ALTITUDE - Auto altitude control mode. */
|
|
77
|
+
ControlModeVertical[ControlModeVertical["CONTROL_MODE_VERTICAL_AUTO_ALTITUDE"] = 3] = "CONTROL_MODE_VERTICAL_AUTO_ALTITUDE";
|
|
78
|
+
ControlModeVertical[ControlModeVertical["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
79
|
+
})(ControlModeVertical || (exports.ControlModeVertical = ControlModeVertical = {}));
|
|
80
|
+
function controlModeVerticalFromJSON(object) {
|
|
81
|
+
switch (object) {
|
|
82
|
+
case 0:
|
|
83
|
+
case "CONTROL_MODE_VERTICAL_UNSPECIFIED":
|
|
84
|
+
return ControlModeVertical.CONTROL_MODE_VERTICAL_UNSPECIFIED;
|
|
85
|
+
case 1:
|
|
86
|
+
case "CONTROL_MODE_VERTICAL_MANUAL":
|
|
87
|
+
return ControlModeVertical.CONTROL_MODE_VERTICAL_MANUAL;
|
|
88
|
+
case 2:
|
|
89
|
+
case "CONTROL_MODE_VERTICAL_AUTO_DEPTH":
|
|
90
|
+
return ControlModeVertical.CONTROL_MODE_VERTICAL_AUTO_DEPTH;
|
|
91
|
+
case 3:
|
|
92
|
+
case "CONTROL_MODE_VERTICAL_AUTO_ALTITUDE":
|
|
93
|
+
return ControlModeVertical.CONTROL_MODE_VERTICAL_AUTO_ALTITUDE;
|
|
94
|
+
case -1:
|
|
95
|
+
case "UNRECOGNIZED":
|
|
96
|
+
default:
|
|
97
|
+
return ControlModeVertical.UNRECOGNIZED;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
function controlModeVerticalToJSON(object) {
|
|
101
|
+
switch (object) {
|
|
102
|
+
case ControlModeVertical.CONTROL_MODE_VERTICAL_UNSPECIFIED:
|
|
103
|
+
return "CONTROL_MODE_VERTICAL_UNSPECIFIED";
|
|
104
|
+
case ControlModeVertical.CONTROL_MODE_VERTICAL_MANUAL:
|
|
105
|
+
return "CONTROL_MODE_VERTICAL_MANUAL";
|
|
106
|
+
case ControlModeVertical.CONTROL_MODE_VERTICAL_AUTO_DEPTH:
|
|
107
|
+
return "CONTROL_MODE_VERTICAL_AUTO_DEPTH";
|
|
108
|
+
case ControlModeVertical.CONTROL_MODE_VERTICAL_AUTO_ALTITUDE:
|
|
109
|
+
return "CONTROL_MODE_VERTICAL_AUTO_ALTITUDE";
|
|
110
|
+
case ControlModeVertical.UNRECOGNIZED:
|
|
111
|
+
default:
|
|
112
|
+
return "UNRECOGNIZED";
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
/** Control mode for the horizontal axis of the drone. */
|
|
116
|
+
var ControlModeHorizontal;
|
|
117
|
+
(function (ControlModeHorizontal) {
|
|
118
|
+
/** CONTROL_MODE_HORIZONTAL_UNSPECIFIED - Unspecified. */
|
|
119
|
+
ControlModeHorizontal[ControlModeHorizontal["CONTROL_MODE_HORIZONTAL_UNSPECIFIED"] = 0] = "CONTROL_MODE_HORIZONTAL_UNSPECIFIED";
|
|
120
|
+
/** CONTROL_MODE_HORIZONTAL_MANUAL - Manual control mode. */
|
|
121
|
+
ControlModeHorizontal[ControlModeHorizontal["CONTROL_MODE_HORIZONTAL_MANUAL"] = 1] = "CONTROL_MODE_HORIZONTAL_MANUAL";
|
|
122
|
+
/** CONTROL_MODE_HORIZONTAL_AUTO_HEADING - Auto heading control mode. */
|
|
123
|
+
ControlModeHorizontal[ControlModeHorizontal["CONTROL_MODE_HORIZONTAL_AUTO_HEADING"] = 2] = "CONTROL_MODE_HORIZONTAL_AUTO_HEADING";
|
|
124
|
+
/** CONTROL_MODE_HORIZONTAL_STATION_KEEPING - Station keeping control mode. */
|
|
125
|
+
ControlModeHorizontal[ControlModeHorizontal["CONTROL_MODE_HORIZONTAL_STATION_KEEPING"] = 3] = "CONTROL_MODE_HORIZONTAL_STATION_KEEPING";
|
|
126
|
+
ControlModeHorizontal[ControlModeHorizontal["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
127
|
+
})(ControlModeHorizontal || (exports.ControlModeHorizontal = ControlModeHorizontal = {}));
|
|
128
|
+
function controlModeHorizontalFromJSON(object) {
|
|
129
|
+
switch (object) {
|
|
130
|
+
case 0:
|
|
131
|
+
case "CONTROL_MODE_HORIZONTAL_UNSPECIFIED":
|
|
132
|
+
return ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_UNSPECIFIED;
|
|
133
|
+
case 1:
|
|
134
|
+
case "CONTROL_MODE_HORIZONTAL_MANUAL":
|
|
135
|
+
return ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_MANUAL;
|
|
136
|
+
case 2:
|
|
137
|
+
case "CONTROL_MODE_HORIZONTAL_AUTO_HEADING":
|
|
138
|
+
return ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_AUTO_HEADING;
|
|
139
|
+
case 3:
|
|
140
|
+
case "CONTROL_MODE_HORIZONTAL_STATION_KEEPING":
|
|
141
|
+
return ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_STATION_KEEPING;
|
|
142
|
+
case -1:
|
|
143
|
+
case "UNRECOGNIZED":
|
|
144
|
+
default:
|
|
145
|
+
return ControlModeHorizontal.UNRECOGNIZED;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
function controlModeHorizontalToJSON(object) {
|
|
149
|
+
switch (object) {
|
|
150
|
+
case ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_UNSPECIFIED:
|
|
151
|
+
return "CONTROL_MODE_HORIZONTAL_UNSPECIFIED";
|
|
152
|
+
case ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_MANUAL:
|
|
153
|
+
return "CONTROL_MODE_HORIZONTAL_MANUAL";
|
|
154
|
+
case ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_AUTO_HEADING:
|
|
155
|
+
return "CONTROL_MODE_HORIZONTAL_AUTO_HEADING";
|
|
156
|
+
case ControlModeHorizontal.CONTROL_MODE_HORIZONTAL_STATION_KEEPING:
|
|
157
|
+
return "CONTROL_MODE_HORIZONTAL_STATION_KEEPING";
|
|
158
|
+
case ControlModeHorizontal.UNRECOGNIZED:
|
|
159
|
+
default:
|
|
160
|
+
return "UNRECOGNIZED";
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
/** List of available camera actions. */
|
|
164
|
+
var CameraAction;
|
|
165
|
+
(function (CameraAction) {
|
|
166
|
+
/** CAMERA_ACTION_UNSPECIFIED - Unspecified command. */
|
|
167
|
+
CameraAction[CameraAction["CAMERA_ACTION_UNSPECIFIED"] = 0] = "CAMERA_ACTION_UNSPECIFIED";
|
|
168
|
+
/** CAMERA_ACTION_TAKE_PHOTO - Take one photo. */
|
|
169
|
+
CameraAction[CameraAction["CAMERA_ACTION_TAKE_PHOTO"] = 1] = "CAMERA_ACTION_TAKE_PHOTO";
|
|
170
|
+
/** CAMERA_ACTION_TAKE_PHOTOS_TIME - Take a photo every x second. */
|
|
171
|
+
CameraAction[CameraAction["CAMERA_ACTION_TAKE_PHOTOS_TIME"] = 2] = "CAMERA_ACTION_TAKE_PHOTOS_TIME";
|
|
172
|
+
/** CAMERA_ACTION_TAKE_PHOTOS_DISTANCE - Take a photo every x meter. */
|
|
173
|
+
CameraAction[CameraAction["CAMERA_ACTION_TAKE_PHOTOS_DISTANCE"] = 3] = "CAMERA_ACTION_TAKE_PHOTOS_DISTANCE";
|
|
174
|
+
/** CAMERA_ACTION_STOP_TAKING_PHOTOS - Stop taking photos. */
|
|
175
|
+
CameraAction[CameraAction["CAMERA_ACTION_STOP_TAKING_PHOTOS"] = 4] = "CAMERA_ACTION_STOP_TAKING_PHOTOS";
|
|
176
|
+
/** CAMERA_ACTION_START_RECORDING - Start recording. */
|
|
177
|
+
CameraAction[CameraAction["CAMERA_ACTION_START_RECORDING"] = 5] = "CAMERA_ACTION_START_RECORDING";
|
|
178
|
+
/** CAMERA_ACTION_STOP_RECORDING - Stop recording. */
|
|
179
|
+
CameraAction[CameraAction["CAMERA_ACTION_STOP_RECORDING"] = 6] = "CAMERA_ACTION_STOP_RECORDING";
|
|
180
|
+
CameraAction[CameraAction["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
181
|
+
})(CameraAction || (exports.CameraAction = CameraAction = {}));
|
|
182
|
+
function cameraActionFromJSON(object) {
|
|
183
|
+
switch (object) {
|
|
184
|
+
case 0:
|
|
185
|
+
case "CAMERA_ACTION_UNSPECIFIED":
|
|
186
|
+
return CameraAction.CAMERA_ACTION_UNSPECIFIED;
|
|
187
|
+
case 1:
|
|
188
|
+
case "CAMERA_ACTION_TAKE_PHOTO":
|
|
189
|
+
return CameraAction.CAMERA_ACTION_TAKE_PHOTO;
|
|
190
|
+
case 2:
|
|
191
|
+
case "CAMERA_ACTION_TAKE_PHOTOS_TIME":
|
|
192
|
+
return CameraAction.CAMERA_ACTION_TAKE_PHOTOS_TIME;
|
|
193
|
+
case 3:
|
|
194
|
+
case "CAMERA_ACTION_TAKE_PHOTOS_DISTANCE":
|
|
195
|
+
return CameraAction.CAMERA_ACTION_TAKE_PHOTOS_DISTANCE;
|
|
196
|
+
case 4:
|
|
197
|
+
case "CAMERA_ACTION_STOP_TAKING_PHOTOS":
|
|
198
|
+
return CameraAction.CAMERA_ACTION_STOP_TAKING_PHOTOS;
|
|
199
|
+
case 5:
|
|
200
|
+
case "CAMERA_ACTION_START_RECORDING":
|
|
201
|
+
return CameraAction.CAMERA_ACTION_START_RECORDING;
|
|
202
|
+
case 6:
|
|
203
|
+
case "CAMERA_ACTION_STOP_RECORDING":
|
|
204
|
+
return CameraAction.CAMERA_ACTION_STOP_RECORDING;
|
|
205
|
+
case -1:
|
|
206
|
+
case "UNRECOGNIZED":
|
|
207
|
+
default:
|
|
208
|
+
return CameraAction.UNRECOGNIZED;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function cameraActionToJSON(object) {
|
|
212
|
+
switch (object) {
|
|
213
|
+
case CameraAction.CAMERA_ACTION_UNSPECIFIED:
|
|
214
|
+
return "CAMERA_ACTION_UNSPECIFIED";
|
|
215
|
+
case CameraAction.CAMERA_ACTION_TAKE_PHOTO:
|
|
216
|
+
return "CAMERA_ACTION_TAKE_PHOTO";
|
|
217
|
+
case CameraAction.CAMERA_ACTION_TAKE_PHOTOS_TIME:
|
|
218
|
+
return "CAMERA_ACTION_TAKE_PHOTOS_TIME";
|
|
219
|
+
case CameraAction.CAMERA_ACTION_TAKE_PHOTOS_DISTANCE:
|
|
220
|
+
return "CAMERA_ACTION_TAKE_PHOTOS_DISTANCE";
|
|
221
|
+
case CameraAction.CAMERA_ACTION_STOP_TAKING_PHOTOS:
|
|
222
|
+
return "CAMERA_ACTION_STOP_TAKING_PHOTOS";
|
|
223
|
+
case CameraAction.CAMERA_ACTION_START_RECORDING:
|
|
224
|
+
return "CAMERA_ACTION_START_RECORDING";
|
|
225
|
+
case CameraAction.CAMERA_ACTION_STOP_RECORDING:
|
|
226
|
+
return "CAMERA_ACTION_STOP_RECORDING";
|
|
227
|
+
case CameraAction.UNRECOGNIZED:
|
|
228
|
+
default:
|
|
229
|
+
return "UNRECOGNIZED";
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/** List of available instruction types. */
|
|
233
|
+
var InstructionType;
|
|
234
|
+
(function (InstructionType) {
|
|
235
|
+
/** INSTRUCTION_TYPE_UNSPECIFIED - Unspecified. */
|
|
236
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_UNSPECIFIED"] = 0] = "INSTRUCTION_TYPE_UNSPECIFIED";
|
|
237
|
+
/** INSTRUCTION_TYPE_NONE - None. */
|
|
238
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_NONE"] = 1] = "INSTRUCTION_TYPE_NONE";
|
|
239
|
+
/** INSTRUCTION_TYPE_GO_TO_WAYPOINT - Go to waypoint. */
|
|
240
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_WAYPOINT"] = 2] = "INSTRUCTION_TYPE_GO_TO_WAYPOINT";
|
|
241
|
+
/** INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT - Go to waypoint with depth set point. */
|
|
242
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT"] = 3] = "INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT";
|
|
243
|
+
/** INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT - Go to depth set point. */
|
|
244
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT"] = 4] = "INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT";
|
|
245
|
+
/** INSTRUCTION_TYPE_SET_CAMERA_ACTION - Command used to take photo repeatedly or start, stop recording. */
|
|
246
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_SET_CAMERA_ACTION"] = 5] = "INSTRUCTION_TYPE_SET_CAMERA_ACTION";
|
|
247
|
+
/** INSTRUCTION_TYPE_SET_CONTROL_MODE - Sets a new control mode. */
|
|
248
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_SET_CONTROL_MODE"] = 6] = "INSTRUCTION_TYPE_SET_CONTROL_MODE";
|
|
249
|
+
/** INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA - Sets a new angle for the tilt servo. */
|
|
250
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA"] = 7] = "INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA";
|
|
251
|
+
/** INSTRUCTION_TYPE_SET_TILT_SERVO - Sets a new angle for the tilt servo. */
|
|
252
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_SET_TILT_SERVO"] = 8] = "INSTRUCTION_TYPE_SET_TILT_SERVO";
|
|
253
|
+
/** INSTRUCTION_TYPE_WAIT_FOR_SEC - Waiting for requested time in seconds. */
|
|
254
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_WAIT_FOR_SEC"] = 9] = "INSTRUCTION_TYPE_WAIT_FOR_SEC";
|
|
255
|
+
/** INSTRUCTION_TYPE_GO_TO_SURFACE - Go to the surface. */
|
|
256
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_SURFACE"] = 10] = "INSTRUCTION_TYPE_GO_TO_SURFACE";
|
|
257
|
+
/** INSTRUCTION_TYPE_GO_TO_SEABED - Go to the seabed. */
|
|
258
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_SEABED"] = 11] = "INSTRUCTION_TYPE_GO_TO_SEABED";
|
|
259
|
+
/** INSTRUCTION_TYPE_GO_TO_HOME - Returning to home. */
|
|
260
|
+
InstructionType[InstructionType["INSTRUCTION_TYPE_GO_TO_HOME"] = 12] = "INSTRUCTION_TYPE_GO_TO_HOME";
|
|
261
|
+
InstructionType[InstructionType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
262
|
+
})(InstructionType || (exports.InstructionType = InstructionType = {}));
|
|
263
|
+
function instructionTypeFromJSON(object) {
|
|
264
|
+
switch (object) {
|
|
265
|
+
case 0:
|
|
266
|
+
case "INSTRUCTION_TYPE_UNSPECIFIED":
|
|
267
|
+
return InstructionType.INSTRUCTION_TYPE_UNSPECIFIED;
|
|
268
|
+
case 1:
|
|
269
|
+
case "INSTRUCTION_TYPE_NONE":
|
|
270
|
+
return InstructionType.INSTRUCTION_TYPE_NONE;
|
|
271
|
+
case 2:
|
|
272
|
+
case "INSTRUCTION_TYPE_GO_TO_WAYPOINT":
|
|
273
|
+
return InstructionType.INSTRUCTION_TYPE_GO_TO_WAYPOINT;
|
|
274
|
+
case 3:
|
|
275
|
+
case "INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT":
|
|
276
|
+
return InstructionType.INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT;
|
|
277
|
+
case 4:
|
|
278
|
+
case "INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT":
|
|
279
|
+
return InstructionType.INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT;
|
|
280
|
+
case 5:
|
|
281
|
+
case "INSTRUCTION_TYPE_SET_CAMERA_ACTION":
|
|
282
|
+
return InstructionType.INSTRUCTION_TYPE_SET_CAMERA_ACTION;
|
|
283
|
+
case 6:
|
|
284
|
+
case "INSTRUCTION_TYPE_SET_CONTROL_MODE":
|
|
285
|
+
return InstructionType.INSTRUCTION_TYPE_SET_CONTROL_MODE;
|
|
286
|
+
case 7:
|
|
287
|
+
case "INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA":
|
|
288
|
+
return InstructionType.INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA;
|
|
289
|
+
case 8:
|
|
290
|
+
case "INSTRUCTION_TYPE_SET_TILT_SERVO":
|
|
291
|
+
return InstructionType.INSTRUCTION_TYPE_SET_TILT_SERVO;
|
|
292
|
+
case 9:
|
|
293
|
+
case "INSTRUCTION_TYPE_WAIT_FOR_SEC":
|
|
294
|
+
return InstructionType.INSTRUCTION_TYPE_WAIT_FOR_SEC;
|
|
295
|
+
case 10:
|
|
296
|
+
case "INSTRUCTION_TYPE_GO_TO_SURFACE":
|
|
297
|
+
return InstructionType.INSTRUCTION_TYPE_GO_TO_SURFACE;
|
|
298
|
+
case 11:
|
|
299
|
+
case "INSTRUCTION_TYPE_GO_TO_SEABED":
|
|
300
|
+
return InstructionType.INSTRUCTION_TYPE_GO_TO_SEABED;
|
|
301
|
+
case 12:
|
|
302
|
+
case "INSTRUCTION_TYPE_GO_TO_HOME":
|
|
303
|
+
return InstructionType.INSTRUCTION_TYPE_GO_TO_HOME;
|
|
304
|
+
case -1:
|
|
305
|
+
case "UNRECOGNIZED":
|
|
306
|
+
default:
|
|
307
|
+
return InstructionType.UNRECOGNIZED;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
function instructionTypeToJSON(object) {
|
|
311
|
+
switch (object) {
|
|
312
|
+
case InstructionType.INSTRUCTION_TYPE_UNSPECIFIED:
|
|
313
|
+
return "INSTRUCTION_TYPE_UNSPECIFIED";
|
|
314
|
+
case InstructionType.INSTRUCTION_TYPE_NONE:
|
|
315
|
+
return "INSTRUCTION_TYPE_NONE";
|
|
316
|
+
case InstructionType.INSTRUCTION_TYPE_GO_TO_WAYPOINT:
|
|
317
|
+
return "INSTRUCTION_TYPE_GO_TO_WAYPOINT";
|
|
318
|
+
case InstructionType.INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT:
|
|
319
|
+
return "INSTRUCTION_TYPE_GO_TO_WAYPOINT_WITH_DEPTH_SET_POINT";
|
|
320
|
+
case InstructionType.INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT:
|
|
321
|
+
return "INSTRUCTION_TYPE_GO_TO_DEPTH_SET_POINT";
|
|
322
|
+
case InstructionType.INSTRUCTION_TYPE_SET_CAMERA_ACTION:
|
|
323
|
+
return "INSTRUCTION_TYPE_SET_CAMERA_ACTION";
|
|
324
|
+
case InstructionType.INSTRUCTION_TYPE_SET_CONTROL_MODE:
|
|
325
|
+
return "INSTRUCTION_TYPE_SET_CONTROL_MODE";
|
|
326
|
+
case InstructionType.INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA:
|
|
327
|
+
return "INSTRUCTION_TYPE_SET_TILT_MAIN_CAMERA";
|
|
328
|
+
case InstructionType.INSTRUCTION_TYPE_SET_TILT_SERVO:
|
|
329
|
+
return "INSTRUCTION_TYPE_SET_TILT_SERVO";
|
|
330
|
+
case InstructionType.INSTRUCTION_TYPE_WAIT_FOR_SEC:
|
|
331
|
+
return "INSTRUCTION_TYPE_WAIT_FOR_SEC";
|
|
332
|
+
case InstructionType.INSTRUCTION_TYPE_GO_TO_SURFACE:
|
|
333
|
+
return "INSTRUCTION_TYPE_GO_TO_SURFACE";
|
|
334
|
+
case InstructionType.INSTRUCTION_TYPE_GO_TO_SEABED:
|
|
335
|
+
return "INSTRUCTION_TYPE_GO_TO_SEABED";
|
|
336
|
+
case InstructionType.INSTRUCTION_TYPE_GO_TO_HOME:
|
|
337
|
+
return "INSTRUCTION_TYPE_GO_TO_HOME";
|
|
338
|
+
case InstructionType.UNRECOGNIZED:
|
|
339
|
+
default:
|
|
340
|
+
return "UNRECOGNIZED";
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
/** List of mission supervisor states. */
|
|
344
|
+
var MissionState;
|
|
345
|
+
(function (MissionState) {
|
|
346
|
+
/** MISSION_STATE_UNSPECIFIED - Unspecified. */
|
|
347
|
+
MissionState[MissionState["MISSION_STATE_UNSPECIFIED"] = 0] = "MISSION_STATE_UNSPECIFIED";
|
|
348
|
+
/** MISSION_STATE_INACTIVE - Mission supervisor is inactive. */
|
|
349
|
+
MissionState[MissionState["MISSION_STATE_INACTIVE"] = 1] = "MISSION_STATE_INACTIVE";
|
|
350
|
+
/** MISSION_STATE_READY - Ready to start mission. */
|
|
351
|
+
MissionState[MissionState["MISSION_STATE_READY"] = 2] = "MISSION_STATE_READY";
|
|
352
|
+
/** MISSION_STATE_RUNNING - Mission is running. */
|
|
353
|
+
MissionState[MissionState["MISSION_STATE_RUNNING"] = 3] = "MISSION_STATE_RUNNING";
|
|
354
|
+
/** MISSION_STATE_PAUSED - Mission is paused. */
|
|
355
|
+
MissionState[MissionState["MISSION_STATE_PAUSED"] = 4] = "MISSION_STATE_PAUSED";
|
|
356
|
+
/** MISSION_STATE_COMPLETED - Mission is completed. */
|
|
357
|
+
MissionState[MissionState["MISSION_STATE_COMPLETED"] = 5] = "MISSION_STATE_COMPLETED";
|
|
358
|
+
/** MISSION_STATE_ABORTED - Mission is aborted by the mission supervisor. */
|
|
359
|
+
MissionState[MissionState["MISSION_STATE_ABORTED"] = 6] = "MISSION_STATE_ABORTED";
|
|
360
|
+
/** MISSION_STATE_FAILED_TO_LOAD_MISSION - Mission has failed to load. */
|
|
361
|
+
MissionState[MissionState["MISSION_STATE_FAILED_TO_LOAD_MISSION"] = 7] = "MISSION_STATE_FAILED_TO_LOAD_MISSION";
|
|
362
|
+
/** MISSION_STATE_FAILED_TO_START_MISSION - Mission has failed to start. */
|
|
363
|
+
MissionState[MissionState["MISSION_STATE_FAILED_TO_START_MISSION"] = 8] = "MISSION_STATE_FAILED_TO_START_MISSION";
|
|
364
|
+
MissionState[MissionState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
365
|
+
})(MissionState || (exports.MissionState = MissionState = {}));
|
|
366
|
+
function missionStateFromJSON(object) {
|
|
367
|
+
switch (object) {
|
|
368
|
+
case 0:
|
|
369
|
+
case "MISSION_STATE_UNSPECIFIED":
|
|
370
|
+
return MissionState.MISSION_STATE_UNSPECIFIED;
|
|
371
|
+
case 1:
|
|
372
|
+
case "MISSION_STATE_INACTIVE":
|
|
373
|
+
return MissionState.MISSION_STATE_INACTIVE;
|
|
374
|
+
case 2:
|
|
375
|
+
case "MISSION_STATE_READY":
|
|
376
|
+
return MissionState.MISSION_STATE_READY;
|
|
377
|
+
case 3:
|
|
378
|
+
case "MISSION_STATE_RUNNING":
|
|
379
|
+
return MissionState.MISSION_STATE_RUNNING;
|
|
380
|
+
case 4:
|
|
381
|
+
case "MISSION_STATE_PAUSED":
|
|
382
|
+
return MissionState.MISSION_STATE_PAUSED;
|
|
383
|
+
case 5:
|
|
384
|
+
case "MISSION_STATE_COMPLETED":
|
|
385
|
+
return MissionState.MISSION_STATE_COMPLETED;
|
|
386
|
+
case 6:
|
|
387
|
+
case "MISSION_STATE_ABORTED":
|
|
388
|
+
return MissionState.MISSION_STATE_ABORTED;
|
|
389
|
+
case 7:
|
|
390
|
+
case "MISSION_STATE_FAILED_TO_LOAD_MISSION":
|
|
391
|
+
return MissionState.MISSION_STATE_FAILED_TO_LOAD_MISSION;
|
|
392
|
+
case 8:
|
|
393
|
+
case "MISSION_STATE_FAILED_TO_START_MISSION":
|
|
394
|
+
return MissionState.MISSION_STATE_FAILED_TO_START_MISSION;
|
|
395
|
+
case -1:
|
|
396
|
+
case "UNRECOGNIZED":
|
|
397
|
+
default:
|
|
398
|
+
return MissionState.UNRECOGNIZED;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
function missionStateToJSON(object) {
|
|
402
|
+
switch (object) {
|
|
403
|
+
case MissionState.MISSION_STATE_UNSPECIFIED:
|
|
404
|
+
return "MISSION_STATE_UNSPECIFIED";
|
|
405
|
+
case MissionState.MISSION_STATE_INACTIVE:
|
|
406
|
+
return "MISSION_STATE_INACTIVE";
|
|
407
|
+
case MissionState.MISSION_STATE_READY:
|
|
408
|
+
return "MISSION_STATE_READY";
|
|
409
|
+
case MissionState.MISSION_STATE_RUNNING:
|
|
410
|
+
return "MISSION_STATE_RUNNING";
|
|
411
|
+
case MissionState.MISSION_STATE_PAUSED:
|
|
412
|
+
return "MISSION_STATE_PAUSED";
|
|
413
|
+
case MissionState.MISSION_STATE_COMPLETED:
|
|
414
|
+
return "MISSION_STATE_COMPLETED";
|
|
415
|
+
case MissionState.MISSION_STATE_ABORTED:
|
|
416
|
+
return "MISSION_STATE_ABORTED";
|
|
417
|
+
case MissionState.MISSION_STATE_FAILED_TO_LOAD_MISSION:
|
|
418
|
+
return "MISSION_STATE_FAILED_TO_LOAD_MISSION";
|
|
419
|
+
case MissionState.MISSION_STATE_FAILED_TO_START_MISSION:
|
|
420
|
+
return "MISSION_STATE_FAILED_TO_START_MISSION";
|
|
421
|
+
case MissionState.UNRECOGNIZED:
|
|
422
|
+
default:
|
|
423
|
+
return "UNRECOGNIZED";
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
function createBaseMission() {
|
|
427
|
+
return {
|
|
428
|
+
id: 0,
|
|
429
|
+
name: "",
|
|
430
|
+
instructions: [],
|
|
431
|
+
pathSegments: [],
|
|
432
|
+
totalDistance: 0,
|
|
433
|
+
totalDurationTime: 0,
|
|
434
|
+
defaultSurgeSpeed: 0,
|
|
435
|
+
defaultHeaveSpeed: 0,
|
|
436
|
+
defaultCircleOfAcceptance: 0,
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
exports.Mission = {
|
|
440
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
441
|
+
if (message.id !== 0) {
|
|
442
|
+
writer.uint32(8).uint32(message.id);
|
|
443
|
+
}
|
|
444
|
+
if (message.name !== "") {
|
|
445
|
+
writer.uint32(18).string(message.name);
|
|
446
|
+
}
|
|
447
|
+
for (const v of message.instructions) {
|
|
448
|
+
exports.Instruction.encode(v, writer.uint32(26).fork()).join();
|
|
449
|
+
}
|
|
450
|
+
for (const v of message.pathSegments) {
|
|
451
|
+
exports.PathSegment.encode(v, writer.uint32(34).fork()).join();
|
|
452
|
+
}
|
|
453
|
+
if (message.totalDistance !== 0) {
|
|
454
|
+
writer.uint32(40).uint32(message.totalDistance);
|
|
455
|
+
}
|
|
456
|
+
if (message.totalDurationTime !== 0) {
|
|
457
|
+
writer.uint32(48).uint32(message.totalDurationTime);
|
|
458
|
+
}
|
|
459
|
+
if (message.defaultSurgeSpeed !== 0) {
|
|
460
|
+
writer.uint32(61).float(message.defaultSurgeSpeed);
|
|
461
|
+
}
|
|
462
|
+
if (message.defaultHeaveSpeed !== 0) {
|
|
463
|
+
writer.uint32(69).float(message.defaultHeaveSpeed);
|
|
464
|
+
}
|
|
465
|
+
if (message.defaultCircleOfAcceptance !== 0) {
|
|
466
|
+
writer.uint32(77).float(message.defaultCircleOfAcceptance);
|
|
467
|
+
}
|
|
468
|
+
return writer;
|
|
469
|
+
},
|
|
470
|
+
decode(input, length) {
|
|
471
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
472
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
473
|
+
const message = createBaseMission();
|
|
474
|
+
while (reader.pos < end) {
|
|
475
|
+
const tag = reader.uint32();
|
|
476
|
+
switch (tag >>> 3) {
|
|
477
|
+
case 1: {
|
|
478
|
+
if (tag !== 8) {
|
|
479
|
+
break;
|
|
480
|
+
}
|
|
481
|
+
message.id = reader.uint32();
|
|
482
|
+
continue;
|
|
483
|
+
}
|
|
484
|
+
case 2: {
|
|
485
|
+
if (tag !== 18) {
|
|
486
|
+
break;
|
|
487
|
+
}
|
|
488
|
+
message.name = reader.string();
|
|
489
|
+
continue;
|
|
490
|
+
}
|
|
491
|
+
case 3: {
|
|
492
|
+
if (tag !== 26) {
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
message.instructions.push(exports.Instruction.decode(reader, reader.uint32()));
|
|
496
|
+
continue;
|
|
497
|
+
}
|
|
498
|
+
case 4: {
|
|
499
|
+
if (tag !== 34) {
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
message.pathSegments.push(exports.PathSegment.decode(reader, reader.uint32()));
|
|
503
|
+
continue;
|
|
504
|
+
}
|
|
505
|
+
case 5: {
|
|
506
|
+
if (tag !== 40) {
|
|
507
|
+
break;
|
|
508
|
+
}
|
|
509
|
+
message.totalDistance = reader.uint32();
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
case 6: {
|
|
513
|
+
if (tag !== 48) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
message.totalDurationTime = reader.uint32();
|
|
517
|
+
continue;
|
|
518
|
+
}
|
|
519
|
+
case 7: {
|
|
520
|
+
if (tag !== 61) {
|
|
521
|
+
break;
|
|
522
|
+
}
|
|
523
|
+
message.defaultSurgeSpeed = reader.float();
|
|
524
|
+
continue;
|
|
525
|
+
}
|
|
526
|
+
case 8: {
|
|
527
|
+
if (tag !== 69) {
|
|
528
|
+
break;
|
|
529
|
+
}
|
|
530
|
+
message.defaultHeaveSpeed = reader.float();
|
|
531
|
+
continue;
|
|
532
|
+
}
|
|
533
|
+
case 9: {
|
|
534
|
+
if (tag !== 77) {
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
message.defaultCircleOfAcceptance = reader.float();
|
|
538
|
+
continue;
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
544
|
+
reader.skip(tag & 7);
|
|
545
|
+
}
|
|
546
|
+
return message;
|
|
547
|
+
},
|
|
548
|
+
fromJSON(object) {
|
|
549
|
+
return {
|
|
550
|
+
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
551
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
552
|
+
instructions: gt.Array.isArray(object?.instructions)
|
|
553
|
+
? object.instructions.map((e) => exports.Instruction.fromJSON(e))
|
|
554
|
+
: [],
|
|
555
|
+
pathSegments: gt.Array.isArray(object?.pathSegments)
|
|
556
|
+
? object.pathSegments.map((e) => exports.PathSegment.fromJSON(e))
|
|
557
|
+
: [],
|
|
558
|
+
totalDistance: isSet(object.totalDistance) ? gt.Number(object.totalDistance) : 0,
|
|
559
|
+
totalDurationTime: isSet(object.totalDurationTime) ? gt.Number(object.totalDurationTime) : 0,
|
|
560
|
+
defaultSurgeSpeed: isSet(object.defaultSurgeSpeed) ? gt.Number(object.defaultSurgeSpeed) : 0,
|
|
561
|
+
defaultHeaveSpeed: isSet(object.defaultHeaveSpeed) ? gt.Number(object.defaultHeaveSpeed) : 0,
|
|
562
|
+
defaultCircleOfAcceptance: isSet(object.defaultCircleOfAcceptance)
|
|
563
|
+
? gt.Number(object.defaultCircleOfAcceptance)
|
|
564
|
+
: 0,
|
|
565
|
+
};
|
|
566
|
+
},
|
|
567
|
+
toJSON(message) {
|
|
568
|
+
const obj = {};
|
|
569
|
+
if (message.id !== 0) {
|
|
570
|
+
obj.id = Math.round(message.id);
|
|
571
|
+
}
|
|
572
|
+
if (message.name !== "") {
|
|
573
|
+
obj.name = message.name;
|
|
574
|
+
}
|
|
575
|
+
if (message.instructions?.length) {
|
|
576
|
+
obj.instructions = message.instructions.map((e) => exports.Instruction.toJSON(e));
|
|
577
|
+
}
|
|
578
|
+
if (message.pathSegments?.length) {
|
|
579
|
+
obj.pathSegments = message.pathSegments.map((e) => exports.PathSegment.toJSON(e));
|
|
580
|
+
}
|
|
581
|
+
if (message.totalDistance !== 0) {
|
|
582
|
+
obj.totalDistance = Math.round(message.totalDistance);
|
|
583
|
+
}
|
|
584
|
+
if (message.totalDurationTime !== 0) {
|
|
585
|
+
obj.totalDurationTime = Math.round(message.totalDurationTime);
|
|
586
|
+
}
|
|
587
|
+
if (message.defaultSurgeSpeed !== 0) {
|
|
588
|
+
obj.defaultSurgeSpeed = message.defaultSurgeSpeed;
|
|
589
|
+
}
|
|
590
|
+
if (message.defaultHeaveSpeed !== 0) {
|
|
591
|
+
obj.defaultHeaveSpeed = message.defaultHeaveSpeed;
|
|
592
|
+
}
|
|
593
|
+
if (message.defaultCircleOfAcceptance !== 0) {
|
|
594
|
+
obj.defaultCircleOfAcceptance = message.defaultCircleOfAcceptance;
|
|
595
|
+
}
|
|
596
|
+
return obj;
|
|
597
|
+
},
|
|
598
|
+
create(base) {
|
|
599
|
+
return exports.Mission.fromPartial(base ?? {});
|
|
600
|
+
},
|
|
601
|
+
fromPartial(object) {
|
|
602
|
+
const message = createBaseMission();
|
|
603
|
+
message.id = object.id ?? 0;
|
|
604
|
+
message.name = object.name ?? "";
|
|
605
|
+
message.instructions = object.instructions?.map((e) => exports.Instruction.fromPartial(e)) || [];
|
|
606
|
+
message.pathSegments = object.pathSegments?.map((e) => exports.PathSegment.fromPartial(e)) || [];
|
|
607
|
+
message.totalDistance = object.totalDistance ?? 0;
|
|
608
|
+
message.totalDurationTime = object.totalDurationTime ?? 0;
|
|
609
|
+
message.defaultSurgeSpeed = object.defaultSurgeSpeed ?? 0;
|
|
610
|
+
message.defaultHeaveSpeed = object.defaultHeaveSpeed ?? 0;
|
|
611
|
+
message.defaultCircleOfAcceptance = object.defaultCircleOfAcceptance ?? 0;
|
|
612
|
+
return message;
|
|
613
|
+
},
|
|
614
|
+
};
|
|
615
|
+
function createBaseInstruction() {
|
|
616
|
+
return {
|
|
617
|
+
id: 0,
|
|
618
|
+
groupId: 0,
|
|
619
|
+
autoContinue: false,
|
|
620
|
+
waypointCommand: undefined,
|
|
621
|
+
depthSetPointCommand: undefined,
|
|
622
|
+
cameraCommand: undefined,
|
|
623
|
+
controlModeCommand: undefined,
|
|
624
|
+
tiltMainCameraCommand: undefined,
|
|
625
|
+
tiltMultibeamCommand: undefined,
|
|
626
|
+
waitForCommand: undefined,
|
|
627
|
+
goToSurfaceCommand: undefined,
|
|
628
|
+
goToSeabedCommand: undefined,
|
|
629
|
+
goToHomeCommand: undefined,
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
exports.Instruction = {
|
|
633
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
634
|
+
if (message.id !== 0) {
|
|
635
|
+
writer.uint32(8).uint32(message.id);
|
|
636
|
+
}
|
|
637
|
+
if (message.groupId !== 0) {
|
|
638
|
+
writer.uint32(16).uint32(message.groupId);
|
|
639
|
+
}
|
|
640
|
+
if (message.autoContinue !== false) {
|
|
641
|
+
writer.uint32(24).bool(message.autoContinue);
|
|
642
|
+
}
|
|
643
|
+
if (message.waypointCommand !== undefined) {
|
|
644
|
+
exports.WaypointCommand.encode(message.waypointCommand, writer.uint32(34).fork()).join();
|
|
645
|
+
}
|
|
646
|
+
if (message.depthSetPointCommand !== undefined) {
|
|
647
|
+
exports.DepthSetPointCommand.encode(message.depthSetPointCommand, writer.uint32(42).fork()).join();
|
|
648
|
+
}
|
|
649
|
+
if (message.cameraCommand !== undefined) {
|
|
650
|
+
exports.CameraCommand.encode(message.cameraCommand, writer.uint32(50).fork()).join();
|
|
651
|
+
}
|
|
652
|
+
if (message.controlModeCommand !== undefined) {
|
|
653
|
+
exports.ControlModeCommand.encode(message.controlModeCommand, writer.uint32(58).fork()).join();
|
|
654
|
+
}
|
|
655
|
+
if (message.tiltMainCameraCommand !== undefined) {
|
|
656
|
+
exports.TiltMainCameraCommand.encode(message.tiltMainCameraCommand, writer.uint32(66).fork()).join();
|
|
657
|
+
}
|
|
658
|
+
if (message.tiltMultibeamCommand !== undefined) {
|
|
659
|
+
exports.TiltMultibeamCommand.encode(message.tiltMultibeamCommand, writer.uint32(74).fork()).join();
|
|
660
|
+
}
|
|
661
|
+
if (message.waitForCommand !== undefined) {
|
|
662
|
+
exports.WaitForCommand.encode(message.waitForCommand, writer.uint32(82).fork()).join();
|
|
663
|
+
}
|
|
664
|
+
if (message.goToSurfaceCommand !== undefined) {
|
|
665
|
+
exports.GoToSurfaceCommand.encode(message.goToSurfaceCommand, writer.uint32(90).fork()).join();
|
|
666
|
+
}
|
|
667
|
+
if (message.goToSeabedCommand !== undefined) {
|
|
668
|
+
exports.GoToSeabedCommand.encode(message.goToSeabedCommand, writer.uint32(98).fork()).join();
|
|
669
|
+
}
|
|
670
|
+
if (message.goToHomeCommand !== undefined) {
|
|
671
|
+
exports.GoToHomeCommand.encode(message.goToHomeCommand, writer.uint32(106).fork()).join();
|
|
672
|
+
}
|
|
673
|
+
return writer;
|
|
674
|
+
},
|
|
675
|
+
decode(input, length) {
|
|
676
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
677
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
678
|
+
const message = createBaseInstruction();
|
|
679
|
+
while (reader.pos < end) {
|
|
680
|
+
const tag = reader.uint32();
|
|
681
|
+
switch (tag >>> 3) {
|
|
682
|
+
case 1: {
|
|
683
|
+
if (tag !== 8) {
|
|
684
|
+
break;
|
|
685
|
+
}
|
|
686
|
+
message.id = reader.uint32();
|
|
687
|
+
continue;
|
|
688
|
+
}
|
|
689
|
+
case 2: {
|
|
690
|
+
if (tag !== 16) {
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
message.groupId = reader.uint32();
|
|
694
|
+
continue;
|
|
695
|
+
}
|
|
696
|
+
case 3: {
|
|
697
|
+
if (tag !== 24) {
|
|
698
|
+
break;
|
|
699
|
+
}
|
|
700
|
+
message.autoContinue = reader.bool();
|
|
701
|
+
continue;
|
|
702
|
+
}
|
|
703
|
+
case 4: {
|
|
704
|
+
if (tag !== 34) {
|
|
705
|
+
break;
|
|
706
|
+
}
|
|
707
|
+
message.waypointCommand = exports.WaypointCommand.decode(reader, reader.uint32());
|
|
708
|
+
continue;
|
|
709
|
+
}
|
|
710
|
+
case 5: {
|
|
711
|
+
if (tag !== 42) {
|
|
712
|
+
break;
|
|
713
|
+
}
|
|
714
|
+
message.depthSetPointCommand = exports.DepthSetPointCommand.decode(reader, reader.uint32());
|
|
715
|
+
continue;
|
|
716
|
+
}
|
|
717
|
+
case 6: {
|
|
718
|
+
if (tag !== 50) {
|
|
719
|
+
break;
|
|
720
|
+
}
|
|
721
|
+
message.cameraCommand = exports.CameraCommand.decode(reader, reader.uint32());
|
|
722
|
+
continue;
|
|
723
|
+
}
|
|
724
|
+
case 7: {
|
|
725
|
+
if (tag !== 58) {
|
|
726
|
+
break;
|
|
727
|
+
}
|
|
728
|
+
message.controlModeCommand = exports.ControlModeCommand.decode(reader, reader.uint32());
|
|
729
|
+
continue;
|
|
730
|
+
}
|
|
731
|
+
case 8: {
|
|
732
|
+
if (tag !== 66) {
|
|
733
|
+
break;
|
|
734
|
+
}
|
|
735
|
+
message.tiltMainCameraCommand = exports.TiltMainCameraCommand.decode(reader, reader.uint32());
|
|
736
|
+
continue;
|
|
737
|
+
}
|
|
738
|
+
case 9: {
|
|
739
|
+
if (tag !== 74) {
|
|
740
|
+
break;
|
|
741
|
+
}
|
|
742
|
+
message.tiltMultibeamCommand = exports.TiltMultibeamCommand.decode(reader, reader.uint32());
|
|
743
|
+
continue;
|
|
744
|
+
}
|
|
745
|
+
case 10: {
|
|
746
|
+
if (tag !== 82) {
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
message.waitForCommand = exports.WaitForCommand.decode(reader, reader.uint32());
|
|
750
|
+
continue;
|
|
751
|
+
}
|
|
752
|
+
case 11: {
|
|
753
|
+
if (tag !== 90) {
|
|
754
|
+
break;
|
|
755
|
+
}
|
|
756
|
+
message.goToSurfaceCommand = exports.GoToSurfaceCommand.decode(reader, reader.uint32());
|
|
757
|
+
continue;
|
|
758
|
+
}
|
|
759
|
+
case 12: {
|
|
760
|
+
if (tag !== 98) {
|
|
761
|
+
break;
|
|
762
|
+
}
|
|
763
|
+
message.goToSeabedCommand = exports.GoToSeabedCommand.decode(reader, reader.uint32());
|
|
764
|
+
continue;
|
|
765
|
+
}
|
|
766
|
+
case 13: {
|
|
767
|
+
if (tag !== 106) {
|
|
768
|
+
break;
|
|
769
|
+
}
|
|
770
|
+
message.goToHomeCommand = exports.GoToHomeCommand.decode(reader, reader.uint32());
|
|
771
|
+
continue;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
775
|
+
break;
|
|
776
|
+
}
|
|
777
|
+
reader.skip(tag & 7);
|
|
778
|
+
}
|
|
779
|
+
return message;
|
|
780
|
+
},
|
|
781
|
+
fromJSON(object) {
|
|
782
|
+
return {
|
|
783
|
+
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
784
|
+
groupId: isSet(object.groupId) ? gt.Number(object.groupId) : 0,
|
|
785
|
+
autoContinue: isSet(object.autoContinue) ? gt.Boolean(object.autoContinue) : false,
|
|
786
|
+
waypointCommand: isSet(object.waypointCommand) ? exports.WaypointCommand.fromJSON(object.waypointCommand) : undefined,
|
|
787
|
+
depthSetPointCommand: isSet(object.depthSetPointCommand)
|
|
788
|
+
? exports.DepthSetPointCommand.fromJSON(object.depthSetPointCommand)
|
|
789
|
+
: undefined,
|
|
790
|
+
cameraCommand: isSet(object.cameraCommand) ? exports.CameraCommand.fromJSON(object.cameraCommand) : undefined,
|
|
791
|
+
controlModeCommand: isSet(object.controlModeCommand)
|
|
792
|
+
? exports.ControlModeCommand.fromJSON(object.controlModeCommand)
|
|
793
|
+
: undefined,
|
|
794
|
+
tiltMainCameraCommand: isSet(object.tiltMainCameraCommand)
|
|
795
|
+
? exports.TiltMainCameraCommand.fromJSON(object.tiltMainCameraCommand)
|
|
796
|
+
: undefined,
|
|
797
|
+
tiltMultibeamCommand: isSet(object.tiltMultibeamCommand)
|
|
798
|
+
? exports.TiltMultibeamCommand.fromJSON(object.tiltMultibeamCommand)
|
|
799
|
+
: undefined,
|
|
800
|
+
waitForCommand: isSet(object.waitForCommand) ? exports.WaitForCommand.fromJSON(object.waitForCommand) : undefined,
|
|
801
|
+
goToSurfaceCommand: isSet(object.goToSurfaceCommand)
|
|
802
|
+
? exports.GoToSurfaceCommand.fromJSON(object.goToSurfaceCommand)
|
|
803
|
+
: undefined,
|
|
804
|
+
goToSeabedCommand: isSet(object.goToSeabedCommand)
|
|
805
|
+
? exports.GoToSeabedCommand.fromJSON(object.goToSeabedCommand)
|
|
806
|
+
: undefined,
|
|
807
|
+
goToHomeCommand: isSet(object.goToHomeCommand) ? exports.GoToHomeCommand.fromJSON(object.goToHomeCommand) : undefined,
|
|
808
|
+
};
|
|
809
|
+
},
|
|
810
|
+
toJSON(message) {
|
|
811
|
+
const obj = {};
|
|
812
|
+
if (message.id !== 0) {
|
|
813
|
+
obj.id = Math.round(message.id);
|
|
814
|
+
}
|
|
815
|
+
if (message.groupId !== 0) {
|
|
816
|
+
obj.groupId = Math.round(message.groupId);
|
|
817
|
+
}
|
|
818
|
+
if (message.autoContinue !== false) {
|
|
819
|
+
obj.autoContinue = message.autoContinue;
|
|
820
|
+
}
|
|
821
|
+
if (message.waypointCommand !== undefined) {
|
|
822
|
+
obj.waypointCommand = exports.WaypointCommand.toJSON(message.waypointCommand);
|
|
823
|
+
}
|
|
824
|
+
if (message.depthSetPointCommand !== undefined) {
|
|
825
|
+
obj.depthSetPointCommand = exports.DepthSetPointCommand.toJSON(message.depthSetPointCommand);
|
|
826
|
+
}
|
|
827
|
+
if (message.cameraCommand !== undefined) {
|
|
828
|
+
obj.cameraCommand = exports.CameraCommand.toJSON(message.cameraCommand);
|
|
829
|
+
}
|
|
830
|
+
if (message.controlModeCommand !== undefined) {
|
|
831
|
+
obj.controlModeCommand = exports.ControlModeCommand.toJSON(message.controlModeCommand);
|
|
832
|
+
}
|
|
833
|
+
if (message.tiltMainCameraCommand !== undefined) {
|
|
834
|
+
obj.tiltMainCameraCommand = exports.TiltMainCameraCommand.toJSON(message.tiltMainCameraCommand);
|
|
835
|
+
}
|
|
836
|
+
if (message.tiltMultibeamCommand !== undefined) {
|
|
837
|
+
obj.tiltMultibeamCommand = exports.TiltMultibeamCommand.toJSON(message.tiltMultibeamCommand);
|
|
838
|
+
}
|
|
839
|
+
if (message.waitForCommand !== undefined) {
|
|
840
|
+
obj.waitForCommand = exports.WaitForCommand.toJSON(message.waitForCommand);
|
|
841
|
+
}
|
|
842
|
+
if (message.goToSurfaceCommand !== undefined) {
|
|
843
|
+
obj.goToSurfaceCommand = exports.GoToSurfaceCommand.toJSON(message.goToSurfaceCommand);
|
|
844
|
+
}
|
|
845
|
+
if (message.goToSeabedCommand !== undefined) {
|
|
846
|
+
obj.goToSeabedCommand = exports.GoToSeabedCommand.toJSON(message.goToSeabedCommand);
|
|
847
|
+
}
|
|
848
|
+
if (message.goToHomeCommand !== undefined) {
|
|
849
|
+
obj.goToHomeCommand = exports.GoToHomeCommand.toJSON(message.goToHomeCommand);
|
|
850
|
+
}
|
|
851
|
+
return obj;
|
|
852
|
+
},
|
|
853
|
+
create(base) {
|
|
854
|
+
return exports.Instruction.fromPartial(base ?? {});
|
|
855
|
+
},
|
|
856
|
+
fromPartial(object) {
|
|
857
|
+
const message = createBaseInstruction();
|
|
858
|
+
message.id = object.id ?? 0;
|
|
859
|
+
message.groupId = object.groupId ?? 0;
|
|
860
|
+
message.autoContinue = object.autoContinue ?? false;
|
|
861
|
+
message.waypointCommand = (object.waypointCommand !== undefined && object.waypointCommand !== null)
|
|
862
|
+
? exports.WaypointCommand.fromPartial(object.waypointCommand)
|
|
863
|
+
: undefined;
|
|
864
|
+
message.depthSetPointCommand = (object.depthSetPointCommand !== undefined && object.depthSetPointCommand !== null)
|
|
865
|
+
? exports.DepthSetPointCommand.fromPartial(object.depthSetPointCommand)
|
|
866
|
+
: undefined;
|
|
867
|
+
message.cameraCommand = (object.cameraCommand !== undefined && object.cameraCommand !== null)
|
|
868
|
+
? exports.CameraCommand.fromPartial(object.cameraCommand)
|
|
869
|
+
: undefined;
|
|
870
|
+
message.controlModeCommand = (object.controlModeCommand !== undefined && object.controlModeCommand !== null)
|
|
871
|
+
? exports.ControlModeCommand.fromPartial(object.controlModeCommand)
|
|
872
|
+
: undefined;
|
|
873
|
+
message.tiltMainCameraCommand =
|
|
874
|
+
(object.tiltMainCameraCommand !== undefined && object.tiltMainCameraCommand !== null)
|
|
875
|
+
? exports.TiltMainCameraCommand.fromPartial(object.tiltMainCameraCommand)
|
|
876
|
+
: undefined;
|
|
877
|
+
message.tiltMultibeamCommand = (object.tiltMultibeamCommand !== undefined && object.tiltMultibeamCommand !== null)
|
|
878
|
+
? exports.TiltMultibeamCommand.fromPartial(object.tiltMultibeamCommand)
|
|
879
|
+
: undefined;
|
|
880
|
+
message.waitForCommand = (object.waitForCommand !== undefined && object.waitForCommand !== null)
|
|
881
|
+
? exports.WaitForCommand.fromPartial(object.waitForCommand)
|
|
882
|
+
: undefined;
|
|
883
|
+
message.goToSurfaceCommand = (object.goToSurfaceCommand !== undefined && object.goToSurfaceCommand !== null)
|
|
884
|
+
? exports.GoToSurfaceCommand.fromPartial(object.goToSurfaceCommand)
|
|
885
|
+
: undefined;
|
|
886
|
+
message.goToSeabedCommand = (object.goToSeabedCommand !== undefined && object.goToSeabedCommand !== null)
|
|
887
|
+
? exports.GoToSeabedCommand.fromPartial(object.goToSeabedCommand)
|
|
888
|
+
: undefined;
|
|
889
|
+
message.goToHomeCommand = (object.goToHomeCommand !== undefined && object.goToHomeCommand !== null)
|
|
890
|
+
? exports.GoToHomeCommand.fromPartial(object.goToHomeCommand)
|
|
891
|
+
: undefined;
|
|
892
|
+
return message;
|
|
893
|
+
},
|
|
894
|
+
};
|
|
895
|
+
function createBaseDepthSetPoint() {
|
|
896
|
+
return { depth: 0, speedToDepth: 0, depthZeroReference: 0 };
|
|
897
|
+
}
|
|
898
|
+
exports.DepthSetPoint = {
|
|
899
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
900
|
+
if (message.depth !== 0) {
|
|
901
|
+
writer.uint32(13).float(message.depth);
|
|
902
|
+
}
|
|
903
|
+
if (message.speedToDepth !== 0) {
|
|
904
|
+
writer.uint32(21).float(message.speedToDepth);
|
|
905
|
+
}
|
|
906
|
+
if (message.depthZeroReference !== 0) {
|
|
907
|
+
writer.uint32(24).int32(message.depthZeroReference);
|
|
908
|
+
}
|
|
909
|
+
return writer;
|
|
910
|
+
},
|
|
911
|
+
decode(input, length) {
|
|
912
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
913
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
914
|
+
const message = createBaseDepthSetPoint();
|
|
915
|
+
while (reader.pos < end) {
|
|
916
|
+
const tag = reader.uint32();
|
|
917
|
+
switch (tag >>> 3) {
|
|
918
|
+
case 1: {
|
|
919
|
+
if (tag !== 13) {
|
|
920
|
+
break;
|
|
921
|
+
}
|
|
922
|
+
message.depth = reader.float();
|
|
923
|
+
continue;
|
|
924
|
+
}
|
|
925
|
+
case 2: {
|
|
926
|
+
if (tag !== 21) {
|
|
927
|
+
break;
|
|
928
|
+
}
|
|
929
|
+
message.speedToDepth = reader.float();
|
|
930
|
+
continue;
|
|
931
|
+
}
|
|
932
|
+
case 3: {
|
|
933
|
+
if (tag !== 24) {
|
|
934
|
+
break;
|
|
935
|
+
}
|
|
936
|
+
message.depthZeroReference = reader.int32();
|
|
937
|
+
continue;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
941
|
+
break;
|
|
942
|
+
}
|
|
943
|
+
reader.skip(tag & 7);
|
|
944
|
+
}
|
|
945
|
+
return message;
|
|
946
|
+
},
|
|
947
|
+
fromJSON(object) {
|
|
948
|
+
return {
|
|
949
|
+
depth: isSet(object.depth) ? gt.Number(object.depth) : 0,
|
|
950
|
+
speedToDepth: isSet(object.speedToDepth) ? gt.Number(object.speedToDepth) : 0,
|
|
951
|
+
depthZeroReference: isSet(object.depthZeroReference) ? depthZeroReferenceFromJSON(object.depthZeroReference) : 0,
|
|
952
|
+
};
|
|
953
|
+
},
|
|
954
|
+
toJSON(message) {
|
|
955
|
+
const obj = {};
|
|
956
|
+
if (message.depth !== 0) {
|
|
957
|
+
obj.depth = message.depth;
|
|
958
|
+
}
|
|
959
|
+
if (message.speedToDepth !== 0) {
|
|
960
|
+
obj.speedToDepth = message.speedToDepth;
|
|
961
|
+
}
|
|
962
|
+
if (message.depthZeroReference !== 0) {
|
|
963
|
+
obj.depthZeroReference = depthZeroReferenceToJSON(message.depthZeroReference);
|
|
964
|
+
}
|
|
965
|
+
return obj;
|
|
966
|
+
},
|
|
967
|
+
create(base) {
|
|
968
|
+
return exports.DepthSetPoint.fromPartial(base ?? {});
|
|
969
|
+
},
|
|
970
|
+
fromPartial(object) {
|
|
971
|
+
const message = createBaseDepthSetPoint();
|
|
972
|
+
message.depth = object.depth ?? 0;
|
|
973
|
+
message.speedToDepth = object.speedToDepth ?? 0;
|
|
974
|
+
message.depthZeroReference = object.depthZeroReference ?? 0;
|
|
975
|
+
return message;
|
|
976
|
+
},
|
|
977
|
+
};
|
|
978
|
+
function createBaseWaypoint() {
|
|
979
|
+
return {
|
|
980
|
+
id: 0,
|
|
981
|
+
name: "",
|
|
982
|
+
globalPosition: undefined,
|
|
983
|
+
circleOfAcceptance: 0,
|
|
984
|
+
speedToTarget: 0,
|
|
985
|
+
depthSetPoint: undefined,
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
exports.Waypoint = {
|
|
989
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
990
|
+
if (message.id !== 0) {
|
|
991
|
+
writer.uint32(8).uint32(message.id);
|
|
992
|
+
}
|
|
993
|
+
if (message.name !== "") {
|
|
994
|
+
writer.uint32(18).string(message.name);
|
|
995
|
+
}
|
|
996
|
+
if (message.globalPosition !== undefined) {
|
|
997
|
+
message_formats_1.LatLongPosition.encode(message.globalPosition, writer.uint32(26).fork()).join();
|
|
998
|
+
}
|
|
999
|
+
if (message.circleOfAcceptance !== 0) {
|
|
1000
|
+
writer.uint32(37).float(message.circleOfAcceptance);
|
|
1001
|
+
}
|
|
1002
|
+
if (message.speedToTarget !== 0) {
|
|
1003
|
+
writer.uint32(45).float(message.speedToTarget);
|
|
1004
|
+
}
|
|
1005
|
+
if (message.depthSetPoint !== undefined) {
|
|
1006
|
+
exports.DepthSetPoint.encode(message.depthSetPoint, writer.uint32(50).fork()).join();
|
|
1007
|
+
}
|
|
1008
|
+
return writer;
|
|
1009
|
+
},
|
|
1010
|
+
decode(input, length) {
|
|
1011
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1012
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1013
|
+
const message = createBaseWaypoint();
|
|
1014
|
+
while (reader.pos < end) {
|
|
1015
|
+
const tag = reader.uint32();
|
|
1016
|
+
switch (tag >>> 3) {
|
|
1017
|
+
case 1: {
|
|
1018
|
+
if (tag !== 8) {
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
message.id = reader.uint32();
|
|
1022
|
+
continue;
|
|
1023
|
+
}
|
|
1024
|
+
case 2: {
|
|
1025
|
+
if (tag !== 18) {
|
|
1026
|
+
break;
|
|
1027
|
+
}
|
|
1028
|
+
message.name = reader.string();
|
|
1029
|
+
continue;
|
|
1030
|
+
}
|
|
1031
|
+
case 3: {
|
|
1032
|
+
if (tag !== 26) {
|
|
1033
|
+
break;
|
|
1034
|
+
}
|
|
1035
|
+
message.globalPosition = message_formats_1.LatLongPosition.decode(reader, reader.uint32());
|
|
1036
|
+
continue;
|
|
1037
|
+
}
|
|
1038
|
+
case 4: {
|
|
1039
|
+
if (tag !== 37) {
|
|
1040
|
+
break;
|
|
1041
|
+
}
|
|
1042
|
+
message.circleOfAcceptance = reader.float();
|
|
1043
|
+
continue;
|
|
1044
|
+
}
|
|
1045
|
+
case 5: {
|
|
1046
|
+
if (tag !== 45) {
|
|
1047
|
+
break;
|
|
1048
|
+
}
|
|
1049
|
+
message.speedToTarget = reader.float();
|
|
1050
|
+
continue;
|
|
1051
|
+
}
|
|
1052
|
+
case 6: {
|
|
1053
|
+
if (tag !== 50) {
|
|
1054
|
+
break;
|
|
1055
|
+
}
|
|
1056
|
+
message.depthSetPoint = exports.DepthSetPoint.decode(reader, reader.uint32());
|
|
1057
|
+
continue;
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1061
|
+
break;
|
|
1062
|
+
}
|
|
1063
|
+
reader.skip(tag & 7);
|
|
1064
|
+
}
|
|
1065
|
+
return message;
|
|
1066
|
+
},
|
|
1067
|
+
fromJSON(object) {
|
|
1068
|
+
return {
|
|
1069
|
+
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
1070
|
+
name: isSet(object.name) ? gt.String(object.name) : "",
|
|
1071
|
+
globalPosition: isSet(object.globalPosition) ? message_formats_1.LatLongPosition.fromJSON(object.globalPosition) : undefined,
|
|
1072
|
+
circleOfAcceptance: isSet(object.circleOfAcceptance) ? gt.Number(object.circleOfAcceptance) : 0,
|
|
1073
|
+
speedToTarget: isSet(object.speedToTarget) ? gt.Number(object.speedToTarget) : 0,
|
|
1074
|
+
depthSetPoint: isSet(object.depthSetPoint) ? exports.DepthSetPoint.fromJSON(object.depthSetPoint) : undefined,
|
|
1075
|
+
};
|
|
1076
|
+
},
|
|
1077
|
+
toJSON(message) {
|
|
1078
|
+
const obj = {};
|
|
1079
|
+
if (message.id !== 0) {
|
|
1080
|
+
obj.id = Math.round(message.id);
|
|
1081
|
+
}
|
|
1082
|
+
if (message.name !== "") {
|
|
1083
|
+
obj.name = message.name;
|
|
1084
|
+
}
|
|
1085
|
+
if (message.globalPosition !== undefined) {
|
|
1086
|
+
obj.globalPosition = message_formats_1.LatLongPosition.toJSON(message.globalPosition);
|
|
1087
|
+
}
|
|
1088
|
+
if (message.circleOfAcceptance !== 0) {
|
|
1089
|
+
obj.circleOfAcceptance = message.circleOfAcceptance;
|
|
1090
|
+
}
|
|
1091
|
+
if (message.speedToTarget !== 0) {
|
|
1092
|
+
obj.speedToTarget = message.speedToTarget;
|
|
1093
|
+
}
|
|
1094
|
+
if (message.depthSetPoint !== undefined) {
|
|
1095
|
+
obj.depthSetPoint = exports.DepthSetPoint.toJSON(message.depthSetPoint);
|
|
1096
|
+
}
|
|
1097
|
+
return obj;
|
|
1098
|
+
},
|
|
1099
|
+
create(base) {
|
|
1100
|
+
return exports.Waypoint.fromPartial(base ?? {});
|
|
1101
|
+
},
|
|
1102
|
+
fromPartial(object) {
|
|
1103
|
+
const message = createBaseWaypoint();
|
|
1104
|
+
message.id = object.id ?? 0;
|
|
1105
|
+
message.name = object.name ?? "";
|
|
1106
|
+
message.globalPosition = (object.globalPosition !== undefined && object.globalPosition !== null)
|
|
1107
|
+
? message_formats_1.LatLongPosition.fromPartial(object.globalPosition)
|
|
1108
|
+
: undefined;
|
|
1109
|
+
message.circleOfAcceptance = object.circleOfAcceptance ?? 0;
|
|
1110
|
+
message.speedToTarget = object.speedToTarget ?? 0;
|
|
1111
|
+
message.depthSetPoint = (object.depthSetPoint !== undefined && object.depthSetPoint !== null)
|
|
1112
|
+
? exports.DepthSetPoint.fromPartial(object.depthSetPoint)
|
|
1113
|
+
: undefined;
|
|
1114
|
+
return message;
|
|
1115
|
+
},
|
|
1116
|
+
};
|
|
1117
|
+
function createBaseControlModeCommand() {
|
|
1118
|
+
return { controlModeVertical: 0, controlModeHorizontal: 0 };
|
|
1119
|
+
}
|
|
1120
|
+
exports.ControlModeCommand = {
|
|
1121
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1122
|
+
if (message.controlModeVertical !== 0) {
|
|
1123
|
+
writer.uint32(40).int32(message.controlModeVertical);
|
|
1124
|
+
}
|
|
1125
|
+
if (message.controlModeHorizontal !== 0) {
|
|
1126
|
+
writer.uint32(48).int32(message.controlModeHorizontal);
|
|
1127
|
+
}
|
|
1128
|
+
return writer;
|
|
1129
|
+
},
|
|
1130
|
+
decode(input, length) {
|
|
1131
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1132
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1133
|
+
const message = createBaseControlModeCommand();
|
|
1134
|
+
while (reader.pos < end) {
|
|
1135
|
+
const tag = reader.uint32();
|
|
1136
|
+
switch (tag >>> 3) {
|
|
1137
|
+
case 5: {
|
|
1138
|
+
if (tag !== 40) {
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
message.controlModeVertical = reader.int32();
|
|
1142
|
+
continue;
|
|
1143
|
+
}
|
|
1144
|
+
case 6: {
|
|
1145
|
+
if (tag !== 48) {
|
|
1146
|
+
break;
|
|
1147
|
+
}
|
|
1148
|
+
message.controlModeHorizontal = reader.int32();
|
|
1149
|
+
continue;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1153
|
+
break;
|
|
1154
|
+
}
|
|
1155
|
+
reader.skip(tag & 7);
|
|
1156
|
+
}
|
|
1157
|
+
return message;
|
|
1158
|
+
},
|
|
1159
|
+
fromJSON(object) {
|
|
1160
|
+
return {
|
|
1161
|
+
controlModeVertical: isSet(object.controlModeVertical)
|
|
1162
|
+
? controlModeVerticalFromJSON(object.controlModeVertical)
|
|
1163
|
+
: 0,
|
|
1164
|
+
controlModeHorizontal: isSet(object.controlModeHorizontal)
|
|
1165
|
+
? controlModeHorizontalFromJSON(object.controlModeHorizontal)
|
|
1166
|
+
: 0,
|
|
1167
|
+
};
|
|
1168
|
+
},
|
|
1169
|
+
toJSON(message) {
|
|
1170
|
+
const obj = {};
|
|
1171
|
+
if (message.controlModeVertical !== 0) {
|
|
1172
|
+
obj.controlModeVertical = controlModeVerticalToJSON(message.controlModeVertical);
|
|
1173
|
+
}
|
|
1174
|
+
if (message.controlModeHorizontal !== 0) {
|
|
1175
|
+
obj.controlModeHorizontal = controlModeHorizontalToJSON(message.controlModeHorizontal);
|
|
1176
|
+
}
|
|
1177
|
+
return obj;
|
|
1178
|
+
},
|
|
1179
|
+
create(base) {
|
|
1180
|
+
return exports.ControlModeCommand.fromPartial(base ?? {});
|
|
1181
|
+
},
|
|
1182
|
+
fromPartial(object) {
|
|
1183
|
+
const message = createBaseControlModeCommand();
|
|
1184
|
+
message.controlModeVertical = object.controlModeVertical ?? 0;
|
|
1185
|
+
message.controlModeHorizontal = object.controlModeHorizontal ?? 0;
|
|
1186
|
+
return message;
|
|
1187
|
+
},
|
|
1188
|
+
};
|
|
1189
|
+
function createBaseWaypointCommand() {
|
|
1190
|
+
return { waypoint: undefined };
|
|
1191
|
+
}
|
|
1192
|
+
exports.WaypointCommand = {
|
|
1193
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1194
|
+
if (message.waypoint !== undefined) {
|
|
1195
|
+
exports.Waypoint.encode(message.waypoint, writer.uint32(10).fork()).join();
|
|
1196
|
+
}
|
|
1197
|
+
return writer;
|
|
1198
|
+
},
|
|
1199
|
+
decode(input, length) {
|
|
1200
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1201
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1202
|
+
const message = createBaseWaypointCommand();
|
|
1203
|
+
while (reader.pos < end) {
|
|
1204
|
+
const tag = reader.uint32();
|
|
1205
|
+
switch (tag >>> 3) {
|
|
1206
|
+
case 1: {
|
|
1207
|
+
if (tag !== 10) {
|
|
1208
|
+
break;
|
|
1209
|
+
}
|
|
1210
|
+
message.waypoint = exports.Waypoint.decode(reader, reader.uint32());
|
|
1211
|
+
continue;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1215
|
+
break;
|
|
1216
|
+
}
|
|
1217
|
+
reader.skip(tag & 7);
|
|
1218
|
+
}
|
|
1219
|
+
return message;
|
|
1220
|
+
},
|
|
1221
|
+
fromJSON(object) {
|
|
1222
|
+
return { waypoint: isSet(object.waypoint) ? exports.Waypoint.fromJSON(object.waypoint) : undefined };
|
|
1223
|
+
},
|
|
1224
|
+
toJSON(message) {
|
|
1225
|
+
const obj = {};
|
|
1226
|
+
if (message.waypoint !== undefined) {
|
|
1227
|
+
obj.waypoint = exports.Waypoint.toJSON(message.waypoint);
|
|
1228
|
+
}
|
|
1229
|
+
return obj;
|
|
1230
|
+
},
|
|
1231
|
+
create(base) {
|
|
1232
|
+
return exports.WaypointCommand.fromPartial(base ?? {});
|
|
1233
|
+
},
|
|
1234
|
+
fromPartial(object) {
|
|
1235
|
+
const message = createBaseWaypointCommand();
|
|
1236
|
+
message.waypoint = (object.waypoint !== undefined && object.waypoint !== null)
|
|
1237
|
+
? exports.Waypoint.fromPartial(object.waypoint)
|
|
1238
|
+
: undefined;
|
|
1239
|
+
return message;
|
|
1240
|
+
},
|
|
1241
|
+
};
|
|
1242
|
+
function createBaseDepthSetPointCommand() {
|
|
1243
|
+
return { depthSetPoint: undefined };
|
|
1244
|
+
}
|
|
1245
|
+
exports.DepthSetPointCommand = {
|
|
1246
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1247
|
+
if (message.depthSetPoint !== undefined) {
|
|
1248
|
+
exports.DepthSetPoint.encode(message.depthSetPoint, writer.uint32(10).fork()).join();
|
|
1249
|
+
}
|
|
1250
|
+
return writer;
|
|
1251
|
+
},
|
|
1252
|
+
decode(input, length) {
|
|
1253
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1254
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1255
|
+
const message = createBaseDepthSetPointCommand();
|
|
1256
|
+
while (reader.pos < end) {
|
|
1257
|
+
const tag = reader.uint32();
|
|
1258
|
+
switch (tag >>> 3) {
|
|
1259
|
+
case 1: {
|
|
1260
|
+
if (tag !== 10) {
|
|
1261
|
+
break;
|
|
1262
|
+
}
|
|
1263
|
+
message.depthSetPoint = exports.DepthSetPoint.decode(reader, reader.uint32());
|
|
1264
|
+
continue;
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1268
|
+
break;
|
|
1269
|
+
}
|
|
1270
|
+
reader.skip(tag & 7);
|
|
1271
|
+
}
|
|
1272
|
+
return message;
|
|
1273
|
+
},
|
|
1274
|
+
fromJSON(object) {
|
|
1275
|
+
return { depthSetPoint: isSet(object.depthSetPoint) ? exports.DepthSetPoint.fromJSON(object.depthSetPoint) : undefined };
|
|
1276
|
+
},
|
|
1277
|
+
toJSON(message) {
|
|
1278
|
+
const obj = {};
|
|
1279
|
+
if (message.depthSetPoint !== undefined) {
|
|
1280
|
+
obj.depthSetPoint = exports.DepthSetPoint.toJSON(message.depthSetPoint);
|
|
1281
|
+
}
|
|
1282
|
+
return obj;
|
|
1283
|
+
},
|
|
1284
|
+
create(base) {
|
|
1285
|
+
return exports.DepthSetPointCommand.fromPartial(base ?? {});
|
|
1286
|
+
},
|
|
1287
|
+
fromPartial(object) {
|
|
1288
|
+
const message = createBaseDepthSetPointCommand();
|
|
1289
|
+
message.depthSetPoint = (object.depthSetPoint !== undefined && object.depthSetPoint !== null)
|
|
1290
|
+
? exports.DepthSetPoint.fromPartial(object.depthSetPoint)
|
|
1291
|
+
: undefined;
|
|
1292
|
+
return message;
|
|
1293
|
+
},
|
|
1294
|
+
};
|
|
1295
|
+
function createBaseTiltMainCameraCommand() {
|
|
1296
|
+
return { tiltAngle: undefined };
|
|
1297
|
+
}
|
|
1298
|
+
exports.TiltMainCameraCommand = {
|
|
1299
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1300
|
+
if (message.tiltAngle !== undefined) {
|
|
1301
|
+
message_formats_1.TiltAngle.encode(message.tiltAngle, writer.uint32(10).fork()).join();
|
|
1302
|
+
}
|
|
1303
|
+
return writer;
|
|
1304
|
+
},
|
|
1305
|
+
decode(input, length) {
|
|
1306
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1307
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1308
|
+
const message = createBaseTiltMainCameraCommand();
|
|
1309
|
+
while (reader.pos < end) {
|
|
1310
|
+
const tag = reader.uint32();
|
|
1311
|
+
switch (tag >>> 3) {
|
|
1312
|
+
case 1: {
|
|
1313
|
+
if (tag !== 10) {
|
|
1314
|
+
break;
|
|
1315
|
+
}
|
|
1316
|
+
message.tiltAngle = message_formats_1.TiltAngle.decode(reader, reader.uint32());
|
|
1317
|
+
continue;
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1321
|
+
break;
|
|
1322
|
+
}
|
|
1323
|
+
reader.skip(tag & 7);
|
|
1324
|
+
}
|
|
1325
|
+
return message;
|
|
1326
|
+
},
|
|
1327
|
+
fromJSON(object) {
|
|
1328
|
+
return { tiltAngle: isSet(object.tiltAngle) ? message_formats_1.TiltAngle.fromJSON(object.tiltAngle) : undefined };
|
|
1329
|
+
},
|
|
1330
|
+
toJSON(message) {
|
|
1331
|
+
const obj = {};
|
|
1332
|
+
if (message.tiltAngle !== undefined) {
|
|
1333
|
+
obj.tiltAngle = message_formats_1.TiltAngle.toJSON(message.tiltAngle);
|
|
1334
|
+
}
|
|
1335
|
+
return obj;
|
|
1336
|
+
},
|
|
1337
|
+
create(base) {
|
|
1338
|
+
return exports.TiltMainCameraCommand.fromPartial(base ?? {});
|
|
1339
|
+
},
|
|
1340
|
+
fromPartial(object) {
|
|
1341
|
+
const message = createBaseTiltMainCameraCommand();
|
|
1342
|
+
message.tiltAngle = (object.tiltAngle !== undefined && object.tiltAngle !== null)
|
|
1343
|
+
? message_formats_1.TiltAngle.fromPartial(object.tiltAngle)
|
|
1344
|
+
: undefined;
|
|
1345
|
+
return message;
|
|
1346
|
+
},
|
|
1347
|
+
};
|
|
1348
|
+
function createBaseTiltMultibeamCommand() {
|
|
1349
|
+
return { multibeamServo: undefined };
|
|
1350
|
+
}
|
|
1351
|
+
exports.TiltMultibeamCommand = {
|
|
1352
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1353
|
+
if (message.multibeamServo !== undefined) {
|
|
1354
|
+
message_formats_1.MultibeamServo.encode(message.multibeamServo, writer.uint32(10).fork()).join();
|
|
1355
|
+
}
|
|
1356
|
+
return writer;
|
|
1357
|
+
},
|
|
1358
|
+
decode(input, length) {
|
|
1359
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1360
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1361
|
+
const message = createBaseTiltMultibeamCommand();
|
|
1362
|
+
while (reader.pos < end) {
|
|
1363
|
+
const tag = reader.uint32();
|
|
1364
|
+
switch (tag >>> 3) {
|
|
1365
|
+
case 1: {
|
|
1366
|
+
if (tag !== 10) {
|
|
1367
|
+
break;
|
|
1368
|
+
}
|
|
1369
|
+
message.multibeamServo = message_formats_1.MultibeamServo.decode(reader, reader.uint32());
|
|
1370
|
+
continue;
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1374
|
+
break;
|
|
1375
|
+
}
|
|
1376
|
+
reader.skip(tag & 7);
|
|
1377
|
+
}
|
|
1378
|
+
return message;
|
|
1379
|
+
},
|
|
1380
|
+
fromJSON(object) {
|
|
1381
|
+
return {
|
|
1382
|
+
multibeamServo: isSet(object.multibeamServo) ? message_formats_1.MultibeamServo.fromJSON(object.multibeamServo) : undefined,
|
|
1383
|
+
};
|
|
1384
|
+
},
|
|
1385
|
+
toJSON(message) {
|
|
1386
|
+
const obj = {};
|
|
1387
|
+
if (message.multibeamServo !== undefined) {
|
|
1388
|
+
obj.multibeamServo = message_formats_1.MultibeamServo.toJSON(message.multibeamServo);
|
|
1389
|
+
}
|
|
1390
|
+
return obj;
|
|
1391
|
+
},
|
|
1392
|
+
create(base) {
|
|
1393
|
+
return exports.TiltMultibeamCommand.fromPartial(base ?? {});
|
|
1394
|
+
},
|
|
1395
|
+
fromPartial(object) {
|
|
1396
|
+
const message = createBaseTiltMultibeamCommand();
|
|
1397
|
+
message.multibeamServo = (object.multibeamServo !== undefined && object.multibeamServo !== null)
|
|
1398
|
+
? message_formats_1.MultibeamServo.fromPartial(object.multibeamServo)
|
|
1399
|
+
: undefined;
|
|
1400
|
+
return message;
|
|
1401
|
+
},
|
|
1402
|
+
};
|
|
1403
|
+
function createBaseWaitForCommand() {
|
|
1404
|
+
return { waitForSeconds: 0 };
|
|
1405
|
+
}
|
|
1406
|
+
exports.WaitForCommand = {
|
|
1407
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1408
|
+
if (message.waitForSeconds !== 0) {
|
|
1409
|
+
writer.uint32(13).float(message.waitForSeconds);
|
|
1410
|
+
}
|
|
1411
|
+
return writer;
|
|
1412
|
+
},
|
|
1413
|
+
decode(input, length) {
|
|
1414
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1415
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1416
|
+
const message = createBaseWaitForCommand();
|
|
1417
|
+
while (reader.pos < end) {
|
|
1418
|
+
const tag = reader.uint32();
|
|
1419
|
+
switch (tag >>> 3) {
|
|
1420
|
+
case 1: {
|
|
1421
|
+
if (tag !== 13) {
|
|
1422
|
+
break;
|
|
1423
|
+
}
|
|
1424
|
+
message.waitForSeconds = reader.float();
|
|
1425
|
+
continue;
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1429
|
+
break;
|
|
1430
|
+
}
|
|
1431
|
+
reader.skip(tag & 7);
|
|
1432
|
+
}
|
|
1433
|
+
return message;
|
|
1434
|
+
},
|
|
1435
|
+
fromJSON(object) {
|
|
1436
|
+
return { waitForSeconds: isSet(object.waitForSeconds) ? gt.Number(object.waitForSeconds) : 0 };
|
|
1437
|
+
},
|
|
1438
|
+
toJSON(message) {
|
|
1439
|
+
const obj = {};
|
|
1440
|
+
if (message.waitForSeconds !== 0) {
|
|
1441
|
+
obj.waitForSeconds = message.waitForSeconds;
|
|
1442
|
+
}
|
|
1443
|
+
return obj;
|
|
1444
|
+
},
|
|
1445
|
+
create(base) {
|
|
1446
|
+
return exports.WaitForCommand.fromPartial(base ?? {});
|
|
1447
|
+
},
|
|
1448
|
+
fromPartial(object) {
|
|
1449
|
+
const message = createBaseWaitForCommand();
|
|
1450
|
+
message.waitForSeconds = object.waitForSeconds ?? 0;
|
|
1451
|
+
return message;
|
|
1452
|
+
},
|
|
1453
|
+
};
|
|
1454
|
+
function createBaseCameraCommand() {
|
|
1455
|
+
return { cameraAction: 0, actionParam: 0 };
|
|
1456
|
+
}
|
|
1457
|
+
exports.CameraCommand = {
|
|
1458
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1459
|
+
if (message.cameraAction !== 0) {
|
|
1460
|
+
writer.uint32(8).int32(message.cameraAction);
|
|
1461
|
+
}
|
|
1462
|
+
if (message.actionParam !== 0) {
|
|
1463
|
+
writer.uint32(21).float(message.actionParam);
|
|
1464
|
+
}
|
|
1465
|
+
return writer;
|
|
1466
|
+
},
|
|
1467
|
+
decode(input, length) {
|
|
1468
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1469
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1470
|
+
const message = createBaseCameraCommand();
|
|
1471
|
+
while (reader.pos < end) {
|
|
1472
|
+
const tag = reader.uint32();
|
|
1473
|
+
switch (tag >>> 3) {
|
|
1474
|
+
case 1: {
|
|
1475
|
+
if (tag !== 8) {
|
|
1476
|
+
break;
|
|
1477
|
+
}
|
|
1478
|
+
message.cameraAction = reader.int32();
|
|
1479
|
+
continue;
|
|
1480
|
+
}
|
|
1481
|
+
case 2: {
|
|
1482
|
+
if (tag !== 21) {
|
|
1483
|
+
break;
|
|
1484
|
+
}
|
|
1485
|
+
message.actionParam = reader.float();
|
|
1486
|
+
continue;
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1490
|
+
break;
|
|
1491
|
+
}
|
|
1492
|
+
reader.skip(tag & 7);
|
|
1493
|
+
}
|
|
1494
|
+
return message;
|
|
1495
|
+
},
|
|
1496
|
+
fromJSON(object) {
|
|
1497
|
+
return {
|
|
1498
|
+
cameraAction: isSet(object.cameraAction) ? cameraActionFromJSON(object.cameraAction) : 0,
|
|
1499
|
+
actionParam: isSet(object.actionParam) ? gt.Number(object.actionParam) : 0,
|
|
1500
|
+
};
|
|
1501
|
+
},
|
|
1502
|
+
toJSON(message) {
|
|
1503
|
+
const obj = {};
|
|
1504
|
+
if (message.cameraAction !== 0) {
|
|
1505
|
+
obj.cameraAction = cameraActionToJSON(message.cameraAction);
|
|
1506
|
+
}
|
|
1507
|
+
if (message.actionParam !== 0) {
|
|
1508
|
+
obj.actionParam = message.actionParam;
|
|
1509
|
+
}
|
|
1510
|
+
return obj;
|
|
1511
|
+
},
|
|
1512
|
+
create(base) {
|
|
1513
|
+
return exports.CameraCommand.fromPartial(base ?? {});
|
|
1514
|
+
},
|
|
1515
|
+
fromPartial(object) {
|
|
1516
|
+
const message = createBaseCameraCommand();
|
|
1517
|
+
message.cameraAction = object.cameraAction ?? 0;
|
|
1518
|
+
message.actionParam = object.actionParam ?? 0;
|
|
1519
|
+
return message;
|
|
1520
|
+
},
|
|
1521
|
+
};
|
|
1522
|
+
function createBaseGoToSurfaceCommand() {
|
|
1523
|
+
return { desiredSpeed: 0 };
|
|
1524
|
+
}
|
|
1525
|
+
exports.GoToSurfaceCommand = {
|
|
1526
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1527
|
+
if (message.desiredSpeed !== 0) {
|
|
1528
|
+
writer.uint32(13).float(message.desiredSpeed);
|
|
1529
|
+
}
|
|
1530
|
+
return writer;
|
|
1531
|
+
},
|
|
1532
|
+
decode(input, length) {
|
|
1533
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1534
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1535
|
+
const message = createBaseGoToSurfaceCommand();
|
|
1536
|
+
while (reader.pos < end) {
|
|
1537
|
+
const tag = reader.uint32();
|
|
1538
|
+
switch (tag >>> 3) {
|
|
1539
|
+
case 1: {
|
|
1540
|
+
if (tag !== 13) {
|
|
1541
|
+
break;
|
|
1542
|
+
}
|
|
1543
|
+
message.desiredSpeed = reader.float();
|
|
1544
|
+
continue;
|
|
1545
|
+
}
|
|
1546
|
+
}
|
|
1547
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1548
|
+
break;
|
|
1549
|
+
}
|
|
1550
|
+
reader.skip(tag & 7);
|
|
1551
|
+
}
|
|
1552
|
+
return message;
|
|
1553
|
+
},
|
|
1554
|
+
fromJSON(object) {
|
|
1555
|
+
return { desiredSpeed: isSet(object.desiredSpeed) ? gt.Number(object.desiredSpeed) : 0 };
|
|
1556
|
+
},
|
|
1557
|
+
toJSON(message) {
|
|
1558
|
+
const obj = {};
|
|
1559
|
+
if (message.desiredSpeed !== 0) {
|
|
1560
|
+
obj.desiredSpeed = message.desiredSpeed;
|
|
1561
|
+
}
|
|
1562
|
+
return obj;
|
|
1563
|
+
},
|
|
1564
|
+
create(base) {
|
|
1565
|
+
return exports.GoToSurfaceCommand.fromPartial(base ?? {});
|
|
1566
|
+
},
|
|
1567
|
+
fromPartial(object) {
|
|
1568
|
+
const message = createBaseGoToSurfaceCommand();
|
|
1569
|
+
message.desiredSpeed = object.desiredSpeed ?? 0;
|
|
1570
|
+
return message;
|
|
1571
|
+
},
|
|
1572
|
+
};
|
|
1573
|
+
function createBaseGoToSeabedCommand() {
|
|
1574
|
+
return { desiredSpeed: 0 };
|
|
1575
|
+
}
|
|
1576
|
+
exports.GoToSeabedCommand = {
|
|
1577
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1578
|
+
if (message.desiredSpeed !== 0) {
|
|
1579
|
+
writer.uint32(13).float(message.desiredSpeed);
|
|
1580
|
+
}
|
|
1581
|
+
return writer;
|
|
1582
|
+
},
|
|
1583
|
+
decode(input, length) {
|
|
1584
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1585
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1586
|
+
const message = createBaseGoToSeabedCommand();
|
|
1587
|
+
while (reader.pos < end) {
|
|
1588
|
+
const tag = reader.uint32();
|
|
1589
|
+
switch (tag >>> 3) {
|
|
1590
|
+
case 1: {
|
|
1591
|
+
if (tag !== 13) {
|
|
1592
|
+
break;
|
|
1593
|
+
}
|
|
1594
|
+
message.desiredSpeed = reader.float();
|
|
1595
|
+
continue;
|
|
1596
|
+
}
|
|
1597
|
+
}
|
|
1598
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1599
|
+
break;
|
|
1600
|
+
}
|
|
1601
|
+
reader.skip(tag & 7);
|
|
1602
|
+
}
|
|
1603
|
+
return message;
|
|
1604
|
+
},
|
|
1605
|
+
fromJSON(object) {
|
|
1606
|
+
return { desiredSpeed: isSet(object.desiredSpeed) ? gt.Number(object.desiredSpeed) : 0 };
|
|
1607
|
+
},
|
|
1608
|
+
toJSON(message) {
|
|
1609
|
+
const obj = {};
|
|
1610
|
+
if (message.desiredSpeed !== 0) {
|
|
1611
|
+
obj.desiredSpeed = message.desiredSpeed;
|
|
1612
|
+
}
|
|
1613
|
+
return obj;
|
|
1614
|
+
},
|
|
1615
|
+
create(base) {
|
|
1616
|
+
return exports.GoToSeabedCommand.fromPartial(base ?? {});
|
|
1617
|
+
},
|
|
1618
|
+
fromPartial(object) {
|
|
1619
|
+
const message = createBaseGoToSeabedCommand();
|
|
1620
|
+
message.desiredSpeed = object.desiredSpeed ?? 0;
|
|
1621
|
+
return message;
|
|
1622
|
+
},
|
|
1623
|
+
};
|
|
1624
|
+
function createBaseGoToHomeCommand() {
|
|
1625
|
+
return { desiredSpeed: 0 };
|
|
1626
|
+
}
|
|
1627
|
+
exports.GoToHomeCommand = {
|
|
1628
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1629
|
+
if (message.desiredSpeed !== 0) {
|
|
1630
|
+
writer.uint32(13).float(message.desiredSpeed);
|
|
1631
|
+
}
|
|
1632
|
+
return writer;
|
|
1633
|
+
},
|
|
1634
|
+
decode(input, length) {
|
|
1635
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1636
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1637
|
+
const message = createBaseGoToHomeCommand();
|
|
1638
|
+
while (reader.pos < end) {
|
|
1639
|
+
const tag = reader.uint32();
|
|
1640
|
+
switch (tag >>> 3) {
|
|
1641
|
+
case 1: {
|
|
1642
|
+
if (tag !== 13) {
|
|
1643
|
+
break;
|
|
1644
|
+
}
|
|
1645
|
+
message.desiredSpeed = reader.float();
|
|
1646
|
+
continue;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1650
|
+
break;
|
|
1651
|
+
}
|
|
1652
|
+
reader.skip(tag & 7);
|
|
1653
|
+
}
|
|
1654
|
+
return message;
|
|
1655
|
+
},
|
|
1656
|
+
fromJSON(object) {
|
|
1657
|
+
return { desiredSpeed: isSet(object.desiredSpeed) ? gt.Number(object.desiredSpeed) : 0 };
|
|
1658
|
+
},
|
|
1659
|
+
toJSON(message) {
|
|
1660
|
+
const obj = {};
|
|
1661
|
+
if (message.desiredSpeed !== 0) {
|
|
1662
|
+
obj.desiredSpeed = message.desiredSpeed;
|
|
1663
|
+
}
|
|
1664
|
+
return obj;
|
|
1665
|
+
},
|
|
1666
|
+
create(base) {
|
|
1667
|
+
return exports.GoToHomeCommand.fromPartial(base ?? {});
|
|
1668
|
+
},
|
|
1669
|
+
fromPartial(object) {
|
|
1670
|
+
const message = createBaseGoToHomeCommand();
|
|
1671
|
+
message.desiredSpeed = object.desiredSpeed ?? 0;
|
|
1672
|
+
return message;
|
|
1673
|
+
},
|
|
1674
|
+
};
|
|
1675
|
+
function createBasePathSegment() {
|
|
1676
|
+
return {
|
|
1677
|
+
id: 0,
|
|
1678
|
+
speedToTarget: 0,
|
|
1679
|
+
courseToTarget: 0,
|
|
1680
|
+
depthSpeed: 0,
|
|
1681
|
+
horizontalLength: 0,
|
|
1682
|
+
verticalLength: 0,
|
|
1683
|
+
fromWpId: 0,
|
|
1684
|
+
toWpId: 0,
|
|
1685
|
+
durationTime: 0,
|
|
1686
|
+
};
|
|
1687
|
+
}
|
|
1688
|
+
exports.PathSegment = {
|
|
1689
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1690
|
+
if (message.id !== 0) {
|
|
1691
|
+
writer.uint32(8).uint32(message.id);
|
|
1692
|
+
}
|
|
1693
|
+
if (message.speedToTarget !== 0) {
|
|
1694
|
+
writer.uint32(21).float(message.speedToTarget);
|
|
1695
|
+
}
|
|
1696
|
+
if (message.courseToTarget !== 0) {
|
|
1697
|
+
writer.uint32(29).float(message.courseToTarget);
|
|
1698
|
+
}
|
|
1699
|
+
if (message.depthSpeed !== 0) {
|
|
1700
|
+
writer.uint32(37).float(message.depthSpeed);
|
|
1701
|
+
}
|
|
1702
|
+
if (message.horizontalLength !== 0) {
|
|
1703
|
+
writer.uint32(45).float(message.horizontalLength);
|
|
1704
|
+
}
|
|
1705
|
+
if (message.verticalLength !== 0) {
|
|
1706
|
+
writer.uint32(53).float(message.verticalLength);
|
|
1707
|
+
}
|
|
1708
|
+
if (message.fromWpId !== 0) {
|
|
1709
|
+
writer.uint32(56).uint32(message.fromWpId);
|
|
1710
|
+
}
|
|
1711
|
+
if (message.toWpId !== 0) {
|
|
1712
|
+
writer.uint32(64).uint32(message.toWpId);
|
|
1713
|
+
}
|
|
1714
|
+
if (message.durationTime !== 0) {
|
|
1715
|
+
writer.uint32(77).float(message.durationTime);
|
|
1716
|
+
}
|
|
1717
|
+
return writer;
|
|
1718
|
+
},
|
|
1719
|
+
decode(input, length) {
|
|
1720
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1721
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1722
|
+
const message = createBasePathSegment();
|
|
1723
|
+
while (reader.pos < end) {
|
|
1724
|
+
const tag = reader.uint32();
|
|
1725
|
+
switch (tag >>> 3) {
|
|
1726
|
+
case 1: {
|
|
1727
|
+
if (tag !== 8) {
|
|
1728
|
+
break;
|
|
1729
|
+
}
|
|
1730
|
+
message.id = reader.uint32();
|
|
1731
|
+
continue;
|
|
1732
|
+
}
|
|
1733
|
+
case 2: {
|
|
1734
|
+
if (tag !== 21) {
|
|
1735
|
+
break;
|
|
1736
|
+
}
|
|
1737
|
+
message.speedToTarget = reader.float();
|
|
1738
|
+
continue;
|
|
1739
|
+
}
|
|
1740
|
+
case 3: {
|
|
1741
|
+
if (tag !== 29) {
|
|
1742
|
+
break;
|
|
1743
|
+
}
|
|
1744
|
+
message.courseToTarget = reader.float();
|
|
1745
|
+
continue;
|
|
1746
|
+
}
|
|
1747
|
+
case 4: {
|
|
1748
|
+
if (tag !== 37) {
|
|
1749
|
+
break;
|
|
1750
|
+
}
|
|
1751
|
+
message.depthSpeed = reader.float();
|
|
1752
|
+
continue;
|
|
1753
|
+
}
|
|
1754
|
+
case 5: {
|
|
1755
|
+
if (tag !== 45) {
|
|
1756
|
+
break;
|
|
1757
|
+
}
|
|
1758
|
+
message.horizontalLength = reader.float();
|
|
1759
|
+
continue;
|
|
1760
|
+
}
|
|
1761
|
+
case 6: {
|
|
1762
|
+
if (tag !== 53) {
|
|
1763
|
+
break;
|
|
1764
|
+
}
|
|
1765
|
+
message.verticalLength = reader.float();
|
|
1766
|
+
continue;
|
|
1767
|
+
}
|
|
1768
|
+
case 7: {
|
|
1769
|
+
if (tag !== 56) {
|
|
1770
|
+
break;
|
|
1771
|
+
}
|
|
1772
|
+
message.fromWpId = reader.uint32();
|
|
1773
|
+
continue;
|
|
1774
|
+
}
|
|
1775
|
+
case 8: {
|
|
1776
|
+
if (tag !== 64) {
|
|
1777
|
+
break;
|
|
1778
|
+
}
|
|
1779
|
+
message.toWpId = reader.uint32();
|
|
1780
|
+
continue;
|
|
1781
|
+
}
|
|
1782
|
+
case 9: {
|
|
1783
|
+
if (tag !== 77) {
|
|
1784
|
+
break;
|
|
1785
|
+
}
|
|
1786
|
+
message.durationTime = reader.float();
|
|
1787
|
+
continue;
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1791
|
+
break;
|
|
1792
|
+
}
|
|
1793
|
+
reader.skip(tag & 7);
|
|
1794
|
+
}
|
|
1795
|
+
return message;
|
|
1796
|
+
},
|
|
1797
|
+
fromJSON(object) {
|
|
1798
|
+
return {
|
|
1799
|
+
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
1800
|
+
speedToTarget: isSet(object.speedToTarget) ? gt.Number(object.speedToTarget) : 0,
|
|
1801
|
+
courseToTarget: isSet(object.courseToTarget) ? gt.Number(object.courseToTarget) : 0,
|
|
1802
|
+
depthSpeed: isSet(object.depthSpeed) ? gt.Number(object.depthSpeed) : 0,
|
|
1803
|
+
horizontalLength: isSet(object.horizontalLength) ? gt.Number(object.horizontalLength) : 0,
|
|
1804
|
+
verticalLength: isSet(object.verticalLength) ? gt.Number(object.verticalLength) : 0,
|
|
1805
|
+
fromWpId: isSet(object.fromWpId) ? gt.Number(object.fromWpId) : 0,
|
|
1806
|
+
toWpId: isSet(object.toWpId) ? gt.Number(object.toWpId) : 0,
|
|
1807
|
+
durationTime: isSet(object.durationTime) ? gt.Number(object.durationTime) : 0,
|
|
1808
|
+
};
|
|
1809
|
+
},
|
|
1810
|
+
toJSON(message) {
|
|
1811
|
+
const obj = {};
|
|
1812
|
+
if (message.id !== 0) {
|
|
1813
|
+
obj.id = Math.round(message.id);
|
|
1814
|
+
}
|
|
1815
|
+
if (message.speedToTarget !== 0) {
|
|
1816
|
+
obj.speedToTarget = message.speedToTarget;
|
|
1817
|
+
}
|
|
1818
|
+
if (message.courseToTarget !== 0) {
|
|
1819
|
+
obj.courseToTarget = message.courseToTarget;
|
|
1820
|
+
}
|
|
1821
|
+
if (message.depthSpeed !== 0) {
|
|
1822
|
+
obj.depthSpeed = message.depthSpeed;
|
|
1823
|
+
}
|
|
1824
|
+
if (message.horizontalLength !== 0) {
|
|
1825
|
+
obj.horizontalLength = message.horizontalLength;
|
|
1826
|
+
}
|
|
1827
|
+
if (message.verticalLength !== 0) {
|
|
1828
|
+
obj.verticalLength = message.verticalLength;
|
|
1829
|
+
}
|
|
1830
|
+
if (message.fromWpId !== 0) {
|
|
1831
|
+
obj.fromWpId = Math.round(message.fromWpId);
|
|
1832
|
+
}
|
|
1833
|
+
if (message.toWpId !== 0) {
|
|
1834
|
+
obj.toWpId = Math.round(message.toWpId);
|
|
1835
|
+
}
|
|
1836
|
+
if (message.durationTime !== 0) {
|
|
1837
|
+
obj.durationTime = message.durationTime;
|
|
1838
|
+
}
|
|
1839
|
+
return obj;
|
|
1840
|
+
},
|
|
1841
|
+
create(base) {
|
|
1842
|
+
return exports.PathSegment.fromPartial(base ?? {});
|
|
1843
|
+
},
|
|
1844
|
+
fromPartial(object) {
|
|
1845
|
+
const message = createBasePathSegment();
|
|
1846
|
+
message.id = object.id ?? 0;
|
|
1847
|
+
message.speedToTarget = object.speedToTarget ?? 0;
|
|
1848
|
+
message.courseToTarget = object.courseToTarget ?? 0;
|
|
1849
|
+
message.depthSpeed = object.depthSpeed ?? 0;
|
|
1850
|
+
message.horizontalLength = object.horizontalLength ?? 0;
|
|
1851
|
+
message.verticalLength = object.verticalLength ?? 0;
|
|
1852
|
+
message.fromWpId = object.fromWpId ?? 0;
|
|
1853
|
+
message.toWpId = object.toWpId ?? 0;
|
|
1854
|
+
message.durationTime = object.durationTime ?? 0;
|
|
1855
|
+
return message;
|
|
1856
|
+
},
|
|
1857
|
+
};
|
|
1858
|
+
function createBaseReferenceAutoPilot() {
|
|
1859
|
+
return {
|
|
1860
|
+
instructionType: 0,
|
|
1861
|
+
activeInstructionId: 0,
|
|
1862
|
+
activePathSegmentId: 0,
|
|
1863
|
+
courseToTarget: 0,
|
|
1864
|
+
speedOverGround: 0,
|
|
1865
|
+
horizontalDistanceToTarget: 0,
|
|
1866
|
+
circleOfAcceptance: 0,
|
|
1867
|
+
depthSetPoint: 0,
|
|
1868
|
+
heaveVelocity: 0,
|
|
1869
|
+
verticalDistanceToTarget: 0,
|
|
1870
|
+
depthZeroReference: 0,
|
|
1871
|
+
timeToComplete: 0,
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
exports.ReferenceAutoPilot = {
|
|
1875
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1876
|
+
if (message.instructionType !== 0) {
|
|
1877
|
+
writer.uint32(8).int32(message.instructionType);
|
|
1878
|
+
}
|
|
1879
|
+
if (message.activeInstructionId !== 0) {
|
|
1880
|
+
writer.uint32(16).uint32(message.activeInstructionId);
|
|
1881
|
+
}
|
|
1882
|
+
if (message.activePathSegmentId !== 0) {
|
|
1883
|
+
writer.uint32(24).uint32(message.activePathSegmentId);
|
|
1884
|
+
}
|
|
1885
|
+
if (message.courseToTarget !== 0) {
|
|
1886
|
+
writer.uint32(37).float(message.courseToTarget);
|
|
1887
|
+
}
|
|
1888
|
+
if (message.speedOverGround !== 0) {
|
|
1889
|
+
writer.uint32(45).float(message.speedOverGround);
|
|
1890
|
+
}
|
|
1891
|
+
if (message.horizontalDistanceToTarget !== 0) {
|
|
1892
|
+
writer.uint32(53).float(message.horizontalDistanceToTarget);
|
|
1893
|
+
}
|
|
1894
|
+
if (message.circleOfAcceptance !== 0) {
|
|
1895
|
+
writer.uint32(61).float(message.circleOfAcceptance);
|
|
1896
|
+
}
|
|
1897
|
+
if (message.depthSetPoint !== 0) {
|
|
1898
|
+
writer.uint32(69).float(message.depthSetPoint);
|
|
1899
|
+
}
|
|
1900
|
+
if (message.heaveVelocity !== 0) {
|
|
1901
|
+
writer.uint32(77).float(message.heaveVelocity);
|
|
1902
|
+
}
|
|
1903
|
+
if (message.verticalDistanceToTarget !== 0) {
|
|
1904
|
+
writer.uint32(85).float(message.verticalDistanceToTarget);
|
|
1905
|
+
}
|
|
1906
|
+
if (message.depthZeroReference !== 0) {
|
|
1907
|
+
writer.uint32(88).int32(message.depthZeroReference);
|
|
1908
|
+
}
|
|
1909
|
+
if (message.timeToComplete !== 0) {
|
|
1910
|
+
writer.uint32(101).float(message.timeToComplete);
|
|
1911
|
+
}
|
|
1912
|
+
return writer;
|
|
1913
|
+
},
|
|
1914
|
+
decode(input, length) {
|
|
1915
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1916
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1917
|
+
const message = createBaseReferenceAutoPilot();
|
|
1918
|
+
while (reader.pos < end) {
|
|
1919
|
+
const tag = reader.uint32();
|
|
1920
|
+
switch (tag >>> 3) {
|
|
1921
|
+
case 1: {
|
|
1922
|
+
if (tag !== 8) {
|
|
1923
|
+
break;
|
|
1924
|
+
}
|
|
1925
|
+
message.instructionType = reader.int32();
|
|
1926
|
+
continue;
|
|
1927
|
+
}
|
|
1928
|
+
case 2: {
|
|
1929
|
+
if (tag !== 16) {
|
|
1930
|
+
break;
|
|
1931
|
+
}
|
|
1932
|
+
message.activeInstructionId = reader.uint32();
|
|
1933
|
+
continue;
|
|
1934
|
+
}
|
|
1935
|
+
case 3: {
|
|
1936
|
+
if (tag !== 24) {
|
|
1937
|
+
break;
|
|
1938
|
+
}
|
|
1939
|
+
message.activePathSegmentId = reader.uint32();
|
|
1940
|
+
continue;
|
|
1941
|
+
}
|
|
1942
|
+
case 4: {
|
|
1943
|
+
if (tag !== 37) {
|
|
1944
|
+
break;
|
|
1945
|
+
}
|
|
1946
|
+
message.courseToTarget = reader.float();
|
|
1947
|
+
continue;
|
|
1948
|
+
}
|
|
1949
|
+
case 5: {
|
|
1950
|
+
if (tag !== 45) {
|
|
1951
|
+
break;
|
|
1952
|
+
}
|
|
1953
|
+
message.speedOverGround = reader.float();
|
|
1954
|
+
continue;
|
|
1955
|
+
}
|
|
1956
|
+
case 6: {
|
|
1957
|
+
if (tag !== 53) {
|
|
1958
|
+
break;
|
|
1959
|
+
}
|
|
1960
|
+
message.horizontalDistanceToTarget = reader.float();
|
|
1961
|
+
continue;
|
|
1962
|
+
}
|
|
1963
|
+
case 7: {
|
|
1964
|
+
if (tag !== 61) {
|
|
1965
|
+
break;
|
|
1966
|
+
}
|
|
1967
|
+
message.circleOfAcceptance = reader.float();
|
|
1968
|
+
continue;
|
|
1969
|
+
}
|
|
1970
|
+
case 8: {
|
|
1971
|
+
if (tag !== 69) {
|
|
1972
|
+
break;
|
|
1973
|
+
}
|
|
1974
|
+
message.depthSetPoint = reader.float();
|
|
1975
|
+
continue;
|
|
1976
|
+
}
|
|
1977
|
+
case 9: {
|
|
1978
|
+
if (tag !== 77) {
|
|
1979
|
+
break;
|
|
1980
|
+
}
|
|
1981
|
+
message.heaveVelocity = reader.float();
|
|
1982
|
+
continue;
|
|
1983
|
+
}
|
|
1984
|
+
case 10: {
|
|
1985
|
+
if (tag !== 85) {
|
|
1986
|
+
break;
|
|
1987
|
+
}
|
|
1988
|
+
message.verticalDistanceToTarget = reader.float();
|
|
1989
|
+
continue;
|
|
1990
|
+
}
|
|
1991
|
+
case 11: {
|
|
1992
|
+
if (tag !== 88) {
|
|
1993
|
+
break;
|
|
1994
|
+
}
|
|
1995
|
+
message.depthZeroReference = reader.int32();
|
|
1996
|
+
continue;
|
|
1997
|
+
}
|
|
1998
|
+
case 12: {
|
|
1999
|
+
if (tag !== 101) {
|
|
2000
|
+
break;
|
|
2001
|
+
}
|
|
2002
|
+
message.timeToComplete = reader.float();
|
|
2003
|
+
continue;
|
|
2004
|
+
}
|
|
2005
|
+
}
|
|
2006
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2007
|
+
break;
|
|
2008
|
+
}
|
|
2009
|
+
reader.skip(tag & 7);
|
|
2010
|
+
}
|
|
2011
|
+
return message;
|
|
2012
|
+
},
|
|
2013
|
+
fromJSON(object) {
|
|
2014
|
+
return {
|
|
2015
|
+
instructionType: isSet(object.instructionType) ? instructionTypeFromJSON(object.instructionType) : 0,
|
|
2016
|
+
activeInstructionId: isSet(object.activeInstructionId) ? gt.Number(object.activeInstructionId) : 0,
|
|
2017
|
+
activePathSegmentId: isSet(object.activePathSegmentId) ? gt.Number(object.activePathSegmentId) : 0,
|
|
2018
|
+
courseToTarget: isSet(object.courseToTarget) ? gt.Number(object.courseToTarget) : 0,
|
|
2019
|
+
speedOverGround: isSet(object.speedOverGround) ? gt.Number(object.speedOverGround) : 0,
|
|
2020
|
+
horizontalDistanceToTarget: isSet(object.horizontalDistanceToTarget)
|
|
2021
|
+
? gt.Number(object.horizontalDistanceToTarget)
|
|
2022
|
+
: 0,
|
|
2023
|
+
circleOfAcceptance: isSet(object.circleOfAcceptance) ? gt.Number(object.circleOfAcceptance) : 0,
|
|
2024
|
+
depthSetPoint: isSet(object.depthSetPoint) ? gt.Number(object.depthSetPoint) : 0,
|
|
2025
|
+
heaveVelocity: isSet(object.heaveVelocity) ? gt.Number(object.heaveVelocity) : 0,
|
|
2026
|
+
verticalDistanceToTarget: isSet(object.verticalDistanceToTarget) ? gt.Number(object.verticalDistanceToTarget) : 0,
|
|
2027
|
+
depthZeroReference: isSet(object.depthZeroReference) ? depthZeroReferenceFromJSON(object.depthZeroReference) : 0,
|
|
2028
|
+
timeToComplete: isSet(object.timeToComplete) ? gt.Number(object.timeToComplete) : 0,
|
|
2029
|
+
};
|
|
2030
|
+
},
|
|
2031
|
+
toJSON(message) {
|
|
2032
|
+
const obj = {};
|
|
2033
|
+
if (message.instructionType !== 0) {
|
|
2034
|
+
obj.instructionType = instructionTypeToJSON(message.instructionType);
|
|
2035
|
+
}
|
|
2036
|
+
if (message.activeInstructionId !== 0) {
|
|
2037
|
+
obj.activeInstructionId = Math.round(message.activeInstructionId);
|
|
2038
|
+
}
|
|
2039
|
+
if (message.activePathSegmentId !== 0) {
|
|
2040
|
+
obj.activePathSegmentId = Math.round(message.activePathSegmentId);
|
|
2041
|
+
}
|
|
2042
|
+
if (message.courseToTarget !== 0) {
|
|
2043
|
+
obj.courseToTarget = message.courseToTarget;
|
|
2044
|
+
}
|
|
2045
|
+
if (message.speedOverGround !== 0) {
|
|
2046
|
+
obj.speedOverGround = message.speedOverGround;
|
|
2047
|
+
}
|
|
2048
|
+
if (message.horizontalDistanceToTarget !== 0) {
|
|
2049
|
+
obj.horizontalDistanceToTarget = message.horizontalDistanceToTarget;
|
|
2050
|
+
}
|
|
2051
|
+
if (message.circleOfAcceptance !== 0) {
|
|
2052
|
+
obj.circleOfAcceptance = message.circleOfAcceptance;
|
|
2053
|
+
}
|
|
2054
|
+
if (message.depthSetPoint !== 0) {
|
|
2055
|
+
obj.depthSetPoint = message.depthSetPoint;
|
|
2056
|
+
}
|
|
2057
|
+
if (message.heaveVelocity !== 0) {
|
|
2058
|
+
obj.heaveVelocity = message.heaveVelocity;
|
|
2059
|
+
}
|
|
2060
|
+
if (message.verticalDistanceToTarget !== 0) {
|
|
2061
|
+
obj.verticalDistanceToTarget = message.verticalDistanceToTarget;
|
|
2062
|
+
}
|
|
2063
|
+
if (message.depthZeroReference !== 0) {
|
|
2064
|
+
obj.depthZeroReference = depthZeroReferenceToJSON(message.depthZeroReference);
|
|
2065
|
+
}
|
|
2066
|
+
if (message.timeToComplete !== 0) {
|
|
2067
|
+
obj.timeToComplete = message.timeToComplete;
|
|
2068
|
+
}
|
|
2069
|
+
return obj;
|
|
2070
|
+
},
|
|
2071
|
+
create(base) {
|
|
2072
|
+
return exports.ReferenceAutoPilot.fromPartial(base ?? {});
|
|
2073
|
+
},
|
|
2074
|
+
fromPartial(object) {
|
|
2075
|
+
const message = createBaseReferenceAutoPilot();
|
|
2076
|
+
message.instructionType = object.instructionType ?? 0;
|
|
2077
|
+
message.activeInstructionId = object.activeInstructionId ?? 0;
|
|
2078
|
+
message.activePathSegmentId = object.activePathSegmentId ?? 0;
|
|
2079
|
+
message.courseToTarget = object.courseToTarget ?? 0;
|
|
2080
|
+
message.speedOverGround = object.speedOverGround ?? 0;
|
|
2081
|
+
message.horizontalDistanceToTarget = object.horizontalDistanceToTarget ?? 0;
|
|
2082
|
+
message.circleOfAcceptance = object.circleOfAcceptance ?? 0;
|
|
2083
|
+
message.depthSetPoint = object.depthSetPoint ?? 0;
|
|
2084
|
+
message.heaveVelocity = object.heaveVelocity ?? 0;
|
|
2085
|
+
message.verticalDistanceToTarget = object.verticalDistanceToTarget ?? 0;
|
|
2086
|
+
message.depthZeroReference = object.depthZeroReference ?? 0;
|
|
2087
|
+
message.timeToComplete = object.timeToComplete ?? 0;
|
|
2088
|
+
return message;
|
|
2089
|
+
},
|
|
2090
|
+
};
|
|
2091
|
+
function createBaseMissionStatus() {
|
|
2092
|
+
return {
|
|
2093
|
+
state: 0,
|
|
2094
|
+
timeElapsed: 0,
|
|
2095
|
+
estimatedTimeToComplete: 0,
|
|
2096
|
+
distanceToComplete: 0,
|
|
2097
|
+
completedInstructionIds: [],
|
|
2098
|
+
totalNumberOfInstructions: 0,
|
|
2099
|
+
completedPathSegmentIds: [],
|
|
2100
|
+
totalNumberOfPathSegments: 0,
|
|
2101
|
+
id: 0,
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
2104
|
+
exports.MissionStatus = {
|
|
2105
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
2106
|
+
if (message.state !== 0) {
|
|
2107
|
+
writer.uint32(8).int32(message.state);
|
|
2108
|
+
}
|
|
2109
|
+
if (message.timeElapsed !== 0) {
|
|
2110
|
+
writer.uint32(16).uint32(message.timeElapsed);
|
|
2111
|
+
}
|
|
2112
|
+
if (message.estimatedTimeToComplete !== 0) {
|
|
2113
|
+
writer.uint32(24).uint32(message.estimatedTimeToComplete);
|
|
2114
|
+
}
|
|
2115
|
+
if (message.distanceToComplete !== 0) {
|
|
2116
|
+
writer.uint32(32).uint32(message.distanceToComplete);
|
|
2117
|
+
}
|
|
2118
|
+
writer.uint32(42).fork();
|
|
2119
|
+
for (const v of message.completedInstructionIds) {
|
|
2120
|
+
writer.uint32(v);
|
|
2121
|
+
}
|
|
2122
|
+
writer.join();
|
|
2123
|
+
if (message.totalNumberOfInstructions !== 0) {
|
|
2124
|
+
writer.uint32(48).uint32(message.totalNumberOfInstructions);
|
|
2125
|
+
}
|
|
2126
|
+
writer.uint32(58).fork();
|
|
2127
|
+
for (const v of message.completedPathSegmentIds) {
|
|
2128
|
+
writer.uint32(v);
|
|
2129
|
+
}
|
|
2130
|
+
writer.join();
|
|
2131
|
+
if (message.totalNumberOfPathSegments !== 0) {
|
|
2132
|
+
writer.uint32(64).uint32(message.totalNumberOfPathSegments);
|
|
2133
|
+
}
|
|
2134
|
+
if (message.id !== 0) {
|
|
2135
|
+
writer.uint32(72).uint32(message.id);
|
|
2136
|
+
}
|
|
2137
|
+
return writer;
|
|
2138
|
+
},
|
|
2139
|
+
decode(input, length) {
|
|
2140
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
2141
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2142
|
+
const message = createBaseMissionStatus();
|
|
2143
|
+
while (reader.pos < end) {
|
|
2144
|
+
const tag = reader.uint32();
|
|
2145
|
+
switch (tag >>> 3) {
|
|
2146
|
+
case 1: {
|
|
2147
|
+
if (tag !== 8) {
|
|
2148
|
+
break;
|
|
2149
|
+
}
|
|
2150
|
+
message.state = reader.int32();
|
|
2151
|
+
continue;
|
|
2152
|
+
}
|
|
2153
|
+
case 2: {
|
|
2154
|
+
if (tag !== 16) {
|
|
2155
|
+
break;
|
|
2156
|
+
}
|
|
2157
|
+
message.timeElapsed = reader.uint32();
|
|
2158
|
+
continue;
|
|
2159
|
+
}
|
|
2160
|
+
case 3: {
|
|
2161
|
+
if (tag !== 24) {
|
|
2162
|
+
break;
|
|
2163
|
+
}
|
|
2164
|
+
message.estimatedTimeToComplete = reader.uint32();
|
|
2165
|
+
continue;
|
|
2166
|
+
}
|
|
2167
|
+
case 4: {
|
|
2168
|
+
if (tag !== 32) {
|
|
2169
|
+
break;
|
|
2170
|
+
}
|
|
2171
|
+
message.distanceToComplete = reader.uint32();
|
|
2172
|
+
continue;
|
|
2173
|
+
}
|
|
2174
|
+
case 5: {
|
|
2175
|
+
if (tag === 40) {
|
|
2176
|
+
message.completedInstructionIds.push(reader.uint32());
|
|
2177
|
+
continue;
|
|
2178
|
+
}
|
|
2179
|
+
if (tag === 42) {
|
|
2180
|
+
const end2 = reader.uint32() + reader.pos;
|
|
2181
|
+
while (reader.pos < end2) {
|
|
2182
|
+
message.completedInstructionIds.push(reader.uint32());
|
|
2183
|
+
}
|
|
2184
|
+
continue;
|
|
2185
|
+
}
|
|
2186
|
+
break;
|
|
2187
|
+
}
|
|
2188
|
+
case 6: {
|
|
2189
|
+
if (tag !== 48) {
|
|
2190
|
+
break;
|
|
2191
|
+
}
|
|
2192
|
+
message.totalNumberOfInstructions = reader.uint32();
|
|
2193
|
+
continue;
|
|
2194
|
+
}
|
|
2195
|
+
case 7: {
|
|
2196
|
+
if (tag === 56) {
|
|
2197
|
+
message.completedPathSegmentIds.push(reader.uint32());
|
|
2198
|
+
continue;
|
|
2199
|
+
}
|
|
2200
|
+
if (tag === 58) {
|
|
2201
|
+
const end2 = reader.uint32() + reader.pos;
|
|
2202
|
+
while (reader.pos < end2) {
|
|
2203
|
+
message.completedPathSegmentIds.push(reader.uint32());
|
|
2204
|
+
}
|
|
2205
|
+
continue;
|
|
2206
|
+
}
|
|
2207
|
+
break;
|
|
2208
|
+
}
|
|
2209
|
+
case 8: {
|
|
2210
|
+
if (tag !== 64) {
|
|
2211
|
+
break;
|
|
2212
|
+
}
|
|
2213
|
+
message.totalNumberOfPathSegments = reader.uint32();
|
|
2214
|
+
continue;
|
|
2215
|
+
}
|
|
2216
|
+
case 9: {
|
|
2217
|
+
if (tag !== 72) {
|
|
2218
|
+
break;
|
|
2219
|
+
}
|
|
2220
|
+
message.id = reader.uint32();
|
|
2221
|
+
continue;
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2225
|
+
break;
|
|
2226
|
+
}
|
|
2227
|
+
reader.skip(tag & 7);
|
|
2228
|
+
}
|
|
2229
|
+
return message;
|
|
2230
|
+
},
|
|
2231
|
+
fromJSON(object) {
|
|
2232
|
+
return {
|
|
2233
|
+
state: isSet(object.state) ? missionStateFromJSON(object.state) : 0,
|
|
2234
|
+
timeElapsed: isSet(object.timeElapsed) ? gt.Number(object.timeElapsed) : 0,
|
|
2235
|
+
estimatedTimeToComplete: isSet(object.estimatedTimeToComplete) ? gt.Number(object.estimatedTimeToComplete) : 0,
|
|
2236
|
+
distanceToComplete: isSet(object.distanceToComplete) ? gt.Number(object.distanceToComplete) : 0,
|
|
2237
|
+
completedInstructionIds: gt.Array.isArray(object?.completedInstructionIds)
|
|
2238
|
+
? object.completedInstructionIds.map((e) => gt.Number(e))
|
|
2239
|
+
: [],
|
|
2240
|
+
totalNumberOfInstructions: isSet(object.totalNumberOfInstructions)
|
|
2241
|
+
? gt.Number(object.totalNumberOfInstructions)
|
|
2242
|
+
: 0,
|
|
2243
|
+
completedPathSegmentIds: gt.Array.isArray(object?.completedPathSegmentIds)
|
|
2244
|
+
? object.completedPathSegmentIds.map((e) => gt.Number(e))
|
|
2245
|
+
: [],
|
|
2246
|
+
totalNumberOfPathSegments: isSet(object.totalNumberOfPathSegments)
|
|
2247
|
+
? gt.Number(object.totalNumberOfPathSegments)
|
|
2248
|
+
: 0,
|
|
2249
|
+
id: isSet(object.id) ? gt.Number(object.id) : 0,
|
|
2250
|
+
};
|
|
2251
|
+
},
|
|
2252
|
+
toJSON(message) {
|
|
2253
|
+
const obj = {};
|
|
2254
|
+
if (message.state !== 0) {
|
|
2255
|
+
obj.state = missionStateToJSON(message.state);
|
|
2256
|
+
}
|
|
2257
|
+
if (message.timeElapsed !== 0) {
|
|
2258
|
+
obj.timeElapsed = Math.round(message.timeElapsed);
|
|
2259
|
+
}
|
|
2260
|
+
if (message.estimatedTimeToComplete !== 0) {
|
|
2261
|
+
obj.estimatedTimeToComplete = Math.round(message.estimatedTimeToComplete);
|
|
2262
|
+
}
|
|
2263
|
+
if (message.distanceToComplete !== 0) {
|
|
2264
|
+
obj.distanceToComplete = Math.round(message.distanceToComplete);
|
|
2265
|
+
}
|
|
2266
|
+
if (message.completedInstructionIds?.length) {
|
|
2267
|
+
obj.completedInstructionIds = message.completedInstructionIds.map((e) => Math.round(e));
|
|
2268
|
+
}
|
|
2269
|
+
if (message.totalNumberOfInstructions !== 0) {
|
|
2270
|
+
obj.totalNumberOfInstructions = Math.round(message.totalNumberOfInstructions);
|
|
2271
|
+
}
|
|
2272
|
+
if (message.completedPathSegmentIds?.length) {
|
|
2273
|
+
obj.completedPathSegmentIds = message.completedPathSegmentIds.map((e) => Math.round(e));
|
|
2274
|
+
}
|
|
2275
|
+
if (message.totalNumberOfPathSegments !== 0) {
|
|
2276
|
+
obj.totalNumberOfPathSegments = Math.round(message.totalNumberOfPathSegments);
|
|
2277
|
+
}
|
|
2278
|
+
if (message.id !== 0) {
|
|
2279
|
+
obj.id = Math.round(message.id);
|
|
2280
|
+
}
|
|
2281
|
+
return obj;
|
|
2282
|
+
},
|
|
2283
|
+
create(base) {
|
|
2284
|
+
return exports.MissionStatus.fromPartial(base ?? {});
|
|
2285
|
+
},
|
|
2286
|
+
fromPartial(object) {
|
|
2287
|
+
const message = createBaseMissionStatus();
|
|
2288
|
+
message.state = object.state ?? 0;
|
|
2289
|
+
message.timeElapsed = object.timeElapsed ?? 0;
|
|
2290
|
+
message.estimatedTimeToComplete = object.estimatedTimeToComplete ?? 0;
|
|
2291
|
+
message.distanceToComplete = object.distanceToComplete ?? 0;
|
|
2292
|
+
message.completedInstructionIds = object.completedInstructionIds?.map((e) => e) || [];
|
|
2293
|
+
message.totalNumberOfInstructions = object.totalNumberOfInstructions ?? 0;
|
|
2294
|
+
message.completedPathSegmentIds = object.completedPathSegmentIds?.map((e) => e) || [];
|
|
2295
|
+
message.totalNumberOfPathSegments = object.totalNumberOfPathSegments ?? 0;
|
|
2296
|
+
message.id = object.id ?? 0;
|
|
2297
|
+
return message;
|
|
2298
|
+
},
|
|
2299
|
+
};
|
|
2300
|
+
const gt = (() => {
|
|
2301
|
+
if (typeof globalThis !== "undefined") {
|
|
2302
|
+
return globalThis;
|
|
2303
|
+
}
|
|
2304
|
+
if (typeof self !== "undefined") {
|
|
2305
|
+
return self;
|
|
2306
|
+
}
|
|
2307
|
+
if (typeof window !== "undefined") {
|
|
2308
|
+
return window;
|
|
2309
|
+
}
|
|
2310
|
+
if (typeof global !== "undefined") {
|
|
2311
|
+
return global;
|
|
2312
|
+
}
|
|
2313
|
+
throw "Unable to locate global object";
|
|
2314
|
+
})();
|
|
2315
|
+
function isSet(value) {
|
|
2316
|
+
return value !== null && value !== undefined;
|
|
2317
|
+
}
|