15 #ifndef RCLCPP__UTILITIES_HPP_ 16 #define RCLCPP__UTILITIES_HPP_ 56 init(
int argc,
char const *
const argv[]);
170 return (y < 0) && (x < (std::numeric_limits<T>::min() - y));
204 return (y > 0) && (x < (std::numeric_limits<T>::min() + y));
209 #endif // RCLCPP__UTILITIES_HPP_
void init(int argc, char const *const 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.
bool sub_will_overflow(const T x, const T y)
Safely check if subtraction will overflow.
Definition: utilities.hpp:185
Definition: allocator_common.hpp:24
bool add_will_underflow(const T x, const T y)
Safely check if addition will underflow.
Definition: utilities.hpp:168
bool sleep_for(const std::chrono::nanoseconds &nanoseconds)
Use the global condition variable to block for the specified amount of time.
std::vector< std::string > init_and_remove_ros_arguments(int argc, char const *const argv[])
Initialize communications via the rmw implementation and set up a global signal handler.
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.
bool sub_will_underflow(const T x, const T y)
Safely check if subtraction will underflow.
Definition: utilities.hpp:202
bool add_will_overflow(const T x, const T y)
Safely check if addition will overflow.
Definition: utilities.hpp:151
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
bool ok()
Check rclcpp's status.
std::vector< std::string > remove_ros_arguments(int argc, char const *const argv[])
Remove ROS-specific arguments from argument vector.