Skip to main content

Module pcd

Module pcd 

Source
Expand description

Reading and writing PCD, the Point Cloud Library’s own format.

Written here rather than taken from a crate for the same reason PLY is: the format is a text header and a block of numbers, the whole of it fits on one page, and a dependency for that costs more than the code does. It is also the format most likely to arrive from a robot, since everything built on PCL writes it.

Supported: ascii and binary data, F/U/I fields of one, two, four or eight bytes, and any field order. Not supported: binary_compressed, which is an LZF stream nobody writes by hand and which no file this application has been shown has used.

Functions§

read_pcd
Reads a cloud from PCD.
write_pcd
Writes a cloud as binary PCD.