ros2_interfaces_rolling/map_msgs/msg/
point_cloud2_update.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
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PointCloud2Update {
    pub header: crate::std_msgs::msg::Header,
    #[serde(rename = "type")]    pub type_: u32,
    pub points: crate::sensor_msgs::msg::PointCloud2,
}

impl PointCloud2Update {
    pub const ADD: u32 = 0;
    pub const DELETE: u32 = 1;
}

impl Default for PointCloud2Update {
    fn default() -> Self {
        PointCloud2Update {
            header: crate::std_msgs::msg::Header::default(),
            type_: 0,
            points: crate::sensor_msgs::msg::PointCloud2::default(),
        }
    }
}

impl ros2_client::Message for PointCloud2Update {}