velodyne
velodyne copied to clipboard
Make PointXYZIR compatible with PCL template classes for approximate nearest neighbours
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 Hi, i am encountering the same problem you meet, may i ask if you have find any solution to deal with it?
@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 ofvelodyne_pointcloud/point_types.h
?
I'm pretty far removed from working in this area so I'm afraid I can't help further.
@cglwn It work for me too, thanks a lot!