Skip to content

Commit

Permalink
fix rosrust conv
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed May 13, 2024
1 parent 5d6bb84 commit be3e73b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ros_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,18 +100,18 @@ impl From<crate::PointCloud2Msg> for r2r::sensor_msgs::msg::PointCloud2 {
count: field.count,
})
.collect(),
is_bigendian: if msg.endian == crate::Endian::Big {
true
endian: if msg.is_bigendian {
crate::Endian::Big
} else {
false
crate::Endian::Little
},
point_step: msg.point_step,
row_step: msg.row_step,
data: msg.data,
is_dense: if msg.dense == crate::convert::Denseness::Dense {
true
dense: if msg.is_dense {
crate::convert::Denseness::Dense
} else {
false
crate::convert::Denseness::Sparse
},
}
}
Expand Down

0 comments on commit be3e73b

Please sign in to comment.