ros2_interfaces_rolling/moveit_msgs/srv/
get_cartesian_path.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetCartesianPathReq {
    pub header: crate::std_msgs::msg::Header,
    pub start_state: crate::moveit_msgs::msg::RobotState,
    pub group_name: ::std::string::String,
    pub link_name: ::std::string::String,
    pub waypoints: Vec<crate::geometry_msgs::msg::Pose>,
    pub max_step: f64,
    pub jump_threshold: f64,
    pub prismatic_jump_threshold: f64,
    pub revolute_jump_threshold: f64,
    pub avoid_collisions: bool,
    pub path_constraints: crate::moveit_msgs::msg::Constraints,
    pub max_velocity_scaling_factor: f64,
    pub max_acceleration_scaling_factor: f64,
    pub cartesian_speed_limited_link: ::std::string::String,
    pub max_cartesian_speed: f64,
}

impl Default for GetCartesianPathReq {
    fn default() -> Self {
        GetCartesianPathReq {
            header: crate::std_msgs::msg::Header::default(),
            start_state: crate::moveit_msgs::msg::RobotState::default(),
            group_name: ::std::string::String::new(),
            link_name: ::std::string::String::new(),
            waypoints: Vec::new(),
            max_step: 0.0,
            jump_threshold: 0.0,
            prismatic_jump_threshold: 0.0,
            revolute_jump_threshold: 0.0,
            avoid_collisions: false,
            path_constraints: crate::moveit_msgs::msg::Constraints::default(),
            max_velocity_scaling_factor: 0.0,
            max_acceleration_scaling_factor: 0.0,
            cartesian_speed_limited_link: ::std::string::String::new(),
            max_cartesian_speed: 0.0,
        }
    }
}

impl ros2_client::Message for GetCartesianPathReq {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct GetCartesianPathRes {
    pub start_state: crate::moveit_msgs::msg::RobotState,
    pub solution: crate::moveit_msgs::msg::RobotTrajectory,
    pub fraction: f64,
    pub error_code: crate::moveit_msgs::msg::MoveItErrorCodes,
}

impl Default for GetCartesianPathRes {
    fn default() -> Self {
        GetCartesianPathRes {
            start_state: crate::moveit_msgs::msg::RobotState::default(),
            solution: crate::moveit_msgs::msg::RobotTrajectory::default(),
            fraction: 0.0,
            error_code: crate::moveit_msgs::msg::MoveItErrorCodes::default(),
        }
    }
}

impl ros2_client::Message for GetCartesianPathRes {}


pub struct GetCartesianPath;
impl ros2_client::Service for GetCartesianPath {
    type Request = GetCartesianPathReq;
    type Response = GetCartesianPathRes;

    fn request_type_name(&self) -> &str { "GetCartesianPathReq" }
    fn response_type_name(&self) -> &str { "GetCartesianPathRes" }
}