Difference between revisions of "MATLAB code"

From Training Technology Lab Wiki
Jump to navigation Jump to search
Line 6: Line 6:
  
 
* Rosbag extraction
 
* Rosbag extraction
** Rosbag loader
 
** Rosbag plotter
 
** Rosbag video
 
  
 
== Rosbag extraction ==
 
== Rosbag extraction ==
'''Official methods:'''
+
'''Official methods:''' <br>
'''Viewing:''' For viewing video stored in a .bag file, [http://wiki.ros.org/rqt_bag rqt_bag] is the standard tool.
+
Viewing: For viewing video stored in a .bag file, [http://wiki.ros.org/rqt_bag rqt_bag] is the standard tool.
  
'''Extraction:''' To extract video (which are just compressed/uncompressed images) several methods exist. We have often used [https://github.com/OSUrobotics/bag2video bag2video].
+
Extraction: To extract video (which are just compressed/uncompressed images) several methods exist. We have often used [https://github.com/OSUrobotics/bag2video bag2video].
  
'''MATLAB scripts'''
+
'''MATLAB scripts:'''
 
=== Rosbag loader ===
 
=== Rosbag loader ===
 
Converts .bag files into .mat files. Must be done before using the other 2 scripts
 
Converts .bag files into .mat files. Must be done before using the other 2 scripts
Line 28: Line 25:
 
= FAQ/Debugging =
 
= FAQ/Debugging =
 
This sections relates to all common problems with the software.
 
This sections relates to all common problems with the software.
=== ROS: use IP address instead of hostname ===
 

Revision as of 11:06, 9 August 2019

Introduction

Training Technology Lab uses MATLAB for most data processing and visualization purposes. Several scripts have been written to work with our various technology. Here is a list of the following scripts:

  • Rosbag extraction

Rosbag extraction

Official methods:
Viewing: For viewing video stored in a .bag file, rqt_bag is the standard tool.

Extraction: To extract video (which are just compressed/uncompressed images) several methods exist. We have often used bag2video.

MATLAB scripts:

Rosbag loader

Converts .bag files into .mat files. Must be done before using the other 2 scripts

Rosbag plotter

Automatically plots known data formats)

Rosbag video

Automatically converts rosbags into .avi files with data plot overlays.


FAQ/Debugging

This sections relates to all common problems with the software.