ros2_interfaces_iron/gazebo_msgs/srv/
get_light_properties.rs

1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct GetLightPropertiesRequest {
6    pub light_name: ::std::string::String,
7}
8
9impl Default for GetLightPropertiesRequest {
10    fn default() -> Self {
11        GetLightPropertiesRequest {
12            light_name: ::std::string::String::new(),
13        }
14    }
15}
16
17impl ros2_client::Message for GetLightPropertiesRequest {}
18
19
20
21#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
22pub struct GetLightPropertiesResponse {
23    pub diffuse: crate::std_msgs::msg::ColorRGBA,
24    pub attenuation_constant: f64,
25    pub attenuation_linear: f64,
26    pub attenuation_quadratic: f64,
27    pub success: bool,
28    pub status_message: ::std::string::String,
29}
30
31impl Default for GetLightPropertiesResponse {
32    fn default() -> Self {
33        GetLightPropertiesResponse {
34            diffuse: crate::std_msgs::msg::ColorRGBA::default(),
35            attenuation_constant: 0.0,
36            attenuation_linear: 0.0,
37            attenuation_quadratic: 0.0,
38            success: false,
39            status_message: ::std::string::String::new(),
40        }
41    }
42}
43
44impl ros2_client::Message for GetLightPropertiesResponse {}
45
46
47pub struct GetLightProperties;
48impl ros2_client::Service for GetLightProperties {
49    type Request = GetLightPropertiesRequest;
50    type Response = GetLightPropertiesResponse;
51
52    fn request_type_name(&self) -> &str { "GetLightPropertiesRequest" }
53    fn response_type_name(&self) -> &str { "GetLightPropertiesResponse" }
54}