MATLAB Answers

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

Subhash Bhashakhetre 님이 질문을 제출함. 8 Apr 2019
최근 활동 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

로그인 to comment.

답변 수: 1

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

로그인 to comment.



Translated by