ros2_interfaces_rolling/map_msgs/msg/
point_cloud2_update.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct PointCloud2Update {
5 pub header: crate::std_msgs::msg::Header,
6 #[serde(rename = "type")] pub type_: u32,
7 pub points: crate::sensor_msgs::msg::PointCloud2,
8}
9
10impl PointCloud2Update {
11 pub const ADD: u32 = 0;
12 pub const DELETE: u32 = 1;
13}
14
15impl Default for PointCloud2Update {
16 fn default() -> Self {
17 PointCloud2Update {
18 header: crate::std_msgs::msg::Header::default(),
19 type_: 0,
20 points: crate::sensor_msgs::msg::PointCloud2::default(),
21 }
22 }
23}
24
25impl ros2_client::Message for PointCloud2Update {}