ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Multi exclude in rosbag record?

asked 2012-06-06 19:35:18 -0600

Hyon Lim gravatar image

updated 2020-09-02 11:24:34 -0600

lucasw gravatar image

Hi. When rosbag is used as follows

$ rosbag record -a -x "/usb_cam/(.*)"

how can I add more exclusion? For example, I would like to exclude




It should be simple, but I'm not familiar with regex.

edit retag flag offensive close merge delete


It's not clear to me what you want to achieve, but as I also encountered the problem (I want to record everything, except raw and compressed camera image topics), I posted a bug report:

brice rebsamen gravatar image brice rebsamen  ( 2012-08-16 17:08:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-30 13:51:08 -0600

hcostelha gravatar image

updated 2013-04-30 13:51:31 -0600

Use the following:

rosbag record -a -O data.bag -x "/usb_cam/(.*)|/usb_cam_repub/theora/(.*)"
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-06-06 19:35:18 -0600

Seen: 8,606 times

Last updated: Sep 02 '20