ros2_interfaces_iron/marti_dbw_msgs/msg/
primary_feedback.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct PrimaryFeedback {
5 pub header: crate::std_msgs::msg::Header,
6 pub present: bool,
7 pub robotic_mode: bool,
8 pub steering_command: f32,
9 pub steering_measure: f32,
10 pub throttle_command: f32,
11 pub throttle_measure: f32,
12 pub brake_command: f32,
13 pub brake_measure: f32,
14 pub estop_command: bool,
15 pub estop_measure: bool,
16 pub error_steering: bool,
17 pub error_throttle: bool,
18 pub error_brake: bool,
19 pub error_other: bool,
20}
21
22impl Default for PrimaryFeedback {
23 fn default() -> Self {
24 PrimaryFeedback {
25 header: crate::std_msgs::msg::Header::default(),
26 present: false,
27 robotic_mode: false,
28 steering_command: 0.0,
29 steering_measure: 0.0,
30 throttle_command: 0.0,
31 throttle_measure: 0.0,
32 brake_command: 0.0,
33 brake_measure: 0.0,
34 estop_command: false,
35 estop_measure: false,
36 error_steering: false,
37 error_throttle: false,
38 error_brake: false,
39 error_other: false,
40 }
41 }
42}
43
44impl ros2_client::Message for PrimaryFeedback {}