ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The other option is to create a filtered bag file that only contains those topics that you are interested. See http://wiki.ros.org/rosbag/Tutorials/Producing%20filtered%20bag%20files

So basically, you have to list all topics and messages that you want to keep.

A quick example

rosbag filter <your bagfile> filtered_bag.bag 'topic == "/robot/topic1" and  topic == "/robot/topic2"''