Skip to content

Commit

Permalink
Modify RMW API include (#41)
Browse files Browse the repository at this point in the history
* multichange tool

* Update rmw_microros api include

Co-authored-by: Your Name <[email protected]>
Co-authored-by: Antonio Cuadros <[email protected]>
  • Loading branch information
3 people authored May 5, 2021
1 parent 36a313d commit 86af093
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion rclc/autodiscover_agent/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdio.h>
#include <unistd.h>

#include <rmw_uros/options.h>
#include <rmw_microros/rmw_microros.h>

#define RCCHECK(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); return 1;}}
#define RCSOFTCHECK(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);}}
Expand Down
2 changes: 1 addition & 1 deletion rclc/configuration_example/configured_publisher/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <stdio.h>

#include <rmw_uros/options.h>
#include <rmw_microros/rmw_microros.h>

#define RCCHECK(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); return 1;}}
#define RCSOFTCHECK(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);}}
Expand Down
2 changes: 1 addition & 1 deletion rclc/configuration_example/configured_subscriber/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <stdio.h>

#include <rmw_uros/options.h>
#include <rmw_microros/rmw_microros.h>

#define RCCHECK(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); return 1;}}
#define RCSOFTCHECK(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);}}
Expand Down
2 changes: 1 addition & 1 deletion rclc/configuration_example/custom_transports/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <errno.h>
#include <netdb.h>

#include <rmw_uros/options.h>
#include <rmw_microros/rmw_microros.h>

#define RCCHECK(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); return 1;}}
#define RCSOFTCHECK(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);}}
Expand Down
4 changes: 2 additions & 2 deletions rclc/ping_uros_agent/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <stdio.h>
#include <unistd.h>

#include <rmw_uros/options.h>
#include <rmw_microros/rmw_microros.h>

#include <rosidl_runtime_c/string_functions.h>

Expand Down Expand Up @@ -155,4 +155,4 @@ int main(int argc, char ** argv)
}

return 0;
}
}

0 comments on commit 86af093

Please sign in to comment.