[ros-users] pcl temlatization compile issue?

Adam Leeper aleeper at stanford.edu
Tue Jun 1 02:55:49 UTC 2010


It appears to be 0.1.3, which if I recall correctly is quite old, but I
don't have permissions to update it on any of the Willow machines.

Will try from my laptop.


Adam Leeper
Stanford University
aleeper at stanford.edu
719.358.3804


On Mon, May 31, 2010 at 6:42 PM, Radu Bogdan Rusu <rusu at willowgarage.com>wrote:

> Adam what version of PCL are you running? Check ../CMakeLists.txt.
>
> Cheers,
> Radu.
> --
> http://www.rbrusu.com
>
> On May 31, 2010, at 5:54 PM, Adam Leeper <aleeper at stanford.edu> wrote:
>
> Hi all-
>
> I'm having some trouble compiling something with pcl.
>
> I have a function that looks like this:
>
> vector<pcl::PointCloud<pcl::PointXYZ> >
> segment_objects(pcl::PointCloud<pcl::PointXYZ> cloud)
> {
>    ... stuff ..
> }
>
> If I keep it within my main .cpp file everything compiles fine. But then I
> made a utilities.h/.cpp files and put segment_objects in there, and now it
> complains about multiple definitions of point_cloud::traits. There is a long
> list of them, but it only complains about those (point_cloud::traits),
> nothing else.
>
> CMakeFiles/bigg_dynamic.dir/src/bigg_dynamic.o:(.rodata+0x106): multiple
> definition of `point_cloud::traits::name<pcl::PointXYZRGBA,
> point_cloud::fields::x>::value'
> CMakeFiles/bigg_dynamic.dir/src/utilities.o:(.rodata+0x6): first defined
> here
> CMakeFiles/bigg_dynamic.dir/src/bigg_dynamic.o:(.rodata+0x108): multiple
> definition of `point_cloud::traits::name<pcl::PointXYZRGBA,
> point_cloud::fields::y>::value'
> CMakeFiles/bigg_dynamic.dir/src/utilities.o:(.rodata+0x8): first defined
> here
>
> I can't see any reason this shouldn't work, unless I am missing something
> about the templatization of pcl that might be screwing something up...
>
> There are several other helper functions defined in these files that
> compile just fine and it doesn't complain about redfinitions, except these
> functions use only opencv.
>
> Any help is appreciated!
>
> --Adam
>
>
>
> Adam Leeper
> Stanford University
> <aleeper at stanford.edu>aleeper at stanford.edu
> 719.358.3804
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /discuss/ros-users/attachments/20100531/6a0a6fd8/attachment.htm 


More information about the ros-users mailing list