Concatenating Two PointCloud<pcl::PointXYZRGBA>

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

Concatenating Two PointCloud<pcl::PointXYZRGBA>

Potatofever
Hello,

I've done the tutorial on combining colorless point clouds using the overloaded += operator, yet it seems that you can not do the same for XYZRGBA point clouds.

 Is there a method somewhere that I'm not seeing? Or would the best option be to just make this myself?

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

Re: Concatenating Two PointCloud<pcl::PointXYZRGBA>

Radu B Rusu
Administrator
What are the errors that you are getting? As far as I can see, += looks fine at first glance
(http://docs.pointclouds.org/trunk/common_2include_2pcl_2point__cloud_8h_source.html#l00254).

Cheers,
Radu.

On 06/14/2012 08:25 AM, Potatofever wrote:

> Hello,
>
> I've done the tutorial on combining colorless point clouds using the
> overloaded += operator, yet it seems that you can not do the same for
> XYZRGBA point clouds.
>
>   Is there a method somewhere that I'm not seeing? Or would the best option
> be to just make this myself?
>
> Thanks in advance.
>
> --
> View this message in context: http://www.pcl-users.org/Concatenating-Two-PointCloud-pcl-PointXYZRGBA-tp4019334.html
> Sent from the Point Cloud Library (PCL) Users mailing list archive at Nabble.com.
> _______________________________________________
> [hidden email] / http://pointclouds.org
> http://pointclouds.org/mailman/listinfo/pcl-users
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|

Re: Concatenating Two PointCloud<pcl::PointXYZRGBA>

iammark1237
This post has NOT been accepted by the mailing list yet.
The problem might be that you are adding pointers instead of the point clouds.

pcl::PointCloud<pcl::PointXYZRGBA>::Ptr  a;
pcl::PointCloud<pcl::PointXYZRGBA>::Ptr  b;

a+=b; doesn't work

Try *a+=*b;
Reply | Threaded
Open this post in threaded view
|

Re: Concatenating Two PointCloud<pcl::PointXYZRGBA>

Potatofever
iammark1237 wrote
The problem might be that you are adding pointers instead of the point clouds.

pcl::PointCloud<pcl::PointXYZRGBA>::Ptr  a;
pcl::PointCloud<pcl::PointXYZRGBA>::Ptr  b;

a+=b; doesn't work

Try *a+=*b;
Thank you Mark and Radu.

It seems as though this was the problem (or perhaps that I'm more of a noob than I thought)

Thanks again