|
nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
|
#include <qos.hpp>


Public Member Functions | |
| constexpr | BestAvailableQoS () |
| Public Member Functions inherited from rclcpp::QoS | |
| constexpr bool | avoid_ros_namespace_conventions () const |
| Whether to skip the /rt/ ROS topic-name prefix. | |
| constexpr QoS & | avoid_ros_namespace_conventions (bool on) |
| constexpr QoS & | best_effort () |
| Set reliability to BEST_EFFORT (fire-and-forget; default for sensors). | |
| constexpr Duration | deadline () const |
| The deadline window. Duration() (zero) = infinite. | |
| constexpr QoS & | deadline (const Duration &d) |
| constexpr int | depth () const |
| Configured queue depth (only meaningful for KEEP_LAST). | |
| constexpr DurabilityPolicy | durability () const |
| The durability policy. | |
| constexpr QoS & | durability_best_available () |
| constexpr QoS & | durability_volatile () |
| Set durability to VOLATILE — late joiners get nothing (default). | |
| constexpr ::rmw_qos_profile_s | get_rmw_qos_profile () const |
| constexpr HistoryPolicy | history () const |
| The history policy. | |
| constexpr QoS & | keep_all () |
| Use KEEP_ALL history (bounded by transport). | |
| constexpr QoS & | keep_last (int depth) |
| constexpr Duration | lifespan () const |
| The lifespan window. Duration() (zero) = infinite. | |
| constexpr QoS & | lifespan (const Duration &d) |
| constexpr LivelinessPolicy | liveliness () const |
| The liveliness policy kind. | |
| constexpr QoS & | liveliness (LivelinessPolicy kind) |
| constexpr Duration | liveliness_lease_duration () const |
| The liveliness lease window. Duration() (zero) = infinite. | |
| constexpr QoS & | liveliness_lease_duration (const Duration &d) |
| constexpr | QoS () |
| constexpr | QoS (::size_t depth) |
| constexpr | QoS (const QoSInitialization &init) |
| constexpr | QoS (const QoSInitialization &init, const ::rmw_qos_profile_s &profile) |
| constexpr ReliabilityPolicy | reliability () const |
| The reliability policy. | |
| constexpr QoS & | reliability_best_available () |
| constexpr QoS & | reliable () |
| Set reliability to RELIABLE (acked transport, retransmits on loss). | |
| constexpr QoS & | transient_local () |
| Set durability to TRANSIENT_LOCAL — late joiners get the last value. | |
| constexpr bool | tx_express () const |
| Whether this publisher's samples bypass transport tx batching. | |
| constexpr QoS & | tx_express (bool on) |
Additional Inherited Members | |
| Static Public Member Functions inherited from rclcpp::QoS | |
| static constexpr QoS | default_profile () |
| Default profile: RELIABLE + VOLATILE + KEEP_LAST(10). | |
| static constexpr QoS | sensor_data () |
| Sensor-data profile: BEST_EFFORT + VOLATILE + KEEP_LAST(5). | |
| static constexpr QoS | services () |
| Services profile: RELIABLE + VOLATILE + KEEP_LAST(10). | |
rclcpp::BestAvailableQoS — rmw_qos_profile_best_available. ADOPT (issue 1973).
Its policies resolve when the entity is created, against the endpoints the backend has already discovered on the topic — upstream's rule, applied once for every backend by the runtime (nros_rmw::QoSProfile::resolve_best_available). A backend with no graph (XRCE, uORB) has discovered nothing, which resolves to upstream's own nothing-discovered answer. Read the outcome back with get_actual_qos(). Upstream's caveat holds verbatim: the choice is not revisited when endpoints appear later.
|
inlineconstexpr |