ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Somewhat guided by gvdhoorn's answer I wrote the following shell wrapper around rosbag record.
unwanted_type=PointCloud2
unwanted_topics_as_regex_alternative=$(rostopic list --verbose | grep $unwanted_type | cut -d '[' -f 1 | cut -d '*' -f2- | sed -E 's/^ (.*) $/\1/g' | tr '\n' '|')
rosbag record -a -x "($unwanted_topics_as_regex_alternative)"