ros2_interfaces_rolling/rcl_interfaces/srv/
set_parameters.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
use serde::{Deserialize, Serialize};


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetParametersReq {
    pub parameters: Vec<crate::rcl_interfaces::msg::Parameter>,
}

impl Default for SetParametersReq {
    fn default() -> Self {
        SetParametersReq {
            parameters: Vec::new(),
        }
    }
}

impl ros2_client::Message for SetParametersReq {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetParametersRes {
    pub results: Vec<crate::rcl_interfaces::msg::SetParametersResult>,
}

impl Default for SetParametersRes {
    fn default() -> Self {
        SetParametersRes {
            results: Vec::new(),
        }
    }
}

impl ros2_client::Message for SetParametersRes {}


pub struct SetParameters;
impl ros2_client::Service for SetParameters {
    type Request = SetParametersReq;
    type Response = SetParametersRes;

    fn request_type_name(&self) -> &str { "SetParametersReq" }
    fn response_type_name(&self) -> &str { "SetParametersRes" }
}