Add an option in `rosbags-convert` to include (filter) topics
I like the option to exclude topics with --exclude-topic
, yet I think it would be interesting to have the option to do the reverse : give out a list of topics that we want in the output bag.
This would be a great replacement of rosbag filter
, especially in research where we can sometimes record all topics on a robot running ROS1, and then specify which topics we want when we post-process an experiment.
For example, say we want to have imu data and commanded velocity data from a ROS1 rosbag, we could do :
rosbags-convert foo.bag --dst /path/to/bar --include-topic /imu/data /cmd_vel
Edited by Damien LaRocque