dimatura / pypcd

PCL pcd fileformat i/o in Python
Other
274 stars 197 forks source link

point_cloud_from_fileobj only works with ascii/uncompressed data #27

Open themightyoarfish opened 5 years ago

themightyoarfish commented 5 years ago

https://github.com/dimatura/pypcd/blob/20b032bfc729dec853ac810bceeb360f78bdc1d6/pypcd/pypcd.py#L313

It seems intuitive that everything created by point_cloud_to_fileobj() should be readable by point_cloud_from_fileobj(), but when data_compression="binary" is passed, the deserialization loops forever in search of a line beginning with "DATA".