You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I posted this issue to libsatistics_collector because this bug is related to topic statistics, but I probably should have published it to rclcpp.
If you have any comments, I will republish this issue to rclcpp.
The text was updated successfully, but these errors were encountered:
Description
topic statistics doesn't publish "message_age" data if subscription's QoS is Keep last.
Expected Behavior
Both message_age and message_period are published.
Actual Behavior
Only message_period are published.
To Reproduce
I've implemented test case.
System
Additional context
As far as I read source code, this issues seems be caused by following reason.
https://github.com/ros2/rclcpp/blob/master/rclcpp/include/rclcpp/create_subscription.hpp#L88
Here, second message (message_period) overwrites first message (message_age) if QoS depth = Keep Last.
https://github.com/ros2/rclcpp/blob/master/rclcpp/include/rclcpp/topic_statistics/subscription_topic_statistics.hpp#L152
--
I posted this issue to libsatistics_collector because this bug is related to topic statistics, but I probably should have published it to rclcpp.
If you have any comments, I will republish this issue to rclcpp.
The text was updated successfully, but these errors were encountered: