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

Playback issues with large rosbag files [closed]

asked 2017-08-02 08:24:27 -0600

vkee gravatar image

updated 2017-08-02 08:24:53 -0600


I'm running into issues playing back large rosbag files (> 1GB, they are bags generated of the KITTI dataset using this tool for those that are interested).

The overall performance (particularly the tf) performance varies greatly, and is particularly poor the first time the bag is played. I suspect that the bag needs to be loaded into memory / cache for proper behavior.

I am playing the bags using sim time set to true and the clock option for rosbag play (the issues remain with the options off too).

Does anyone have ideas about the causes and fixes/workarounds?


edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by vkee
close date 2017-08-03 05:25:47.558628

1 Answer

Sort by ยป oldest newest most voted

answered 2017-08-02 15:46:08 -0600

Wolf gravatar image

This is not rosbag functionality but the OS has a Disk cache that makes following calls faster than the first one. See this:

You might be able to preload the file into cache using a tool called vmtouch, See:

edit flag offensive delete link more


Thanks this helped a lot, vmtouch works great and solved my issue!

vkee gravatar image vkee  ( 2017-08-03 04:05:44 -0600 )edit

Question Tools



Asked: 2017-08-02 08:24:27 -0600

Seen: 517 times

Last updated: Aug 02 '17