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