ros2_interfaces_rolling/sensor_msgs/msg/
point_cloud2.rs

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
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PointCloud2 {
    pub header: crate::std_msgs::msg::Header,
    pub height: u32,
    pub width: u32,
    pub fields: Vec<crate::sensor_msgs::msg::PointField>,
    pub is_bigendian: bool,
    pub point_step: u32,
    pub row_step: u32,
    pub data: Vec<u8>,
    pub is_dense: bool,
}

impl Default for PointCloud2 {
    fn default() -> Self {
        PointCloud2 {
            header: crate::std_msgs::msg::Header::default(),
            height: 0,
            width: 0,
            fields: Vec::new(),
            is_bigendian: false,
            point_step: 0,
            row_step: 0,
            data: Vec::new(),
            is_dense: false,
        }
    }
}

impl ros2_client::Message for PointCloud2 {}