ros2_interfaces_rolling/kobuki_ros_interfaces/msg/
controller_info.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ControllerInfo {
5    #[serde(rename = "type")]    pub type_: u8,
6    pub p_gain: f64,
7    pub i_gain: f64,
8    pub d_gain: f64,
9}
10
11impl ControllerInfo {
12    pub const DEFAULT: u8 = 0;
13    pub const USER_CONFIGURED: u8 = 1;
14}
15
16impl Default for ControllerInfo {
17    fn default() -> Self {
18        ControllerInfo {
19            type_: 0,
20            p_gain: 0.0,
21            i_gain: 0.0,
22            d_gain: 0.0,
23        }
24    }
25}
26
27impl ros2_client::Message for ControllerInfo {}