Using rosbag to get size of each topic
I'm trying to remove unnecessary topics from a rosbag file to make it easier to distribute. In doing so, i'd like to know the size of each topic, not just the size of the bag file as a whole. However, running rosbag info example_bag.bag
only provides me with the size of the bag file and not the size of individual topics.
Is there any way to use the rosbag
command line tool to obtain the size of individual topics within the bag file?
What do you mean by size of topics? You can get the number of messages in the particular topic and data type using rosbag info