MATLAB Answers

Is it possible to convert .mat file into rosbag file? Is it possible to convert .avi file into .mat file in ROS?

조회 수: 10(최근 30일)
Subhash Bhashakhetre
답변: Cam Salzberger 8 Apr 2019
I want to convert .mat file data into rosbag file data and .avi data into .mat file data.
Please help me...!

  댓글 수: 0

Sign in to comment.

답변(1개)

Cam Salzberger
Cam Salzberger 8 Apr 2019
Hello Subhash,
There currently is no functionality in MATLAB for the creation of rosbag files. However, you could load the messages from your MAT file into MATLAB, and publish them on a ROS network with a rospublisher. Then you could use a non-MATLAB ROS node to subscribe to the messages, and create a rosbag there. You could even do it with the Linux VM that we provide for your convenience.
If you would like to get the frames from a video (AVI) file, and save those to a MAT file, you can easily do that without ROS at all. See this example for reading all the frames, then simply save the variable with the data to a MAT file.
-Cam

  댓글 수: 0

Sign in to comment.


Translated by