ros2_interfaces_humble/sensor_msgs/msg/
point_field.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct PointField {
5    pub name: ::std::string::String,
6    pub offset: u32,
7    pub datatype: u8,
8    pub count: u32,
9}
10
11impl PointField {
12    pub const INT8: u8 = 1;
13    pub const UINT8: u8 = 2;
14    pub const INT16: u8 = 3;
15    pub const UINT16: u8 = 4;
16    pub const INT32: u8 = 5;
17    pub const UINT32: u8 = 6;
18    pub const FLOAT32: u8 = 7;
19    pub const FLOAT64: u8 = 8;
20}
21
22impl Default for PointField {
23    fn default() -> Self {
24        PointField {
25            name: ::std::string::String::new(),
26            offset: 0,
27            datatype: 0,
28            count: 0,
29        }
30    }
31}
32
33impl ros2_client::Message for PointField {}