|
CARLA
|
Middleware-neutral QoS profile passed to IPublisherMiddleware::Init / ISubscriberMiddleware::Init when a topic needs QoS different from the vendor defaults (e.g. More...
#include <QosProfile.h>
Public Types | |
| enum class | Durability : std::uint8_t { Volatile , TransientLocal } |
| enum class | History : std::uint8_t { KeepLast , KeepAll } |
| enum class | Reliability : std::uint8_t { Reliable , BestEffort } |
Static Public Member Functions | |
| static QosProfile | ReliableTransientLocal () |
| RELIABLE / TRANSIENT_LOCAL / KEEP_LAST depth 1 — a latched sample survives a late join. | |
| static QosProfile | ReliableVolatile () |
| RELIABLE / VOLATILE / KEEP_LAST depth 1 — the Autoware report publishers and command subscribers (a volatile reader matches writers of either durability). | |
Public Attributes | |
| Durability | durability {Durability::Volatile} |
| History | history {History::KeepLast} |
| std::int32_t | history_depth {1} |
| Reliability | reliability {Reliability::Reliable} |
Middleware-neutral QoS profile passed to IPublisherMiddleware::Init / ISubscriberMiddleware::Init when a topic needs QoS different from the vendor defaults (e.g.
a reader that must receive the last sample a TRANSIENT_LOCAL writer latched before it joined).
This replaces tier4's TopicConfig (data_types.h) in the middleware-decoupled architecture: the domain id is NOT part of the profile (it lives in MiddlewareConfig.h) and the topic suffix is the caller's concern (publishers append suffixes to their base topic name).
The defaults (RELIABLE / VOLATILE / KEEP_LAST depth 1) mirror the FastDDS DataWriter defaults so passing QosProfile{} to a publisher is equivalent to the QoS-less Init overload.
Definition at line 27 of file QosProfile.h.
|
strong |
| Enumerator | |
|---|---|
| Volatile | |
| TransientLocal | |
Definition at line 29 of file QosProfile.h.
|
strong |
| Enumerator | |
|---|---|
| KeepLast | |
| KeepAll | |
Definition at line 30 of file QosProfile.h.
|
strong |
| Enumerator | |
|---|---|
| Reliable | |
| BestEffort | |
Definition at line 28 of file QosProfile.h.
|
inlinestatic |
RELIABLE / TRANSIENT_LOCAL / KEEP_LAST depth 1 — a latched sample survives a late join.
A reader with it matches TRANSIENT_LOCAL writers only, which is why the Autoware command subscribers no longer use it.
Definition at line 40 of file QosProfile.h.
References durability, history, history_depth, KeepLast, reliability, Reliable, and TransientLocal.
|
inlinestatic |
RELIABLE / VOLATILE / KEEP_LAST depth 1 — the Autoware report publishers and command subscribers (a volatile reader matches writers of either durability).
Definition at line 52 of file QosProfile.h.
References durability, history, history_depth, KeepLast, reliability, Reliable, and Volatile.
Referenced by carla::ros2::AutowareControlSubscriber::AutowareControlSubscriber(), carla::ros2::AutowareGNSSPublisher::AutowareGNSSPublisher(), and carla::ros2::AutowareVehicleStatusPublisher::AutowareVehicleStatusPublisher().
| Durability carla::ros2::QosProfile::durability {Durability::Volatile} |
Definition at line 33 of file QosProfile.h.
Referenced by carla::ros2::FastDDSPublisherMiddleware< T >::InitImpl(), carla::ros2::FastDDSSubscriberMiddleware< S >::InitImpl(), ReliableTransientLocal(), and ReliableVolatile().
| History carla::ros2::QosProfile::history {History::KeepLast} |
Definition at line 34 of file QosProfile.h.
Referenced by carla::ros2::FastDDSPublisherMiddleware< T >::InitImpl(), carla::ros2::FastDDSSubscriberMiddleware< S >::InitImpl(), ReliableTransientLocal(), and ReliableVolatile().
| std::int32_t carla::ros2::QosProfile::history_depth {1} |
Definition at line 35 of file QosProfile.h.
Referenced by carla::ros2::FastDDSPublisherMiddleware< T >::InitImpl(), carla::ros2::FastDDSSubscriberMiddleware< S >::InitImpl(), ReliableTransientLocal(), and ReliableVolatile().
| Reliability carla::ros2::QosProfile::reliability {Reliability::Reliable} |
Definition at line 32 of file QosProfile.h.
Referenced by carla::ros2::FastDDSPublisherMiddleware< T >::InitImpl(), carla::ros2::FastDDSSubscriberMiddleware< S >::InitImpl(), ReliableTransientLocal(), and ReliableVolatile().