ros2_interfaces_rolling/moveit_msgs/msg/
robot_state.rs

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

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct RobotState {
    pub joint_state: crate::sensor_msgs::msg::JointState,
    pub multi_dof_joint_state: crate::sensor_msgs::msg::MultiDOFJointState,
    pub attached_collision_objects: Vec<crate::moveit_msgs::msg::AttachedCollisionObject>,
    pub is_diff: bool,
}

impl Default for RobotState {
    fn default() -> Self {
        RobotState {
            joint_state: crate::sensor_msgs::msg::JointState::default(),
            multi_dof_joint_state: crate::sensor_msgs::msg::MultiDOFJointState::default(),
            attached_collision_objects: Vec::new(),
            is_diff: false,
        }
    }
}

impl ros2_client::Message for RobotState {}