-
Notifications
You must be signed in to change notification settings - Fork 260
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
cannot record single hidden topic #565
Comments
This is an interesting use case, I think it just hadn't come up before, thanks for bringing it to our attention! I think the logic to fix it shouldn't be difficult, PRs are always welcome, otherwise we'll try to get to it for G-turtle |
From #610 DescriptionHidden topics are not recorded by ros2 bag record if the topic name is explicitly provided as argument and the --include-hidden-topics is also enabled. Actual behaviourIf I execute te next command to record a hidden topic (explicitly provided as argument) I have the following response (specified topic is not listened):
Then if I publish something to the topic I have the following response and nothing is recorded in the bag file
and nothing is recorded in the bag file. Expected BehaviorAfter publishing something to the topic by
instead of the warning and data is recorded in the bag file System (please complete the following information)OS: Ubuntu 20.04 Possible resolutionI had a look on the code and maybe the following modifications could solve the problem:
In rosbag2_transport/src/rosbag2_transport/rosbag2_node.cpp (and .hpp) add new parameter to the get_topics_with_types
and at the end of the function definition call the filter_topics_with_more_than_one_type with passing the include_hidden_topics |
Note: when fixed, this should be backported to Foxy |
Fixed by #835 |
Description
ros2 bag
doesn't record a single topic when this topic is hidden.Expected Behavior
To record rosbag of the single hidden topic.
Actual Behavior
I tried to record the topic
/tree/snapshot_streams/_snapshots_0
, which is hidden. See the printout below.Doing
ros2 topic echo /tree/snapshot_streams/_snapshots_0
I got data from the topic, regularly.But
ros2 bag record /tree/snapshot_streams/_snapshots_0 --include-hidden-topics
does not subscribe to anything:To Reproduce
** Steps to reproduce the behavior, e.g.
However, when using the -a option, all topics are recorded, including the hidden ones.
System (please complete the following information)
The text was updated successfully, but these errors were encountered: