Bug report
Required Info:
- Operating System:
- Installation type:
- Version or commit hash:
- DDS implementation:
- Client library (if applicable):
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.