ros2_interfaces_rolling/delphi_srr_msgs/msg/
srr_track.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct SrrTrack {
5 pub header: crate::std_msgs::msg::Header,
6 pub can_tx_detect_valid_level: u8,
7 pub can_tx_detect_status: bool,
8 pub can_tx_detect_range_rate: f32,
9 pub can_tx_detect_range: f32,
10 pub can_tx_detect_angle: f32,
11 pub can_tx_detect_amplitude: f32,
12}
13
14impl SrrTrack {
15 pub const CAN_TX_DETECT_VALID_LEVEL_SUSPECT_DETECTION: u8 = 0;
16 pub const CAN_TX_DETECT_VALID_LEVEL_LEVEL_1: u8 = 1;
17 pub const CAN_TX_DETECT_VALID_LEVEL_LEVEL_2: u8 = 2;
18 pub const CAN_TX_DETECT_VALID_LEVEL_LEVEL_3: u8 = 3;
19 pub const CAN_TX_DETECT_VALID_LEVEL_LEVEL_4: u8 = 4;
20 pub const CAN_TX_DETECT_VALID_LEVEL_LEVEL_5: u8 = 5;
21 pub const CAN_TX_DETECT_VALID_LEVEL_LEVEL_6: u8 = 6;
22 pub const CAN_TX_DETECT_VALID_LEVEL_LEVEL_7: u8 = 7;
23 pub const CAN_TX_DETECT_STATUS_NO_DATA: bool = false;
24 pub const CAN_TX_DETECT_STATUS_VALID_DATA_PRESENT: bool = true;
25}
26
27impl Default for SrrTrack {
28 fn default() -> Self {
29 SrrTrack {
30 header: crate::std_msgs::msg::Header::default(),
31 can_tx_detect_valid_level: 0,
32 can_tx_detect_status: false,
33 can_tx_detect_range_rate: 0.0,
34 can_tx_detect_range: 0.0,
35 can_tx_detect_angle: 0.0,
36 can_tx_detect_amplitude: 0.0,
37 }
38 }
39}
40
41impl ros2_client::Message for SrrTrack {}