Ask Your Question
0

pcl RegionGrowingRGB linking problem

asked 2015-03-15 06:15:01 -0600

rastaxe gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-15 07:09:51 -0600

rastaxe gravatar image

Oh, it was my mistake, it is not

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

but

pcl::RegionGrowingRGB<pcl::PointXYZRGB> reg;
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-15 06:15:01 -0600

Seen: 61 times

Last updated: Mar 15 '15