r2r 0.9.5

Easy to use, runtime-agnostic, async rust bindings for ROS2.
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
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
pub mod msg {
    use super::super::*;
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Bool {
        pub data: bool,
    }
    impl WrappedTypesupport for Bool {
        type CStruct = std_msgs__msg__Bool;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Bool()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Bool {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Bool__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Bool__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Bool) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Bool__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Bool__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Bool {
            Bool { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Bool {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Bool>::new();
            Bool::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Byte {
        pub data: u8,
    }
    impl WrappedTypesupport for Byte {
        type CStruct = std_msgs__msg__Byte;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Byte()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Byte {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Byte__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Byte__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Byte) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Byte__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Byte__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Byte {
            Byte { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Byte {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Byte>::new();
            Byte::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct ByteMultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<u8>,
    }
    impl WrappedTypesupport for ByteMultiArray {
        type CStruct = std_msgs__msg__ByteMultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__ByteMultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__ByteMultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__ByteMultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__ByteMultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__ByteMultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__ByteMultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__ByteMultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> ByteMultiArray {
            ByteMultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for ByteMultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<ByteMultiArray>::new();
            ByteMultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Char {
        pub data: u8,
    }
    impl WrappedTypesupport for Char {
        type CStruct = std_msgs__msg__Char;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Char()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Char {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Char__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Char__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Char) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Char__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Char__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Char {
            Char { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Char {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Char>::new();
            Char::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct ColorRGBA {
        pub r: f32,
        pub g: f32,
        pub b: f32,
        pub a: f32,
    }
    impl WrappedTypesupport for ColorRGBA {
        type CStruct = std_msgs__msg__ColorRGBA;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__ColorRGBA()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__ColorRGBA {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__ColorRGBA__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__ColorRGBA__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__ColorRGBA) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__ColorRGBA__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__ColorRGBA__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> ColorRGBA {
            ColorRGBA {
                r: msg.r,
                g: msg.g,
                b: msg.b,
                a: msg.a,
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.r = self.r;
            msg.g = self.g;
            msg.b = self.b;
            msg.a = self.a;
        }
    }
    impl Default for ColorRGBA {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<ColorRGBA>::new();
            ColorRGBA::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Empty {}
    impl WrappedTypesupport for Empty {
        type CStruct = std_msgs__msg__Empty;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Empty()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Empty {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Empty__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Empty__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Empty) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Empty__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Empty__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Empty {
            Empty {}
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {}
    }
    impl Default for Empty {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Empty>::new();
            Empty::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Float32 {
        pub data: f32,
    }
    impl WrappedTypesupport for Float32 {
        type CStruct = std_msgs__msg__Float32;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Float32()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Float32 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Float32__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Float32__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Float32) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Float32__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Float32__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Float32 {
            Float32 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Float32 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Float32>::new();
            Float32::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Float32MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<f32>,
    }
    impl WrappedTypesupport for Float32MultiArray {
        type CStruct = std_msgs__msg__Float32MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Float32MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Float32MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Float32MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Float32MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Float32MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Float32MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Float32MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Float32MultiArray {
            Float32MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for Float32MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Float32MultiArray>::new();
            Float32MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Float64 {
        pub data: f64,
    }
    impl WrappedTypesupport for Float64 {
        type CStruct = std_msgs__msg__Float64;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Float64()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Float64 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Float64__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Float64__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Float64) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Float64__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Float64__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Float64 {
            Float64 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Float64 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Float64>::new();
            Float64::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Float64MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<f64>,
    }
    impl WrappedTypesupport for Float64MultiArray {
        type CStruct = std_msgs__msg__Float64MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Float64MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Float64MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Float64MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Float64MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Float64MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Float64MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Float64MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Float64MultiArray {
            Float64MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for Float64MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Float64MultiArray>::new();
            Float64MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Header {
        pub stamp: builtin_interfaces::msg::Time,
        pub frame_id: std::string::String,
    }
    impl WrappedTypesupport for Header {
        type CStruct = std_msgs__msg__Header;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Header()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Header {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Header__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Header__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Header) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Header__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Header__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Header {
            Header {
                stamp: builtin_interfaces::msg::Time::from_native(&msg.stamp),
                frame_id: msg.frame_id.to_str().to_owned(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.stamp.copy_to_native(&mut msg.stamp);
            msg.frame_id.assign(&self.frame_id);
        }
    }
    impl Default for Header {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Header>::new();
            Header::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int16 {
        pub data: i16,
    }
    impl WrappedTypesupport for Int16 {
        type CStruct = std_msgs__msg__Int16;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int16()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int16 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Int16__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int16__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int16) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int16__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int16__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int16 {
            Int16 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Int16 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int16>::new();
            Int16::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int16MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<i16>,
    }
    impl WrappedTypesupport for Int16MultiArray {
        type CStruct = std_msgs__msg__Int16MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int16MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int16MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int16MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int16MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int16MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int16MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int16MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int16MultiArray {
            Int16MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for Int16MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int16MultiArray>::new();
            Int16MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int32 {
        pub data: i32,
    }
    impl WrappedTypesupport for Int32 {
        type CStruct = std_msgs__msg__Int32;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int32()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int32 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Int32__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int32__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int32) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int32__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int32__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int32 {
            Int32 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Int32 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int32>::new();
            Int32::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int32MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<i32>,
    }
    impl WrappedTypesupport for Int32MultiArray {
        type CStruct = std_msgs__msg__Int32MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int32MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int32MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int32MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int32MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int32MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int32MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int32MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int32MultiArray {
            Int32MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for Int32MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int32MultiArray>::new();
            Int32MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int64 {
        pub data: i64,
    }
    impl WrappedTypesupport for Int64 {
        type CStruct = std_msgs__msg__Int64;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int64()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int64 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Int64__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int64__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int64) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int64__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int64__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int64 {
            Int64 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Int64 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int64>::new();
            Int64::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int64MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<i64>,
    }
    impl WrappedTypesupport for Int64MultiArray {
        type CStruct = std_msgs__msg__Int64MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int64MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int64MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int64MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int64MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int64MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int64MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int64MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int64MultiArray {
            Int64MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for Int64MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int64MultiArray>::new();
            Int64MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int8 {
        pub data: i8,
    }
    impl WrappedTypesupport for Int8 {
        type CStruct = std_msgs__msg__Int8;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int8()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int8 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__Int8__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int8__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int8) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int8__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int8__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int8 {
            Int8 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for Int8 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int8>::new();
            Int8::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct Int8MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<i8>,
    }
    impl WrappedTypesupport for Int8MultiArray {
        type CStruct = std_msgs__msg__Int8MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__Int8MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__Int8MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int8MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__Int8MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__Int8MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__Int8MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__Int8MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> Int8MultiArray {
            Int8MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for Int8MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<Int8MultiArray>::new();
            Int8MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct MultiArrayDimension {
        pub label: std::string::String,
        pub size: u32,
        pub stride: u32,
    }
    impl WrappedTypesupport for MultiArrayDimension {
        type CStruct = std_msgs__msg__MultiArrayDimension;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__MultiArrayDimension()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__MultiArrayDimension {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__MultiArrayDimension__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__MultiArrayDimension__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__MultiArrayDimension) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__MultiArrayDimension__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__MultiArrayDimension__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> MultiArrayDimension {
            MultiArrayDimension {
                label: msg.label.to_str().to_owned(),
                size: msg.size,
                stride: msg.stride,
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.label.assign(&self.label);
            msg.size = self.size;
            msg.stride = self.stride;
        }
    }
    impl Default for MultiArrayDimension {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<MultiArrayDimension>::new();
            MultiArrayDimension::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct MultiArrayLayout {
        pub dim: Vec<std_msgs::msg::MultiArrayDimension>,
        pub data_offset: u32,
    }
    impl WrappedTypesupport for MultiArrayLayout {
        type CStruct = std_msgs__msg__MultiArrayLayout;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__MultiArrayLayout()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__MultiArrayLayout {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__MultiArrayLayout__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__MultiArrayLayout__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__MultiArrayLayout) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__MultiArrayLayout__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__MultiArrayLayout__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> MultiArrayLayout {
            MultiArrayLayout {
                dim: {
                    let mut temp = Vec::with_capacity(msg.dim.size);
                    let slice = unsafe {
                        std::slice::from_raw_parts(msg.dim.data, msg.dim.size)
                    };
                    for s in slice {
                        temp.push(std_msgs::msg::MultiArrayDimension::from_native(s));
                    }
                    temp
                },
                data_offset: msg.data_offset,
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            unsafe {
                std_msgs__msg__MultiArrayDimension__Sequence__fini(&mut msg.dim);
                std_msgs__msg__MultiArrayDimension__Sequence__init(
                    &mut msg.dim,
                    self.dim.len(),
                );
                let slice = std::slice::from_raw_parts_mut(msg.dim.data, msg.dim.size);
                for (t, s) in slice.iter_mut().zip(&self.dim) {
                    s.copy_to_native(t);
                }
            }
            msg.data_offset = self.data_offset;
        }
    }
    impl Default for MultiArrayLayout {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<MultiArrayLayout>::new();
            MultiArrayLayout::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct String {
        pub data: std::string::String,
    }
    impl WrappedTypesupport for String {
        type CStruct = std_msgs__msg__String;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__String()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__String {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__String__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__String__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__String) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__String__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__String__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> String {
            String {
                data: msg.data.to_str().to_owned(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data.assign(&self.data);
        }
    }
    impl Default for String {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<String>::new();
            String::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt16 {
        pub data: u16,
    }
    impl WrappedTypesupport for UInt16 {
        type CStruct = std_msgs__msg__UInt16;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt16()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt16 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__UInt16__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt16__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt16) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt16__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt16__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt16 {
            UInt16 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for UInt16 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt16>::new();
            UInt16::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt16MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<u16>,
    }
    impl WrappedTypesupport for UInt16MultiArray {
        type CStruct = std_msgs__msg__UInt16MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt16MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt16MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt16MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt16MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt16MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt16MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt16MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt16MultiArray {
            UInt16MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for UInt16MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt16MultiArray>::new();
            UInt16MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt32 {
        pub data: u32,
    }
    impl WrappedTypesupport for UInt32 {
        type CStruct = std_msgs__msg__UInt32;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt32()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt32 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__UInt32__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt32__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt32) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt32__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt32__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt32 {
            UInt32 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for UInt32 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt32>::new();
            UInt32::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt32MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<u32>,
    }
    impl WrappedTypesupport for UInt32MultiArray {
        type CStruct = std_msgs__msg__UInt32MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt32MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt32MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt32MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt32MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt32MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt32MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt32MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt32MultiArray {
            UInt32MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for UInt32MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt32MultiArray>::new();
            UInt32MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt64 {
        pub data: u64,
    }
    impl WrappedTypesupport for UInt64 {
        type CStruct = std_msgs__msg__UInt64;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt64()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt64 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__UInt64__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt64__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt64) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt64__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt64__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt64 {
            UInt64 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for UInt64 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt64>::new();
            UInt64::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt64MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<u64>,
    }
    impl WrappedTypesupport for UInt64MultiArray {
        type CStruct = std_msgs__msg__UInt64MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt64MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt64MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt64MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt64MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt64MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt64MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt64MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt64MultiArray {
            UInt64MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for UInt64MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt64MultiArray>::new();
            UInt64MultiArray::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt8 {
        pub data: u8,
    }
    impl WrappedTypesupport for UInt8 {
        type CStruct = std_msgs__msg__UInt8;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt8()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt8 {
            #[cfg(not(feature = "doc-only"))] unsafe { std_msgs__msg__UInt8__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt8__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt8) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt8__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt8__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt8 {
            UInt8 { data: msg.data }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            msg.data = self.data;
        }
    }
    impl Default for UInt8 {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt8>::new();
            UInt8::from_native(&msg_native)
        }
    }
    #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
    #[serde(default)]
    pub struct UInt8MultiArray {
        pub layout: std_msgs::msg::MultiArrayLayout,
        pub data: Vec<u8>,
    }
    impl WrappedTypesupport for UInt8MultiArray {
        type CStruct = std_msgs__msg__UInt8MultiArray;
        fn get_ts() -> &'static rosidl_message_type_support_t {
            unsafe {
                &*rosidl_typesupport_c__get_message_type_support_handle__std_msgs__msg__UInt8MultiArray()
            }
        }
        fn create_msg() -> *mut std_msgs__msg__UInt8MultiArray {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt8MultiArray__create() }
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt8MultiArray__create()
        }
        fn destroy_msg(msg: *mut std_msgs__msg__UInt8MultiArray) -> () {
            #[cfg(not(feature = "doc-only"))]
            unsafe { std_msgs__msg__UInt8MultiArray__destroy(msg) };
            #[cfg(feature = "doc-only")] std_msgs__msg__UInt8MultiArray__destroy(msg)
        }
        fn from_native(#[allow(unused)] msg: &Self::CStruct) -> UInt8MultiArray {
            UInt8MultiArray {
                layout: std_msgs::msg::MultiArrayLayout::from_native(&msg.layout),
                data: msg.data.to_vec(),
            }
        }
        fn copy_to_native(&self, #[allow(unused)] msg: &mut Self::CStruct) {
            self.layout.copy_to_native(&mut msg.layout);
            msg.data.update(&self.data);
        }
    }
    impl Default for UInt8MultiArray {
        fn default() -> Self {
            let msg_native = WrappedNativeMsg::<UInt8MultiArray>::new();
            UInt8MultiArray::from_native(&msg_native)
        }
    }
}