ros2_interfaces_rolling/rcl_interfaces/msg/
floating_point_range.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct FloatingPointRange {
    pub from_value: f64,
    pub to_value: f64,
    pub step: f64,
}

impl Default for FloatingPointRange {
    fn default() -> Self {
        FloatingPointRange {
            from_value: 0.0,
            to_value: 0.0,
            step: 0.0,
        }
    }
}

impl ros2_client::Message for FloatingPointRange {}