ros2_interfaces_humble/create_msgs/msg/
motor_setpoint.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct MotorSetpoint {
5    pub duty_cycle: f32,
6}
7
8impl Default for MotorSetpoint {
9    fn default() -> Self {
10        MotorSetpoint {
11            duty_cycle: 0.0,
12        }
13    }
14}
15
16impl ros2_client::Message for MotorSetpoint {}