ros2_interfaces_rolling/test_interface_files/msg/
defaults.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Defaults {
5    pub bool_value: bool, // default: true
6    pub byte_value: u8, // default: 50
7    pub char_value: i8, // default: 100
8    pub float32_value: f32, // default: 1.125
9    pub float64_value: f64, // default: 1.125
10    pub int8_value: i8, // default: -50
11    pub uint8_value: u8, // default: 200
12    pub int16_value: i16, // default: -1000
13    pub uint16_value: u16, // default: 2000
14    pub int32_value: i32, // default: -30000
15    pub uint32_value: u32, // default: 60000
16    pub int64_value: i64, // default: -40000000
17    pub uint64_value: u64, // default: 50000000
18}
19
20impl Default for Defaults {
21    fn default() -> Self {
22        Defaults {
23            bool_value: true,
24            byte_value: 50,
25            char_value: 100,
26            float32_value: 1.125,
27            float64_value: 1.125,
28            int8_value: -50,
29            uint8_value: 200,
30            int16_value: -1000,
31            uint16_value: 2000,
32            int32_value: -30000,
33            uint32_value: 60000,
34            int64_value: -40000000,
35            uint64_value: 50000000,
36        }
37    }
38}
39
40impl ros2_client::Message for Defaults {}