Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test better ROS error checking code #18

Open
joshua-8 opened this issue Sep 6, 2024 · 1 comment
Open

test better ROS error checking code #18

joshua-8 opened this issue Sep 6, 2024 · 1 comment
Labels
ROS ROS mode

Comments

@joshua-8
Copy link
Member

joshua-8 commented Sep 6, 2024

https://github.com/micro-ROS/micro-ROS-demos/blob/167b373fb4b1e336c945aafa23f65dfb42d0a5d0/rclc/epoch_synchronization/main.c#L13

@joshua-8 joshua-8 added the ROS ROS mode label Dec 25, 2024
@joshua-8
Copy link
Member Author

#define RCCHECK(fn)                                                                   \
    {                                                                                 \
        rcl_ret_t temp_rc = fn;                                                       \
        if ((temp_rc != RCL_RET_OK)) {                                                \
            Serial.printf("FAIL RCCHECK, from file %s, line %d", __FILE__, __LINE__); \
            error_loop();                                                             \
        }                                                                             \
    }

works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ROS ROS mode
Projects
None yet
Development

No branches or pull requests

1 participant