%% Create pointCloud Object Using Point Cloud Message
% Convert a Robotics System Toolbox™ point cloud message into a Computer Vision System Toolbox™ pointCloud object.
% Load sample messages.

exampleHelperROSLoadMessages

%
% Convert a ptcloud message to the pointCloud object.

pcobj = pointCloud(readXYZ(ptcloud),'Color',uint8(255*readRGB(ptcloud)))

% Copyright 2012 The MathWorks, Inc.