A simplified version of kitti2bag
1.ROS 2.OpenCV
mkdir -p catkin_ws/src
cd catkin_ws
source /opt/ros/kinetic/setup.bash
catkin_make
cd src
git clone git@github.com:AbnerCSZ/imageimu2rosbag.git
cd ..
catkin_make
source devel/setup.bash
roscore
rosrun torosbag torosbag <path to directory including image file and imu file> <path and name to bag> <the numbers of camera>
rosrun torosbag torosbag ~/Documents/MH_01_easy example.bag 1
Kitti- MH_01_easy