Storing double and long values in PCD file format

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Storing double and long values in PCD file format

AnnaC
I am writing a PCD custom point cloud data file. While I use float datatype,
some precision is lost.
Actual data point is shown below:
11.317107200622559,-4.425236701965332,-0.3106115758419037,32,0,0,0,0,1,1519950885384595465,3,1519950885384595465

DATA ascii
-11.317107 -4.4252367 -0.31061158 32 0 0 0 0 1 1.5199509e+18 3 1.5199509e+18

When I use double  datatype, size is taken as 8 bytes , but the value is not
same as actual.

DATA ascii
-947.44275 -4.624298e-07 1.5800681e-314 32 0 0 0 0 1 1.5199509e+18 3
1.5199509e+18

 Also does it support long datatype or how is it possible to store long and
double datatypes in PCD file. Is it possible to give precision for custom
point types. Does this precision loss occur in  Binary and Binary Compressed
PCD formats also. I am writing as binary compressed PCD.

Thanks ..



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