ros2_interfaces_jazzy_rkyv/sensor_msgs/msg/
point_cloud2.rs1use rkyv::{Archive, Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Archive)]
4pub struct PointCloud2 {
5 pub header: crate::std_msgs::msg::Header,
6 pub height: u32,
7 pub width: u32,
8 pub fields: Vec<crate::sensor_msgs::msg::PointField>,
9 pub is_bigendian: bool,
10 pub point_step: u32,
11 pub row_step: u32,
12 pub data: Vec<u8>,
13 pub is_dense: bool,
14}
15
16impl Default for PointCloud2 {
17 fn default() -> Self {
18 PointCloud2 {
19 header: crate::std_msgs::msg::Header::default(),
20 height: 0,
21 width: 0,
22 fields: Vec::new(),
23 is_bigendian: false,
24 point_step: 0,
25 row_step: 0,
26 data: Vec::new(),
27 is_dense: false,
28 }
29 }
30}