ros2_interfaces_iron/std_srvs/srv/
set_bool.rs

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