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

Rosbag record to different path?

asked 2016-04-12 09:10:41 -0600

DanThe gravatar image

Hi all,

Is there any way to record rosbag data to a different location than the default location?

I am getting the following error:

[ERROR] [1460470166.869390414]: Less than 1GB of space free on disk with  Disabling recording.
[ WARN] [1460470167.370142337]: Not logging message because logging disabled.  Most likely cause is a full disk.

Is it possible to record rosbag data to a pen drive?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-04-12 09:33:56 -0600

Thomas D gravatar image

The rosbag wiki has the information. Assuming your pen drive is at /mnt/pen you can use either the -o or -O flag:

rosbag record -o /mnt/pen/ /chatter
rosbag record -O /mnt/pen/test.bag /chatter

The first case with lower-case -o will output a bag file with the timestamp at the location you specify. The second case with upper-case -O will output a bag file simply named test.bag at the location you specify (_without_ the timestamp on the filename).

edit flag offensive delete link more


Thanks for your answer!

DanThe gravatar image DanThe  ( 2016-04-14 08:00:20 -0600 )edit

Question Tools

1 follower


Asked: 2016-04-12 09:10:41 -0600

Seen: 9,192 times

Last updated: Apr 12 '16