ros2_interfaces_rolling/mavros_msgs/srv/
param_set_v2.rs1use serde::{Deserialize, Serialize};
2
3
4#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
5pub struct ParamSetV2Request {
6 pub force_set: bool,
7 pub param_id: ::std::string::String,
8 pub value: crate::rcl_interfaces::msg::ParameterValue,
9}
10
11impl Default for ParamSetV2Request {
12 fn default() -> Self {
13 ParamSetV2Request {
14 force_set: false,
15 param_id: ::std::string::String::new(),
16 value: crate::rcl_interfaces::msg::ParameterValue::default(),
17 }
18 }
19}
20
21impl ros2_client::Message for ParamSetV2Request {}
22
23
24
25#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
26pub struct ParamSetV2Response {
27 pub success: bool,
28 pub value: crate::rcl_interfaces::msg::ParameterValue,
29}
30
31impl Default for ParamSetV2Response {
32 fn default() -> Self {
33 ParamSetV2Response {
34 success: false,
35 value: crate::rcl_interfaces::msg::ParameterValue::default(),
36 }
37 }
38}
39
40impl ros2_client::Message for ParamSetV2Response {}
41
42
43pub struct ParamSetV2;
44impl ros2_client::Service for ParamSetV2 {
45 type Request = ParamSetV2Request;
46 type Response = ParamSetV2Response;
47
48 fn request_type_name(&self) -> &str { "ParamSetV2Request" }
49 fn response_type_name(&self) -> &str { "ParamSetV2Response" }
50}