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

11 ビュー (過去 30 日間)
I want to convert .mat file data into rosbag file data and .avi data into .mat file data.
Please help me...!

回答 (1 件)

Cam Salzberger
Cam Salzberger 2019 年 4 月 8 日
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

カテゴリ

Help Center および File ExchangeROS Log Files and Transformations についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by