Skip to content

qos() method is not working correctly. #554

@alexzeit

Description

@alexzeit

Hi,
rclrs 0.6.0! The [IntoPrimitiveOptions] trait's .qos() method is not working correctly.

I want use qos BestEffort.
So the Rust code is reading BestEffort correctly, but the subscription is still being created with Reliable QoS

The bug location is in: [subscription.rs] lines 245-251:

impl<'a, T: IntoPrimitiveOptions<'a>> From<T> for SubscriptionOptions<'a> { fn from(value: T) -> Self { let primitive = value.into_primitive_options(); let mut options = Self::new(primitive.name); primitive.apply_to(&mut options.qos); // <-- This SHOULD work but doesn't! options } }

The apply_to() method should be overriding the QoS, but something in the conversion to rcl is broken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions