15 #ifndef RCLCPP__UTILITIES_HPP_ 16 #define RCLCPP__UTILITIES_HPP_ 55 init(
int argc,
char * argv[]);
114 #endif // RCLCPP__UTILITIES_HPP_
void init(int argc, char *argv[])
Initialize communications via the rmw implementation and set up a global signal handler.
rcl_guard_condition_t * get_sigint_guard_condition(rcl_wait_set_t *wait_set)
Get a handle to the rmw guard condition that manages the signal handler.
Definition: allocator_common.hpp:24
bool sleep_for(const std::chrono::nanoseconds &nanoseconds)
Use the global condition variable to block for the specified amount of time.
void release_sigint_guard_condition(rcl_wait_set_t *wait_set)
Release the previously allocated guard condition that manages the signal handler. ...
void shutdown()
Notify the signal handler and rmw that rclcpp is shutting down.
void on_shutdown(std::function< void(void)> callback)
Register a function to be called when shutdown is called.
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
bool ok()
Check rclcpp's status.