Robotics StackExchange | Archived questions

pcl RegionGrowingRGB linking problem

I have a linking problem with the pcl RegionGrowingRGB in ROS Hydro (Ubuntu 32 bit). I am able to compile a ros node with pcl PassThrough, VoxelGrid and SACSegmentation, but when I add this simple line:

pcl::RegionGrowingRGB<pcl::PCLPointCloud2> reg;

I have this link problem:

undefined reference to `pcl::RegionGrowingRGB<pcl::PCLPointCloud2, pcl::Normal>::RegionGrowingRGB()'
undefined reference to `pcl::RegionGrowingRGB<pcl::PCLPointCloud2, pcl::Normal>::~RegionGrowingRGB()'

So, why am I able to compile a node with the SACSegmentation, but not with RegionGrowingRGB? Do you know how to solve my problem?

Asked by rastaxe on 2015-03-15 06:15:01 UTC

Comments

Answers

Oh, it was my mistake, it is not

pcl::RegionGrowingRGB<pcl::PCLPointCloud2> reg;

but

pcl::RegionGrowingRGB<pcl::PointXYZRGB> reg;

Asked by rastaxe on 2015-03-15 07:09:51 UTC

Comments