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... | |
void | use_default_domain_id () |
Retrieve default domain id and set. More... | |
void | set_domain_id (size_t domain_id) |
Set the domain id. More... | |
size_t | get_domain_id () const |
Return domain id. 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. |
void rclcpp::InitOptions::use_default_domain_id | ( | ) |
Retrieve default domain id and set.
void rclcpp::InitOptions::set_domain_id | ( | size_t | domain_id | ) |
Set the domain id.
size_t rclcpp::InitOptions::get_domain_id | ( | ) | const |
Return domain id.
|
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).