Install librosbag-dev by entering the following commands in the terminal:
sudo apt update sudo apt install librosbag-dev
Description:
Tools for recording from and playing back to Robot OS topics
This package is part of Robot OS (ROS). It is the development files for the rosbag library, which provides APIs for reading/writing bags (ROS message stores) in C++ and Python.
Homepage: http://wiki.ros.org/ros_comm
Version: 1.13.5+ds1-3
Section: universe/libdevel