ros2_interfaces_rolling/marti_dbw_msgs/msg/
primary_control.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct PrimaryControl {
5    pub header: crate::std_msgs::msg::Header,
6    pub active: bool,
7    pub estop: bool,
8    pub steering_command: f32,
9    pub throttle_command: f32,
10    pub brake_command: f32,
11}
12
13impl Default for PrimaryControl {
14    fn default() -> Self {
15        PrimaryControl {
16            header: crate::std_msgs::msg::Header::default(),
17            active: false,
18            estop: false,
19            steering_command: 0.0,
20            throttle_command: 0.0,
21            brake_command: 0.0,
22        }
23    }
24}
25
26impl ros2_client::Message for PrimaryControl {}