rclcpp  master
C++ ROS Client Library API
Namespaces | Functions
utilities.hpp File Reference
#include <chrono>
#include <functional>
#include <limits>
#include <vector>
#include "rclcpp/visibility_control.hpp"
#include "rcl/guard_condition.h"
#include "rcl/wait.h"
#include "rmw/macros.h"
#include "rmw/rmw.h"

Go to the source code of this file.

Namespaces

 rclcpp
 

Functions

void rclcpp::init (int argc, char const *const argv[])
 Initialize communications via the rmw implementation and set up a global signal handler. More...
 
std::vector< std::stringrclcpp::init_and_remove_ros_arguments (int argc, char const *const argv[])
 Initialize communications via the rmw implementation and set up a global signal handler. More...
 
std::vector< std::stringrclcpp::remove_ros_arguments (int argc, char const *const argv[])
 Remove ROS-specific arguments from argument vector. More...
 
bool rclcpp::ok ()
 Check rclcpp's status. More...
 
void rclcpp::shutdown ()
 Notify the signal handler and rmw that rclcpp is shutting down. More...
 
void rclcpp::on_shutdown (std::function< void(void)> callback)
 Register a function to be called when shutdown is called. More...
 
rcl_guard_condition_trclcpp::get_sigint_guard_condition (rcl_wait_set_t *wait_set)
 Get a handle to the rmw guard condition that manages the signal handler. More...
 
void rclcpp::release_sigint_guard_condition (rcl_wait_set_t *wait_set)
 Release the previously allocated guard condition that manages the signal handler. More...
 
bool rclcpp::sleep_for (const std::chrono::nanoseconds &nanoseconds)
 Use the global condition variable to block for the specified amount of time. More...
 
template<typename T >
bool rclcpp::add_will_overflow (const T x, const T y)
 Safely check if addition will overflow. More...
 
template<typename T >
bool rclcpp::add_will_underflow (const T x, const T y)
 Safely check if addition will underflow. More...
 
template<typename T >
bool rclcpp::sub_will_overflow (const T x, const T y)
 Safely check if subtraction will overflow. More...
 
template<typename T >
bool rclcpp::sub_will_underflow (const T x, const T y)
 Safely check if subtraction will underflow. More...