File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ fn generate_field_definition(
280280 // For larger arrays, we need special handling via BigArray.
281281 const MAX_FIXED_ARRAY_LEN : usize = 32 ;
282282
283- let is_uint8_field = field. field_type . field_type == "uint8" ;
283+ let is_uint8_field = matches ! ( field. field_type. field_type. as_str ( ) , "uint8" | "byte" ) ;
284284
285285 let serde_line = match & field. field_type . array_info {
286286 // Dynamic-length arrays (Vec<T>)
Original file line number Diff line number Diff line change @@ -10973,6 +10973,7 @@ pub mod std_msgs {
1097310973 #[serde(crate = "::roslibrust::codegen::serde")]
1097410974 pub struct ByteMultiArray {
1097510975 pub r#layout: self::MultiArrayLayout,
10976+ #[serde(with = "::roslibrust::codegen::serde_rosmsg_bytes")]
1097610977 pub r#data: ::std::vec::Vec<u8>,
1097710978 }
1097810979 impl ::roslibrust::RosMessageType for ByteMultiArray {
Original file line number Diff line number Diff line change @@ -9045,6 +9045,7 @@ byte data"####;
90459045 #[serde(crate = "::roslibrust::codegen::serde")]
90469046 pub struct ByteMultiArray {
90479047 pub r#layout: self::MultiArrayLayout,
9048+ #[serde(with = "::roslibrust::codegen::serde_rosmsg_bytes")]
90489049 pub r#data: ::std::vec::Vec<u8>,
90499050 }
90509051 impl ::roslibrust::RosMessageType for ByteMultiArray {
You can’t perform that action at this time.
0 commit comments