You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix service server example
Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
* Fix define
Signed-off-by: Pablo Garrido <pablogs9@gmail.com>
(cherry picked from commit eb6b9b7)
Co-authored-by: Pablo Garrido <pablogs9@gmail.com>
Copy file name to clipboardExpand all lines: examples/addtwoints_server/main/main.c
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,13 @@
13
13
#include<rcl/error_handling.h>
14
14
#include<rclc/rclc.h>
15
15
#include<rclc/executor.h>
16
+
16
17
#include"example_interfaces/srv/add_two_ints.h"
17
18
19
+
#ifdefCONFIG_MICRO_ROS_ESP_XRCE_DDS_MIDDLEWARE
20
+
#include<rmw_microros/rmw_microros.h>
21
+
#endif
22
+
18
23
#defineRCCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printf("Failed status on line %d: %d. Aborting.\n",__LINE__,(int)temp_rc);}}
19
24
#defineRCSOFTCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printf("Failed status on line %d: %d. Continuing.\n",__LINE__,(int)temp_rc);}}
0 commit comments