ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You'll want to use OpenCV for reading the video, processing it and writing the new video to a file. This can be integrated well with ROS later because it has very close integration with OpenCV.

If you want to store the output of your code in files then you do not want to use any ROS publishers or ROS at all, they would simply publish data to other nodes not store it in specific file types.

These tutorials show you how to read and save a video file. Weather this works with your AVI file will depend on the exact video codec used.

If you're using numpy to process arrays then you can save the CSV files simply using the numpy.savetxt function as below

numpy.savetxt('myfile.csv', my_numpy_array, delimiter=',')

Hope this gets you started.