MATLAB code

From Training Technology Lab Wiki
Revision as of 11:02, 9 August 2019 by Cljak12 (talk | contribs)
Jump to navigation Jump to search

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 loader
    • Rosbag plotter
    • Rosbag video

Rosbag extraction

For viewing video stored in a .bag file, rqt_bag is the standard tool. For extracting video

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. To extract video (which are just compressed/uncompressed images) several methods exist. We have often used bag2video.

ROS: use IP address instead of hostname