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


#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetGraphReq {
    pub graph: crate::fuse_msgs::msg::SerializedGraph,
}

impl Default for SetGraphReq {
    fn default() -> Self {
        SetGraphReq {
            graph: crate::fuse_msgs::msg::SerializedGraph::default(),
        }
    }
}

impl ros2_client::Message for SetGraphReq {}



#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SetGraphRes {
    pub success: bool,
    pub message: ::std::string::String,
}

impl Default for SetGraphRes {
    fn default() -> Self {
        SetGraphRes {
            success: false,
            message: ::std::string::String::new(),
        }
    }
}

impl ros2_client::Message for SetGraphRes {}


pub struct SetGraph;
impl ros2_client::Service for SetGraph {
    type Request = SetGraphReq;
    type Response = SetGraphRes;

    fn request_type_name(&self) -> &str { "SetGraphReq" }
    fn response_type_name(&self) -> &str { "SetGraphRes" }
}