Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not warn for unknown types if they are not included in the topic list #1444

Closed
Aposhian opened this issue Aug 14, 2023 · 3 comments · Fixed by #1466
Closed

Do not warn for unknown types if they are not included in the topic list #1444

Aposhian opened this issue Aug 14, 2023 · 3 comments · Fixed by #1466
Labels
enhancement New feature or request

Comments

@Aposhian
Copy link
Contributor

Description

If there is a topic with an unknown type on the ROS domain, ros2 bag record spams messages like

[WARN 1692051327.854323893] [ROSBAG2_TRANSPORT]: Topic '/performance_metrics' has unknown type 'gazebo_msgs/msg/PerformanceMetrics' . Only topics with known type are supported.

every single time a message is received, even if that topic wasn't even in the list of topics to record.

Related Issues

It should also probably be a separate enhancement to only log this message once for a particular topic, since logging on every message is a lot of logs, and doesn't add any information.

Completion Criteria

If a topic is not specified in the topic lists, do not warn about issues with it.

Implementation Notes / Suggestions

Could just filter by topic list right before this message.

Testing Notes / Suggestions

@MichaelOrlov
Copy link
Contributor

@Jannkar
Copy link

Jannkar commented Sep 12, 2023

I tested these changes using Humble version implemented in #1434 and I'm still getting warning messages for the topics that I am not recording, but now only once per topic. So it looks like this issue isn't yet resolved?

@MichaelOrlov MichaelOrlov reopened this Sep 12, 2023
@MichaelOrlov
Copy link
Contributor

@Jannkar Thanks for the heads up.
Indeed we do have a check if topics are not on the list but the checks are ordered such a way that we are checking for unknown types first.

I made a quick fix for that in #1466.
However it is in the draft yet, I am trying to figure out if will be possible to create unit tests for regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants