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
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
// @generated by onboardapi-codegen from the onboardapi .rmodel data model. Do not edit.
// SPDX-License-Identifier: EPL-2.0
#include "wire_Manipulator.hpp"
#include "../obapi_runtime.hpp"

#include <type_traits>

static_assert(std::is_same<decltype(::M_Manipulator::InertiaTensorType::XX), double>::value, "M_Manipulator::InertiaTensorType field XX differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaTensorType::YY), double>::value, "M_Manipulator::InertiaTensorType field YY differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaTensorType::ZZ), double>::value, "M_Manipulator::InertiaTensorType field ZZ differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaTensorType::XY), double>::value, "M_Manipulator::InertiaTensorType field XY differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaTensorType::YZ), double>::value, "M_Manipulator::InertiaTensorType field YZ differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaTensorType::XZ), double>::value, "M_Manipulator::InertiaTensorType field XZ differs from the data model");
static_assert(std::is_same<::M_Manipulator::InertiaTensorOptionalType, std::vector<::M_Manipulator::InertiaTensorType>>::value, "typedef M_Manipulator::InertiaTensorOptionalType differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaType::GravityCentre), std::vector<::M_Common::PositionType>>::value, "M_Manipulator::InertiaType field GravityCentre differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaType::Mass), std::vector<double>>::value, "M_Manipulator::InertiaType field Mass differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::InertiaType::InertiaTensor), std::vector<::M_Manipulator::InertiaTensorType>>::value, "M_Manipulator::InertiaType field InertiaTensor differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::LinkType::LinkId), std::string>::value, "M_Manipulator::LinkType field LinkId differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::LinkType::AxisId), std::string>::value, "M_Manipulator::LinkType field AxisId differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::LinkType::ActuatorId), std::string>::value, "M_Manipulator::LinkType field ActuatorId differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::LinkType::Inertia), ::M_Manipulator::InertiaType>::value, "M_Manipulator::LinkType field Inertia differs from the data model");
static_assert(std::is_same<::M_Manipulator::LinkListType, std::vector<::M_Manipulator::LinkType>>::value, "typedef M_Manipulator::LinkListType differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::ManipulatorSettingsType::Links), std::vector<::M_Manipulator::LinkType>>::value, "M_Manipulator::ManipulatorSettingsType field Links differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::ManipulatorSettingsType::SupportedOperationStatusList), std::vector<::M_Common::OperationStatusType>>::value, "M_Manipulator::ManipulatorSettingsType field SupportedOperationStatusList differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::ManipulatorSettingsType::AdditionalInfo), std::vector<::M_Common::PropertyType>>::value, "M_Manipulator::ManipulatorSettingsType field AdditionalInfo differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::ManipulatorStatusType::OperationStatus), ::M_Common::OperationStatusType>::value, "M_Manipulator::ManipulatorStatusType field OperationStatus differs from the data model");
static_assert(std::is_same<decltype(::M_Manipulator::LinkStatusType::Inertia), ::M_Manipulator::InertiaType>::value, "M_Manipulator::LinkStatusType field Inertia differs from the data model");

namespace M_Manipulator {
    void obapi_put(::obapi::Writer& w, InertiaTensorType const& v) {
        ::obapi::put(w, v.XX);
        ::obapi::put(w, v.YY);
        ::obapi::put(w, v.ZZ);
        ::obapi::put(w, v.XY);
        ::obapi::put(w, v.YZ);
        ::obapi::put(w, v.XZ);
    }
    void obapi_get(::obapi::Reader& r, InertiaTensorType& v) {
        ::obapi::get(r, v.XX);
        ::obapi::get(r, v.YY);
        ::obapi::get(r, v.ZZ);
        ::obapi::get(r, v.XY);
        ::obapi::get(r, v.YZ);
        ::obapi::get(r, v.XZ);
    }
    void obapi_put(::obapi::Writer& w, InertiaType const& v) {
        ::obapi::put(w, v.GravityCentre);
        ::obapi::put(w, v.Mass);
        ::obapi::put(w, v.InertiaTensor);
    }
    void obapi_get(::obapi::Reader& r, InertiaType& v) {
        ::obapi::get(r, v.GravityCentre);
        ::obapi::get(r, v.Mass);
        ::obapi::get(r, v.InertiaTensor);
    }
    void obapi_put(::obapi::Writer& w, LinkType const& v) {
        ::obapi::put(w, v.LinkId);
        ::obapi::put(w, v.AxisId);
        ::obapi::put(w, v.ActuatorId);
        ::obapi::put(w, v.Inertia);
    }
    void obapi_get(::obapi::Reader& r, LinkType& v) {
        ::obapi::get(r, v.LinkId);
        ::obapi::get(r, v.AxisId);
        ::obapi::get(r, v.ActuatorId);
        ::obapi::get(r, v.Inertia);
    }
    void obapi_put(::obapi::Writer& w, ManipulatorSettingsType const& v) {
        ::obapi::put(w, v.Links);
        ::obapi::put(w, v.SupportedOperationStatusList);
        ::obapi::put(w, v.AdditionalInfo);
    }
    void obapi_get(::obapi::Reader& r, ManipulatorSettingsType& v) {
        ::obapi::get(r, v.Links);
        ::obapi::get(r, v.SupportedOperationStatusList);
        ::obapi::get(r, v.AdditionalInfo);
    }
    void obapi_put(::obapi::Writer& w, ManipulatorStatusType const& v) {
        ::obapi::put(w, v.OperationStatus);
    }
    void obapi_get(::obapi::Reader& r, ManipulatorStatusType& v) {
        ::obapi::get(r, v.OperationStatus);
    }
    void obapi_put(::obapi::Writer& w, LinkStatusType const& v) {
        ::obapi::put(w, v.Inertia);
    }
    void obapi_get(::obapi::Reader& r, LinkStatusType& v) {
        ::obapi::get(r, v.Inertia);
    }
} // namespace M_Manipulator

