-
Notifications
You must be signed in to change notification settings - Fork 294
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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.
$ ros2 topic list
/battery/state
/led_strip/command
/parameter_events
/rosout
$ ros2 topic list --include-hidden-topics
/battery/state
/led_strip/command
/parameter_events
/rosout
/tree/snapshot_streams/_snapshots_0
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:
$ ros2 bag record /tree/snapshot_streams/_snapshots_0 --include-hidden-topics
[INFO] [1605875537.625338377] [rosbag2_storage]: Opened database 'rosbag2_2020_11_20-13_32_17/rosbag2_2020_11_20-13_32_17_0.db3' for READ_WRITE.
[INFO] [1605875537.632586883] [rosbag2_transport]: Listening for topics...
[WARN] [1605875537.632694785] [rosbag2_transport]: Hidden topics are not recorded. Enable them with --include-hidden-topics
To Reproduce
** Steps to reproduce the behavior, e.g.
- Publish information on a hidden topic.
- ros2 bag record <topic_name> --include-hidden-topics
However, when using the -a option, all topics are recorded, including the hidden ones.
System (please complete the following information)
- OS: Ubuntu 20.04.1 LTS / Codename: focal
- ROS 2 Distro: Foxy
- Version: ros-foxy-rosbag2 0.3.5-1focal.2020.11.03
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working