@blueyerobotics/protocol-definitions 3.2.0-0a6e99a1

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.
@@ -0,0 +1,277 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { SetAquaTrollConnectionStatus, SetAquaTrollParameterUnit } from "./aquatroll";
3
+ import { AutoAltitudeState, AutoDepthState, AutoHeadingState, AutoPilotHeaveState, AutoPilotSurgeYawState, ConnectionDuration, GenericServo, GripperVelocities, GuestPortRestartInfo, Laser, LatLongPosition, Lights, MotionInput, MultibeamConfig, MultibeamServo, PingerConfiguration, RecordOn, ResetPositionSettings, StationKeepingState, StorageLocation, SystemTime, TiltStabilizationState, TiltVelocity, WaterDensity, WeatherVaningState } from "./message_formats";
4
+ /**
5
+ * Control
6
+ *
7
+ * These messages define control messages accepted by the Blueye drone.
8
+ */
9
+ /** Issue a command to move the drone in the surge, sway, heave, or yaw direction. */
10
+ export interface MotionInputCtrl {
11
+ /** Message with the desired movement in each direction. */
12
+ motionInput: MotionInput | undefined;
13
+ }
14
+ /** Issue a command to tilt the drone camera. */
15
+ export interface TiltVelocityCtrl {
16
+ /** Message with the desired tilt velocity (direction and speed). */
17
+ velocity: TiltVelocity | undefined;
18
+ }
19
+ /** Issue a command to set the main light intensity. */
20
+ export interface LightsCtrl {
21
+ /** Message with the desired light intensity. */
22
+ lights: Lights | undefined;
23
+ }
24
+ /** Issue a command to set the guest port light intensity. */
25
+ export interface GuestportLightsCtrl {
26
+ /** Message with the desired light intensity. */
27
+ lights: Lights | undefined;
28
+ }
29
+ /** Issue a command to set the laser intensity. */
30
+ export interface LaserCtrl {
31
+ /** Message with the desired laser intensity. */
32
+ laser: Laser | undefined;
33
+ }
34
+ /** Issue a command with the GPS position of the pilot. */
35
+ export interface PilotGPSPositionCtrl {
36
+ /** The GPS position of the pilot. */
37
+ position: LatLongPosition | undefined;
38
+ }
39
+ /**
40
+ * Issue a watchdog message to indicate that the remote client is connected and working as expected.
41
+ *
42
+ * If a watchdog message is not received every second, the drone will turn off lights and other auto
43
+ * functions to indicate that connection with the client has been lost.
44
+ */
45
+ export interface WatchdogCtrl {
46
+ /** Message with the number of seconds the client has been connected. */
47
+ connectionDuration: ConnectionDuration | undefined;
48
+ /** The ID of the client, received in the ConnectClientRep response. */
49
+ clientId: number;
50
+ }
51
+ /** Issue a command to start video or multibeam recording. */
52
+ export interface RecordCtrl {
53
+ /** Message specifying which cameras to record. */
54
+ recordOn: RecordOn | undefined;
55
+ /** Storage location to use for the recordings. */
56
+ storageLocation: StorageLocation;
57
+ }
58
+ /** Issue a command to take a picture. */
59
+ export interface TakePictureCtrl {
60
+ /** Storage location to use for the picture. */
61
+ storageLocation: StorageLocation;
62
+ }
63
+ /** Issue a command to start compass calibration. */
64
+ export interface StartCalibrationCtrl {
65
+ }
66
+ /** Issue a command to cancel compass calibration. */
67
+ export interface CancelCalibrationCtrl {
68
+ }
69
+ /** Issue a command to finish compass calibration. */
70
+ export interface FinishCalibrationCtrl {
71
+ }
72
+ /** Issue a command to set auto heading to a desired state. */
73
+ export interface AutoHeadingCtrl {
74
+ /** State of the heading controller. */
75
+ state: AutoHeadingState | undefined;
76
+ }
77
+ /** Issue a command to set auto depth to a desired state. */
78
+ export interface AutoDepthCtrl {
79
+ /** State of the depth controller. */
80
+ state: AutoDepthState | undefined;
81
+ }
82
+ /** Issue a command to set auto altitude to a desired state. */
83
+ export interface AutoAltitudeCtrl {
84
+ /** State of the altitude controller. */
85
+ state: AutoAltitudeState | undefined;
86
+ }
87
+ /** Issue a command to set station keeping to a desired state. */
88
+ export interface StationKeepingCtrl {
89
+ /** State of the station keeping controller. */
90
+ state: StationKeepingState | undefined;
91
+ }
92
+ /** Issue a command to set station keeping with weather vaning to a desired state. */
93
+ export interface WeatherVaningCtrl {
94
+ /** State of the weather vaning controller. */
95
+ state: WeatherVaningState | undefined;
96
+ }
97
+ /** Issue a command to set Auto Pilot for cruising and turning to a desired state. */
98
+ export interface AutoPilotSurgeYawCtrl {
99
+ /** State of the auto pilot surge yaw controller. */
100
+ state: AutoPilotSurgeYawState | undefined;
101
+ }
102
+ /** Issue a command to set Auto Pilot for vertiacl movement to a desired state. */
103
+ export interface AutoPilotHeaveCtrl {
104
+ /** State of the auto pilot heave controller- */
105
+ state: AutoPilotHeaveState | undefined;
106
+ }
107
+ /** Issue a command to start and pause the loaded mission. */
108
+ export interface RunMissionCtrl {
109
+ }
110
+ /** Issue a command to pause the loaded mission. */
111
+ export interface PauseMissionCtrl {
112
+ }
113
+ /** Clear the loaded mission. */
114
+ export interface ClearMissionCtrl {
115
+ }
116
+ /** Issue a command to reset the position estimate. */
117
+ export interface ResetPositionCtrl {
118
+ /** Reset settings. */
119
+ settings: ResetPositionSettings | undefined;
120
+ }
121
+ /** Issue a command to reset the odometer. */
122
+ export interface ResetOdometerCtrl {
123
+ }
124
+ /** Issue a command to calibrate the DVL gyro. */
125
+ export interface CalibrateDvlGyroCtrl {
126
+ }
127
+ /** Issue a command to enable or disable tilt stabilization. */
128
+ export interface TiltStabilizationCtrl {
129
+ /** Message with the tilt stabilization state to set. */
130
+ state: TiltStabilizationState | undefined;
131
+ }
132
+ /** Issue a command to set the water density. */
133
+ export interface WaterDensityCtrl {
134
+ /** Message with the water density to set. */
135
+ density: WaterDensity | undefined;
136
+ }
137
+ /** Issue a command to set the pinger configuration. */
138
+ export interface PingerConfigurationCtrl {
139
+ /** Message with the pinger configuration to set. */
140
+ configuration: PingerConfiguration | undefined;
141
+ }
142
+ /** Issue a command to set the system time on the drone. */
143
+ export interface SystemTimeCtrl {
144
+ /** Message with the system time to set. */
145
+ systemTime: SystemTime | undefined;
146
+ }
147
+ /** Issue a command to control the gripper. */
148
+ export interface GripperCtrl {
149
+ /** The desired gripping and rotation velocity. */
150
+ gripperVelocities: GripperVelocities | undefined;
151
+ }
152
+ /** Issue a command to set a generic servo value. */
153
+ export interface GenericServoCtrl {
154
+ /** Message with the desired servo value. */
155
+ servo: GenericServo | undefined;
156
+ }
157
+ /** Issue a command to set multibeam servo angle. */
158
+ export interface MultibeamServoCtrl {
159
+ /** Message with the desired servo angle. */
160
+ servo: MultibeamServo | undefined;
161
+ }
162
+ /** Deactivate the guest port power. */
163
+ export interface DeactivateGuestPortsCtrl {
164
+ }
165
+ /** Activated the guest port power. */
166
+ export interface ActivateGuestPortsCtrl {
167
+ }
168
+ /** Restart the guest ports by turning power on and off. */
169
+ export interface RestartGuestPortsCtrl {
170
+ /** Message with information about how long to keep the guest ports off. */
171
+ restartInfo: GuestPortRestartInfo | undefined;
172
+ }
173
+ /** Request to set an In-Situ Aqua Troll parameter unit. */
174
+ export interface SetAquaTrollParameterUnitCtrl {
175
+ /** Message with information about which parameter to set and the unit to set it to. */
176
+ parameterInfo: SetAquaTrollParameterUnit | undefined;
177
+ }
178
+ /** Request to change the In-Situ Aqua Troll connection status. */
179
+ export interface SetAquaTrollConnectionStatusCtrl {
180
+ /** Message with information about which parameter to set and the unit to set it to. */
181
+ connectionStatus: SetAquaTrollConnectionStatus | undefined;
182
+ }
183
+ /** Update the multibeam settings. */
184
+ export interface SetMultibeamConfigCtrl {
185
+ /** Message with the multibeam ping configuration to set. */
186
+ config: MultibeamConfig | undefined;
187
+ }
188
+ /** Activate the multibeam with specified configuration. */
189
+ export interface ActivateMultibeamCtrl {
190
+ /** Message with the multibeam ping configuration to set on connect. */
191
+ config: MultibeamConfig | undefined;
192
+ }
193
+ /** Deactivate the multibeam. */
194
+ export interface DeactivateMultibeamCtrl {
195
+ }
196
+ /**
197
+ * Message sent when the user hits the start dive button in the app.
198
+ *
199
+ * The message does not do anything, but is included in the log files so we can see
200
+ * at which point the user entered the dive view.
201
+ */
202
+ export interface StartDiveCtrl {
203
+ }
204
+ /**
205
+ * Message sent when the user hits the end dive button in the app.
206
+ *
207
+ * The message does not do anything, but is included in the log files so we can see
208
+ * at which point the user exited the dive view.
209
+ */
210
+ export interface EndDiveCtrl {
211
+ }
212
+ /**
213
+ * Message sent when the user wants to format a connected removable storage device.
214
+ *
215
+ * The app will receive a RemovableStorageTel message with information about the newly formatted drive.
216
+ *
217
+ * Warning: The drone will delete any partitions and format the drive with a single exFat partition.
218
+ * Any data on the drive will be lost.
219
+ */
220
+ export interface FormatRemovableStorageDeviceCtrl {
221
+ }
222
+ export declare const MotionInputCtrl: MessageFns<MotionInputCtrl>;
223
+ export declare const TiltVelocityCtrl: MessageFns<TiltVelocityCtrl>;
224
+ export declare const LightsCtrl: MessageFns<LightsCtrl>;
225
+ export declare const GuestportLightsCtrl: MessageFns<GuestportLightsCtrl>;
226
+ export declare const LaserCtrl: MessageFns<LaserCtrl>;
227
+ export declare const PilotGPSPositionCtrl: MessageFns<PilotGPSPositionCtrl>;
228
+ export declare const WatchdogCtrl: MessageFns<WatchdogCtrl>;
229
+ export declare const RecordCtrl: MessageFns<RecordCtrl>;
230
+ export declare const TakePictureCtrl: MessageFns<TakePictureCtrl>;
231
+ export declare const StartCalibrationCtrl: MessageFns<StartCalibrationCtrl>;
232
+ export declare const CancelCalibrationCtrl: MessageFns<CancelCalibrationCtrl>;
233
+ export declare const FinishCalibrationCtrl: MessageFns<FinishCalibrationCtrl>;
234
+ export declare const AutoHeadingCtrl: MessageFns<AutoHeadingCtrl>;
235
+ export declare const AutoDepthCtrl: MessageFns<AutoDepthCtrl>;
236
+ export declare const AutoAltitudeCtrl: MessageFns<AutoAltitudeCtrl>;
237
+ export declare const StationKeepingCtrl: MessageFns<StationKeepingCtrl>;
238
+ export declare const WeatherVaningCtrl: MessageFns<WeatherVaningCtrl>;
239
+ export declare const AutoPilotSurgeYawCtrl: MessageFns<AutoPilotSurgeYawCtrl>;
240
+ export declare const AutoPilotHeaveCtrl: MessageFns<AutoPilotHeaveCtrl>;
241
+ export declare const RunMissionCtrl: MessageFns<RunMissionCtrl>;
242
+ export declare const PauseMissionCtrl: MessageFns<PauseMissionCtrl>;
243
+ export declare const ClearMissionCtrl: MessageFns<ClearMissionCtrl>;
244
+ export declare const ResetPositionCtrl: MessageFns<ResetPositionCtrl>;
245
+ export declare const ResetOdometerCtrl: MessageFns<ResetOdometerCtrl>;
246
+ export declare const CalibrateDvlGyroCtrl: MessageFns<CalibrateDvlGyroCtrl>;
247
+ export declare const TiltStabilizationCtrl: MessageFns<TiltStabilizationCtrl>;
248
+ export declare const WaterDensityCtrl: MessageFns<WaterDensityCtrl>;
249
+ export declare const PingerConfigurationCtrl: MessageFns<PingerConfigurationCtrl>;
250
+ export declare const SystemTimeCtrl: MessageFns<SystemTimeCtrl>;
251
+ export declare const GripperCtrl: MessageFns<GripperCtrl>;
252
+ export declare const GenericServoCtrl: MessageFns<GenericServoCtrl>;
253
+ export declare const MultibeamServoCtrl: MessageFns<MultibeamServoCtrl>;
254
+ export declare const DeactivateGuestPortsCtrl: MessageFns<DeactivateGuestPortsCtrl>;
255
+ export declare const ActivateGuestPortsCtrl: MessageFns<ActivateGuestPortsCtrl>;
256
+ export declare const RestartGuestPortsCtrl: MessageFns<RestartGuestPortsCtrl>;
257
+ export declare const SetAquaTrollParameterUnitCtrl: MessageFns<SetAquaTrollParameterUnitCtrl>;
258
+ export declare const SetAquaTrollConnectionStatusCtrl: MessageFns<SetAquaTrollConnectionStatusCtrl>;
259
+ export declare const SetMultibeamConfigCtrl: MessageFns<SetMultibeamConfigCtrl>;
260
+ export declare const ActivateMultibeamCtrl: MessageFns<ActivateMultibeamCtrl>;
261
+ export declare const DeactivateMultibeamCtrl: MessageFns<DeactivateMultibeamCtrl>;
262
+ export declare const StartDiveCtrl: MessageFns<StartDiveCtrl>;
263
+ export declare const EndDiveCtrl: MessageFns<EndDiveCtrl>;
264
+ export declare const FormatRemovableStorageDeviceCtrl: MessageFns<FormatRemovableStorageDeviceCtrl>;
265
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
266
+ type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
267
+ [K in keyof T]?: DeepPartial<T[K]>;
268
+ } : Partial<T>;
269
+ interface MessageFns<T> {
270
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
271
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
272
+ fromJSON(object: any): T;
273
+ toJSON(message: T): unknown;
274
+ create(base?: DeepPartial<T>): T;
275
+ fromPartial(object: DeepPartial<T>): T;
276
+ }
277
+ export {};