rclcpp
master
C++ ROS Client Library API
|
Options that are passed in subscription/publisher constructor to specify QoSConfigurability. More...
#include <qos_overriding_options.hpp>
Public Member Functions | |
QosOverridingOptions ()=default | |
Default constructor, no overrides allowed. More... | |
QosOverridingOptions (std::initializer_list< QosPolicyKind > policy_kinds, QosCallback validation_callback=nullptr, std::string id={}) | |
Construct passing a list of QoS policies and a verification callback. More... | |
const std::string & | get_id () const |
const std::vector< QosPolicyKind > & | get_policy_kinds () const |
const QosCallback & | get_validation_callback () const |
Static Public Member Functions | |
static QosOverridingOptions | with_default_policies (QosCallback validation_callback=nullptr, std::string id={}) |
Construct passing a list of QoS policies and a verification callback. More... | |
Options that are passed in subscription/publisher constructor to specify QoSConfigurability.
This options struct allows configuring:
Example parameter file:
|
default |
Default constructor, no overrides allowed.
rclcpp::QosOverridingOptions::QosOverridingOptions | ( | std::initializer_list< QosPolicyKind > | policy_kinds, |
QosCallback | validation_callback = nullptr , |
||
std::string | id = {} |
||
) |
Construct passing a list of QoS policies and a verification callback.
This constructor is implicit, e.g.:
policy_kinds | list of policy kinds that will be reconfigurable. |
validation_callback | callbak that will be called to validate the validity of the qos profile set by the user. |
id | id of the entity. |
const std::string& rclcpp::QosOverridingOptions::get_id | ( | ) | const |
const std::vector<QosPolicyKind>& rclcpp::QosOverridingOptions::get_policy_kinds | ( | ) | const |
const QosCallback& rclcpp::QosOverridingOptions::get_validation_callback | ( | ) | const |
|
static |
Construct passing a list of QoS policies and a verification callback.
Same as QosOverridingOptions
constructor, but only declares the default policies:
History, Depth, Reliability.