Skip to content
  • Home
  • About the Blog
  • About the Author
  • Sitemap

Abdur Rosyid's Blog

Just a few notes on mechanical engineering and robotics

ROS Bag

July 7, 2021 by Abdur Rosyid

ROS bag is used to record ROS messages and afterwards they can be played. This is very useful to record ROS messages published by robot’s sensors in a real test and later this data can be played without a need to perform another real test. Hence, this is particularly useful when the robot programming needs frequent modification/improvement (with reduced need to repeat real tests).

For example, in a real test of a mobile robot, the position and velocity of the robot’s travel (published by the whee odometry node) as well as the sensors’ data (IMU data, GPS data, camera’s RGB images, camera’s depth images, LiDAR data, etc) can be recorded by using ROS bag. Afterwards, the identical robot’s travel can be repeated without a need to perform another real test. While playing the recorded ROS bag data, the localization algorithm, the SLAM algorithm, the object detection algorithm, etc, can be modified for improvement/refinement.

If the recorded data is large, there is also a ROS bag function to compress the large recorded data which later can be extracted.

The complete list of ROS bag commands can be found here: http://wiki.ros.org/rosbag/Commandline

Post navigation

Previous Post:

Creating Custom Messages

Next Post:

ROS1 Launch File

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • STEM 101
  • Robotics
  • Kinematics
  • Dynamics
  • Control
  • Robot Operating System (ROS)
  • Robot Operating System (ROS2)
  • Software Development
  • Mechanics of Materials
  • Finite Element Analysis
  • Fluid Mechanics
  • Thermodynamics

Recent Posts

  • Pull Request on Github
  • Basics of Git and Github
  • Conda vs Docker
  • A Conda Cheat Sheet
  • Installing NVIDIA GPU Driver on Ubuntu

Archives

  • June 2025
  • July 2021
  • June 2021
  • March 2021
  • September 2020
  • April 2020
  • January 2015
  • April 2014
  • March 2014
  • March 2012
  • February 2012
  • June 2011
  • March 2008
© 2026 Abdur Rosyid's Blog | WordPress Theme by Superbthemes