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

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct StatusText {
    pub header: crate::std_msgs::msg::Header,
    pub severity: u8,
    pub text: ::std::string::String,
}

impl StatusText {
    pub const EMERGENCY: u8 = 0;
    pub const ALERT: u8 = 1;
    pub const CRITICAL: u8 = 2;
    pub const ERROR: u8 = 3;
    pub const WARNING: u8 = 4;
    pub const NOTICE: u8 = 5;
    pub const INFO: u8 = 6;
    pub const DEBUG: u8 = 7;
}

impl Default for StatusText {
    fn default() -> Self {
        StatusText {
            header: crate::std_msgs::msg::Header::default(),
            severity: 0,
            text: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for StatusText {}