Interpreting stored cloud file from PointCloud2 data type
I am having a problem in interpreting a point cloud data stored in PointCloud2 of data type. The file is generated by "rostopic echo.." my cloud topic. My goal is to find corresponding x, y and z values, in terms of coordinates so that I can use them in plotting with MatLab or Octave. I am aware of this link, but, I still cannot see the use of it.
The fields in the stored file looks like this:
%time,field.header.seq,field.header.stamp,field.header.frame_id,field.height,field.width,field.fields0.name,field.fields0.offset,field.fields0.datatype,field.fields0.count,field.fields1.name,field.fields1.offset "and so on"
Or, is it wise to convert from PointCloud2 first into another format before I can plot it. If so, in what format, it serves the best for this purpose? Or any other smarter way of doing it.
Thanks in advance.