ros2_interfaces_rolling/rosbridge_test_msgs/srv/
test_nested_service.rs

1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct TestNestedServiceRequest {
6    pub pose: crate::geometry_msgs::msg::Pose,
7}
8
9impl Default for TestNestedServiceRequest {
10    fn default() -> Self {
11        TestNestedServiceRequest {
12            pose: crate::geometry_msgs::msg::Pose::default(),
13        }
14    }
15}
16
17impl ros2_client::Message for TestNestedServiceRequest {}
18
19
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22pub struct TestNestedServiceResponse {
23    pub data: crate::std_msgs::msg::Float64,
24}
25
26impl Default for TestNestedServiceResponse {
27    fn default() -> Self {
28        TestNestedServiceResponse {
29            data: crate::std_msgs::msg::Float64::default(),
30        }
31    }
32}
33
34impl ros2_client::Message for TestNestedServiceResponse {}
35
36
37pub struct TestNestedService;
38impl ros2_client::Service for TestNestedService {
39    type Request = TestNestedServiceRequest;
40    type Response = TestNestedServiceResponse;
41
42    fn request_type_name(&self) -> &str { "TestNestedServiceRequest" }
43    fn response_type_name(&self) -> &str { "TestNestedServiceResponse" }
44}