%exampleHelperROSLoadMessages Load specialized message data 
%   This script will load messages that were recorded from various robotics
%   sensors.
%
%   See also ROSSpecializedMessagesExample.

%   Copyright 2014-2015 The MathWorks, Inc.

% Load laser scan data
scanfile = 'scandata.mat';
scancell = load(scanfile);
scan = scancell.scan;

% Load uncompressed image data
imgfile = 'imgdata.mat';
imgcell = load(imgfile);
img = imgcell.img;

% Load compressed image data
imgcompfile = 'imgcompressed.mat';
imgcompcell = load(imgcompfile);
imgcomp = imgcompcell.imgcomp;

% Load point cloud data
pointcloudfile ='pointcloud2.mat';
pointcloudcell = load(pointcloudfile);
ptcloud = pointcloudcell.ptcloud;

% Clear variables from the workspace that are not needed anymore
clear scanfile
clear scancell
clear imgfile
clear imgcell
clear imgcompfile
clear imgcompcell
clear pointcloudfile
clear pointcloudcell