How to filterout a type from a rosbag record?
I have on my hands a 18GiB rosbag that contains multiple topics of PointCloud2 type. From my experience those are the main contributors to the rosbags' size. After the bag is recorded I can use the following to throw away the PointCloud2 messages:
rosbag filter big.bag small.bag "'PointCloud2' not in str(type(m))"
but what flag to rosbag record
should I use to not record them?
I know rosbag record -x
but according to documentation that only works with regexes and my PointCloud2 topics have different names.
By default I use rosbag record -a
since the PointCloud2 topics are only a fraction of what I want to record.