Robotics StackExchange | Archived questions

How to convert .bag to video?

Hi to everyone,

I have a .bag file and I am trying to convert it into a video. I tried to follow this tutorial http://wiki.ros.org/rosbag/Tutorials/Exporting%20image%20and%20video%20data, but I did not understand very well.

Could someone help me?

I precise that I am a very newbie in using ROS and I am working with ROS kinetic.

Thanks in advance.

Asked by Andrew9685347 on 2018-03-15 04:50:01 UTC

Comments

but I did not understand very well.

What is it that you don't understand?

Asked by gvdhoorn on 2018-03-15 05:10:56 UTC

Thanks for the answer. Let's start from the beginning; from the launch file that I have created, how can I change the directory of the file? For example if I write $(find home)/test.bag it does not find the file. Next, it is possible to set the number of images to export?

Asked by Andrew9685347 on 2018-03-15 05:40:33 UTC

In the example the $(find) command is being used to locate the image_view package folder. If you have the direct path to your file you don't need to use find, you can just write the direct path.

Asked by stevejp on 2018-03-15 06:33:58 UTC

Answers