ROS 2 rclcpp + rcl - humble
humble
ROS 2 C++ Client Library with ROS Client Library
|
Options that are passed in subscription/publisher constructor to specify QoSConfigurability. More...
#include <rclcpp/qos_overriding_options.hpp>
Public Member Functions | |
RCLCPP_PUBLIC | QosOverridingOptions ()=default |
Default constructor, no overrides allowed. | |
RCLCPP_PUBLIC | 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... | |
RCLCPP_PUBLIC const std::string & | get_id () const |
RCLCPP_PUBLIC const std::vector< QosPolicyKind > & | get_policy_kinds () const |
RCLCPP_PUBLIC const QosCallback & | get_validation_callback () const |
Static Public Member Functions | |
static RCLCPP_PUBLIC 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:
Definition at line 89 of file qos_overriding_options.hpp.
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. |
Definition at line 49 of file qos_overriding_options.cpp.
|
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.
Definition at line 59 of file qos_overriding_options.cpp.