namespace {
    struct ServiceCallbacks final : ::M_Manipulator::IService {
        ::obapi::Dispatcher dispatcher;
        void NotifyCoordinateTransformation(std::string const& KeyId, ::M_Common::CoordinateTransformationType const& Transformation) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Transformation);
            dispatcher.dispatch(0u, w);
        }
        void NotifyPosition(std::string const& KeyId, ::M_Common::PositionType const& Position) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Position);
            dispatcher.dispatch(1u, w);
        }
        void NotifyAttitude(std::string const& KeyId, ::M_Common::AttitudeType const& Attitude) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Attitude);
            dispatcher.dispatch(2u, w);
        }
        void NotifyLinearVelocity(std::string const& KeyId, ::M_Common::LinearVelocityType const& LinearVelocity) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, LinearVelocity);
            dispatcher.dispatch(3u, w);
        }
        void NotifyAngularVelocity(std::string const& KeyId, ::M_Common::AngularVelocityType const& AngularVelocity) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, AngularVelocity);
            dispatcher.dispatch(4u, w);
        }
        void ConfigAxisRotationConstraints(::M_KinematicChain::AxisRotationConstraintsListType const& AxisRotationConstraints) override {
            ::obapi::Writer w;
            ::obapi::put(w, AxisRotationConstraints);
            dispatcher.dispatch(5u, w);
        }
        void NotifyAxisRotations(std::string const& InputSourceClientId, ::M_KinematicChain::AxisRotationListType const& AxisRotations) override {
            ::obapi::Writer w;
            ::obapi::put(w, InputSourceClientId);
            ::obapi::put(w, AxisRotations);
            dispatcher.dispatch(6u, w);
        }
        void ConfigStoreAxisRotations(std::string const& KeyDatasetId, ::M_KinematicChain::AxisRotationListType const& AxisRotations, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyDatasetId);
            ::obapi::put(w, AxisRotations);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(7u, w);
        }
        void CmdDeleteStoredAxisRotations(std::string const& DatasetId) override {
            ::obapi::Writer w;
            ::obapi::put(w, DatasetId);
            dispatcher.dispatch(8u, w);
        }
        void CmdApplyStoredAxisRotation(std::string const& DatasetId) override {
            ::obapi::Writer w;
            ::obapi::put(w, DatasetId);
            dispatcher.dispatch(9u, w);
        }
        void CmdIsActuationAlive() override {
            ::obapi::Writer w;
            dispatcher.dispatch(10u, w);
        }
        void ConfigActuationComponentReference(std::string const& KeyId, ::M_ActuationCtrl::ActuationCommandType const& ReferenceState, bool StorePersistently, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, ReferenceState);
            ::obapi::put(w, StorePersistently);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(11u, w);
        }
        void NotifyActuationComponentCommand(std::string const& KeyId, ::M_ActuationCtrl::ActuationCommandType const& Command) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Command);
            dispatcher.dispatch(12u, w);
        }
    };

    struct ClientCallbacks final : ::M_Manipulator::IClient {
        ::obapi::Dispatcher dispatcher;
        void ReportCoordinateFrameSettings(::M_CoordinateFrame::CoordinateFrameSettingsType const& Settings) override {
            ::obapi::Writer w;
            ::obapi::put(w, Settings);
            dispatcher.dispatch(0u, w);
        }
        void ReportCoordinateFrameStatus(::M_CoordinateFrame::CoordinateFrameStatusType const& Status, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, Status);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(1u, w);
        }
        void ReportCoordinateTransformations(std::string const& KeyId, ::M_Common::CoordinateTransformationListType const& TransformationList, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, TransformationList);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(2u, w);
        }
        void ReportPositions(std::string const& KeyId, ::M_Common::PositionListType const& PositionList, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, PositionList);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(3u, w);
        }
        void ReportAttitudes(std::string const& KeyId, ::M_Common::AttitudeListType const& AttitudeList, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, AttitudeList);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(4u, w);
        }
        void ReportLinearVelocities(std::string const& KeyId, ::M_Common::LinearVelocityListType const& LinearVelocityList, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, LinearVelocityList);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(5u, w);
        }
        void ReportAngularVelocities(std::string const& KeyId, ::M_Common::AngularVelocityListType const& AngularVelocityList, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, AngularVelocityList);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(6u, w);
        }
        void ReportLinearAccelerations(std::string const& KeyId, ::M_Common::LinearAccelerationListType const& LinearAccelerationList, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, LinearAccelerationList);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(7u, w);
        }
        void ReportAngularAccelerations(std::string const& KeyId, ::M_Common::AngularAccelerationListType const& AngularAccelerationList, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, AngularAccelerationList);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(8u, w);
        }
        void ReportKinematicChainSettings(::M_KinematicChain::KinematicChainSettingsType const& Settings) override {
            ::obapi::Writer w;
            ::obapi::put(w, Settings);
            dispatcher.dispatch(9u, w);
        }
        void ReportKinematicChainStatus(::M_KinematicChain::KinematicChainStatusType const& Status, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, Status);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(10u, w);
        }
        void ReportAxisRotationConstraints(::M_KinematicChain::AxisRotationConstraintsListType const& AxisRotationConstraints) override {
            ::obapi::Writer w;
            ::obapi::put(w, AxisRotationConstraints);
            dispatcher.dispatch(11u, w);
        }
        void ReportAxisRotations(::M_KinematicChain::AxisRotationListType const& AxisRotations) override {
            ::obapi::Writer w;
            ::obapi::put(w, AxisRotations);
            dispatcher.dispatch(12u, w);
        }
        void ReportActuationCtrlSettings(::M_ActuationCtrl::ActuationCtrlSettingsType const& Settings) override {
            ::obapi::Writer w;
            ::obapi::put(w, Settings);
            dispatcher.dispatch(13u, w);
        }
        void ReportActuationComponentStatus(std::string const& KeyId, ::M_ActuationCtrl::ActuationStatusType const& Status, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, KeyId);
            ::obapi::put(w, Status);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(14u, w);
        }
        void ReportManipulatorSettings(::M_Manipulator::ManipulatorSettingsType const& Settings) override {
            ::obapi::Writer w;
            ::obapi::put(w, Settings);
            dispatcher.dispatch(15u, w);
        }
        void ReportManipulatorStatus(::M_Manipulator::ManipulatorStatusType const& Status, bool IsRemoved) override {
            ::obapi::Writer w;
            ::obapi::put(w, Status);
            ::obapi::put(w, IsRemoved);
            dispatcher.dispatch(16u, w);
        }
        void ReportLinkStatus(std::string const& LinkId, ::M_Manipulator::LinkStatusType const& Status) override {
            ::obapi::Writer w;
            ::obapi::put(w, LinkId);
            ::obapi::put(w, Status);
            dispatcher.dispatch(17u, w);
        }
    };

    void service_send(::obapi::Holder<::M_Manipulator::Service, ServiceCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
        switch (op) {
            case 0u: {
                ::M_CoordinateFrame::CoordinateFrameSettingsType Settings{};
                ::obapi::get(r, Settings);
                r.finish();
                h.endpoint->ReportCoordinateFrameSettings(Settings);
                return;
            }
            case 1u: {
                ::M_CoordinateFrame::CoordinateFrameStatusType Status{};
                ::obapi::get(r, Status);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportCoordinateFrameStatus(Status, IsRemoved);
                return;
            }
            case 2u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::CoordinateTransformationListType TransformationList{};
                ::obapi::get(r, TransformationList);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportCoordinateTransformations(KeyId, TransformationList, IsRemoved);
                return;
            }
            case 3u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::PositionListType PositionList{};
                ::obapi::get(r, PositionList);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportPositions(KeyId, PositionList, IsRemoved);
                return;
            }
            case 4u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::AttitudeListType AttitudeList{};
                ::obapi::get(r, AttitudeList);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportAttitudes(KeyId, AttitudeList, IsRemoved);
                return;
            }
            case 5u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::LinearVelocityListType LinearVelocityList{};
                ::obapi::get(r, LinearVelocityList);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportLinearVelocities(KeyId, LinearVelocityList, IsRemoved);
                return;
            }
            case 6u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::AngularVelocityListType AngularVelocityList{};
                ::obapi::get(r, AngularVelocityList);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportAngularVelocities(KeyId, AngularVelocityList, IsRemoved);
                return;
            }
            case 7u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::LinearAccelerationListType LinearAccelerationList{};
                ::obapi::get(r, LinearAccelerationList);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportLinearAccelerations(KeyId, LinearAccelerationList, IsRemoved);
                return;
            }
            case 8u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::AngularAccelerationListType AngularAccelerationList{};
                ::obapi::get(r, AngularAccelerationList);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportAngularAccelerations(KeyId, AngularAccelerationList, IsRemoved);
                return;
            }
            case 9u: {
                ::M_KinematicChain::KinematicChainSettingsType Settings{};
                ::obapi::get(r, Settings);
                r.finish();
                h.endpoint->ReportKinematicChainSettings(Settings);
                return;
            }
            case 10u: {
                ::M_KinematicChain::KinematicChainStatusType Status{};
                ::obapi::get(r, Status);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportKinematicChainStatus(Status, IsRemoved);
                return;
            }
            case 11u: {
                ::M_KinematicChain::AxisRotationConstraintsListType AxisRotationConstraints{};
                ::obapi::get(r, AxisRotationConstraints);
                r.finish();
                h.endpoint->ReportAxisRotationConstraints(AxisRotationConstraints);
                return;
            }
            case 12u: {
                ::M_KinematicChain::AxisRotationListType AxisRotations{};
                ::obapi::get(r, AxisRotations);
                r.finish();
                h.endpoint->ReportAxisRotations(AxisRotations);
                return;
            }
            case 13u: {
                ::M_ActuationCtrl::ActuationCtrlSettingsType Settings{};
                ::obapi::get(r, Settings);
                r.finish();
                h.endpoint->ReportActuationCtrlSettings(Settings);
                return;
            }
            case 14u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_ActuationCtrl::ActuationStatusType Status{};
                ::obapi::get(r, Status);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportActuationComponentStatus(KeyId, Status, IsRemoved);
                return;
            }
            case 15u: {
                ::M_Manipulator::ManipulatorSettingsType Settings{};
                ::obapi::get(r, Settings);
                r.finish();
                h.endpoint->ReportManipulatorSettings(Settings);
                return;
            }
            case 16u: {
                ::M_Manipulator::ManipulatorStatusType Status{};
                ::obapi::get(r, Status);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ReportManipulatorStatus(Status, IsRemoved);
                return;
            }
            case 17u: {
                std::string LinkId{};
                ::obapi::get(r, LinkId);
                ::M_Manipulator::LinkStatusType Status{};
                ::obapi::get(r, Status);
                r.finish();
                h.endpoint->ReportLinkStatus(LinkId, Status);
                return;
            }
            default: throw ::obapi::UnknownOp(op);
        }
    }

    void client_send(::obapi::Holder<::M_Manipulator::Client, ClientCallbacks>& h, uint32_t op, ::obapi::Reader& r) {
        switch (op) {
            case 0u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::CoordinateTransformationType Transformation{};
                ::obapi::get(r, Transformation);
                r.finish();
                h.endpoint->NotifyCoordinateTransformation(KeyId, Transformation);
                return;
            }
            case 1u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::PositionType Position{};
                ::obapi::get(r, Position);
                r.finish();
                h.endpoint->NotifyPosition(KeyId, Position);
                return;
            }
            case 2u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::AttitudeType Attitude{};
                ::obapi::get(r, Attitude);
                r.finish();
                h.endpoint->NotifyAttitude(KeyId, Attitude);
                return;
            }
            case 3u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::LinearVelocityType LinearVelocity{};
                ::obapi::get(r, LinearVelocity);
                r.finish();
                h.endpoint->NotifyLinearVelocity(KeyId, LinearVelocity);
                return;
            }
            case 4u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_Common::AngularVelocityType AngularVelocity{};
                ::obapi::get(r, AngularVelocity);
                r.finish();
                h.endpoint->NotifyAngularVelocity(KeyId, AngularVelocity);
                return;
            }
            case 5u: {
                ::M_KinematicChain::AxisRotationConstraintsListType AxisRotationConstraints{};
                ::obapi::get(r, AxisRotationConstraints);
                r.finish();
                h.endpoint->ConfigAxisRotationConstraints(AxisRotationConstraints);
                return;
            }
            case 6u: {
                std::string InputSourceClientId{};
                ::obapi::get(r, InputSourceClientId);
                ::M_KinematicChain::AxisRotationListType AxisRotations{};
                ::obapi::get(r, AxisRotations);
                r.finish();
                h.endpoint->NotifyAxisRotations(InputSourceClientId, AxisRotations);
                return;
            }
            case 7u: {
                std::string KeyDatasetId{};
                ::obapi::get(r, KeyDatasetId);
                ::M_KinematicChain::AxisRotationListType AxisRotations{};
                ::obapi::get(r, AxisRotations);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ConfigStoreAxisRotations(KeyDatasetId, AxisRotations, IsRemoved);
                return;
            }
            case 8u: {
                std::string DatasetId{};
                ::obapi::get(r, DatasetId);
                r.finish();
                h.endpoint->CmdDeleteStoredAxisRotations(DatasetId);
                return;
            }
            case 9u: {
                std::string DatasetId{};
                ::obapi::get(r, DatasetId);
                r.finish();
                h.endpoint->CmdApplyStoredAxisRotation(DatasetId);
                return;
            }
            case 10u: {
                r.finish();
                h.endpoint->CmdIsActuationAlive();
                return;
            }
            case 11u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_ActuationCtrl::ActuationCommandType ReferenceState{};
                ::obapi::get(r, ReferenceState);
                bool StorePersistently{};
                ::obapi::get(r, StorePersistently);
                bool IsRemoved{};
                ::obapi::get(r, IsRemoved);
                r.finish();
                h.endpoint->ConfigActuationComponentReference(KeyId, ReferenceState, StorePersistently, IsRemoved);
                return;
            }
            case 12u: {
                std::string KeyId{};
                ::obapi::get(r, KeyId);
                ::M_ActuationCtrl::ActuationCommandType Command{};
                ::obapi::get(r, Command);
                r.finish();
                h.endpoint->NotifyActuationComponentCommand(KeyId, Command);
                return;
            }
            default: throw ::obapi::UnknownOp(op);
        }
    }

} // namespace

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