ros2_interfaces_humble/test_interface_files/msg/
constants.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Constants {
5
6}
7
8impl Constants {
9 pub const BOOL_CONST: bool = true;
10 pub const BYTE_CONST: u8 = 50;
11 pub const CHAR_CONST: i8 = 100;
12 pub const FLOAT32_CONST: f32 = 1.125;
13 pub const FLOAT64_CONST: f64 = 1.125;
14 pub const INT8_CONST: i8 = -50;
15 pub const UINT8_CONST: u8 = 200;
16 pub const INT16_CONST: i16 = -1000;
17 pub const UINT16_CONST: u16 = 2000;
18 pub const INT32_CONST: i32 = -30000;
19 pub const UINT32_CONST: u32 = 60000;
20 pub const INT64_CONST: i64 = -40000000;
21 pub const UINT64_CONST: u64 = 50000000;
22}
23
24impl Default for Constants {
25 fn default() -> Self {
26 Constants {
27
28 }
29 }
30}
31
32impl ros2_client::Message for Constants {}