rclcpp
master
C++ ROS Client Library API
|
Encapsulation of options for initializing rclcpp. More...
#include <init_options.hpp>
Public Member Functions | |
InitOptions (rcl_allocator_t allocator=rcl_get_default_allocator()) | |
Constructor. More... | |
InitOptions (const rcl_init_options_t &init_options) | |
Constructor which is initialized by an existing init_options. More... | |
InitOptions (const InitOptions &other) | |
Copy constructor. More... | |
bool | auto_initialize_logging () const |
Return true if logging should be initialized when rclcpp::Context::init is called. More... | |
InitOptions & | auto_initialize_logging (bool initialize_logging) |
Set flag indicating if logging should be initialized or not. More... | |
InitOptions & | operator= (const InitOptions &other) |
Assignment operator. More... | |
virtual | ~InitOptions () |
const rcl_init_options_t * | get_rcl_init_options () const |
Return the rcl init options. More... | |
Public Attributes | |
bool | shutdown_on_sigint = true |
If true, the context will be shutdown on SIGINT by the signal handler (if it was installed). More... | |
Protected Member Functions | |
void | finalize_init_options () |
Encapsulation of options for initializing rclcpp.
|
explicit |
Constructor.
It allows you to specify the allocator used within the init options.
[in] | allocator | used allocate memory within the init options |
anything | rclcpp::exceptions::throw_from_rcl_error can throw. |
|
explicit |
Constructor which is initialized by an existing init_options.
Initialized by an existing init_options.
[in] | init_options | rcl_init_options_t to initialized |
anything | rclcpp::exceptions::throw_from_rcl_error can throw. |
rclcpp::InitOptions::InitOptions | ( | const InitOptions & | other | ) |
Copy constructor.
|
virtual |
bool rclcpp::InitOptions::auto_initialize_logging | ( | ) | const |
Return true
if logging should be initialized when rclcpp::Context::init
is called.
InitOptions& rclcpp::InitOptions::auto_initialize_logging | ( | bool | initialize_logging | ) |
Set flag indicating if logging should be initialized or not.
InitOptions& rclcpp::InitOptions::operator= | ( | const InitOptions & | other | ) |
Assignment operator.
const rcl_init_options_t* rclcpp::InitOptions::get_rcl_init_options | ( | ) | const |
Return the rcl init options.
anything | rclcpp::exceptions::throw_from_rcl_error can throw. |
|
protected |
bool rclcpp::InitOptions::shutdown_on_sigint = true |
If true, the context will be shutdown on SIGINT by the signal handler (if it was installed).