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