ros2_interfaces_rolling/neobotix_usboard_msgs/msg/sensor_data.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct SensorData {
5 pub distance: u8,
6 pub warn: bool,
7 pub alarm: bool,
8 pub active: bool,
9}
10
11impl Default for SensorData {
12 fn default() -> Self {
13 SensorData {
14 distance: 0,
15 warn: false,
16 alarm: false,
17 active: false,
18 }
19 }
20}
21
22impl ros2_client::Message for SensorData {}