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

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

/usb_cam/*

and

/usb_cam_repub/theora/*

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

edit retag flag offensive close merge delete

Comments

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: https://code.ros.org/trac/ros/ticket/4031

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

1 Answer

Sort by ยป oldest newest most voted
11

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

Question Tools

1 follower

Stats

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

Seen: 8,911 times

Last updated: Sep 02 '20