rosbag ROS Wiki
rosbag has code APIs for reading and writing bags in either C or Python For a description of these APIs see rosbag Code API For technical details on the contents of bag files see Bag file format Outside of rosbag package from groovy there s a gui client rqt bag Overview in addition