ros2_interfaces_rolling/kobuki_ros_interfaces/msg/
external_power.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct ExternalPower {
5 pub source: u8,
6 pub state: u8,
7}
8
9impl ExternalPower {
10 pub const PWR_3_3V1A: u8 = 0;
11 pub const PWR_5V1A: u8 = 1;
12 pub const PWR_12V5A: u8 = 2;
13 pub const PWR_12V1_5A: u8 = 3;
14 pub const OFF: u8 = 0;
15 pub const ON: u8 = 1;
16}
17
18impl Default for ExternalPower {
19 fn default() -> Self {
20 ExternalPower {
21 source: 0,
22 state: 0,
23 }
24 }
25}
26
27impl ros2_client::Message for ExternalPower {}