%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 = fullfile(fileparts(mfilename('fullpath')), '..', 'data', 'scandata.mat');
scancell = load(scanfile);
scan = scancell.scan;

% Load uncompressed image data
imgfile = fullfile(fileparts(mfilename('fullpath')), '..', 'data', 'imgdata.mat');
imgcell = load(imgfile);
img = imgcell.img;

% Load compressed image data
imgcompfile = fullfile(fileparts(mfilename('fullpath')), '..', 'data', 'imgcompressed.mat');
imgcompcell = load(imgcompfile);
imgcomp = imgcompcell.imgcomp;

% Load point cloud data
pointcloudfile = fullfile(fileparts(mfilename('fullpath')), '..', 'data', '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