onboardapi-sys 9.10.0

Raw FFI to the Rheinmetall onboardapi C++ SDK through a generated extern "C" shim
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
// @generated by onboardapi-codegen from the onboardapi .rmodel data model. Do not edit.
// SPDX-License-Identifier: EPL-2.0
#include "wire_Sensor.hpp"
#include "../obapi_runtime.hpp"

#include <type_traits>

static_assert(std::is_same<decltype(::M_Sensor::SensorPresetType::Id), std::string>::value, "M_Sensor::SensorPresetType field Id differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorPresetType::Name), std::string>::value, "M_Sensor::SensorPresetType field Name differs from the data model");
static_assert(std::is_same<::M_Sensor::SensorPresetListType, std::vector<::M_Sensor::SensorPresetType>>::value, "typedef M_Sensor::SensorPresetListType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::TypeOfSensor), uint32_t>::value, "M_Sensor::SensorSettingsType field TypeOfSensor differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::SensorName), std::string>::value, "M_Sensor::SensorSettingsType field SensorName differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::SensorTypeName), std::string>::value, "M_Sensor::SensorSettingsType field SensorTypeName differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::Manufacturer), std::string>::value, "M_Sensor::SensorSettingsType field Manufacturer differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDetectionRangeSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDetectionRangeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDetectionSizeSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDetectionSizeSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsSensorTrackingSupported), bool>::value, "M_Sensor::SensorSettingsType field IsSensorTrackingSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDeleteSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDeleteSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsDeactivateSensorSupported), bool>::value, "M_Sensor::SensorSettingsType field IsDeactivateSensorSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::IsLockOnSupported), bool>::value, "M_Sensor::SensorSettingsType field IsLockOnSupported differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::MinimumRange), std::vector<double>>::value, "M_Sensor::SensorSettingsType field MinimumRange differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::MaximumRange), std::vector<double>>::value, "M_Sensor::SensorSettingsType field MaximumRange differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::Presets), std::vector<::M_Sensor::SensorPresetType>>::value, "M_Sensor::SensorSettingsType field Presets differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorSettingsType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Sensor::SensorSettingsType field AdditionalInfo differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::OperationStatus), ::M_Common::OperationStatusType>::value, "M_Sensor::SensorStatusType field OperationStatus differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::SensorPosition), std::vector<::M_Common::PositionType>>::value, "M_Sensor::SensorStatusType field SensorPosition differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::ActivePreset), std::vector<std::string>>::value, "M_Sensor::SensorStatusType field ActivePreset differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorStatusType::IsDeactivated), bool>::value, "M_Sensor::SensorStatusType field IsDeactivated differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChannelType::Id), uint32_t>::value, "M_Sensor::ChannelType field Id differs from the data model");
static_assert(std::is_same<::M_Sensor::ChannelListType, std::vector<::M_Sensor::ChannelType>>::value, "typedef M_Sensor::ChannelListType differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Unknown) == 0u, "enum value M_Sensor::CoverageModeKind::Type::Unknown differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Covered) == 1u, "enum value M_Sensor::CoverageModeKind::Type::Covered differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Uncovered) == 2u, "enum value M_Sensor::CoverageModeKind::Type::Uncovered differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Blocked) == 3u, "enum value M_Sensor::CoverageModeKind::Type::Blocked differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::Suppressed) == 4u, "enum value M_Sensor::CoverageModeKind::Type::Suppressed differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::CoverageModeKind::EmissionControl) == 5u, "enum value M_Sensor::CoverageModeKind::Type::EmissionControl differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorCoverageType::CoverageMode), ::M_Sensor::CoverageModeKind::Type>::value, "M_Sensor::SensorCoverageType field CoverageMode differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorCoverageType::Channels), std::vector<::M_Sensor::ChannelType>>::value, "M_Sensor::SensorCoverageType field Channels differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorCoverageType::Polygon), std::vector<::M_Common::MultiPositionType>>::value, "M_Sensor::SensorCoverageType field Polygon differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::MachWave) == 0u, "enum value M_Sensor::WaveDetectionKind::Type::MachWave differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::SourceWave) == 1u, "enum value M_Sensor::WaveDetectionKind::Type::SourceWave differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::MachWave_SourceWave) == 2u, "enum value M_Sensor::WaveDetectionKind::Type::MachWave_SourceWave differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::WaveDetectionKind::MachWave_No_SourceWave) == 3u, "enum value M_Sensor::WaveDetectionKind::Type::MachWave_No_SourceWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Azimuth), double>::value, "M_Sensor::WaveType field Azimuth differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Elevation), std::vector<double>>::value, "M_Sensor::WaveType field Elevation differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Amplitude), std::vector<double>>::value, "M_Sensor::WaveType field Amplitude differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::Confidence), std::vector<double>>::value, "M_Sensor::WaveType field Confidence differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::WaveType::DetectionTime), std::vector<::M_Common::TimeType>>::value, "M_Sensor::WaveType field DetectionTime differs from the data model");
static_assert(std::is_same<::M_Sensor::WaveOptionalType, std::vector<::M_Sensor::WaveType>>::value, "typedef M_Sensor::WaveOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::WaveDetection), ::M_Sensor::WaveDetectionKind::Type>::value, "M_Sensor::AcousticDetectionType field WaveDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::MachWave), std::vector<::M_Sensor::WaveType>>::value, "M_Sensor::AcousticDetectionType field MachWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::SourceWave), std::vector<::M_Sensor::WaveType>>::value, "M_Sensor::AcousticDetectionType field SourceWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::TimeBetweenMachAndSourceWave), std::vector<::M_Common::TimeIntervalType>>::value, "M_Sensor::AcousticDetectionType field TimeBetweenMachAndSourceWave differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::WaveWidth), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field WaveWidth differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::TrajectoryDistance), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field TrajectoryDistance differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::SourceDistance), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field SourceDistance differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::NumberOfDetections), std::vector<uint32_t>>::value, "M_Sensor::AcousticDetectionType field NumberOfDetections differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::Azimuth1), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field Azimuth1 differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::AcousticDetectionType::Azimuth2), std::vector<double>>::value, "M_Sensor::AcousticDetectionType field Azimuth2 differs from the data model");
static_assert(std::is_same<::M_Sensor::AcousticDetectionOptionalType, std::vector<::M_Sensor::AcousticDetectionType>>::value, "typedef M_Sensor::AcousticDetectionOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Position), ::M_Common::PixelPoint2DType>::value, "M_Sensor::FlashDetectionType field Position differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Size), ::M_Common::PixelRectSizeType>::value, "M_Sensor::FlashDetectionType field Size differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Timestamp), ::M_Common::TimeType>::value, "M_Sensor::FlashDetectionType field Timestamp differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::FrameIndex), std::vector<uint32_t>>::value, "M_Sensor::FlashDetectionType field FrameIndex differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::FlashDuration), double>::value, "M_Sensor::FlashDetectionType field FlashDuration differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::ScaledIntensity), double>::value, "M_Sensor::FlashDetectionType field ScaledIntensity differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::ScaledIntensityRate), double>::value, "M_Sensor::FlashDetectionType field ScaledIntensityRate differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::Confidence), double>::value, "M_Sensor::FlashDetectionType field Confidence differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::FlashDetectionType::FlashType), int32_t>::value, "M_Sensor::FlashDetectionType field FlashType differs from the data model");
static_assert(std::is_same<::M_Sensor::FlashDetectionOptionalType, std::vector<::M_Sensor::FlashDetectionType>>::value, "typedef M_Sensor::FlashDetectionOptionalType differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Initial) == 0u, "enum value M_Sensor::LwsClassification::Type::Initial differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::In_Progress) == 1u, "enum value M_Sensor::LwsClassification::Type::In_Progress differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Unknown) == 2u, "enum value M_Sensor::LwsClassification::Type::Unknown differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Single_Pulse) == 3u, "enum value M_Sensor::LwsClassification::Type::Single_Pulse differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Multiple_Pulse) == 4u, "enum value M_Sensor::LwsClassification::Type::Multiple_Pulse differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Beam_Rider) == 5u, "enum value M_Sensor::LwsClassification::Type::Beam_Rider differs from the data model");
static_assert(static_cast<uint32_t>(::M_Sensor::LwsClassification::Designator) == 6u, "enum value M_Sensor::LwsClassification::Type::Designator differs from the data model");
static_assert(std::is_same<::M_Sensor::LwsClassificationOptionalType, std::vector<::M_Sensor::LwsClassification::Type>>::value, "typedef M_Sensor::LwsClassificationOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::TypeOfDetection), uint32_t>::value, "M_Sensor::ChildDetectionType field TypeOfDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::Identity), uint32_t>::value, "M_Sensor::ChildDetectionType field Identity differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::Classification), std::vector<::M_Common::ObjectClassificationType>>::value, "M_Sensor::ChildDetectionType field Classification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::ObjectPositionList), std::vector<::M_Common::PositionType>>::value, "M_Sensor::ChildDetectionType field ObjectPositionList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::ObjectVelocityList), std::vector<::M_Common::LinearVelocityType>>::value, "M_Sensor::ChildDetectionType field ObjectVelocityList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::ObjectDimensions), std::vector<::M_Common::ObjectDimensionsType>>::value, "M_Sensor::ChildDetectionType field ObjectDimensions differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::RangeMeasurementList), std::vector<::M_LaserRangeFinder::RangeMeasurementType>>::value, "M_Sensor::ChildDetectionType field RangeMeasurementList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::AcousticDetection), std::vector<::M_Sensor::AcousticDetectionType>>::value, "M_Sensor::ChildDetectionType field AcousticDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::FlashDetection), std::vector<::M_Sensor::FlashDetectionType>>::value, "M_Sensor::ChildDetectionType field FlashDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::LwsClassification), std::vector<::M_Sensor::LwsClassification::Type>>::value, "M_Sensor::ChildDetectionType field LwsClassification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::VideoTrackedObject), std::vector<::M_VideoTracker::VtObjectType>>::value, "M_Sensor::ChildDetectionType field VideoTrackedObject differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::IsLockedOn), std::vector<bool>>::value, "M_Sensor::ChildDetectionType field IsLockedOn differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::ChildDetectionType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Sensor::ChildDetectionType field AdditionalInfo differs from the data model");
static_assert(std::is_same<::M_Sensor::ChildDetectionListType, std::vector<::M_Sensor::ChildDetectionType>>::value, "typedef M_Sensor::ChildDetectionListType differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::TypeOfDetection), uint32_t>::value, "M_Sensor::SensorDetectionType field TypeOfDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::Identity), uint32_t>::value, "M_Sensor::SensorDetectionType field Identity differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::Classification), std::vector<::M_Common::ObjectClassificationType>>::value, "M_Sensor::SensorDetectionType field Classification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ObjectPositionList), std::vector<::M_Common::PositionType>>::value, "M_Sensor::SensorDetectionType field ObjectPositionList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ObjectVelocityList), std::vector<::M_Common::LinearVelocityType>>::value, "M_Sensor::SensorDetectionType field ObjectVelocityList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ObjectDimensions), std::vector<::M_Common::ObjectDimensionsType>>::value, "M_Sensor::SensorDetectionType field ObjectDimensions differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::RangeMeasurementList), std::vector<::M_LaserRangeFinder::RangeMeasurementType>>::value, "M_Sensor::SensorDetectionType field RangeMeasurementList differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::AcousticDetection), std::vector<::M_Sensor::AcousticDetectionType>>::value, "M_Sensor::SensorDetectionType field AcousticDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::FlashDetection), std::vector<::M_Sensor::FlashDetectionType>>::value, "M_Sensor::SensorDetectionType field FlashDetection differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::LwsClassification), std::vector<::M_Sensor::LwsClassification::Type>>::value, "M_Sensor::SensorDetectionType field LwsClassification differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::VideoTrackedObject), std::vector<::M_VideoTracker::VtObjectType>>::value, "M_Sensor::SensorDetectionType field VideoTrackedObject differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::IsLockedOn), std::vector<bool>>::value, "M_Sensor::SensorDetectionType field IsLockedOn differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::ChildDetections), std::vector<::M_Sensor::ChildDetectionType>>::value, "M_Sensor::SensorDetectionType field ChildDetections differs from the data model");
static_assert(std::is_same<decltype(::M_Sensor::SensorDetectionType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Sensor::SensorDetectionType field AdditionalInfo differs from the data model");

namespace M_Sensor {
    void obapi_put(::obapi::Writer& w, SensorPresetType const& v) {
        ::obapi::put(w, v.Id);
        ::obapi::put(w, v.Name);
    }
    void obapi_get(::obapi::Reader& r, SensorPresetType& v) {
        ::obapi::get(r, v.Id);
        ::obapi::get(r, v.Name);
    }
    void obapi_put(::obapi::Writer& w, SensorSettingsType const& v) {
        ::obapi::put(w, v.TypeOfSensor);
        ::obapi::put(w, v.SensorName);
        ::obapi::put(w, v.SensorTypeName);
        ::obapi::put(w, v.Manufacturer);
        ::obapi::put(w, v.IsDetectionRangeSupported);
        ::obapi::put(w, v.IsDetectionSizeSupported);
        ::obapi::put(w, v.IsSensorTrackingSupported);
        ::obapi::put(w, v.IsDeleteSupported);
        ::obapi::put(w, v.IsDeactivateSensorSupported);
        ::obapi::put(w, v.IsLockOnSupported);
        ::obapi::put(w, v.MinimumRange);
        ::obapi::put(w, v.MaximumRange);
        ::obapi::put(w, v.Presets);
        ::obapi::put(w, v.AdditionalInfo);
    }
    void obapi_get(::obapi::Reader& r, SensorSettingsType& v) {
        ::obapi::get(r, v.TypeOfSensor);
        ::obapi::get(r, v.SensorName);
        ::obapi::get(r, v.SensorTypeName);
        ::obapi::get(r, v.Manufacturer);
        ::obapi::get(r, v.IsDetectionRangeSupported);
        ::obapi::get(r, v.IsDetectionSizeSupported);
        ::obapi::get(r, v.IsSensorTrackingSupported);
        ::obapi::get(r, v.IsDeleteSupported);
        ::obapi::get(r, v.IsDeactivateSensorSupported);
        ::obapi::get(r, v.IsLockOnSupported);
        ::obapi::get(r, v.MinimumRange);
        ::obapi::get(r, v.MaximumRange);
        ::obapi::get(r, v.Presets);
        ::obapi::get(r, v.AdditionalInfo);
    }
    void obapi_put(::obapi::Writer& w, SensorStatusType const& v) {
        ::obapi::put(w, v.OperationStatus);
        ::obapi::put(w, v.SensorPosition);
        ::obapi::put(w, v.ActivePreset);
        ::obapi::put(w, v.IsDeactivated);
    }
    void obapi_get(::obapi::Reader& r, SensorStatusType& v) {
        ::obapi::get(r, v.OperationStatus);
        ::obapi::get(r, v.SensorPosition);
        ::obapi::get(r, v.ActivePreset);
        ::obapi::get(r, v.IsDeactivated);
    }
    void obapi_put(::obapi::Writer& w, ChannelType const& v) {
        ::obapi::put(w, v.Id);
    }
    void obapi_get(::obapi::Reader& r, ChannelType& v) {
        ::obapi::get(r, v.Id);
    }
    void obapi_put(::obapi::Writer& w, SensorCoverageType const& v) {
        ::obapi::put(w, v.CoverageMode);
        ::obapi::put(w, v.Channels);
        ::obapi::put(w, v.Polygon);
    }
    void obapi_get(::obapi::Reader& r, SensorCoverageType& v) {
        ::obapi::get(r, v.CoverageMode);
        ::obapi::get(r, v.Channels);
        ::obapi::get(r, v.Polygon);
    }
    void obapi_put(::obapi::Writer& w, WaveType const& v) {
        ::obapi::put(w, v.Azimuth);
        ::obapi::put(w, v.Elevation);
        ::obapi::put(w, v.Amplitude);
        ::obapi::put(w, v.Confidence);
        ::obapi::put(w, v.DetectionTime);
    }
    void obapi_get(::obapi::Reader& r, WaveType& v) {
        ::obapi::get(r, v.Azimuth);
        ::obapi::get(r, v.Elevation);
        ::obapi::get(r, v.Amplitude);
        ::obapi::get(r, v.Confidence);
        ::obapi::get(r, v.DetectionTime);
    }
    void obapi_put(::obapi::Writer& w, AcousticDetectionType const& v) {
        ::obapi::put(w, v.WaveDetection);
        ::obapi::put(w, v.MachWave);
        ::obapi::put(w, v.SourceWave);
        ::obapi::put(w, v.TimeBetweenMachAndSourceWave);
        ::obapi::put(w, v.WaveWidth);
        ::obapi::put(w, v.TrajectoryDistance);
        ::obapi::put(w, v.SourceDistance);
        ::obapi::put(w, v.NumberOfDetections);
        ::obapi::put(w, v.Azimuth1);
        ::obapi::put(w, v.Azimuth2);
    }
    void obapi_get(::obapi::Reader& r, AcousticDetectionType& v) {
        ::obapi::get(r, v.WaveDetection);
        ::obapi::get(r, v.MachWave);
        ::obapi::get(r, v.SourceWave);
        ::obapi::get(r, v.TimeBetweenMachAndSourceWave);
        ::obapi::get(r, v.WaveWidth);
        ::obapi::get(r, v.TrajectoryDistance);
        ::obapi::get(r, v.SourceDistance);
        ::obapi::get(r, v.NumberOfDetections);
        ::obapi::get(r, v.Azimuth1);
        ::obapi::get(r, v.Azimuth2);
    }
    void obapi_put(::obapi::Writer& w, FlashDetectionType const& v) {
        ::obapi::put(w, v.Position);
        ::obapi::put(w, v.Size);
        ::obapi::put(w, v.Timestamp);
        ::obapi::put(w, v.FrameIndex);
        ::obapi::put(w, v.FlashDuration);
        ::obapi::put(w, v.ScaledIntensity);
        ::obapi::put(w, v.ScaledIntensityRate);
        ::obapi::put(w, v.Confidence);
        ::obapi::put(w, v.FlashType);
    }
    void obapi_get(::obapi::Reader& r, FlashDetectionType& v) {
        ::obapi::get(r, v.Position);
        ::obapi::get(r, v.Size);
        ::obapi::get(r, v.Timestamp);
        ::obapi::get(r, v.FrameIndex);
        ::obapi::get(r, v.FlashDuration);
        ::obapi::get(r, v.ScaledIntensity);
        ::obapi::get(r, v.ScaledIntensityRate);
        ::obapi::get(r, v.Confidence);
        ::obapi::get(r, v.FlashType);
    }
    void obapi_put(::obapi::Writer& w, ChildDetectionType const& v) {
        ::obapi::put(w, v.TypeOfDetection);
        ::obapi::put(w, v.Identity);
        ::obapi::put(w, v.Classification);
        ::obapi::put(w, v.ObjectPositionList);
        ::obapi::put(w, v.ObjectVelocityList);
        ::obapi::put(w, v.ObjectDimensions);
        ::obapi::put(w, v.RangeMeasurementList);
        ::obapi::put(w, v.AcousticDetection);
        ::obapi::put(w, v.FlashDetection);
        ::obapi::put(w, v.LwsClassification);
        ::obapi::put(w, v.VideoTrackedObject);
        ::obapi::put(w, v.IsLockedOn);
        ::obapi::put(w, v.AdditionalInfo);
    }
    void obapi_get(::obapi::Reader& r, ChildDetectionType& v) {
        ::obapi::get(r, v.TypeOfDetection);
        ::obapi::get(r, v.Identity);
        ::obapi::get(r, v.Classification);
        ::obapi::get(r, v.ObjectPositionList);
        ::obapi::get(r, v.ObjectVelocityList);
        ::obapi::get(r, v.ObjectDimensions);
        ::obapi::get(r, v.RangeMeasurementList);
        ::obapi::get(r, v.AcousticDetection);
        ::obapi::get(r, v.FlashDetection);
        ::obapi::get(r, v.LwsClassification);
        ::obapi::get(r, v.VideoTrackedObject);
        ::obapi::get(r, v.IsLockedOn);
        ::obapi::get(r, v.AdditionalInfo);
    }
    void obapi_put(::obapi::Writer& w, SensorDetectionType const& v) {
        ::obapi::put(w, v.TypeOfDetection);
        ::obapi::put(w, v.Identity);
        ::obapi::put(w, v.Classification);
        ::obapi::put(w, v.ObjectPositionList);
        ::obapi::put(w, v.ObjectVelocityList);
        ::obapi::put(w, v.ObjectDimensions);
        ::obapi::put(w, v.RangeMeasurementList);
        ::obapi::put(w, v.AcousticDetection);
        ::obapi::put(w, v.FlashDetection);
        ::obapi::put(w, v.LwsClassification);
        ::obapi::put(w, v.VideoTrackedObject);
        ::obapi::put(w, v.IsLockedOn);
        ::obapi::put(w, v.ChildDetections);
        ::obapi::put(w, v.AdditionalInfo);
    }
    void obapi_get(::obapi::Reader& r, SensorDetectionType& v) {
        ::obapi::get(r, v.TypeOfDetection);
        ::obapi::get(r, v.Identity);
        ::obapi::get(r, v.Classification);
        ::obapi::get(r, v.ObjectPositionList);
        ::obapi::get(r, v.ObjectVelocityList);
        ::obapi::get(r, v.ObjectDimensions);
        ::obapi::get(r, v.RangeMeasurementList);
        ::obapi::get(r, v.AcousticDetection);
        ::obapi::get(r, v.FlashDetection);
        ::obapi::get(r, v.LwsClassification);
        ::obapi::get(r, v.VideoTrackedObject);
        ::obapi::get(r, v.IsLockedOn);
        ::obapi::get(r, v.ChildDetections);
        ::obapi::get(r, v.AdditionalInfo);
    }
} // namespace M_Sensor

namespace {
    struct ServiceCallbacks final : ::M_Sensor::IService {
        ::obapi::Dispatcher dispatcher;
        void CmdIsSensorAlive() override {
            ::obapi::Writer w;
            dispatcher.dispatch(0u, w);
        }
        void CmdDeleteTracks(::M_Common::ObjectIdListType const& KeyIdList) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyIdList);
            dispatcher.dispatch(1u, w);
        }
        void CmdDeleteAllTracks() override {
            ::obapi::Writer w;
            dispatcher.dispatch(2u, w);
        }
        void CmdDeactivateSensor(bool Deactivate) override {
            ::obapi::Writer w;
            ::obapi::put(w, Deactivate);
            dispatcher.dispatch(3u, w);
        }
        void ConfigSensorCoverage(::M_Common::ObjectIdType const& KeyId, ::M_Sensor::SensorCoverageType const& Coverage, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Coverage);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(4u, w);
        }
        void CmdSetPreset(::M_Common::ObjectIdOptionalType const& Preset) override {
            ::obapi::Writer w;
            ::obapi::put(w, Preset);
            dispatcher.dispatch(5u, w);
        }
        void CmdLockOnTracks(::M_Common::ObjectIdListType const& KeyIdList) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyIdList);
            dispatcher.dispatch(6u, w);
        }
    };

    struct ClientCallbacks final : ::M_Sensor::IClient {
        ::obapi::Dispatcher dispatcher;
        void ReportSensorSettings(::M_Sensor::SensorSettingsType const& Settings) override {
            ::obapi::Writer w;
            ::obapi::put(w, Settings);
            dispatcher.dispatch(0u, w);
        }
        void ReportSensorStatus(::M_Sensor::SensorStatusType const& Status, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, Status);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(1u, w);
        }
        void ReportSensorCoverage(::M_Common::ObjectIdType const& KeyId, ::M_Sensor::SensorCoverageType const& Coverage, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Coverage);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(2u, w);
        }
        void EventSensorDetection(::M_Common::ObjectIdType const& DetectionId, ::M_Sensor::SensorDetectionType const& Detection) override {
            ::obapi::Writer w;
            ::obapi::put(w, DetectionId);
            ::obapi::put(w, Detection);
            dispatcher.dispatch(3u, w);
        }
        void ReportSensorTrack(::M_Common::ObjectIdType const& KeyId, ::M_Sensor::SensorDetectionType const& Track, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Track);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(4u, w);
        }
    };

    void service_send(::obapi::Holder<::M_Sensor::Service, ServiceCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
        switch (op) {
            case 0u: {
                ::M_Sensor::SensorSettingsType Settings{};
                ::obapi::get(r, Settings);
                r.finish();
                h.endpoint->ReportSensorSettings(Settings);
                return;
            }
            case 1u: {
                ::M_Sensor::SensorStatusType Status{};
                ::obapi::get(r, Status);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportSensorStatus(Status, IsRemoved);
                return;
            }
            case 2u: {
                ::M_Common::ObjectIdType KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Sensor::SensorCoverageType Coverage{};
                ::obapi::get(r, Coverage);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportSensorCoverage(KeyId, Coverage, IsRemoved);
                return;
            }
            case 3u: {
                ::M_Common::ObjectIdType DetectionId{};
                ::obapi::get(r, DetectionId);
                ::M_Sensor::SensorDetectionType Detection{};
                ::obapi::get(r, Detection);
                r.finish();
                h.endpoint->EventSensorDetection(DetectionId, Detection);
                return;
            }
            case 4u: {
                ::M_Common::ObjectIdType KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Sensor::SensorDetectionType Track{};
                ::obapi::get(r, Track);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportSensorTrack(KeyId, Track, IsRemoved);
                return;
            }
            default: throw ::obapi::UnknownOp(op);
        }
    }

    void client_send(::obapi::Holder<::M_Sensor::Client, ClientCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
        switch (op) {
            case 0u: {
                r.finish();
                h.endpoint->CmdIsSensorAlive();
                return;
            }
            case 1u: {
                ::M_Common::ObjectIdListType KeyIdList{};
                ::obapi::get(r, KeyIdList);
                r.finish();
                h.endpoint->CmdDeleteTracks(KeyIdList);
                return;
            }
            case 2u: {
                r.finish();
                h.endpoint->CmdDeleteAllTracks();
                return;
            }
            case 3u: {
                bool Deactivate{};
                ::obapi::get(r, Deactivate);
                r.finish();
                h.endpoint->CmdDeactivateSensor(Deactivate);
                return;
            }
            case 4u: {
                ::M_Common::ObjectIdType KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Sensor::SensorCoverageType Coverage{};
                ::obapi::get(r, Coverage);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ConfigSensorCoverage(KeyId, Coverage, IsRemoved);
                return;
            }
            case 5u: {
                ::M_Common::ObjectIdOptionalType Preset{};
                ::obapi::get(r, Preset);
                r.finish();
                h.endpoint->CmdSetPreset(Preset);
                return;
            }
            case 6u: {
                ::M_Common::ObjectIdListType KeyIdList{};
                ::obapi::get(r, KeyIdList);
                r.finish();
                h.endpoint->CmdLockOnTracks(KeyIdList);
                return;
            }
            default: throw ::obapi::UnknownOp(op);
        }
    }

} // namespace

extern "C" const obapi_vtable obapi_Sensor_service_vtable = ::obapi::Endpoint<::M_Sensor::Service, ServiceCallbacks, &service_send, false>::vtable("M_Sensor", "Service");
extern "C" const obapi_vtable obapi_Sensor_client_vtable = ::obapi::Endpoint<::M_Sensor::Client, ClientCallbacks, &client_send, true>::vtable("M_Sensor", "Client");