Is it possible to convert .mat file into rosbag file? Is it possible to convert .avi file into .mat file in ROS?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I want to convert .mat file data into rosbag file data and .avi data into .mat file data.
Please help me...!
0 comentarios
Respuestas (1)
Cam Salzberger
el 8 de Abr. de 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 comentarios
Ver también
Categorías
Más información sobre ROS Log Files and Transformations en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!