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

ROS2 bag play - performance issue

asked 2020-03-25 05:18:24 -0600

AmAppu gravatar image

updated 2020-03-26 02:07:28 -0600


I recorded a bag file in ROS2 with some sensor data. while I trying to play the same bag file using the command ros2 bag play bag_name, it takes more memory and the system getting stuck during the play.

->Is it a performance issue due to the storage version sqlite3 ? or any one here having the same issue while playing the bag file of higher data rate?

-> Current ROS2bag is stable in performance?

configuration: ubuntu 18.04 , ros2 version : dashing message publish for every 50 ms.

edit retag flag offensive close merge delete


Current ROS2bag is stable in performance? or when they release a stable version with optimized performance?

“They” is the community. If this is something you want or need, you should be part of “they” and work on fixing or improving it. I wouldn’t hold my breathe waiting on others who may or may not hold your sam view points of the importance of your issue if you need this.

stevemacenski gravatar image stevemacenski  ( 2020-03-25 10:39:06 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-03-25 09:12:25 -0600

johnconn gravatar image

updated 2020-04-24 11:58:44 -0600

ros2 bag is broken for sensor data. It assumes all topics are being published with reliable QoS. If your sensor data is publishing with best effort QoS, ros2bag will fail to record that data.

I am unsure if this is what is happening when you say the system is getting stuck during play, but it should be an issue you run into.

EDIT: The issue is fixed, ros2bag should work for any QoS. Hurrah!

edit flag offensive delete link more

Question Tools



Asked: 2020-03-25 05:18:24 -0600

Seen: 832 times

Last updated: Apr 24 '20