rclcpp  beta1
C++ ROS Client Library API
Namespaces | Functions
utilities.hpp File Reference
#include <chrono>
#include <functional>
#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
 
 rclcpp::utilities
 

Functions

void rclcpp::utilities::init (int argc, char *argv[])
 Initialize communications via the rmw implementation and set up a global signal handler. More...
 
bool rclcpp::utilities::ok ()
 Check rclcpp's status. More...
 
void rclcpp::utilities::shutdown ()
 Notify the signal handler and rmw that rclcpp is shutting down. More...
 
void rclcpp::utilities::on_shutdown (std::function< void(void)> callback)
 Register a function to be called when shutdown is called. More...
 
rcl_guard_condition_trclcpp::utilities::get_sigint_guard_condition (rcl_wait_set_t *waitset)
 Get a handle to the rmw guard condition that manages the signal handler. More...
 
void rclcpp::utilities::release_sigint_guard_condition (rcl_wait_set_t *waitset)
 Release the previously allocated guard condition that manages the signal handler. More...
 
bool rclcpp::utilities::sleep_for (const std::chrono::nanoseconds &nanoseconds)
 Use the global condition variable to block for the specified amount of time. More...