How to save PointXYZRGBL ? ( can PCDWriter do this )?

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

How to save PointXYZRGBL ? ( can PCDWriter do this )?

sara
Hi ,

I want to save a pointcloud with pointxyzrgba  .
I use this command but it is not true.
aa is a PointXYZRGBL type in my program :

I can load data type PointXYZRGBL with loadPCDFile command but I can't write with PCDWriter command data type PointXYZRGBL .

pcl::PointCloud<pcl::PointXYZRGBL>::Ptr  aa  (new pcl::PointCloud<pcl::PointXYZRGBL>);
.
.
.
PCDWriter wrt;
wrt.write ("output.pcd", aa);

Thanks .
Sarah
Reply | Threaded
Open this post in threaded view
|

Re: How to save PointXYZRGBL ? ( can PCDWriter do this )?

Jochen Sprickerhof
Administrator
Hi Sarah,

* sara <[hidden email]> [2013-12-23 04:08]:
> pcl::PointCloud<pcl::PointXYZRGBL>::Ptr  aa  (new
> pcl::PointCloud<pcl::PointXYZRGBL>);
> .
> .
> .
> PCDWriter wrt;
> wrt.write ("output.pcd", aa);

wrt.write ("output.pcd",* aa);

Please include a minimal example and the compiler output next time.

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