Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

exclude some topics from rosbag play

I have a bag file with a bunch of topics inside of it, is it possible to exclude some topics from being played back?

For example, the bag file might have:

topics:      /camera/depth/image            150 msgs    : sensor_msgs/Image          
             /camera/rgb/image_color        150 msgs    : sensor_msgs/Image          
             /joint_states                 2500 msgs    : sensor_msgs/JointState     
             /rosout                         35 msgs    : rosgraph_msgs/Log          
             /rosout_agg                     35 msgs    : rosgraph_msgs/Log          
             /tf                           7697 msgs    : tf2_msgs/TFMessage

And I might be interested in playing back everything except the /tf topic.

Is there a shorter way than rostopic play file.bag --topics <topic> with all topics?

exclude some topics from rosbag play

I have a bag file with a bunch of topics inside of it, is it possible to exclude some topics from being played back?

For example, the bag file might have:

topics:      /camera/depth/image            150 msgs    : sensor_msgs/Image          
             /camera/rgb/image_color        150 msgs    : sensor_msgs/Image          
             /joint_states                 2500 msgs    : sensor_msgs/JointState     
             /rosout                         35 msgs    : rosgraph_msgs/Log          
             /rosout_agg                     35 msgs    : rosgraph_msgs/Log          
             /tf                           7697 msgs    : tf2_msgs/TFMessage

And I might be interested in playing back everything except the /tf topic.

Is there a shorter way than rostopic rosbag play file.bag --topics <topic> with all topics?