Skip to content

Creating a Subscriber with TopicStatistics Applies Custom QoS to /statistics Publisher #2314

@JWhitleyWork

Description

@JWhitleyWork

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22.04
  • Installation type:
    • binaries
  • Version or commit hash:
    • Humble, Iron
  • DDS implementation:
    • Any
  • Client library (if applicable):
    • rclcpp

Steps to reproduce issue

rclcpp::SubscriptionOptions opts{};
opts.topic_stats_options.state = rclcpp::TopicStatisticsState::Enable;

rclcpp::QoS bad_qos{};

this->creare_subscription<DummyMsg>("/some_topic", bad_qos.history(rclcpp::HistoryPolicy::Unknown), cb_func, opts);

Expected behavior

The /statistics publisher has a stable, well-defined QoS profile.

Actual behavior

The QoS profile passed to create_subscription is applied to both the subscription and the /statistics publisher. Code reference in humble and iron.

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