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

How do I avoid rosbag's messages and disk space checks?

asked 2011-07-17 23:34:53 -0500

Victor Lopez gravatar image

updated 2011-07-18 13:37:05 -0500

Currently when running rosbag record I periodically get this warning message:

Less than 5GB of space free on disk with /tmp/

Every 20 seconds. Despite being annoying, what bothers me is that browsing the code I've seen that when there's less than 1GB the recording is stopped.

I understand the risks but I want to keep recording even below 1GB and disable those annoying logs every 20seconds.

Is there any way to do so?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-07-19 00:25:51 -0500

rajat gravatar image

updated 2011-07-19 00:26:14 -0500

Decrease the number of bytes to what you want or just make them 0 , in these two line:


00109 if (free_space < 1073741824ull)


00109 if (free_space < 0000000000ull)


00115 else if (free_space < 5368709120ull)


00115 else if (free_space < 0000000000ull)

and then do :

rosmake rosrecord
edit flag offensive delete link more


Yeah, I could do that, as well as remove the call to this method or make it return without checking anything. But the thing is if there's a solution that doesn't involve modifying the source code, otherwise each time we (as a company) upgrade ROS version, we have to change it and recompile.
Victor Lopez gravatar image Victor Lopez  ( 2011-07-19 00:49:26 -0500 )edit
Unless there's a way (outside ROS) to spoof the disk space on a drive then it seems that there's no other way but to change the source. If I were you I'd file an enhancement ticket. If you attach a working patch then maybe you could get it squeaked into Electric (next ROS release in August).
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-07-19 01:19:56 -0500 )edit
You should make it as a ros parameter and then submit the patch, The parameters by default should have the values which are present in the source code . but we can change the value by changing the parameter .
rajat gravatar image rajat  ( 2011-07-19 19:31:48 -0500 )edit
Thanks I'll try to do it.
Victor Lopez gravatar image Victor Lopez  ( 2011-07-20 22:47:53 -0500 )edit
@rajat, none of the other options to rosbag record are implemented as ROS parameters; they are all command line options. Why would this be any different? Also I have to take back what I said about Electric; it's already in feature freeze.
Patrick Bouffard gravatar image Patrick Bouffard  ( 2011-07-21 00:35:17 -0500 )edit

Did this ever get implemented as a parameter or command line option? I want to record locally onboard my robot, even though my robot has less than 1 Gig of free disk space. Thanks.

Kurt Leucht gravatar image Kurt Leucht  ( 2016-03-02 13:22:48 -0500 )edit

I second Kurt. It would really make sense if this were configurable so I could also record locally on my small robot that doesn't have a lot of space.

Ben Cole gravatar image Ben Cole  ( 2016-10-28 08:21:43 -0500 )edit

Question Tools

1 follower


Asked: 2011-07-17 23:34:53 -0500

Seen: 2,190 times

Last updated: Jul 19 '11