velodyne icon indicating copy to clipboard operation
velodyne copied to clipboard

Make PointXYZIR compatible with PCL template classes for approximate nearest neighbours

Open cglwn opened this issue 7 years ago • 3 comments

I tried converting some existing code I had to use the velodyne_pointcloud::PointXYZIR type provided in this repository, but it wouldn't build due to uses of pcl::KdTreeFLANN<velodyne_pointcloud::PointXYZIR>, pcl::PCLBase<velodyne_pointcloud::PointXYZIR> and pcl::Passthrough<velodyne_pointcloud::PointXYZIR>. From the PCL documentation on how to add a new type, it seems like we need to explicitly include the header and implementation of the class templates to get it building.

cglwn avatar May 26 '17 20:05 cglwn

@cglwn Hi, i am encountering the same problem you meet, may i ask if you have find any solution to deal with it?

wdxairforce avatar Oct 06 '18 03:10 wdxairforce

@wdxairforce The change I did in #122 worked for me, but required rebuilding. Jack suggested something else that might work but I didn't get the chance to try.

Would it work to put PCL_NO_PRECOMPILE and those other includes before the include of velodyne_pointcloud/point_types.h?

I'm pretty far removed from working in this area so I'm afraid I can't help further.

cglwn avatar Oct 06 '18 05:10 cglwn

@cglwn It work for me too, thanks a lot!

wdxairforce avatar Oct 06 '18 05:10 wdxairforce