ros2_interfaces_rolling/pendulum_msgs/msg/
joint_state.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 JointState {
    pub position: f64,
    pub velocity: f64,
    pub effort: f64,
}

impl Default for JointState {
    fn default() -> Self {
        JointState {
            position: 0.0,
            velocity: 0.0,
            effort: 0.0,
        }
    }
}

impl ros2_client::Message for JointState {}