ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Multi exclude in rosbag record?

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

Hyon Lim gravatar image

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

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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

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

hcostelha gravatar image

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

Use the following:

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 7,211 times

Last updated: Sep 02 '20