Endianness of binary PCD file

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Endianness of binary PCD file

dima glib
Hi,
I'm looking for an existing binary format to use for my point cloud project, and PCD meets all my needs. However, the official specification does not seem to define whether the data was written on big-endian or little-endian system [1]. Is there any way to determine a file's endianness, or should I just assume that it will always be little-endian in practice [2]?
[1] http://pointclouds.org/documentation/tutorials/pcd_file_format.php
[2] http://www.pcl-developers.org/io-and-endians-td4645565.html

_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Endianness of binary PCD file

Sérgio Agostinho

No there isn't. The assumption is that it is little endian. There's not even implemented logic to correctly handle the loading of binary data in little endian architectures. We're doing a naive memcpy. :x

Cheers


On 28-12-2017 22:32, dima glib wrote:
Hi,
I'm looking for an existing binary format to use for my point cloud project, and PCD meets all my needs. However, the official specification does not seem to define whether the data was written on big-endian or little-endian system [1]. Is there any way to determine a file's endianness, or should I just assume that it will always be little-endian in practice [2]?
[1] http://pointclouds.org/documentation/tutorials/pcd_file_format.php
[2] http://www.pcl-developers.org/io-and-endians-td4645565.html


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users


_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users