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
* Rework examples
Acording to micro-ROS/rclc#58
* Rework add two ints service
* Rework callback
* fix callback
* Update service
* Remove rclc_executor_set_timeout
* Update apps/add_two_ints_service/app.c
Co-authored-by: Jose Antonio Moral <[email protected]>
Co-authored-by: Jose Antonio Moral <[email protected]>
Copy file name to clipboardExpand all lines: apps/add_two_ints_service/app.c
+30-56Lines changed: 30 additions & 56 deletions
Original file line number
Diff line number
Diff line change
@@ -12,70 +12,44 @@
12
12
#include<unistd.h>
13
13
#include<pthread.h>
14
14
15
-
#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); vTaskDelete(NULL);;}}
16
-
#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);}}
15
+
#defineRCCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printk("Failed status on line %d: %d. Aborting.\n",__LINE__,(int)temp_rc);}}
16
+
#defineRCSOFTCHECK(fn) { rcl_ret_t temp_rc = fn; if((temp_rc != RCL_RET_OK)){printk("Failed status on line %d: %d. Continuing.\n",__LINE__,(int)temp_rc);}}
17
17
18
-
// TODO(jamoralp): update using RCLC convenience functions once services are implemented there.
19
-
voidappMain(void*argument)
20
-
{
21
-
printf("Free heap pre uROS: %d bytes\n", xPortGetFreeHeapSize());
0 commit comments