ros2_interfaces_rolling/usb_cam/msg/
format.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Format {
    pub pixel_format: ::std::string::String,
    pub width: u32,
    pub height: u32,
    pub fps: f32,
}

impl Default for Format {
    fn default() -> Self {
        Format {
            pixel_format: ::std::string::String::new(),
            width: 0,
            height: 0,
            fps: 0.0,
        }
    }
}

impl ros2_client::Message for Format {}