ros2_interfaces_iron/gazebo_msgs/srv/
get_link_state.rs

1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct GetLinkStateRequest {
6    pub link_name: ::std::string::String,
7    pub reference_frame: ::std::string::String,
8}
9
10impl Default for GetLinkStateRequest {
11    fn default() -> Self {
12        GetLinkStateRequest {
13            link_name: ::std::string::String::new(),
14            reference_frame: ::std::string::String::new(),
15        }
16    }
17}
18
19impl ros2_client::Message for GetLinkStateRequest {}
20
21
22
23#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
24pub struct GetLinkStateResponse {
25    pub link_state: crate::gazebo_msgs::msg::LinkState,
26    pub success: bool,
27    pub status_message: ::std::string::String,
28}
29
30impl Default for GetLinkStateResponse {
31    fn default() -> Self {
32        GetLinkStateResponse {
33            link_state: crate::gazebo_msgs::msg::LinkState::default(),
34            success: false,
35            status_message: ::std::string::String::new(),
36        }
37    }
38}
39
40impl ros2_client::Message for GetLinkStateResponse {}
41
42
43pub struct GetLinkState;
44impl ros2_client::Service for GetLinkState {
45    type Request = GetLinkStateRequest;
46    type Response = GetLinkStateResponse;
47
48    fn request_type_name(&self) -> &str { "GetLinkStateRequest" }
49    fn response_type_name(&self) -> &str { "GetLinkStateResponse" }
50}