ros2_interfaces_rolling/py_trees_ros_interfaces/srv/
open_snapshot_stream.rs1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct OpenSnapshotStreamRequest {
6 pub topic_name: ::std::string::String,
7 pub parameters: crate::py_trees_ros_interfaces::msg::SnapshotStreamParameters,
8}
9
10impl Default for OpenSnapshotStreamRequest {
11 fn default() -> Self {
12 OpenSnapshotStreamRequest {
13 topic_name: ::std::string::String::new(),
14 parameters: crate::py_trees_ros_interfaces::msg::SnapshotStreamParameters::default(),
15 }
16 }
17}
18
19impl ros2_client::Message for OpenSnapshotStreamRequest {}
20
21
22
23#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
24pub struct OpenSnapshotStreamResponse {
25 pub topic_name: ::std::string::String,
26}
27
28impl Default for OpenSnapshotStreamResponse {
29 fn default() -> Self {
30 OpenSnapshotStreamResponse {
31 topic_name: ::std::string::String::new(),
32 }
33 }
34}
35
36impl ros2_client::Message for OpenSnapshotStreamResponse {}
37
38
39pub struct OpenSnapshotStream;
40impl ros2_client::Service for OpenSnapshotStream {
41 type Request = OpenSnapshotStreamRequest;
42 type Response = OpenSnapshotStreamResponse;
43
44 fn request_type_name(&self) -> &str { "OpenSnapshotStreamRequest" }
45 fn response_type_name(&self) -> &str { "OpenSnapshotStreamResponse" }
46}