Skip to main content

NrosRmwQos

Type Alias NrosRmwQos 

Source
pub type NrosRmwQos = rmw_qos_profile_t;
Expand description

Compat alias for the generated rmw_qos_profile_t.

Aliased Type§

#[repr(C)]
pub struct NrosRmwQos { pub reliability: u8, pub durability: u8, pub history: u8, pub liveliness_kind: u8, pub depth: u16, pub _reserved0: u16, pub deadline_ms: u32, pub lifespan_ms: u32, pub liveliness_lease_ms: u32, pub avoid_ros_namespace_conventions: u8, pub _reserved1: [u8; 3], }

Fields§

§reliability: u8

< @see NROS_RMW_RELIABILITY_*

§durability: u8

< @see NROS_RMW_DURABILITY_*

§history: u8

< @see NROS_RMW_HISTORY_*

§liveliness_kind: u8

< @see rmw_liveliness_kind_t

§depth: u16§_reserved0: u16

< Reserved; must be zero.

§deadline_ms: u32

Subscription: max acceptable inter-arrival time, ms. Publisher: max acceptable inter-publish (offered rate), ms. 0 = infinite (no deadline).

§lifespan_ms: u32

Sample expiry, ms. Subscription filters samples older than this. 0 = infinite (no expiry).

§liveliness_lease_ms: u32

Liveliness lease, ms. Publisher must assert liveliness within this window or be considered dead. 0 = infinite.

§avoid_ros_namespace_conventions: u8

If non-zero, topic-name encoding skips the ROS /rt/ prefix and uses raw application names. Matches upstream avoid_ros_namespace_conventions. 0 = false, non-zero = true. (uint8_t instead of bool; sizeof(_Bool) is impl- defined per C99 — uint8_t keeps the layout stable across toolchains.)

§_reserved1: [u8; 3]

< Reserved; must be zero.

Trait Implementations§

Source§

impl TryFrom<QoSProfile> for NrosRmwQos

Source§

type Error = TransportError

The type returned in the event of a conversion error.
Source§

fn try_from(qos: QoSProfile) -> Result<Self, TransportError>

Performs the conversion.