ros2_interfaces_rolling/pendulum_msgs/msg/joint_state.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
4pub struct JointState {
5 pub position: f64,
6 pub velocity: f64,
7 pub effort: f64,
8}
9
10impl Default for JointState {
11 fn default() -> Self {
12 JointState {
13 position: 0.0,
14 velocity: 0.0,
15 effort: 0.0,
16 }
17 }
18}
19
20impl ros2_client::Message for JointState {}