ros2_interfaces_rolling/ur_msgs/msg/
analog.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct Analog {
5    pub pin: u8,
6    pub domain: u8,
7    pub state: f32,
8}
9
10impl Analog {
11    pub const CURRENT: u8 = 0;
12    pub const VOLTAGE: u8 = 1;
13}
14
15impl Default for Analog {
16    fn default() -> Self {
17        Analog {
18            pin: 0,
19            domain: 0,
20            state: 0.0,
21        }
22    }
23}
24
25impl ros2_client::Message for Analog {}