ros2_interfaces_rolling/marti_nav_msgs/msg/
vehicle_control.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct VehicleControl {
5    pub header: crate::std_msgs::msg::Header,
6    pub engine: i32,
7    pub gear: i32,
8    pub steering: f64,
9    pub throttle: f64,
10    pub brake: f64,
11    pub steering_position: i16,
12    pub gb_position: i16,
13}
14
15impl Default for VehicleControl {
16    fn default() -> Self {
17        VehicleControl {
18            header: crate::std_msgs::msg::Header::default(),
19            engine: 0,
20            gear: 0,
21            steering: 0.0,
22            throttle: 0.0,
23            brake: 0.0,
24            steering_position: 0,
25            gb_position: 0,
26        }
27    }
28}
29
30impl ros2_client::Message for VehicleControl {}