Skip to content

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

Closed

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.

Activity

  1. fujitatomoya commented on Sep 24, 2023

    @fujitatomoya
    Collaborator

    @JWhitleyWork that makes sense to me. adding QoS to TopicStatisticsOptions struct as statistics publisher QoS configuration.

  2. CursedRock17 commented on Dec 11, 2023

    @CursedRock17
    Contributor

    Since that PR was merged this issue should be complete right?

  3. clalancette commented on Dec 20, 2023

    @clalancette
    Contributor

    Yeah, I'm going to close it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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