This ros package subscribes to image topics of ros and save them as images (format PNG), and converts imu data into .csv file, which results in the same data format as the EuRoC MAV dataset.
- OpenCV (VERSION > 3.0)
- Cmake (VERSION > 2.8)
If ROS (indigo) is being used, it is recommended to manually install cv_bridge above OpenCV 3.0. URL
git clone https://github.com/ros-perception/vision_opencv.git
cd vision_opencv & cd cv_bridge
mkdir build & cd build
cmake ..
make
sudo make install
cd rosbag2image
mkdir build & cd build
cmake ..
make
source devel/setup.bash
roslaunch rosbag2image test.launch
Note that the node should run with three parameters: save path, topic name and isColor (true or false).
rosbag play your own ros bag