File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -543,11 +543,10 @@ where
543
543
self . result_requests . lock ( ) . unwrap ( ) . entry ( uuid) . or_insert ( vec ! [ ] ) . push ( request_id) ;
544
544
}
545
545
} else {
546
- type RmwResponse < T > = <<<T as ActionImpl >:: GetResultService as rosidl_runtime_rs:: Service >:: Response as Message >:: RmwMsg ;
547
- let mut response_rmw = RmwResponse :: < T > :: default ( ) ;
548
546
// TODO(nwn): Include action_msgs__msg__GoalStatus__STATUS_UNKNOWN in the rcl
549
547
// bindings.
550
- <T as ActionImpl >:: set_result_response_status ( & mut response_rmw, 0 ) ;
548
+ let null_response = <T :: Result as Message >:: RmwMsg :: default ( ) ;
549
+ let mut response_rmw = <T as ActionImpl >:: create_result_response ( 0 , null_response) ;
551
550
self . send_result_response ( request_id, & mut response_rmw) ?;
552
551
}
553
552
You can’t perform that action at this time.
0 commit comments