File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
rosidl_generator_rs/resource Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,11 @@ impl rosidl_runtime_rs::ActionImpl for @(type_name) {
119
119
request .goal_id .uuid
120
120
}
121
121
122
- fn set_result_response_status (response : & mut << Self :: GetResultService as rosidl_runtime_rs :: Service > :: Response as rosidl_runtime_rs :: Message > :: RmwMsg , status : i8) {
123
- response .status = status;
122
+ fn create_result_response (status : i8, result : << Self as Action> :: Result as Message> :: RmwMsg ) -> << Self :: GetResultService as Service> :: Response as Message> :: RmwMsg {
123
+ << Self :: GetResultService as rosidl_runtime_rs :: Service > :: Response as rosidl_runtime_rs :: Message > :: RmwMsg {
124
+ status,
125
+ result,
126
+ }
124
127
}
125
128
}
126
129
Original file line number Diff line number Diff line change @@ -208,6 +208,6 @@ pub trait ActionImpl: 'static + Action {
208
208
/// Get the UUID of a result request.
209
209
fn get_result_request_uuid ( request : & <<Self :: GetResultService as Service >:: Request as Message >:: RmwMsg ) -> [ u8 ; 16 ] ;
210
210
211
- /// Sets the `status` field of a result response .
212
- fn set_result_response_status ( response : & mut <<Self :: GetResultService as Service >:: Response as Message >:: RmwMsg , status : i8 ) ;
211
+ /// Create a result response message with the given status and contents .
212
+ fn create_result_response ( status : i8 , result : <<Self as Action > :: Result as Message > :: RmwMsg ) -> << Self :: GetResultService as Service >:: Response as Message >:: RmwMsg ;
213
213
}
You can’t perform that action at this time.
0 commit comments