Skip to content

Commit

Permalink
chore: use BEST_AVAILABLE QoS in rolling
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoldi authored and m-dahl committed Mar 19, 2024
1 parent 8a1444d commit 285853a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions r2r/src/qos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ pub enum ReliabilityPolicy {
BestEffort,
Reliable,
SystemDefault,
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
BestAvailable,
Unknown,
}
Expand All @@ -267,7 +267,7 @@ impl From<ReliabilityPolicy> for rmw_qos_reliability_policy_t {
ReliabilityPolicy::SystemDefault => {
rmw_qos_reliability_policy_t::RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT
}
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
ReliabilityPolicy::BestAvailable => {
rmw_qos_reliability_policy_t::RMW_QOS_POLICY_RELIABILITY_BEST_AVAILABLE
}
Expand All @@ -290,7 +290,7 @@ impl From<rmw_qos_reliability_policy_t> for ReliabilityPolicy {
rmw_qos_reliability_policy_t::RMW_QOS_POLICY_RELIABILITY_SYSTEM_DEFAULT => {
ReliabilityPolicy::SystemDefault
}
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
rmw_qos_reliability_policy_t::RMW_QOS_POLICY_RELIABILITY_BEST_AVAILABLE => {
ReliabilityPolicy::BestAvailable
}
Expand All @@ -306,7 +306,7 @@ pub enum DurabilityPolicy {
TransientLocal,
Volatile,
SystemDefault,
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
BestAvailable,
Unknown,
}
Expand All @@ -323,7 +323,7 @@ impl From<DurabilityPolicy> for rmw_qos_durability_policy_t {
DurabilityPolicy::SystemDefault => {
rmw_qos_durability_policy_t::RMW_QOS_POLICY_DURABILITY_SYSTEM_DEFAULT
}
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
DurabilityPolicy::BestAvailable => {
rmw_qos_durability_policy_t::RMW_QOS_POLICY_DURABILITY_BEST_AVAILABLE
}
Expand All @@ -346,7 +346,7 @@ impl From<rmw_qos_durability_policy_t> for DurabilityPolicy {
rmw_qos_durability_policy_t::RMW_QOS_POLICY_DURABILITY_SYSTEM_DEFAULT => {
DurabilityPolicy::SystemDefault
}
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
rmw_qos_durability_policy_t::RMW_QOS_POLICY_DURABILITY_BEST_AVAILABLE => {
DurabilityPolicy::BestAvailable
}
Expand All @@ -363,7 +363,7 @@ pub enum LivelinessPolicy {
ManualByNode,
ManualByTopic,
SystemDefault,
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
BestAvailable,
Unknown,
}
Expand All @@ -383,7 +383,7 @@ impl From<LivelinessPolicy> for rmw_qos_liveliness_policy_t {
LivelinessPolicy::SystemDefault => {
rmw_qos_liveliness_policy_t::RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT
}
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
LivelinessPolicy::BestAvailable => {
rmw_qos_liveliness_policy_t::RMW_QOS_POLICY_LIVELINESS_BEST_AVAILABLE
}
Expand All @@ -409,7 +409,7 @@ impl From<rmw_qos_liveliness_policy_t> for LivelinessPolicy {
rmw_qos_liveliness_policy_t::RMW_QOS_POLICY_LIVELINESS_SYSTEM_DEFAULT => {
LivelinessPolicy::SystemDefault
}
#[cfg(r2r__ros__distro__iron)]
#[cfg(any(r2r__ros__distro__iron, r2r__ros__distro__rolling))]
rmw_qos_liveliness_policy_t::RMW_QOS_POLICY_LIVELINESS_BEST_AVAILABLE => {
LivelinessPolicy::BestAvailable
}
Expand Down

0 comments on commit 285853a

Please sign in to comment.